<!--
function HandleClick(theAction) {
// 1 = open, 0 = close

	if (getsSplash) HideSplash();
	
	if (theAction == 1) {
			
			if (document.getElementById) {
					document.getElementById('hiddenLayer').style.visibility = "visible";
					document.getElementById('adFrame').src = adPath;
			}
			
			if (document.images) openTrk.src = openTrkPath + noCache();


	} else if (theAction == 0) {

			if (document.getElementById) {
				document.getElementById('adFrame').src = "/b.gif";												
				document.getElementById('hiddenLayer').style.visibility = "hidden";
					
			}
			
			if (document.images) closeTrk.src = closeTrkPath + noCache();


	}
}


function Rollup() {
	if (getsSplashRollup) {
		splashHeight = 280;
		rollSpeed = 1;
		rollInt = setInterval("Shrink();", 10);
	} else if (getsSplash) HideSplash();
}

function Shrink() {
	document.getElementById('splashLayer').style.height = splashHeight + "px";
	document.getElementById('splashFrame').style.height = splashHeight + "px";
	splashHeight -= rollSpeed;
	rollSpeed += 2;
	if (splashHeight < 0) {
		clearInterval(rollInt);
		 HideSplash();
	}
}

function HideSplash() {
	if (getsSplash) {
		document.getElementById('splashLayer').style.visibility = "visible";
		getsSplash = false;
	}
}



//function CheckCookie() {
	//theCookie = document.cookie;
	//this.seenIt = (theCookie.indexOf("tlu=1")!=-1);
	
	//if (!this.seenIt && getsTlu) {
		//var theDate = new Date();
		//exp = theDate.getTime() + (24 * 60 * 60 * 1000);
		//theDate.setTime(exp);
		//document.cookie = "tlu=1; expires=" + theDate.toGMTString();
	//}
//}

function noCache() {
	var d = new Date();
	now = "+" + d.getTime() + "/http://i.i.com.com/cnwk.1d/Ads/common/dotclear.gif";
	return now;
}

function defaultVars() {

	getsTlu = (ads_is_ie5up && !ads_is_mac);

	//var check = new CheckCookie();
	//getsSplash = (getsTlu && !check.seenIt);
	getsSplash = getsTlu
	getsSplashRollup = (getsTlu && !(ads_is_ie && ads_is_mac));
}
defaultVars();

//function OnloadFunc() {
	//setTimeout('Rollup();', 1000);
//}
//window.onload=OnloadFunc; 
 
//-->
