
if (parent.frames.length > 0){ 
	parent.top.location.href = document.location.href;
}

var objClient = new Object();
// OS ###################################################################
if (navigator.userAgent.toLowerCase().indexOf("mac") > -1) {
	objClient.OS = "mac";
} else if (navigator.userAgent.toLowerCase().indexOf("win") > -1) {
	objClient.OS = "win";
} else if (navigator.userAgent.toLowerCase().indexOf("x11") > -1) {
	objClient.OS = "unix";
} else {
	objClient.OS = "unknown";
}

// Lang //
objClient.BrowserLang = "de"; //default: "de"
var strBrowserLanguage	= "de";



// DOM ################################################################## 
if (document.all) {
	objClient.DOM = "all";
} else if (document.all && document.getElementById) {
	objClient.DOM = "all";
} else if (document.layers) {
	objClient.DOM = "layers";
} else if (document.getElementById) {
	objClient.DOM = "getElementById";
} else {
	objClient.DOM = "unknown";
}


/*if (objClient.BrowserName == "nn"){  // fuer navigator unter version 6
	document.write('<link href="stile/ns.css" rel="stylesheet">');
} else {*/
	document.write('<link href="stile/pc.css" rel="stylesheet">');
//}

// 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="/verwaltung/stile/vw_pc.css" rel="stylesheet">');
	} else { //overview, default
		document.write('<link href="stile/vw_pc.css" rel="stylesheet">');
	}
}



// 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");
}
// TABLEHIGHLIGHT ################################################################## 

function funHigh(arg)	{
	 document.getElementById(arg).style.backgroundColor='#999999';
}

function funLow(arg)	{
	 document.getElementById(arg).style.backgroundColor='#ffffff';
}



// MOUSEOVER ################################################################## 
/***************Normal Buttons******************/
Normal1 = new Image();
Normal1.src = "/images/blind.gif";


function funImgChange(arg1,arg2)	{
	window.document.images[arg1].src = "images/" + arg2;
	 //document.getElementById(arg).style.backgroundColor='#ffffff';
}

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 == "artikel") || (strTempName == "artikel_elemente") || (strTempName == "uebersicht")) {
		window.document.images["vorschau"].src = "/verwaltung/images/" + strTempName + "_vorschau.gif";
	} else {
		window.document.images["vorschau"].src = "/verwaltung/images/blanko_vorschau.gif";
	}		
}

function changePreview(name,quelle){
	//alert("was geht?");
	window.document.images[name].src = quelle;
}


function Change(name,Bildobjekt){
	window.document.images[name].src = Bildobjekt.src;
}


function funOpenerLoc(arg) {
	window.opener.document.location.href = arg;
}

function funShowHinweis(){
	document.getElementById("bmchinweis").style.visibility = "hidden";
	document.getElementById("bmcbuchdvd").style.color = "#424242";
	document.getElementById("mshinweis").style.visibility = "visible";
	document.getElementById("mundstangenset").style.color = "#9e2719";
}


function funShowHinweisBMC(){
	document.getElementById("mshinweis").style.visibility = "hidden";
	document.getElementById("mundstangenset").style.color = "#424242";
	document.getElementById("bmchinweis").style.visibility = "visible";
	document.getElementById("bmcbuchdvd").style.color = "#9e2719";
}

