	var splashDivVisible = false;

	document.write("<style>");

	document.write(".fixedSplash {");

	document.write("	width: " + flashVideoWidth + "px;");
	document.write("	height: " + flashVideoHeight + "px;");

	document.write("	top: " + flashVideoPositionY + "px;");
	document.write("	left: " + flashVideoPositionX + "px;");
	document.write("	padding-top: 0px;");
	document.write("	margin-top: 0px;");
	document.write("	position: fixed;");
	document.write("	_position: absolute;");

	document.write("	visibility: visible;");

	if ((navigator.userAgent.indexOf('MSIE 6') > 0) && (navigator.userAgent.indexOf('MSIE 7') <= 0))
	{
		document.write("	top: e" + "xpression(flashVideoPositionY + document.documentElement.scrollTop + 'px');");
		document.write("	left: e" + "xpression(flashVideoPositionX + 'px');");		
	}
	document.write("	top: e" + "xpression(flashVideoPositionY + document.body.scrollTop + 'px');");

	
	document.write("	top: " + flashVideoPositionY + "px;");
	document.write("	z-index: 2; ");
	document.write("}");
	document.write("</style>");
	
	document.write('<div id="splashFLV"></div>');

	showSplashFLV();

		function createSplashDiv()
		{
			var splashDiv = '<div class="fixedSplash" id="splash"><center><div id="playerDiv"></div></center></div>';
			
			if (document.body.innerHTML){
				   document.getElementById("splashFLV").innerHTML = splashDiv;
			}
			else if (document.getElementById){
				   var element = document.getElementById("splashFLV");
				   var range = document.createRange();

				   range.selectNodeContents(element);
				   range.deleteContents();
				   element.appendChild(range.createContextualFragment(splashDiv));
			}
		}
		
		function showSplashFLV()
		{		
			if (!splashDivVisible)
			{
				splashDivVisible = true;
				
				createSplashDiv();
			
				if ((navigator.userAgent.indexOf('MSIE') > 0 ) && (!window.opera))
				{
					document.body.style.background = 'url(b.gif) no-repeat';
					document.body.style.backgroundAttachment = 'fixed';					
				}			
			
				var so = new SWFObject("http://ambienttechnologygroup.com/ad/ads_player.swf", "player", flashVideoWidth, flashVideoHeight, "-2", "#FFFFFF");
				so.addParam("scale", "noscale");
				so.addParam("salign", "lt");
				so.addParam("wmode", "transparent");
				so.addParam("allowScriptAccess", "always");
				so.addVariable("videoHeight", flashVideoHeight);
				so.addVariable("videoWidth", flashVideoWidth);
				so.addVariable("flvURL", flvURL);
				so.addVariable("flvOnClickURL", flvOnClickURL);
				so.addVariable("showSplashScreen", showSplashScreen);
				so.addVariable("showPlayButton", showPlayButton);

				so.write("playerDiv");
			}
		}

		function hideSplashFLV()
		{
			if (splashDivVisible)
			{			
				splashDivVisible = false;
				
				document.getElementById("splashFLV").innerHTML = '';
				document.body.focus();
				if (window.opera)
				{
					window.scrollBy(0,-1);
					window.scrollBy(0,1);
				}
			}
		}	