var dhtml = 'nicht' ;

if (document.layers) dhtml = "NN";
if (document.getElementById) dhtml = "IE";  // bei nn5 und ie5


function mover(object, farbe, div)
	{
		if (dhtml == 'IE')
			{
				eval('document.getElementById(object).style.backgroundColor = "' + farbe + '"') ;
				//eval('document.getElementById(object).style.color = "ffffff"') ;
				//eval('document.getElementById(object).style.fontWeight = "bold"') ;
			}
		else if (dhtml == 'NN')
			{
				eval('window.document.'+ div +'.document.layers["' + object + 'b"].moveBelow(document.layers["' + object + 'a"])');
				eval('window.document.'+ div +'.document.layers["' + object + 'b"].visibility="hide"');
				eval('window.document.'+ div +'.document.layers["' + object + 'a"].visibility="show"');
			}
	}

function mout(object, div)
	{
		if (dhtml == 'IE')
			{
				document.getElementById(object).style.backgroundColor = "";
				document.getElementById(object).style.fontWeight = "normal";
			}
		else if (dhtml == 'NN')
			{
				eval('window.document.'+ div +'.document.layers["' + object + 'a"].moveBelow(document.layers["' + object + 'b"])');
				eval('window.document.'+ div +'.document.layers["' + object + 'a"].visibility="hide"');
				eval('window.document.'+ div +'.document.layers["' + object + 'b"].visibility="show"');
			}
	}


	
	function OpenPopUp(uName, uBreite, uHoehe, uLeft, uTop, uScrollbar)
	{

		locPath=uName;
		
		if (locPath!="") 
		{
			locZeit = new Date();
			locAktuell = locZeit.getTime();
			if (locPath == './pingresults_auslesen.asp')
			{
				if (dhtml == 'IE')
				{
					eval('locWindow=window.open(locPath,"Blaupunkt' + locAktuell + '","left='+uLeft+',top='+uTop+',width='+uBreite+',height='+uHoehe+',scrollbars='+uScrollbar+',resizable=no,caption=no,menubar=no")');
					eval('locWindow.focus()');
				}
				else
				{
					locBreite = uBreite - 15;
					eval('locWindow=window.open(locPath,"Blaupunkt' + locAktuell + '","left='+uLeft+',top='+uTop+',width='+locBreite+',height='+uHoehe+',scrollbars='+uScrollbar+',resizable=no,caption=no,menubar=no")');
					eval('locWindow.focus()');
				}
			}
			else
			{
				eval('locWindow=window.open(locPath,"Blaupunkt' + locAktuell + '","left='+uLeft+',top='+uTop+',width='+uBreite+',height='+uHoehe+',scrollbars='+uScrollbar+',resizable=no,caption=no,menubar=no")');
				eval('locWindow.focus()');

			}
		}
	}

	function OpenVirtualRadios(uName, uBreite, uHoehe, uLeft, uTop, uScrollbar) {

		locPath=uName;
		locZahl=Math.round(Math.random() * 100);
		
		if (locPath!="") {
			eval('locWindow=window.open(locPath,"Blaupunkt'+locZahl+'","left='+uLeft+',top='+uTop+',width='+uBreite+',height='+uHoehe+',scrollbars=no,resizable=no,caption=no,menubar=no,status=yes")');
			eval('locWindow.focus()');
		}
	}

	function checkIt() 
	{    
		if (navigator.appVersion.indexOf("(X11") != -1 || navigator.appVersion.indexOf("(Mac") != -1) return 1 
		else return 0
	}

	function openWindowmusik(pfad) 
	{
		newfenster = window.open(pfad, 'neuesfenster', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=380,height=30,innerwidth=380,innerheight=30');
		if (checkIt() == 1 ) window.open(pfad, 'neuesfenster');
	}