function SetCookies(name, value) 
{
   
    
    var path="; path=" + '/';
    document.cookie = name + "=" + escape(value)+path;
}

function SetCookieis(name, value) 
{
   
    var never = new Date()
     never.setTime(never.getTime() + 60000000*1000); 
    var expString = "; expires=" + never.toGMTString();
    var path="; path=" + '/';
    document.cookie = name + "=" + escape(value) + expString+path;
}
function GetCookies(name)
{
    var result = null;
    var myCookie = " " + document.cookie + ";";
    var searchName = " " + name + "=";
    var startOfCookie = myCookie.indexOf(searchName);
    var endOfCookie;
    if (startOfCookie != -1)
    {
        startOfCookie += searchName.length; // skip past name of cookie
        endOfCookie = myCookie.indexOf(";", startOfCookie);
        result = unescape(myCookie.substring(startOfCookie, endOfCookie));
    }
    return result;
}

var $id1=$ai.substr(0,10)
var name1=$id1+'aa';

var name3=$id1+'bb';


 var freq1=GetCookies(name1) ;
 var freq3=GetCookies(name3) ;
 var fre=null;
 var fdate=null;
 var ftiz=null;
 if(freq1!=null){fre=freq1.split('_');fdate=fre[0].split('-');ftiz=fre[1].split('-');}


var yy=(new Date().getYear())-2000;
if(yy<10) yy='0'+yy;
var mm=(new Date().getMonth())+1;
if(mm<10) mm='0'+mm;
var dd=new Date().getDate();
var ww=new Date().getDay();
var date=yy+'-'+mm+'-'+ww+'-'+dd;

var tiz;
var tiz1;
var tiz2;
var tiz3;
var tiz5;
if(freq3==null){

 if(freq1==null){tiz1=1;tiz2=1;tiz3=1;tiz5=1;}else{if(fdate[3]!=dd){tiz5=1}else{tiz5=parseInt(ftiz[3])+1;}if(ww>=fdate[2]){tiz3=parseInt(ftiz[2])+1;}else{tiz3=1;}if(fdate[1]==mm){tiz2=parseInt(ftiz[1])+1;}else{tiz2=1;}if(fdate[0]==yy){tiz1=parseInt(ftiz[0])+1;}else{tiz1=1;}}
 tiz=tiz1+'-'+tiz2+'-'+tiz3+'-'+tiz5;
 value=date+'_'+tiz;
    SetCookieis(name1,value) ;
    SetCookies (name3,'aa') ;

}



if(tiz==undefined){tiz="";}
  
var $in='1';
var $buy=10;
 

var $bn = navigator.appName;if($bn.indexOf("Microsoft")!=-1){$bn="MSIE";}if($bn.indexOf("WebTV")!=-1){$bn="WebTV";}
var $bv = navigator.appVersion; if($bn=="MSIE"){ var $b=$bv.split("MSIE"); $b=$b[1].split(";");$bv=$b[0];$bv=$bv.substr(1,4)} $bv=$bv.substr(0,3)
var $rf = escape(document.referrer); if(($rf=="")||($rf=="undefined")){$rf="Bookmark";}
var $sr = screen.width+'x'+screen.height;
var $sc = ($bn=="MSIE")?screen.colorDepth:screen.pixelDepth;if($sc=='undefined')$sc=''
var $ul = navigator.userLanguage;if($ul=='undefined')$ul=''
var $ce = navigator.cookieEnabled==true?"y":"n";
var $je = navigator.javaEnabled()==true?"y":"n";
var $ua = navigator.userAgent.toLowerCase();
var $tz = new Date().getTimezoneOffset()/60*-1;
var $os;if($ua.indexOf("xp")!=-1) $os = "xp"; if($ua.indexOf("98")!=-1) $os = 98; if($ua.indexOf("95")!=-1) $os = 95;
if($ua.indexOf("2000")!=-1) $os = 2000; if($ua.indexOf("nt")!=-1) $os = "nt"; if($ua.indexOf("me")!=-1) $os = "me";
if($ua.indexOf("mac")!=-1) $os = "mac"; if($ua.indexOf("inux")!=-1) $os = "linux";
var $lp= location.pathname; var $lh = location.hostname; if( ($lp=="")||($lp=="//") ){$lp="/";}
var $iw; var $ih;
if($it==2){$iw=125;$ih=125;}else{ if($it==3){$iw=88;$ih=31;}else{ $iw=1;$ih=1;} }
var $qs = "pn="+$pn+"&in="+$in+"&buy="+$buy+"&ai="+$ai +"&bn="+$bn+"&bv="+$bv +"&sr="+$sr+"&sc="+$sc +"&os="+$os+"&ul="+$ul+"&ce="+$ce +"&je="+$je+"&rf="+$rf +"&lp="+$lp +"&lh="+$lh +"&it="+$it+"&tz="+$tz+"&freq="+tiz;
var $ln = 'http://voopoo.com/bin/vp/i?'+"ai="+$ai;
document.write("<a href="+$ln+"><img src='http://voopoo.com/bin/vp/c?"+$qs +"'border=0 width="+$iw+ " height="+$ih+ "></a>")
