/////////////////////
function i2iCookieCk(Cname){
Cfl='0';
C=document.cookie;
Cc='';
if(C.length>0){
Ch=C.indexOf(Cname+'=');
if(Ch !=-1){
Ch+=Cname.length+1;
Th=C.indexOf(';',Ch);
if(Th==-1)Th=C.length;
Cc=C.substring(Ch,Th);
}else{
Cfl='1';
}
}else{
Cfl='1';
}
return[Cfl,Cc];
}
function definedAlert(varID) {
if (window[varID]) {
return true;
}
return false;
}
timerID = 10;
function timerX(num){
if(num==1){
i2iDisable();
}else{
timerID = setTimeout("timerX(1)",10000);
}
}
function i2iAdview(i2i_icon_type){
if(i2i_icon_type=='2'){
icon_ichi='right';
icon_file='04.swf';
}else if(i2i_icon_type=='3'){
icon_ichi='left';
icon_file='03w.swf';
}else if(i2i_icon_type=='4'){
icon_ichi='right';
icon_file='04w.swf';
}else{
icon_ichi='left';
icon_file='03.swf';
}
document.write('
');
document.write('
');
document.write('
');
}
function i2iDisable(){
if(document.all){
obj=i2iAdcon;
}else{
obj=document.getElementById('i2iAdcon');
}
str=obj.style.display;
obj.style.display='none';
}
/////////////////////
UQname='i2iUpad';
UQzen='i2iZenkai';
/////////////////////
if(!definedAlert('HARIconMultiFrag')){
UQar=i2iCookieCk(UQname);
UQzenar=i2iCookieCk(UQzen);
T=new Date;
Tp=T.getTime()+1000*60*60*24*1;
T.setTime(Tp);
Tg=T.toGMTString();
UQ=0;
if(UQzenar[0]==1){
Num=parseInt(1);
document.cookie=UQname+'='+Num+'; expires='+Tg;
document.cookie=UQzen+'='+Tp+'; expires='+Tg;
UQ=parseInt(1);
}else{
Num=parseInt(UQar[1]);
Num++;
document.cookie=UQname+'='+Num+'; expires='+Tg;
Nama=Num%1;
if(Nama==0){
UQ=parseInt(1);
}
}
/////////////////////
if(UQ==1){
if(!definedAlert('i2i_icon_type')){
i2i_icon_type=4;
}
if(i2i_icon_type==''){
i2i_icon_type=4;
}
i2iAdview(i2i_icon_type);
//timerX(0);
}
HARIconMultiFrag='on';
}