<!--
// Bowserabfrage 
	var NAV6 = (parseInt(navigator.appVersion) >= 5 && navigator.appName == "Netscape") ? 1 : 0;
	var NAV4 = (navigator.appName.indexOf("Netscape") >= 0 &&  parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
	var IE4 = (document.all) ? 1 : 0;
	var IE5 = (IE4 && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0;
	var OP = navigator.appName.indexOf("Opera") ? 1 : 0;


// Abfrage der Fensterhoehe/-breite fuer IE und NN 

function getHeightAndWidth(){
	if (IE4 || IE5)
	{
		var screenHeight = document.body.clientHeight;
		var screenWidth = document.body.clientWidth;
	}
	
	if (NAV4)
	{
		var screenHeight = window.innerHeight;
		var screenWidth = window.innerWidth;
	}
}
//////////////////////////////////////////////////	




// Funktion Highligning (Alphakanal) von Image-Grafiken
//Aufruf so: <!--<onMouseover="high(this)" onMouseout="low(this)" style="filter: alpha(opacity=30);">-->

function high(which2)
	{
	theobject=which2
	highlighting=setInterval("highlightit(theobject)",50)
	}	
function low(which2)
	{
	clearInterval(highlighting)
	which2.filters.alpha.opacity=40
	}
function highlightit(cur2)
	{if
	(cur2.filters.alpha.opacity<100)
	cur2.filters.alpha.opacity+=5
		else if
		(window.highlighting)
		clearInterval(highlighting)
	}


//////////////////////////////////////////////////	





// Funktion Highligning in Formularfelder 

function ScreenitFormColor(ID){
	if (IE5 || IE6){
		el=ID.style.backgroundColor;
		if(el == '' || el == 'transparent'){
			ID.style.backgroundColor='#efefef';
		} else {
			ID.style.backgroundColor='e1e1e1';
		}
	}
}
//////////////////////////////////////////////////

function doNothing() {}


	function ZweiFrames(URL1,F1,URL2,F2)
	 {  
	  parent.frames[F1].location.href=URL1;
	  parent.frames[F2].location.href=URL2;
	 }	
//////////////////////////////////////////////////
	 

// Popup 

//Aufruf so: <!--onload="openWindow('specials.php','300','471','250','70','specials');"-->//
function openWindow(url,weite,hoehe,left,top,id) {
		popupWindow = window.open(url,id, 'menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,width='+weite+',height='+hoehe+',left='+left+',top='+top+'')
	}

	
	

function opensmWin(url,hoehe,weite) {
	  popupWin = window.open(url, 'popup', 'menubar=yes,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,width='+weite+',height='+hoehe+',left=250,top=250')
	}
	
	
function openPopup(item)
	{
	popup=open("popups_clients/clients_"+ item +".php","refpopup","width=680,height=450,resizeable=no,scrollbars=no,toolbar=no,status=no,directories=no,menubar=no,location=no");
	popup.moveTo((screen.width-620)/2, (screen.height-450)/2);
	popup.focus();
}
//////////////////////////////////////////////////



//DropDown Menue (Selection Option)
function dropDown(x) { // 
	if(x == "nothing")
    {
    document.forms[0].reset();
    document.forms[0].elements[0].blur();
    return;
    }
    else if(x == "end") parent.frames.location.href = document.location;
    	else
      	{
        parent.frames.location.href = x;
        document.forms[0].reset();
        document.forms[0].elements[0].blur();
      	}
    }
//////////////////////////////////////////////////


// Flash-Sound
function doPassVar(args){
	var sendText = args;
	window.document.myFlash.SetVariable("sound", sendText);
}
//////////////////////////////////////////////////




// Flip - Funktion fuer Bilder im Layer
// flLayer = Layername in dem sich das Bild befindet
// flName = Imagename
// flRoll = Pfad 

function fliplay(flLayer, flName, flRoll){
	sLN = '\'' + eval("sLayer") + '\'';
	if(document.images){
		if(document.layers){
			document.layers[eval(sLN)].document.images[eval("sName")].src = eval(sRoll + '.src');
		} else {
			document.images[eval("sName")].src = eval(sRoll + '.src');
		}
	}
} 

// Flip - Funktion (Austausch eines Bildes)

function flip(imgName,imgNo) { 
	document.images[imgName].src = eval(imgNo+'.src');
}

var current=0; // aktives image, wird bei onclick gesetzt
var sel=0; // ausgewähltes image, wird bei onmouseover gesetzt

function allout(){ // blendet sel aus und current ein
	if (sel != 0){
		flipmnav = 'sel' + sel;
		flipimage = 'no' + sel;
		flip(flipmnav,flipimage);
	}
	
	if (current != 0){
		himnav = 'sel' + current;
		hiimage = 'ro' + current;
		flip(himnav,hiimage);
	}
}

function alloutall(){  // blendet sel und current aus
	if (sel != 0){
		flipmnav = 'sel' + sel;
		flipimage = 'no' + sel;
		flip(flipmnav,flipimage);
	}
	
	if (current != 0){
		himnav = 'sel' + current;
		hiimage = 'no' + current;
		flip(himnav,hiimage);
	}
}


//-->
