//LAUFSCHRIFT IN STATUSLEISTE
var message="Unter dem Menupunkt USP finden Sie unsere TOP-Leistungen zusammengefasst.  - - - - Sehr gerne stehen wir Ihnen am Telefon für Ihre Fragen zur Verfügung: 09151 83009-0    the-service-people             "; 
var a=0, b, leerzeichen=" ", zeichenlaenge;
var message_ausgabe;

for (b=140; b>=0; b--)
{
	leerzeichen=leerzeichen+" ";
}

message=leerzeichen+message;
zeichenlaenge=message.length;

function laufschrift ()
{
	a=a+1;
	message_ausgabe=message.substring (a,zeichenlaenge);
	window.status=message_ausgabe;
	if (a>=zeichenlaenge)
	{
		a=0;
	}
	window.setTimeout ('laufschrift ()',500);
}
//////////////////////////////////////////////////


//FORMULAR VALIDIEREN
function form_val(form)
{
	if (form.realname.value=="")
	{
		alert("Bitte geben Sie Ihren Namen ein!");
		form.realname.focus();
		return false;
	}
	
	if (form.email.value=="")
	{
		alert("Bitte geben Sie Ihre e-Mailadresse ein!");
		form.email.focus();
		return false;
	}
	
	if (form.email.value.indexOf(".")<0 || form.email.value.indexOf("@")<0)
	{
		alert("Ihre e-Mailadresse ist ungültig!");
		form.email.focus();
		return false;
	}
	
	return true;
}

function chTop(td)
{
	td.bgColor="#c2cfd8";
}

function chTopClose(td)
{
	td.bgColor="#003366";
}

//CSS IN ABHÄNGIGKEIT VON DER BILDSCHIRMAUFLÖSUNG LADEN
function loadCSS()
{
	var css;
   	if (screen.width==1024) css = 1024;
	else if (screen.width==1280) css = 1280;
   	else if (screen.width==800) css = 800;
	else if (screen.width==960) css = 960;
   	else if (screen.width==1088) css = 1088;
	else if (screen.width==1152) css = 1152;
	else if (screen.width>1280)css = 1280;

	document.write('<link rel="stylesheet" type="text/css" href="'+ css +'.css" title="css">');
}
//////////////////////////////////////////////////////////

function doLoad()
{
	laufschrift();
	var oDivCenter = document.getElementById('divCenter');
	var oDivMenu = document.getElementById('divSideBar');
	var oDivContent = document.getElementById('divContent');
	var oDivFooter = document.getElementById('divFooter');
	var iHeightMenu = 0;
	var iHeightContent = oDivContent.scrollHeight;
	if (oDivMenu) iHeightMenu = oDivMenu.scrollHeight;
	var iFooterPos = Math.max(iHeightMenu, iHeightContent);
	
	oDivFooter.style.top = iFooterPos + 170 + 'px';
	oDivFooter.style.display = 'block';
}

function fnSideMenuOver(oEl) 
{
	oEl.className='sideMenuOver';
}
function fnSideMenuOut(oEl) 
{
	oEl.className='';
}

function swapimg(img,td)
{
	td.bgColor=colorSidemenuOver;
	img.src=imgname;
}

function swapimg_re(img,td)
{
	td.bgColor=colorSidemenu;
	img.src=imgname_alt;
}

function submenu()
{
	/*if (document.all)
	{
		document.all.men01.bgColor=colorTopmenu;
  	 	document.all.men02.bgColor=colorTopmenu;
	 	document.all.b1.innerText='Statistic Online';
 	 	document.all.b2.innerText="Administratie 0900";
 	}
 	
 	else
 	{
 		document.getElementById["men01"].style.backgroundColor="red";
 	}*/
}

function submenuclose()
{
	/*document.all.men01.bgColor="#FFFFFF";
	document.all.men02.bgColor="#FFFFFF";
	document.all.b1.innerText=" ";
	document.all.b2.innerText=" ";*/
}