//var message="Please keep in mind that all work here (including graphics) is PROTECTED BY COPYRIGHT!";
//function clickIE4(){
//if (event.button==2){
//alert(message);
//return false;
//}
//}

//function clickNS4(e){
//if (document.layers||document.getElementById&&!document.all){
//if (e.which==2||e.which==3){
//alert(message);
//return false;
//}
//}
//}

//if (document.layers){
//document.captureEvents(Event.MOUSEDOWN);
//document.onmousedown=clickNS4;
//}
//else if (document.all&&!document.getElementById){
//document.onmousedown=clickIE4;
//}
//document.oncontextmenu=new Function("alert(message);return false");



var popunder=new Array()
popunder[0]="http://www.cig4u.com/tr/roi.asp?SRC=Cheap+Cig+Redirection&KW=enter"
popunder[1]="http://www.city-smokes.com?ovchn=OTHER&ovcpn=redirection&ovcrn=enter&ovrfd=www.cheap-cig.com&ovtac=AFF"
//popunder[2]="http://www.classadrivers.com"

// Specify the width and height of new popunder window (in pixels).
var width = '700'; 
var height = '450';

var p = 'scrollbars=yes,resizable=yes,toolbar=yes,' + //these are obvious variables. set "yes" or "no".
'menubar=yes,status=yes,location=yes,left=85,top=20,height=' +  //yes/no, & the screen location
height + ',width=' + width;

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if the cookie exists
      offset += search.length
      end = document.cookie.indexOf(";", offset); // set the index of beginning value
      
    if (end == -1) // set the index of the end of cookie value
         end = document.cookie.length;
         returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function introornot(){
var documentreferrer
documentreferrer=document.referrer
if ((get_cookie('introsmoke')=='') && (documentreferrer.indexOf('idevaffiliate')<0)) {
var days = 180;
var expires = new Date ();
expires.setTime(expires.getTime() + days * (24 * 60 * 60 * 1000)); 
document.cookie="introsmoke=yes; expires=" + expires.toGMTString();
window.location="/intro";
}
}

function loadornot(){
if (get_cookie('popunder')==''){
load_pop_power()
var days = 7;
var expires = new Date ();
expires.setTime(expires.getTime() + days * (24 * 60 * 60 * 1000)); 
document.cookie="popunder=yes; expires=" + expires.toGMTString();
}
}

function load_pop_power(){
	var	win1=window.open('http://www.cig4u.com/tr/roi.asp?SRC=Cheap+Cig+Redirection&KW=enter',"Cig4u");
	win1.blur();
	window.focus();
	var win2=window.open('http://www.cheap-cig.com?ovchn=OTHER&ovcpn=redirection&ovcrn=enter&ovrfd=www.city-smokes.com&ovtac=AFF',"CheapCig");
	win2.blur();
	window.focus();
	}
//loadornot()