/*<![CDATA[*/
		   

//Centers the content area if browser window is larger than 800px
function CenterAll (){

	var ContentWidth = document.getElementById('ContainerCenter').offsetWidth;

	if (document.documentElement && document.documentElement.clientWidth)
	{
		var WindowWidth = document.documentElement.clientWidth;
	}
	else if (document.body)
	{
		var WindowWidth = document.body.clientWidth;
	}

	//alert ("WindowWidth "+WindowWidth+" und "+"ContentWidth "+ContentWidth);
	
	if(WindowWidth <= ContentWidth){
		document.getElementById('ContainerCenter').style.paddingLeft = "0px";
	}
	else {
		document.getElementById('ContainerCenter').style.paddingLeft = "246px";
	}

	
}

//Redo function CennterAll when window size gets changed
//window.onresize = CenterAll;
window.onload = CenterAll;



/*=================================*/
/* Rollovers                       */
/*=================================*/
//RollOver Effect for Front Page
function RollOverBox (n) {
  document.getElementById(n).style.backgroundColor="#ebebeb";
}

//RollOut Effect for Front Page
function RollOutBox (n) {
  document.getElementById(n).style.backgroundColor="#ffffff";
}

//MouseOver on form fields
function RollOverField(n){
	n.style.border = "1px solid #990000";
	n.style.color = "#383636";
}

//Removes MouseOver from fields
function RollOutField(n){
	n.style.color = "#383636";
	n.style.borderTop = "1px #909090 solid";
	n.style.borderLeft = "1px #cecece solid";
	n.style.borderRight = "1px #cecece solid";
	n.style.borderBottom = "1px #e4e4e4 solid";
}

//MouseOver on inquiry form fields
function RollOverInquiryField(n){
	n.style.border = "1px solid #990000";
	n.style.color = "#383636";
}

//Removes MouseOver inquiry from fields
function RollOutInquiryField(n){
	/*n.style.color = "#a0a0a0";*/
	n.style.color = "#000";
	n.style.borderTop = "1px #909090 solid";
	n.style.borderLeft = "1px #cecece solid";
	n.style.borderRight = "1px #cecece solid";
	n.style.borderBottom = "1px #e4e4e4 solid";
}

//MouseOver on Buttons
function RollOverButton(n){
	n.style.background = "#383636";
}


//Removes MouseOver from Buttons
function RollOutButton(n){
	n.style.background = "#990000";
}


/*]]>*/
