/// HOW TO IMPLEMENT /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///
/// ! THESE COMENTS SHOULD BE REMOVED FOR USE IN A LIVE SETTING !
///
/// The Document that will call these functions needs to have three <div> elemnets in it that can be called by their id. The id names can be 
/// what ever you want as long as the var names in this file corispond to the <div> names. 														
/// EXP:
///
///	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
/// <html xmlns="http://www.w3.org/1999/xhtml">
/// <head>
///	<title>cnet_allaccess.html</title>
///	<meta name="generator" content="BBEdit 8.0" />
///	<style type="text/css" title="text/css">
///	/* <![CDATA[ */ @import url(css/global_allAccess.css); /* ]]> */
///	</style>
///	<script src="js/allaccess.js" type="text/javascript" language="javascript"></script>
/// </head>
/// <body onLoad="startTimer();" >
/// 	<div id="allAccess">
/// 		<div id="cnetHeader"> <a href="javaScript:openPopUp('about_cnet.html', '400', '500')"> about this ad</a> 
///								| <a href="javaScript:hideSplash()">Continue to CNET.com</a> &nbsp;</div>
/// 		<div id="bgContainer">
/// 			<div id="intro"><embed src="swfs/dumy_intromercial.swf" width="750" height="450" ></div>
/// 		</div>
/// 	</div>
/// 	<div id="mainPage">
///			<div id="cnetMpage"><br /><b>&nbsp; This is the Landing Page.</b></div>
///
///
///	THIS IS WERE YOUR PAGE WILL GO TO BE DISPLAYED. 
///				
///
///
/// 	</div>
/// 	<div id="reminder">
///	 		<div id="rd">
///	 			<a href="javascript:hideReminder();"><img src="images/leave-behind-top-bar.gif" border="0" /></a><br>
///	 			<!-- The link below needs to link off to the products URL-->
///	 			<a href="#" target="_blank"><img src=" " alt="Name of ad Product" width="120" height="90" align="middle" border="0" /></a>
/// 		</div>
/// 	</div>
/// </body>
/// </html>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


/// Varibles for All Access Units ///////////////////////////////////////////////////////////////////////////////////////////////////////////////

var Hiding  = false;

/// Functions for the allaccess intromercial ad units ///////////////////////////////////////////////////////////////////////////////////////////

function openPopUp(url, h, w) {		
	 window.open(url, "subWindow", "status=no,scrollbars=no,resizable=yes,toolbar=no,tittlebar,location=no,menubar=no,height="+h+",width="+w);
}

function hideSplash(){
	if(!Hiding){
		document.getElementById(a).style.visibility = 'hidden';
		document.getElementById(a).style.display = 'none';
		document.getElementById(m).style.visibility = 'visible';
		document.getElementById(m).style.display = 'block';
		document.getElementById(r).style.visibility = 'visible';
		document.body.style.background = bgColor;
	}	
	
}
 
function hideReminder(){
	Hiding = true;
	document.getElementById(r).style.visibility = 'hidden';
	
}	

function startTimer(){
	setTimeout('hideSplash()',10900);
	clearTimeout(startTimer);
}