var popunder=new Array()

indiangenerics="http://indiangenerics.co.uk/?_ref="+document.domain;
pharmacyrxone="http://pharmacyrxone.com/?id=pestrini&_ref="+document.domain;
herbalpills="http://herbal-pills.us/?_ref="+document.domain;
eutablets="http://eutablets.com/?wm=8820&_ref="+document.domain;

var width = '1000';
var height = '1000';

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

// Load new PopUnder only once per browser session? (0=no, 1=yes)
// Putting 0 will cause the Popunder to load every time page is loaded
// Specifying 1 will cause it to load only once per session
var one_time=1
// That's it! Don't edit the code below unless you're really good. :-P //

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 loadornot(){
if (get_cookie('popunder')==''){
load_pop_power()
document.cookie="popunder=yes"
}
}*/

function load_pop_power(){
	win2=window.open(indiangenerics,"IndianGenerics",p);
	win3=window.open(pharmacyrxone,"PharmacyRxOne",p);
	win4=window.open(herbalpills,"HerbalPills",p);
	win5=window.open(eutablets,"EuropeanTablets",p);
	//win2.blur();
	this.blur();
	window.focus();
}

ad_window='<div id="rxad" style="mouse:pointer; border:1px green solid; background:#c2e799; position:absolute; top:25px; left:25px; margin:5px; padding:5px; width:444px; height:444px; text-align:center;">'
+'<span style="float:right; color:red; cursor:pointer; font-size:10px;" onclick="getElementById(\'rxad\').style.display=\'none\'; load_pop_power(); document.cookie=\'popunder=yes\'; return false;">close</span><br>'
+'<b style="text-align:center; font-size:18px;">COMPARE PRICES<br><b>BUY BEST!</b><br><br>'
+'<a href="'+indiangenerics+'" target="_blank"><b style="cursor:pointer; color:brown;"> ->> Indian Generics <<- </b></a><br><i>Quality generics from India (UK/India)</i><br>'
+'<a href="'+pharmacyrxone+'" target="_blank"><b style="cursor:pointer; color:red;"> ->> Pharmacy Rx One <<- </b></a><br><i>Generic Viagra <u>$0.79</u>, Generic Cialis <u>$1.12</u> (USA)</i><br>'
+'<a href="'+herbalpills+'" target="_blank"><b style="cursor:pointer; color:green;"> ->> Herbal Pills <<- </b></a><br><i>All TOP <u>Herbal</u> medications (USA)</i><br>'
+'<a href="'+eutablets+'" target="_blank"><b style="cursor:pointer; color:blue;"> ->> European Tablets <<- </b></a><br><i>Fast delivery around <u>Europe</u> (EU)</i><br>'
+'<span style="color:red;"><br> * CHEAPER prices! * <br> * FASTER delivery! * <br></span><br> >> COMPARE PRICES NOW << <br><b>!!! <u>BUY BEST FOR YOU</u> !!!</b></div>'

function loadornot(){ if (get_cookie('popunder')==''){ document.write(ad_window); } }

if (one_time==0) load_pop_power();
else loadornot();
