<!-- © Skizzo Software 2002/11
function popPlayer(t, video) {
	w = "350";
	h = "350";
	param = ""; if (t!="") param = "?t="+t;
	if (t==1) {
		param += "&video="+video;
		w = "320";
		h = "256";
	} else if (t==2) {
		param += "&video="+video;
		w = "425";
		h = "350";
	}
	window.open("player.php"+param, "", "height="+h+",width="+w+",left=0,top=0");
}
function centerW() {
	var wh;
	var ww;
	var sh;
	var sw;
	
	sh = screen.availHeight;
	sw = screen.availWidth;
	
	if (document.all) {
	    wh = document.body.offsetHeight;
	    ww = document.body.offsetWidth;
    } else {
	    wh = window.innerHeight;
	    ww = window.innerWidth;
    }
    
	x = (sw/2) - (ww/2);
	y = (sh/2) - (wh/2);
	window.moveTo(x,y);
}
function showImg(url,w,h) {
	window.open('simg.php?pix=' + url,'pix','scrollbars=no');
}
function cTitle(nTitle) {
	top.document.title = "* Miss Fräulein * - " + nTitle;
}
function o_si(path,title) {
	location.href="thumbs.php?tdir=" + path + "&title=" + escape(title);
}
function oSelect(otype, obj, val) {
var i;
var len;

	switch (otype) {
	case "select":
		len = obj.options.length;
		for (i=0; i<len; i++) {
			if (obj.options[i].value == val) {
				obj.selectedIndex = i;
				break;
			}
		}
		break;
		
	case "radio":
		len = obj.length;
		for (i=0; i<len; i++) {
			if (obj[i].value == val) {
				obj[i].checked = true;
				break;
			}
		}
		break;
	}
}
// MENU ---
var iPath = "images/";
var iExt = "png";
var suffix = new Array("on", "off");
var menu = new Array("home", "band", "shows", "releases", "press", "photos", "media", "guestbook", "links", "all");

function onLoad() {
	// var sPath = window.location.pathname;
	// var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	// alert(navigator.userAgent);
	// if (checkmobile(navigator.userAgent)) window.parent.location = "http://www.missfraulein.com/mobile/" + sPage;
	preLoad("home", "band", "shows", "releases", "press", "photos", "media", "guestbook", "links", "myspace", "newsletter");
}
function preLoad() {
	if(document.images) {
		var argLen = arguments.length;
		for(var i = 0; i < argLen; i++) {
			var arg = arguments[i];
			var sufLen = suffix.length;
			for(j = 0; j < sufLen; j++) {
				is_menu = isMenu(arg);
				var suf = suffix[j]
				// if (is_menu==true && suf=="off") { arg = "all"; }
				self[arg + '_' + suf] = new Image();
				self[arg + '_' + suf].src = iPath + arg + '_' + suf + '.' + iExt;
			}
		}
	}
}
function rollOver(iName, iState) {
	is_menu = isMenu(iName);
	// if (is_menu==true && iState=="off") { iName = img_page; }
	if(document.images && self[iName + '_' + iState]) {
		imgfile = self[iName + '_' + iState].src;
		// p1 = imgfile.lastIndexOf("/") + 1;
		// imgfile = imgfile.substr(p1, imgfile.length - p1);
		// alert(filespath + "images/" + imgfile);
		if (is_menu==true) {
			// document.images[iName].src = filespath + "images/" + imgfile;
			document.images[iName].src = imgfile;
		} else {
			document.images[iName].src = imgfile;
		}
	}
}
function isMenu(iName) {
	for(k=0;k<menu.length;k++) {
		if(menu[k]==iName) {
			return true;
		}
	}
}

function showLyrics(id) {
	window.open("lyrics.php?id=" + id, null, "height=600, width=400, status=yes, toolbar=no, menubar=no, location=no, scrollbars=yes");
}
/*
function checkmobile(nameApp) {
	if (nameApp.indexOf('MSIE') != -1) return false;
	if (nameApp.indexOf('iPhone') != -1) return true;
	if (nameApp.indexOf('Trident') != -1) return true;
	if (nameApp.indexOf('Creative AutoUpdate') != -1) return false;
			 
	browser_list = new Array("Android", "Mobile", "Opera Mini", "midp", "j2me", "avantg", "docomo",  "novarra", "palmos", "palmsource", "240x320", "opwv", "chtml", "pda",  "windows ce", "mmp/", "blackberry", "mib/", "symbian", "wireless",  "nokia", "hand", "mobi", "phone", "cdm", "up.b", "audio", "SIE-",  "SEC-", "samsung", "HTC", "mot-", "mitsu", "sagem", "sony", "alcatel",  "lg", "erics", "vx", "NEC", "philips", "mmm", "xx", "panasonic",  "sharp", "wap", "sch", "rover", "pocket", "benq", "java", "pt", "pg",  "vox", "amoi", "bird", "compal", "kg", "voda", "sany", "kdd", "dbt",  "sendo", "sgh", "gradi", "jb", "dddi", "moto");
	for(i=0; i<browser_list.length; i++){
		if(nameApp.indexOf(browser_list[i]) != -1) return true;
	}
	return false;
}
*/
window.onload = onLoad;
//-->
