 
function ad(content, expires, reqcookie, p3p, type, showonce) {
	this.content=content
	this.expires=expires
	this.reqcookie=reqcookie
	this.showonce=showonce
	this.p3p=p3p
	this.type=type
}

var bannercount = 15;
var banners = new Array(bannercount);
banners[1]=new ad("<SCR" + "IPT LANGUAGE=\"JavaSCR" + "IPT\" SRC=\"http://ads1.revenue.net/j?site_id=3543&pplacement_id=13\"></SCR" + "IPT>",1,false,false,"POP",false)
banners[2]=new ad("<SCR" + "IPT LANGUAGE=\"JavaSCR" + "IPT\">\r\fvar rnum=new Number(Math.floor(99999999 * Math.random())+1); \r\fdocument.write(\'<SCR\'+\'IPT LANGUAGE=\"JavaSCR" + "IPT\" \'); \r\fdocument.write(\'SRC=\"http://ads1.revenue.net/j?site_id=3543&pplacement_id=1&rnum=\'+rnum+\'\">\');\r\fdocument.write(\'</SCR\');\r\fdocument.write(\'IPT>\');\r\f</SCR" + "IPT>",1,false,false,"POP",false)
banners[3]=new ad("<SCR" + "IPT LANGUAGE=\"JavaSCR" + "IPT\" src=\"http://www.popuptraffic.com/assign.php?l=loaguild&mode=behind\"> </SCR" + "IPT>",1,false,false,"POP",false)
banners[4]=new ad("<!-- PayPopup.com Advertising Code Begin -->\r\f\r\f<div id=\"PaypopupStartCode\" style=\"display:none\">\r\f</div>\r\f<SCR" + "IPT language=\"JavaSCR" + "IPT1.1\">\r\fif (typeof(paypopupSCR" + "IPTStart) == \'undefined\') {var paypopupSCR" + "IPTStart = false;}\r\fif (!paypopupSCR" + "IPTStart) {\r\f	document.write(\'<scr\'+\'ipt src=\"http://popunder.adsrevenue.net/popup.php?\'+(new Date()).getTime()+\'&id=cttmom&pop=enter&t=2&subid=54336&blk=1&fc=-1\"></scr\'+\'ipt>\');\r\f	paypopupSCR" + "IPTStart = true;\r\f}\r\f</SCR" + "IPT>\r\f<noSCR" + "IPT>\r\f<div style=\"width: 1px; height: 1px;overflow: hidden;\"><a href=\"http://www.paypopup.com\">Online Advertising</a></div>\r\f</noSCR" + "IPT>\r\f\r\f<!-- PayPopup.com Advertising Code End -->",1,false,false,"POP",false)
banners[5]=new ad("<!--- start of focusIN code --->\r\f<SCR" + "IPT language=\"JavaSCR" + "IPT\">\r\f<!--\r\f   var now = new Date();\r\f   var uaid = now.getTime() % Math.floor(8640000 - Math.random()*1000);\r\f   document.write(\'<scr\'+\'ipt src=\"http://focusin.ads.targetnet.com//ad/id=vgfnet2&opt=hpj&urlid=6&cv=210&uid=\' + uaid + \'\"></scr\'+\'ipt>\');\r\f//-->\r\f</SCR" + "IPT>\r\f<!------------ end of focusIN code ------------>",1,false,false,"POP",false)
banners[6]=new ad("<!-- PopInAds.com Advertising Code Begin -->\r\f<SCR" + "IPT LANGUAGE=\"JavaSCR" + "IPT1.1\" src=\"http://popinads.com/popin.php?id=pay_cttmom&subid=5273&delay=0&dir=1&dir2=3\"></SCR" + "IPT>\r\f<!-- PopInAds.com Advertising Code End -->",1,false,false,"POP",false)
banners[7]=new ad("<!-- InfinityAds.com Advertising Code Begin -->\r\f<SCR" + "IPT LANGUAGE=\"JavaSCR" + "IPT1.1\" SRC=\"http://www.InfinityAds.com/popup.php?id=cttmom&pop=enter&subid=2728&t=0\">\r\f</SCR" + "IPT> \r\f<!-- InfinityAds.com Advertising Code End -->",1,false,false,"POP",false)
banners[8]=new ad("<SCR" + "IPT LANGUAGE=\"JavaSCR" + "IPT\" src=\"http://www.popuptraffic.com/assign.php?l=loaguild\"></SCR" + "IPT>",1,false,false,"POP",false)
banners[9]=new ad("<SCR" + "IPT LANGUAGE=JAVASCR" + "IPT>\r\f<!--\r\fvar account = \'loaguild\';\r\fvar category = \'11\';\r\fvar pop = \'up\';\r\fvar entry = \'entry\';\r\f//-->\r\f</SCR" + "IPT>\r\f<SCR" + "IPT LANGUAGE=JAVASCR" + "IPT SRC=\"http://server01.popupmoney.com/popup.js?loaguild&11&up&entry\"></SCR" + "IPT>",1,false,false,"POP",false)
banners[10]=new ad("<SCR" + "IPT src=\'http://www.adpowerzone.com/SCR" + "IPTs/all4free.js\'></SCR" + "IPT>",1,false,false,"POP",false)
banners[11]=new ad("<SCR" + "IPT LANGUAGE=\"JavaSCR" + "IPT\">\r\f<!--\r\fwindow.open(\"http://strategy-guides.net\",\"\",\"toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,status=yes,width=800,height=600,left=0,top=0\");\r\f//-->\r\f</SCR" + "IPT>",1,false,false,"POP",false)
banners[12]=new ad("<SCR" + "IPT LANGUAGE=\"JavaSCR" + "IPT\">\r\f<!--\r\fwindow.open(\"http://cheappc.us\",\"\",\"toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,status=yes,width=800,height=600,left=0,top=0\");\r\f//-->\r\f</SCR" + "IPT>",1,false,false,"POP",false)
banners[13]=new ad("<SCR" + "IPT LANGUAGE=\"JavaSCR" + "IPT\">\r\f<!--\r\fwindow.open(\"http://surplusoutlet.us\",\"\",\"toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,status=yes,width=800,height=600,left=0,top=0\");\r\f//-->\r\f</SCR" + "IPT>",1,false,false,"POP",false)
banners[14]=new ad("<SCR" + "IPT LANGUAGE=\"JavaSCR" + "IPT\">\r\f<!--\r\fwindow.open(\"http://refurbishedpc.us\",\"\",\"toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,status=yes,width=800,height=600,left=0,top=0\");\r\f//-->\r\f</SCR" + "IPT>",1,false,false,"POP",false)
banners[15]=new ad("<SCR" + "IPT language=javaSCR" + "IPT src=\"http://www.clickXchange.com/ud.phtml?act=54503.1&minwait=10&under=0&exit=0\"></SCR" + "IPT>\r\f<!-- end clickXchange, v2.6 -->",1,false,false,"POP",false)
var p1pv = 1;
var p1m = 0;
var pm = 1;
var ppv = 1;
			
