
// Author: Roger D. Hosto Jr.
// CHECK FOR COOKIE
// http://www.web-geek.com
// http://shop.web-geek.com
var CookieName = "ukredirect";
var CookieString = document.cookie;
var CookieSet = CookieString.split (';');
var SetSize = CookieSet.length;
var CookiePieces
var CookieFind = "";
var x = 0;
var Local = new Date();
var GMToffset = Local.getTimezoneOffset();
var x10url1234 = "http://www.x10.co.uk/cgi-bin/offer/offer.cgi?USX10,../x10com.htm";
for (x = 0; (x < SetSize); x++)
{

        CookiePieces = CookieSet[x].split ('=');

        if (CookiePieces[0].substring (0,1) == ' ')
        {

                CookiePieces[0] = CookiePieces[0].substring (1, CookiePieces[0].length);

        }

        if (CookiePieces[0] == CookieName)
        {

                CookieFind = CookiePieces[0];

        }

}
//END CHECK FOR COOKIE

//DISPLAY MESSAGE
if (CookieFind != CookieName)
{
     document.cookie = CookieName+"=1;  path=/ ;";
     
     //alert(CookieName+"=1;  path=/ ;");

	 if (navigator.appName == "Netscape") 
	 {
		if (GMToffset < 0) 
		{
			GMToffset = Math.abs(GMToffset)
		}
		else 
		{
			GMToffset = GMToffset - (Math.abs(GMToffset) *2)
		};
	 };

	if(Local.getMonth == 9 && Local.getData == 26)
	{
		var gmttime1234 = ((GMToffset-60)/60);
		if(gmttime1234 <= 1 && gmttime1234 >= -1)
		{ 
			//alert(((GMToffset-60)/60)+ " Hours from GMT - 1 hour first one");
			location.href = x10url1234;
			
		}
		
	}
	else
	{
		var gmttime1234 = (GMToffset/60);
		if(gmttime1234 <= 1 && gmttime1234 >= -1)
		{ 
			//alert((GMToffset/60) + " Hours from GMT");
			location.href = x10url1234;
		
		}
	}
}
