// open a generic popup window using the graphic passthru page, which allows margin=0 settings

	function popup_graphic(source,width,height) {
		popup_window_graphic = window.open("../templates/screenshot.html?"+source,"popup_window_graphic","width="+String(width+36)+",height="+String(height+36)+",location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=yes,status=yes");
		popup_window_graphic.focus()
	}


// open the featured sites window and navigate to a particular site

	function featured_sites(name) {
		popup_window_sites = window.open("../assembled/featured_sites_"+name+".html","popup_window_sites","width=775,height=660,location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=yes,status=yes");
		popup_window_sites.focus()
	}


// show an email link on a page in a way that spam harvesters can't see

	function show_email(user, domain, tld, label) {
		if (!label) { label = user + "@" + domain + "." + tld; }
		document.write("<a href='mailto:" + user + "@" + domain + "." + tld + "'>" + label + "<\/a>");
	}


