
window.addEvent ('domready', function(){

	//menuSlider.init('menu','slide');

	var list = $$('#menu a');
	list.each(function(element) {
	
	element.addEvents({
		mouseenter: function(){
			element.set('tween', { duration: 10
			}).tween('color', '#c41230');
		},
		mouseleave: function(){
			element.set('tween', {
				duration: 1000
			}).tween('color', '#005568');
		}
	});
	});	
	
	var list = $$('.bar_middle h1');
	list.each(function(element) {
	
	element.addEvents({
		mouseenter: function(){
			element.set('tween', {
				duration: 10
			}).tween('color', '#cccccc');
		},
		mouseleave: function(){
			element.set('tween', {
				duration: 1000
			}).tween('color', '#eeeeee');
		}
	}); 
	});	


}); /* END ONLOAD */



function FormContact_Validator(theForm)
{
	document.getElementById('contact_error').style.color="#005568";
	document.getElementById('contact_error').innerHTML="Please wait.";
	
	if (trimStr(theForm.txtEmail.value) == "")
	{
		document.getElementById('contact_error').style.color="#FF0000";
		document.getElementById('contact_error').innerHTML="E-Mail address can not be blank";
		theForm.txtEmail.focus();
		return (false);
	}
	if (trimStr(theForm.txtMsg.value) == "")
	{
		document.getElementById('contact_error').style.color="#FF0000";
		document.getElementById('contact_error').innerHTML="Message can not be blank";
		theForm.txtMsg.focus();
		return (false);
	}
}


function trimStr(str)
{
	return str.replace(/^\s+|\s+$/g, "");
}
