this.name="pirro";

function popTheAd(){

window.open("http://ng3.ads.warnerbros.com/Archive/wbshop/wbshop_popup.shtml","popup","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=340,height=300,left=400,top=300");
}
function Popopen(url) {window.open(url, 'pirro', 'height=530,width=610,resizable=no,status=no,scrollbars=no,location=no,menubar=no,toolbar=no,left=30,top=30');}
function Picopen(url) {window.open(url, 'pirro', 'height=580,width=480,resizable=yes,status=no,scrollbars=no,location=no,menubar=no,toolbar=no,left=30,top=10');}
function Vidopen(url) {window.open(url, 'pirro', 'height=445,width=720,resizable=no,status=no,scrollbars=no,location=no,menubar=no,toolbar=no,left=30,top=30');}               
function Thoughtopen(url) {window.open(url, 'pirro', 'height=310,width=360,resizable=no,status=no,scrollbars=no,location=no,menubar=no,toolbar=no,left=200,top=120');}
function Infoopen(url) {window.open(url,'pirro', 'height=500,width=550,resizable=yes,status=no,scrollbars=yes,location=no,menubar=no,toolbar=no,left=100,top=60');}
function Voteopen(url) {window.open(url,'pirro', 'height=250,width=300,resizable=yes,status=no,scrollbars=yes,location=no,menubar=no,toolbar=no,left=100,top=60');}
function Advopen(url) {window.open(url,'pirro', 'height=240,width=320,resizable=no,status=no,scrollbars=no,location=no,menubar=no,toolbar=no,left=100,top=60');}
function Textopen(url) {window.open(url,'pirro', 'resizable=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,toolbar=yes');self.close();}
function PollOpen(url) {window.open(url,'pirro', 'height=500,width=500,resizable=yes,status=no,scrollbars=yes,location=no,menubar=no,toolbar=no,left=100,top=60');}

function replaceContent() {
 
     document.getElementById("ad").innerHTML = "<iframe src='/includes/adref.html' name='adright' width='180' height='640' scrolling='no' frameborder='0'></iframe>"
 
}
function surfto(form) {
var myindex=form.select1.selectedIndex
if (form.select1.options[myindex].value != "0") {
location=form.select1.options[myindex].value;}
}


<!--//--><![CDATA[//><!--
// this is for the drop down menu

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
//window.onload=startList;

//--><!]]>

//change 780x90 ad
function returnObjById( id ) {
	if (document.getElementById)
		var returnVar = document.getElementById(id);
	else if (document.all)
		var returnVar = document.all[id];
	else if (document.layers)
		var returnVar = document.layers[id];
	return returnVar;
}
function load780x90AdSync(imgPath, imgLink) {
	var adSyncElem = returnObjById("adSync728x90");
	if(adSyncElem != null){
		if(imgPath != undefined && imgPath != "undefined"){
			var isSwfAd = imgPath.indexOf(".swf");
			if (imgPath != null && imgPath != "null" && isSwfAd == -1) {
				adSyncElem.innerHTML = "<a href='" + imgLink + "' target='_new'><img src='" + imgPath + "' width='728' height='90' /></a>";
			} else if (imgPath != null && isSwfAd >= 0) {
				adSyncElem.innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"728\" height=\"90\" id=\"swfAd\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\""+imgPath+"\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#d0d0d0\" /><embed src=\""+imgPath+"\" quality=\"high\" bgcolor=\"#d0d0d0\" width=\"728\" height=\"90\" name=\"swfAd\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
			}
		} else {
			if(iframepath != undefined){
				adSyncElem.innerHTML = iframepath;
			}
		}
	}
}
var adSyncHTML = "";
function load300x250AdSync(imgPath, imgLink) {
	if(imgPath != undefined && imgPath != "undefined"){
		var isSwfAd = imgPath.indexOf(".swf");
		if (isSwfAd == -1) {
			adSyncHTML = "<a href='" + imgLink + "' target='_new'><img src='" + imgPath + "' width='300' height='250' /></a>";
		} else if (imgPath != null && isSwfAd >= 0) {
			adSyncHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"300\" height=\"250\" id=\"swfAd\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\""+imgPath+"\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#d0d0d0\" /><embed src=\""+imgPath+"\" quality=\"high\" bgcolor=\"#d0d0d0\" width=\"300\" height=\"250\" name=\"swfAd\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
		}
	}
}
function loadAdSync(imgPath, imgLink) {
	if(imgPath != undefined && imgPath != "undefined"){
		var isSwfAd = imgPath.indexOf(".swf");
		if (isSwfAd == -1) {
			adSyncHTML = "<a href='" + imgLink + "' target='_new'><img src='" + imgPath + "' width='300' height='250' /></a>";
		} else if (imgPath != null && isSwfAd >= 0) {
			adSyncHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"300\" height=\"250\" id=\"swfAd\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\""+imgPath+"\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#d0d0d0\" /><embed src=\""+imgPath+"\" quality=\"high\" bgcolor=\"#d0d0d0\" width=\"300\" height=\"250\" name=\"swfAd\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
		}
	}
}

// end

// for the polls
// arg pollform ie: '274'
function pollAnswers(pollid) { 
	var yes = 0; 
	var no = 0;	
	for (var i=1;i<2;i++) { 
		if (eval('document.xlaapmform' + pollid + '_.answer' + i + '.value') !='') { 
				yes++; 
		} 
	} 
	if (yes == 1) { 
  		return true; 
 	} else { 
  		alert('Please answer all the questions before submitting');
  		return false; 
	} 
} 

// arg pollform ie: '274'
function pollformSubmit(pollid) { 
	var pollform = 'xlaapmform' + pollid + '_';
	if (pollAnswers(pollid)) { 
		xlaapmxe = window.open('','xlaapmxe','toolbar=0,location=0,status=1,menubar=1,scrollbars=1,resizable=1,width=415,height=300');
		eval('document.' + pollform + '.submit()'); 
		xlaapmxe.focus(); 
	} 
}
// end