var flashinstalled = 0;
MSDetect = 0;
if (navigator.mimeTypes && navigator.mimeTypes.length) {
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin) flashinstalled = 2;
	else flashinstalled = 1;
}
else {
	MSDetect = 1;
}

cookies = document.cookie;
if (cookies.indexOf('flash_ok=')==-1) {
	expiration = new Date((new Date()).getTime()+7*24*60*60*1000);
	document.cookie = "flash_ok="+flashinstalled+
	'; expires='+expiration.toGMTString()+
	'; path=/; domain=.worldofgothic.de';
}

function showpic(img, x, y) {
    popup("http://www.worldofgothic.de"+img, x, y, "picwindow")
}

function openwindow(url, x, y) {
    popup(url, x, y, "wg_popup");
}

function selection_made(field) {
    for (i = 0; i < field.length; i++) {
	if (field[i].checked) {
	    return(true)
	}
    }
    alert("'.$this->makeopt_msg.'")
    return(false)
}

function popup(url,breite,hoehe,name) {
    if(!breite) {
	breite=320;
    }
    
    if(!hoehe) {
	hoehe=250;
    }
    
    if(!name) {
	name= "wg_popup";
    }
    
    userfenster=window.open(url,name,"width="+breite+",height="+hoehe+",screenX=0,screenY=0,resizable=no,scrollbars=no");
    userfenster.focus();
}