var unfoldingBannerCpt=1;
function displayUnfoldingBanner(banner,width,height)
{
	var thisId="UnfoldingBanner"+unfoldingBannerCpt;
	var swf='http://cbanners.virtuagirlhd.com/customdata/banner/unfoldingBanner/'+banner;
	var swfWidth=width;
	var swfHeight=height;

	var htmlFlash='<div style="position:relative;width:'+(swfWidth/2)+'px;height:'+(swfHeight/2)+'px;z-index:10000;margin:0px;">';
	htmlFlash+='<div style="position:absolute;width:'+(swfWidth/2)+'px;height:'+(swfHeight/2)+'px;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="'+(swfWidth/2)+'" height="'+(swfHeight/2)+'" id="object_'+thisId+'" align="middle">';
	htmlFlash+='<param name="allowScriptAccess" value="sameDomain" />';
	htmlFlash+='<param name="allowFullScreen" value="false" />';
	htmlFlash+='<param name="movie" value="'+swf+'" />';
	htmlFlash+='<param name="quality" value="high" />';
	htmlFlash+='<param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />';
	htmlFlash+='<param name="FlashVars" value="sub='+subaccount+'" />';
	htmlFlash+='<embed FlashVars="sub='+subaccount+'" src="'+swf+'" quality="high" wmode="transparent" bgcolor="#ffffff" width="'+(swfWidth/2)+'" height="'+(swfHeight/2)+'" name="promo_tools_video" align="middle" wmode="transparent" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_fr" id="embed_'+thisId+'" />';
	htmlFlash+='</object></div></div>';
	
	document.write(htmlFlash);

	$("#object_"+thisId).hover(
		function ()
		{
			if($.browser.msie)
				$(this).attr("width",swfWidth).attr("height",swfHeight);
			else
				$("#embed_"+thisId).attr("width",swfWidth).attr("height",swfHeight);
			/*
			if($.browser.mozilla)
				$("#embed_"+thisId).attr("width",swfWidth).attr("height",swfHeight);
			else
				$(this).attr("width",swfWidth).attr("height",swfHeight);
			*/
		},
		function ()
		{
			if($.browser.msie)
				$(this).attr("width",(swfWidth/2)).attr("height",(swfHeight/2));
			else
				$("#embed_"+thisId).attr("width",(swfWidth/2)).attr("height",(swfHeight/2));
			/*
			if($.browser.mozilla)
				$("#embed_"+thisId).attr("width",(swfWidth/2)).attr("height",(swfHeight/2));
			else
				$(this).attr("width",(swfWidth/2)).attr("height",(swfHeight/2));
			*/
		}
	);
	unfoldingBannerCpt++;
}
