//  Copyright (c) 2000-2004 ALISOOK Inc. All Rights Reserved.
function F0(){
var v0=new Date();var e0=new Date();
e0.setUTCHours(5);
e0.setUTCMinutes(0);
e0.setUTCSeconds(0);
var x0=e0.getTime()-v0.getTime();
if(x0<0){
e0.setUTCDate(e0.getUTCDate()+1);
}
return e0.toUTCString();
}
function U0(){
var o0=document.cookie.match(/ALI346P2AD2=(\d+)/);
if(o0!=null&&o0.length>0){
return parseInt(o0[1]);
}
else{return 0;}
}
function U2(){
return true
}
function U1(){
if(!y0){
var z1=(screen.height-300)/2;var d1=(screen.width-720)/2;
window.showModelessDialog("javascript:function F2(){return true;}var c1=window.open('"+t0+"','_blank','toolbar=no,resizable=yes,scrollbars=no,channelmode=no,directories=no,width=720,height=300,left="+d1+",top="+z1+",menubar=no,location=no');self.close();","","dialogtop:3000px;dialogleft:3000px;dialogheight:0px;dialogWidth:0px;status:no;help:no");
}
self.focus();
setTimeout('self.focus()',500);
setTimeout('self.focus()',1000);
setTimeout('self.focus()',1500);
}
function F1(){
var i0=navigator.userAgent.toLowerCase();var p0=(i0.indexOf('aol')!=-1);var q0=(i0.indexOf('netscape6/6.')!=-1);var a0=(i0.indexOf('netscape/7')!=-1);var d0=",width=720,height=300";
if(!p0&&!a0){
d0+=",left=3000,top=3000";
}
if(!q0){
d0+=",menubar=no,location=no";
}
else{
d0+=",menubar=no,location=yes";
}
var z0=window.open("about:blank","_blank","toolbar=no,resizable=yes,scrollbars=no,channelmode=no,directories=no"+d0);
if((z0!=null)&&(!z0.closed)){
if(!z0.closed&&!p0&&!a0){
z0.moveTo(Math.ceil((screen.availWidth-720)/ 2),Math.ceil((screen.availHeight-300)/ 2));
}
if(!z0.closed){z0.blur();}
self.focus();
if(z0){
z0.document.open();
z0.document.write('<scr'+'ipt language="javascript">');
z0.document.write('function B0(){window.opener.y0=1;location.href="'+t0+'";}');
z0.document.write('if(window.opener){setTimeout(\'B0()\',500);}');
z0.document.write('</scr'+'ipt>');
z0.document.close();
}}
if(o1){
setTimeout('U1()',2000);
}}
var w0=1;var y0=0;var t0="";var n0=false;var i1=((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1))?true:false;
var e1=((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1))?true:false;var o1=i1||e1;
if(document.cookie.indexOf('ALI346P2AD2')==-1){
document.cookie="ALI346P2AD2=0;expires="+F0()+";domain=.alisook.com;path=/";
if(document.cookie.indexOf('ALI346P2AD2')!=-1){
n0=true;
}
}else{
n0=true;
}
if(n0&&document.domain.indexOf('alisook.com')!=-1){
var c0=U0();
if(c0<w0){
t0="http://www.alisook.com/cgi-bin/under/gp.asp";
c0++;
document.cookie="ALI346P2AD2="+c0+";expires="+F0()+";domain=.alisook.com;path=/";
F1();
}}