document.cookie = "ac=y"
var is_cookie = (document.cookie) ? "true" : "false"
var currentView = 1

function setCookie(name, value, expires) {  
	var expDate = new Date()
	expDate.setTime(expDate.getTime() + (expires*60*1000))
	document.cookie = name + "=" + escape(value) + "; expires=" + expDate.toGMTString()
}	

function incCookie(name, expires) {
	var cv=getCookie(name)
	if (cv == null) {
		setCookie(name,0,expires)
		cv=0;
	}	
	ncv=parseInt(cv)+1
	setCookie(name,ncv,expires)
	return ncv
}

function getCookie(name) { 
	cc=document.cookie;
	var i = cc.indexOf(name + "=")
	if (i == -1) return null
	i = cc.indexOf("=", i) + 1
	var endstr = cc.indexOf(";", i)
	if (endstr == -1) endstr = cc.length
	return unescape(cc.substring(i, endstr))
}

function popShow(cv,r) {
	for (var i=1; i<=bannercount; i++) {
		pc = 'ad_pop_' + i
		if (getCookie(pc) == null) {
			setCookie(pc, 1, banners[i].expires*60)
			document.write(banners[i].content);
			break;
		}
	}
	
	setCookie('ad_disp_pv',1 + cv,7200)
	setCookie('ad_disp_m',1,1)
	setCookie('ad_disp',1,7200)
		
}

ad_popup = getCookie('ad_popup')

if (ad_popup == null) {
	setCookie('ad_disp_pv',1,7200)
		
	ad_popup = 0
	setCookie('ad_popup', 0, 7200)		
}

currentView = incCookie('ad_pv', 7200)
if (getCookie('ad_disp_pv') <= currentView) popShow(currentView,'[Pageview]')
if (getCookie('ad_disp') == 1 && getCookie('ad_disp_m') == null) popShow(currentView,'[Time]')

