
teamN = new Image();
teamN.src = "menu/mannschaft.gif";    
teamAk = new Image();
teamAk.src = "menu/mannschaft_o.gif"; 

termineN = new Image();
termineN.src = "menu/termine.gif";     /* Standard-Grafik: Termine */
termineAk = new Image();
termineAk.src = "menu/termine_o.gif"; /* Highlight-Grafik: Termine */

spieleN = new Image();
spieleN.src = "menu/spiele.gif";     /* Standard-Grafik: Spiele*/
spieleAk = new Image();
spieleAk.src = "menu/spiele_o.gif"; /* Highlight-Grafik: Spiele*/

kontaktN = new Image();
kontaktN.src = "menu/kontakt.gif";     /* Standard-Grafik: Kontakt*/
kontaktAk = new Image();
kontaktAk.src = "menu/kontakt_o.gif"; /* Highlight-Grafik: Kontakt*/

Normal6 = new Image();
Normal6.src = "menu/impstart_a.gif";     /* Standard-Grafik: Impressum*/
Highlight6 = new Image();
Highlight6.src = "menu/impstart_b.gif"; /* Highlight-Grafik: Impressum*/

gaestebuchN = new Image();
gaestebuchN.src = "menu/gaestebuch_a.gif";     
gaestebuchAk = new Image();
gaestebuchAk.src = "menu/gaestebuch_b.gif";

gaestebuchStartN = new Image();
gaestebuchStartN.src = "menu/gaestebuch_start_a.gif"; 
gaestebuchStartAk = new Image();
gaestebuchStartAk.src = "menu/gaestebuch_start_b.gif";

homeN = new Image();
homeN.src = "menu/home_a.gif";     
homeAk = new Image();
homeAk.src = "menu/home_b.gif";



function Bildwechsel(Bildname,Bildobjekt) {
 window.document.images[Bildname].src = Bildobjekt.src;
}

var NN = navigator.appName == 'Netscape';
var IE = document.all;
if (NN) {
    window.onresize = resizeHandler;
    wx = window.innerWidth;
    wy = window.innerHeight;
}

function resizeHandler () {
    if (window.innerHeight!=wy || window.innerWidth!=wx){
		top.document.location = top.document.location;
    }
}

// STYLE fuer RedEd-Maske ############################################# 
//alert(document.location.href);
var strPath = document.location.href;
if (strPath.indexOf("verwaltung") >= 0) {
	if (strPath.indexOf("texte") >= 0) {	//ordner texte ist gemeint
		document.write('<link href="../stile/vw_pc.css" rel="stylesheet">');
	} else { //overview, default
		document.write('<link href="stile/vw_pc.css" rel="stylesheet">');
	}
}


function popup(url){
	var wide = 480;
	var high = 550;
	var xpos = Math.round((screen.width-wide)/2.2);
	var ypos = Math.round((screen.height-high)/1.6);
	var data = 'width=' + wide + ',height=' + high + ',screenX=' + xpos + ',screenY=' + ypos + ',left=' + xpos + ',top=' + ypos + ',resizable=yes,scrollbars';

	sc = window.open(url,'setcard',data);
	if (window.focus) {sc.focus();}
}

// POPUP ################################################################## 
// href="javascript:openwin('artikel_pop.asp?topnav={4FD61D22-ED4D-473C-A035-45FB612E165A}','Anfahrtsskizze','520','590','10','10');"
function openwin(URL,strName,width,height,left,top){	
	var kleinWin = window.open(URL, strName,"width="+width+",height="+height+",left="+left+",top="+top+",resizable=yes,scrollbars=no,status=no,toolbar=no");
}

function openDemowin(URL,strName,width,height,left,top){	
	var demoWin	= window.open(URL, strName,"width="+width+",height="+height+",left="+left+",top="+top+",resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,directories=yes,location=yes");
}

function openPflegewin(URL,strName,width,height,left,top){	
	var pflegeWin	= window.open(URL, strName,"width="+width+",height="+height+",left="+left+",top="+top+",resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,directories=yes,location=yes");
}

function funChangeVorschau(arg){
	//alert("geschangsd");
	var strTempName = arg[arg.selectedIndex].text;
	if (strTempName == "default") {
		strTempName = "artikel";
	}
	if (strTempName == "neue Vorlage"){
		document.forms[0].strNewTemplate.focus();
	}
	
	//var strTempName = document.forms[0].SelTemplate[SelTemplate.selectedIndex].text;
	//alert(strTempName);
	if (strTempName == "dok.php"){
		strTempName = "dok";
	}
	
	if ((strTempName == "artikel") || (strTempName == "artikel_elemente") || (strTempName == "uebersicht") || (strTempName == "dok")) {
		window.document.images["vorschau"].src = "../images/" + strTempName + "_vorschau.gif";
	} else {
		window.document.images["vorschau"].src = "../images/blanko_vorschau.gif";
	}		
}
