var strCoverFlowFilename = "./flash/coverflow.swf";

var PeeVeeCoverFlow = function( method, category, userid, keyword, login, intWidth, intHeight )
{
	this.method   = method;
	this.category = category;
	this.userid   = userid;
	this.keyword  = keyword;
	this.login    = login;
	this.width    = intWidth;
	this.height   = intHeight;
}

var PVCF = PeeVeeCoverFlow.prototype;

PVCF.write = function()
{
	var intWidth  = this.width;
	var intHeight = this.height;

  	var strFlagString = "";
 	strFlagString += "method="   + this.method   + "&";
	strFlagString += "category=" + this.category + "&";
	strFlagString += "userid="   + this.userid   + "&";
	strFlagString += "keyword="  + this.keyword  + "&";
	strFlagString += "login="    + this.login    + "&";
	strFlagString += "WIDTH="    + this.width    + "&";
	strFlagString += "HEIGHT="   + this.height   + "&";
	
 
  	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + intWidth + '" height="' + intHeight + '" id="cover_flow" align="left">');
  	document.write('<param name="salign" value="lt" />');
  	document.write('<param name="allowScriptAccess" value="always" />');
  	document.write('<param name="allowFullScreen" value="true" />');
  	document.write('<param name="movie" value="' + strCoverFlowFilename + '" />');
  	document.write('<param name="quality" value="high" />');
  	document.write('<param name="FlashVars" value="' + strFlagString + '" />');
  	document.write('<embed src="'+ strCoverFlowFilename +'" quality="high" width="' + intWidth + '" height="' + intHeight + '" name="cover_flow" align="left" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="' + strFlagString + '" salign="lt" />');
  	document.write('</object>');
  	document.write( '<br>' );
}

