function Fensteraufruf(www,hhh,nnn)
{ 	var teil = nnn.split("_");
	teil[3] = teil[3] + "_" + teil[4];
	if(navigator.appName=="Microsoft Internet Explorer")     
	{
	<!-- Übergebener z. B. Name frosch_1 teil[0] = frosch    teil[1] = 1    teil[2] = v für vertikal -->
	if (teil[2]=="h") {  www = 540 + 16; hhh = 360 + 160; }
	   else if (teil[2]=="v") { www = 360 + 16;  hhh = 540 + 160; }
	var hori   = (screen.width / 2)  - ((www)/ 2);
	var verti  = (screen.height / 2) - (hhh / 2);
	var aufruf = "../bilder/" +  teil[3] + ".php";
	var Fenster = window.open (aufruf,nnn,"height=" + hhh + ",width=" + www + ",left=" +
	    hori + ",top=" + verti + ",resizable=yes, scrollbars=no, status=no");
    //window.resizeTo (www,hhh);
	Fenster.focus();
    }
    else
    {
    erer(teil);
    }
 }
function Browseraufruf(www,hhh,nnn)
{ 	var teil = nnn.split("_");
    erer(teil);
 }
function erer(teil)
{ 	
    var bbn;
    if (teil[1]==1) {if (teil[2]=="h") bbn = "_540_360";else if (teil[2]=="v") bbn = "_360_540";}       
    if (teil[1]==2) {if (teil[2]=="h") bbn = "_1080_720";else if (teil[2]=="v") bbn = "_720_1080";}
    if (teil[1]==3) {if (teil[2]=="h") bbn = "_2160_1440";else if (teil[2]=="v") bbn = "_1440_2160";}
    var bb = '../img/bilder/' + teil[0] + bbn + '.jpg';
    var B_Fenster = window.open(bb,"Browserfenster","resizable=yes, scrollbars=yes, status=no");
    B_Fenster.focus();
 }

function puzzle(bbb)
{ var teil = bbb.split("_"); 
 if (teil[2]=="h"){hhh = 540; vvv = 360;}
 if (teil[2]=="v"){hhh = 360; vvv = 540;}
 var ttt = (screen.height/2)-(vvv/2);
 var xxx = (screen.width/2)-(hhh/2);

 w1 = window.open("../uebersicht/puzzle.htm",bbb,"height="+(vvv+40)+",width="+hhh+",left="+xxx+",top="+ttt+",resizable=no,scrollbars=no,status=no");  
 w1.window.focus();	 
 }  
