//frequency cap,1 pop-under per number of hours

var frequencyCap = 0.5; //hours 

function setCookie(cookieName,cookieValue, expirehours) {

 

  if (frequencyCap > 0){

              var today = new Date();

              var expire = new Date();

             expire.setTime(today.getTime() + 3600000 * frequencyCap);

             document.cookie = cookieName+"="+escape(cookieValue)

                 + ";expires="+expire.toGMTString() + "; path=/";

  }else{

             document.cookie = cookieName+"="+escape(cookieValue) + "; path=/";

  }

 

 

}

function ReadCookie(cookieName) {

 var theCookie=""+document.cookie;

 var ind=theCookie.indexOf(cookieName);

 if (ind==-1 || cookieName=="") return ""; 

 var ind1=theCookie.indexOf(';',ind);

 if (ind1==-1) ind1=theCookie.length; 

 return unescape(theCookie.substring(ind+cookieName.length+1,ind1));

}

if (ReadCookie('PayPopupAds') != 'yes')  

{ 

 setCookie('PayPopupAds','yes', frequencyCap); 

//Pop-Under Code Here

 document.write('<SCRI'+'PT LANGUAGE="JavaScript1.1" '); 

 document.write(' SRC="http://popunder.PayPopup.com/popup.php?id=kyoshiro&pop=enter&t=5&subid=27606&blk=1">');

 document.write('</SCR'+'IPT>'); 

//Pop-Under Code End

}

