//	fWriteFlashObject(nID, sUrl, nWidth, nHeight, sBG, bTransparent, sCssClass)

function fWriteFlashObject(sID, sUrl, nWidth, nHeight, sBG, bTransparent, sCssClass){
	sSSL=(location.href.indexOf("https")>=0 ? "s" : "")

	document.write('<object id="'+ sID +'" width="'+ nWidth +'" height="'+ nHeight +'" class="'+ sCssClass +'" codebase="http'+ sSSL +'://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">')
	document.write('<param name="movie" value="'+ sUrl +'">')
	if(bTransparent) document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="bgcolor" value="'+ sBG +'" />');
	document.write('<param name="quality" value="high">');
	document.write('<embed id="'+ sID +'" src="'+ sUrl +'" width="'+ nWidth +'" height="'+ nHeight +'" class="'+ sCssClass +'" bgcolor="'+ sBG +'" '+ (bTransparent ? 'wmode="transparent"' : '') +' quality="high"  TYPE="application/x-shockwave-flash" PLUGINSPAGE="http'+ sSSL +'://www.macromedia.com/go/getflashplayer"></embed>')
	document.write('</object>');
}

function OpenMenu(URL, newwin){
	if(URL.indexOf("http://")==-1) URL="/"+ URL;
	if(newwin)
		window.open(URL)
	else
		location.href=URL
}

function fPlaceLogos(){
	try{
		nWindowWidth=(document.body.offsetWidth ? document.body.offsetWidth : document.width);

		if(nWindowWidth>=1024)
			document.getElementById("oLogos").style.paddingLeft=((nWindowWidth-1024)/2)+5;
		else
			document.getElementById("oLogos").style.paddingLeft="5px";
	}catch(e){}
}

function ViewPromo(URL){
		location.href=URL
}

/*
try{
	window.onresize=fPlaceLogos;
}catch(e){}
*/

function OpenImage(img){
	window.open("ImgPopUp.asp?img="+img,null,"width=5,height=5")
}

function fPrintPage(){
	window.open('print.html', 'winPrint', 'width=480, height=500, scrollbars=yes');
}