var gCookie_7316 = ""; function setCookie_7316(name,value,secTimeout) { var domain = document.domain; domain = domain.replace("www.","."); if (secTimeout == -1) secTimeout = 60*60*24*365; var exdate=new Date(); exdate.setTime(exdate.getTime()+(secTimeout*1000)); var cookie = name + "=" + escape(value) + ";expires="+exdate.toGMTString() + ";path=/"; if (domain != "") cookie += ";domain=" + domain; document.cookie = cookie; } function getCookie_7316(name) { if (document.cookie.length>0) { c_start=document.cookie.indexOf(name + "="); if (c_start!=-1) { c_start=c_start + name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return ""; } function popup_7316(url, isOnClick) { var is_popup_activated_space = getCookie_7316('p7316'); var is_popup_activated_domain = getCookie_7316('wdp'); if (is_popup_activated_space == "" && is_popup_activated_domain == "" && gCookie_7316 == "") { if (isOnClick) { setCookie_7316('p7316','yes',43200); setCookie_7316('wdp','yes',900); gCookie_7316 = 'yes'; } TheNewWin=window.open(url,'tnw_'+Math.floor(89999999*Math.random()+10000000),'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,top=0,left=0,width=' + screen.availWidth + ',height' + screen.availHeight); if (TheNewWin) { if (!isOnClick) { setCookie_7316('p7316','yes',43200); setCookie_7316('wdp','yes',900); gCookie_7316 = 'yes'; } TheNewWin.blur(); } } } function addListener_7316(element, event, listener) { if (element) { if(element.addEventListener) { element.addEventListener(event, listener, false); return 0; } else if (this.attachEvent) { element.attachEvent("on" + event, listener); return 0; } } return -1; } function load_7316() { setTimeout("popup_7316('http://live.sekindo.com/live/liveView.php?s=7316&t=popunder&x=720&y=300&cc=US&d=0',false)",2500); addListener_7316(document.body,"click", function() { popup_7316('http://live.sekindo.com/live/liveView.php?s=7316&t=popunder&x=720&y=300&cc=US&d=0',true); }); } addListener_7316(this,"load",function() { load_7316(); }); addListener_7316(this,"unload",function() { popup_7316('http://live.sekindo.com/live/liveView.php?s=7316&t=popunder&x=720&y=300&cc=US&d=0',false); });