/*function clearText(field){
    if (field.defaultValue == field.value) field.value = '';
    else if (field.value == '') field.value = field.defaultValue;

}


navHover = function() {
	var lis = document.getElementById("navmenu-h").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			alert('sdasd');
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);

*/

$(document).ready(function($) {
	
	$('#navmenu-h').children('li').bind({
		mouseenter: function(event) {
			if(!$(this).hasClass('active'))
			{
				$(this).toggleClass('mainNavActive');
			}
		},
		mouseleave: function(event) {
			if(!$(this).hasClass('active'))
			{
				$(this).toggleClass('mainNavActive');
			}
		}
	});
});
