var goto;
cookID = 'viewintro';

cookVal = getCookie(cookID);

if(cookVal!='main.php') {
         setCookie(cookID,'main.php',365);
         goto = "gateway.html";
	 setCookie("Settings","10111",365);
}

else{
        goto = cookVal;
}

Cookie = getCookie("Settings");
if (parseInt(parseInt(Cookie)/(Math.pow(10,3)))%10==1)
{
	window.open('main.php','_blank','fullscreen');
	window.location.href="http://www.skizzers.org";
}
else top.window.location.href=goto;

