function Is(){ var agent = navigator.userAgent.toLowerCase(); this.major = parseInt(navigator.appVersion); this.minor = parseFloat(navigator.appVersion); this.dom = document.getElementById?1:0; this.k = (agent.indexOf('konqueror') != -1); this.ko = (this.k && Number(agent.substring(agent.indexOf('konqueror') + 10,agent.indexOf('konqueror') + 13)) > 3); this.ns = ((agent.indexOf('mozilla') != -1) && ((agent.indexOf('spoofer') == -1) && (agent.indexOf('compatible') == -1))); this.ns5 = (this.dom && this.ns && this.major == 5); this.safari = (agent.indexOf('safari') != -1); this.ie = (agent.indexOf("msie") != -1); this.ie5 = (this.ie && agent.indexOf('msie 5') != -1); this.ie6 = (this.ie && agent.indexOf('msie 6') != -1); this.ie7 = (this.ie && agent.indexOf('msie 7') != -1); this.ie8 = (this.ie && agent.indexOf('msie 8') != -1); this.ie9 = (this.ie && agent.indexOf('msie 9') != -1); this.ie10 = (this.ie && agent.indexOf('msie 10') != -1); this.o = (agent.indexOf("opera") != -1); this.op = (this.o && Number(agent.substring(agent.indexOf('opera') + 6,agent.indexOf('opera') + 9)) > 7); this.mac = (agent.indexOf("mac") != -1 || agent.indexOf("macppc") != -1 || agent.indexOf("mac_powerpc") != -1); this.badmacie = (this.mac && this.ie); this.en = ((this.safari || this.ns5 || this.ie10 || this.ie9 || this.ie8 || this.ie7 || this.ie6 || this.ie5 || this.op || this.ko) && !this.badmacie); this.cookie = (navigator.cookieEnabled != false); } var is = new Is(); if(!is.en)top.location.href = '/sys/no.html'; if(!is.cookie)self.location.href = '/sys/cookies.html'; function check(){ if(parent.frames.length == 0){ var f = ""; if(typeof(pp_frames) != "undefined"){ if(pp_frames){ f = top.document.referrer; } } if((f == "") || (f == "[unknown origin]") || (f == "unknown") || (f == "undefined")){ if(document["parent"] != null){ if(parent["document"] != null){ if(parent.document["referrer"] != null){ if(typeof(parent.document) == "object"){ f = parent.document.referrer; } } } } } if((f == "") || (f == "[unknown origin]") || (f == "unknown") || (f == "undefined")){ if(document["referrer"] != null){ f = document.referrer; } } if((f == "") || (f == "[unknown origin]") || (f == "unknown") || (f == "undefined")){ f = ""; } var expires = new Date(); expires.setTime(expires.getTime() + 1200000); if(f.length > 0){ myReferrer = f; myFirstPage = window.location.href.substring(window.location.href.lastIndexOf('/') + 1,window.location.href.length); } else{ myReferrer = myFirstPage = window.location.href.substring(window.location.href.lastIndexOf('/') + 1,window.location.href.length); } myReferrer = escape(myReferrer); myFirstPage = escape(myFirstPage); document.cookie = 'myReferrer=' + myReferrer + '; path=' + '/; expires=' + expires.toGMTString(); document.cookie = 'myFirstPage=' + myFirstPage + '; path=' + '/; expires=' + expires.toGMTString(); setTimeout("window.location.href = 'http:\/\/www.codecasters.com\/'",50); } else{ if(window.name == 'st'){ var ready = (top.parent.lm.myLoad != -1); if(ready != -1){ setTimeout("top.parent.lm.regie('synch',window.location.href.substring(window.location.href.lastIndexOf('/') + 1,window.location.href.length))",50); } else{ setTimeout('check()',250); } } if(window.name.indexOf('Father') != -1){ return null; } } } check();