function openWin(w) {
	switch (w) {
		case "gallery":
			url = "gallery/index.php";
			wname = "gallery";
			h = "410";
			break;
		case "mailinglist":
			url = "mailinglist.php";
			wname = "mailinglist";
			h = "260";			
			break;
	}

	w = "640";
	l = screen.width*0.4 - w/2;
	t = screen.height*0.4 - h/2;
	features = "width="+w+", height="+h+", left="+l+", top="+t+", location=no, menubar=no, status=no, toolbar=no";
	window.open(url, wname, features);
}
function writeObfuscatedEmailLink(user, domain, tld, title) {
	// die bots, die!
	email = user + "@" + domain + "." + tld;
    document.write("<a href=\"mailto:" + email + "\" title=\"" + title + "\">");
    document.write(email + "</a>");	
}
function pi() {
	document.write(
		"<"+"a href=\"#\" onMouseOver=\"window.status=''; return true\" onClick=\"loca"+
		"tion.hr"+"ef='ht"+"tp://hq"+".meshq."+"com'\"><span class=\"praetorian\">&Pi;"+
		"</span></"+"a>");
}