fri_cookie_days = 1;
fri_openUrl = 'http://in.mydirtyhobby.com/track/ZckTAGAU,20/';
fri_puWidth = 1090;
fri_puHeight = 900;
fri_cookie = 'fri_cookie_name';
fri_popped = 0;
document.onclick = function() {
 function fri_setCookie()
 {
  var date = new Date();
  date.setTime(date.getTime()+(fri_cookie_days*24*60*60*1000));
  var expires = date.toGMTString();
  document.cookie = fri_cookie+"=1;expires="+expires+"; path=/";
 }
 function fri_getCookie()
 {
  var i,x,y,ARRcookies=document.cookie.split(";");
  for (i=0;i<ARRcookies.length;i++)
  {
   x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
   y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
   x=x.replace(/^\s+|\s+$/g,"");
   if (x == fri_cookie)
   {
    return true;
   }
  }
 }

    if (fri_popped >  0)
 {
        return true;
    }
  
    fri_popped++;
 if (cookied = fri_getCookie())
 {
  return true;
 }
 
 fri_setCookie();
 
    var puFeatures = "toolbar=0,statusbar=1,resizable=1,scrollbars=1,menubar=0,location=1,directories=0";
    if(navigator.userAgent.indexOf('Chrome') != -1){
        puFeatures = "scrollbar=yes";
    }
    fri_window = open(fri_openUrl,'fri_popunder',puFeatures + ",height=" + fri_puHeight +",width=" + fri_puWidth);
    var regex = new RegExp(/rv:[2-9]/);
    if (regex.exec(navigator.userAgent))
 {
        try {
            fri_window.pop = function ()
   {
                if (regex.exec(navigator.userAgent))
    {
                    this.window.open(fri_openUrl).close();
                }
            };
   fri_window.pop();
        }
        catch(err) { }
    }
    setTimeout(window.focus);
    window.focus();
    try {
        fri_window.blur();
    }
    catch(err) { }

    return true;
}

