function DoBanner(adcode) {
	rnum=Math.round(Math.random() * 100000); ts=String.fromCharCode(60);
	if (window.self != window.top) { nf='' } else { nf='NF/' };
	document.write(ts+'script src="http://www.burstnet.com/cgi-bin/ads/'+adcode+'.cgi/v=2.3S/sz=728x90A/'+rnum+'/'+nf+'RETURN-CODE/JS/">'+ts+'/script>');
}
function DoSkyscraper(adcode) {
	rnum=Math.round(Math.random() * 100000); ts=String.fromCharCode(60);
	if (window.self != window.top) { nf='' } else { nf='NF/' };
	document.write(ts+'script src="http://www.burstnet.com/cgi-bin/ads/'+adcode+'.cgi/v=2.3S/sz=160x600A/'+rnum+'/'+nf+'RETURN-CODE/JS/">'+ts+'/script>');
}
function DoSkyscraperInset(adcode) {
	rnum=Math.round(Math.random() * 100000); ts=String.fromCharCode(60);
	if (window.self != window.top) { nf='' } else { nf='NF/' };
	document.write(ts+'script src="http://www.burstnet.com/cgi-bin/ads/'+adcode+'.cgi/v=2.3S/sz=160x600A/'+rnum+'/'+nf+'RETURN-CODE/JS/">'+ts+'/script>');
}
function DoBox(adcode) {
	rnum=Math.round(Math.random() * 100000); ts=String.fromCharCode(60);
	if (window.self != window.top) { nf='' } else { nf='NF/' };
	document.write('<br><div><div class="ssngBoxAd">'+ts+'script src="http://www.burstnet.com/cgi-bin/ads/'+adcode+'.cgi/v=2.3S/sz=300x250A/NZ/'+rnum+'/'+nf+'RETURN-CODE/JS/">'+ts+'/script>'+'</div></div>');
}
function ViewProfile(mn) {
	var url = "http://soapzone.com/cgi-bin/members/nph-Profiles.cgi/shared?action=view&page=main&member=" + mn;
	if (navigator.appName.indexOf("WebTV") != -1) {
		top.location = url;
	} else {
		pw = window.open(url,'Profile','width=500,height=385,scrollbars=yes,resizable=yes,status=yes');
	}
}
function SendPM(user) {
	var url = "http://soapzone.com/cgi-bin/members/sendpm.php?user=" + user;
	if (navigator.appName.indexOf("WebTV") != -1) {
		top.location = url;
	} else {
		pw = window.open(url,'SendPM','width=405,height=210,scrollbars=no,resizable=yes,status=no');
	}
}
function bf() {
	if (self.location != top.location) {
		top.location.href=self.location.href;
	}
}
function redir(menu) {
	var choice = menu.options[menu.selectedIndex].value;
	var method = choice.charAt(0);
	var url = choice.substring(1,choice.length);
	if (method == "/") { top.location = "http://soapzone.com/" + url; }
	if (method == "-") { top.location = url; }
	return(false);
}
function getCookie(name) {
	var cname = name + "=";
	var dc = document.cookie;
	if (dc.length > 0) {
		begin = dc.indexOf(cname);
		if (begin != -1) {
			begin += cname.length;
			end = dc.indexOf(";", begin);
			if (end == -1) end = dc.length;
				return unescape(dc.substring(begin, end));
		}
	}
	return null;
}
function ShowBanner(adcode) {
	var timeframe = getCookie('SZ_stopads');
	if (!((timeframe > 1256119202) && (timeframe < 1261303202))) {
		DoBanner(adcode);
	}
}
function ShowSkyscraper(adcode) {
	var timeframe = getCookie('SZ_stopads');
	if (!((timeframe > 1256119202) && (timeframe < 1261303202))) {
		DoSkyscraper(adcode);
	}
}
function ShowSkyscraperInset(adcode) {
	var timeframe = getCookie('SZ_stopads');
	if (!((timeframe > 1256119202) && (timeframe < 1261303202))) {
		DoSkyscraperInset(adcode);
	}
}
function ShowBox(adcode) {
	var timeframe = getCookie('SZ_stopads');
	if (!((timeframe > 1256119202) && (timeframe < 1261303202))) {
		DoBox(adcode);
	}
}
