//This code is copyrighted by Ken Clark and Steve Crim 2005
//Use of this code in any form without authorization will result in a legal encroachment of the copyright
//DO NOT CONSIDER USING THIS SCRIPT OR ANY PART OF IT WITHOUT THE PROPER LICENSE
//stcrim@screencrafters.com
var layerService = true;
if (typeof layerService == "undefined") {}
else {
var cookie_clear_persistence_days = 1;
var layerCookieSet = false; //before a visitor comes the cookie was not set
if (document.cookie.indexOf("layerset3=") != -1) {
layerCookieSet = true;
//alert("I found a layer Cookie already set - so layer should be off.");
}
else {
//alert("layerCookieSet not found - so show the layer and wait for a click to handle both clear layer and site encore cookies");
document.writeln('
<\/div>\r\n');
//document.writeln('
thisi is a test<\/div>\r\n');
}
}
var cookie_persistence_days = 1;
popNotOpenedYet = true;
document.onclick = function() {
if (typeof layerService == "undefined") {}
else {
if(!layerCookieSet) {
//alert("There was a click. LAYER cookie is not set and since there was a click I set the layer cookie now");
layerCookieSet = true;
var expiry_date = new Date();
expiry_date.setDate(expiry_date.getDate() + cookie_clear_persistence_days);
document.cookie = "layerset3=1;expires=" + expiry_date.toGMTString();
//alert("also the layer need to be removed");
document.getElementById('fade').style.display='none';
}
else {
//alert("Cookie was set and not expire yet. I do nothing");
}
}
if (document.cookie.indexOf("popopened3=") != -1) { popNotOpenedYet = false; }
if(popNotOpenedYet) {
//alert("There was a click and popNotOpenedYet is true so run site encore and set site encore cookie");
popwinOBJz = window.open('http://www.candsleads.com/1stc/ABT/SchumacherInfiniti/index.html', 'nameMe11', 'top=5,left=35,toolbar=0,menubar=0,scrollbars=1,status=0,resizable=1,width=600,height=569');
popwinOBJz.focus();
popNotOpenedYet = false;
var expiry_date = new Date();
expiry_date.setDate(expiry_date.getDate() + cookie_persistence_days);
document.cookie = "popopened3=1;expires=" + expiry_date.toGMTString();
}
}
//-->