<!--

/* Doubleclick */
var ordnum = Math.round(Math.random() * 1000000000);
function buildAd (server, site, page, width, height, tile, pos, tags) {
	var ad;
	if (!server) server = "ad.doubleclick.net"; 
	if (!site) site = "pgacom.cpc";
	if (!page) page = "all";
	if (!width) width = 468;
	if (!height) height = 60;
	if (!tile) tile = 1;
	if (!pos) pos = 1;
	if (!tags) tags = "!category=adult;";
	ad = '<iframe src="' + buildAdUrl("adi", server, site, page, width, height, tile, pos, tags) + '" width="' + width + '" height="' + height + '" marginheight="0" scrolling="no" frameborder="0">';
	ad = ad + '<a href="' + buildAdUrl("jump", server, site, page, width, height, tile, pos, tags) + 'target="_blank">';
	ad = ad + '<img width="' + width + '" height="' + height + '" src="' + buildAdUrl("ad", server, site, page, width, height, tile, pos, tags) + '" alt="Advertisement" /></a>';
	ad = ad + '</iframe>';
	if ((!document.images && navigator.userAgent.indexOf("Mozilla/2.") >= 0)  || navigator.userAgent.indexOf("WebTV")>= 0) {
		var backupad;
		backupad = '<a href="'+ buildAdUrl("jump", server, site, page, width, height, tile, pos, tags) + 'target="_blank">';
		backupad = backupad + '<img width="' + width + '" height="' + height + '" src="' + buildAdUrl("ad", server, site, page, width, height, tile, pos, tags) + '" alt="Advertisement" /></a>';
		document.write(backupad);
	} else {
		document.write(ad);
	}
}
function buildAdUrl (type, server, site, page, width, height, tile, pos, tags) {
   	var myUrl = 'http://'+server+'/'+ type+'/'+site+'/'+page+';'+tags+'sz='+width+'x'+height+';ptile='+tile+';pos='+pos+'ord='+ordnum;
	return myUrl;
}


/* Flash jump function for Fireclick */
function flashFire (name, url) {
	fc_click(name, 'ad', url);
	}

//-->
