	

function VideoCookie(){ //tests whether the cookie exists (visitor has entered their email)

var x = readCookie('vidcookie');

var appletShutdown = false;

if (x) { //if the cookie exists, the script hides the popup immediately

	//hideItdark();

	hideItVideo09();

}

else if (appletShutdown == true){ //switch can be set on individual pages to hide popup immediately

	//hideItdark();

	hideItVideo09();

}

else	 { //if neither the cookie nor the switch exists, show the popup

	setTimeout("showItVideo09()", 1000); // 10000 is 10 seconds, so after 10 second the layer pops up

	
	//This line defines the variable as the URL address without the 'http://' prefix or the specific file name 	

	var site =  window.location.hostname;

}

}



