function popupWereNumberOne(event){
	window.open(this.href, '_blank', 'toolbar=0,scrollbars=1,location=0,left=500,top=50,statusbar=0,menubar=0,resizable=1,width=425,height=340');
	return false;
}

function popup(){
	window.open(this.href, '_blank', 'toolbar=0,scrollbars=1,location=0,left=500,top=50,statusbar=0,menubar=0,resizable=0,width=450,height=600');
	return false;
}


function sendThisSite(){
	window.open(this.href, '_blank', 'toolbar=0,scrollbars=1,location=0,left=500,top=50,statusbar=0,menubar=0,resizable=0,width=460,height=350');
	return false;
}

function externalPopup() {
	window.open(this.href, '_blank', 'toolbar=0,scrollbars=1,location=0,left=500,top=50,statusbar=0,menubar=0,resizable=1,width=355,height=333');
	return false;
}


function alexaPopup() {
	window.open(this.href, '_blank', 'toolbar=0,scrollbars=1,location=0,left=500,top=50,statusbar=0,menubar=0,resizable=1,width=550,height=530');
	return false;
}

function popupBig() {
	window.open(this.href, '_blank', 'toolbar=0,scrollbars=1,location=0,left=500,top=50,statusbar=0,menubar=0,resizable=1,width=530,height=500');
	return false;
}

function popupWide() {
	window.open(this.href, '_blank', 'toolbar=0,scrollbars=1,location=0,left=500,top=50,statusbar=0,menubar=0,resizable=1,width=600,height=500');
	return false;
}

function popupNaturalSearchResultsDemo() {
	window.open(this.href, '_blank', 'toolbar=0,scrollbars=1,location=0,left=500,top=50,statusbar=0,menubar=0,resizable=1,width=425,height=500');
	return false;
}

function popupABC(){
	window.open(this.href, '_blank', 'toolbar=0,scrollbars=1,location=0,left=500,top=50,statusbar=0,menubar=0,resizable=1,width=510,height=405');
	return false;
}

function popupPPCAds(){
	window.open(this.href, '_blank', 'toolbar=0,scrollbars=1,location=0,left=500,top=50,statusbar=0,menubar=0,resizable=1,width=700,height=650');
	return false;
}
function popupNaturalVsSpnsored(){
	window.open(this.href, '_blank', 'toolbar=0,scrollbars=0,location=0,left=500,top=50,statusbar=0,menubar=0,resizable=1,width=700,height=550');
	return false;
}

function popupMiddleMen(){
	window.open(this.href, '_blank', 'toolbar=0,scrollbars=1,location=0,left=500,top=50,statusbar=0,menubar=0,resizable=1,width=500,height=500');
	return false;
}

function setPopups(){ 
	for (i= document.links.length; i-->0;)
	    if (document.links[i].className == 'popup') {
	      document.links[i].onclick= popup;
		} else if (document.links[i].className == 'externalPopup') {
		  document.links[i].onclick= externalPopup;
		} else if (document.links[i].className == 'popupBig') {
			document.links[i].onclick= popupBig;
		} else if (document.links[i].className == 'popupWide') {
			document.links[i].onclick= popupWide;
		}else if (document.links[i].className == 'popupWereNumberOne'){
			document.links[i].onclick= popupWereNumberOne;
		}else if (document.links[i].className == 'popupABC'){
			document.links[i].onclick= popupABC;
		}else if(document.links[i].className == 'sendThisSite'){
			document.links[i].onclick= sendThisSite;
		}else if(document.links[i].className == 'alexaPopup'){
			document.links[i].onclick= alexaPopup;
		}else if (document.links[i].className == 'naturalSearchResultsDemo'){
			document.links[i].onclick= popupNaturalSearchResultsDemo;
		}else if (document.links[i].className == 'popupPPCAds'){
			document.links[i].onclick= popupPPCAds;
		}else if (document.links[i].className == 'popupNaturalVsSpnsored'){
			document.links[i].onclick= popupNaturalVsSpnsored;
		}else if (document.links[i].className == 'popupMiddleMen'){
			document.links[i].onclick= popupMiddleMen;
		}
}






// for the flash popup links

function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=1,width=348,height=250,left = 500,top = 55');");
}
