	

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

var x = readCookie('DealerSignUp');

var appletShutdown = false;

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

	//hideItdark();

	hideItdark2();

}

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

	//hideItdark();

	hideItdark2();

}

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

	setTimeout("showItdark2()", 10); //sets a timer to 15 seconds for the email popup

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

	var site =  window.location.hostname;

}

}




