// JavaScript Document
function cssmenuhover()
{
	if(!document.getElementById("cssmenu"))
		return;
	var lis = document.getElementById("cssmenu").getElementsByTagName("LI");
	for (var i=0;i<lis.length;i++)
	{
		if(lis[i].className.match(/\bitem_main\b/)) {
			lis[i].onmouseover=function(){this.className+=" iehover";}
			lis[i].onmouseout=function() {this.className=this.className.replace(/\siehover\b/, "");}
		}
	}
}

function show_div_contact()
{
	if(!document.getElementById("div_contact"))
		return;
	var ref = document.getElementById("div_contact");
	var ref_but = document.getElementById("contact_dropdown");
	
	ref.onmouseover=function(){this.className=this.className.replace(/(^| )invisible($| )/, "visible");}
	ref.onmouseout=function() { this.className=this.className.replace(/(^| )visible($| )/, "invisible");
								ref_but.onmouseout=function(){return;}
								}
	ref_but.onclick=function(){	ref.className=ref.className.replace(/(^| )invisible($| )/, "visible");
								this.onmouseout=function(){ref.className=ref.className.replace(/(^| )visible($| )/, "invisible");}
								}
}

