function popupImage(url, title)
{
	var win = window.open(baseurl + "portaldata/" + portalId + "/Tiers/PresentationLayer/HelperFunctions/ImageFrameset.aspx?url=" + url + "&title=" + title,"image",",scrollbars=no,resizable=no");
	win.focus();
}

function popupContact(url) {
	
	var win = window.open(url, 'contact', 'status, scrollbars, resizable, width=650, height=580');
	win.focus();
}    

function RedirectCategory(select)
{
	if (select.options[select.selectedIndex].value.indexOf('link_') > -1)
	{	
		window.open(select.options[select.selectedIndex].value.split('_')[1])
	}
}

function popupprint(url, tabid, tabname)
{
	var win = window.open(baseurl + "portaldata/" + portalId + "/shadow/PrintFrameset.aspx/tabid-" + tabid + "/?tabname=" + tabname + "&url=" + url,"printwindow","width=630,height=500,scrollbars=yes,resizable=no");
	win.focus();
}

function closewin()
{
	window.close();
}

// Menu Funktionen
//if(window.navigator.systemLanguage && !window.navigator.language) {
function hoverIE() {
	var LI = document.getElementById("HeaderNavigation").firstChild;
	do {
		if (searchUL(LI.firstChild)) {
			LI.onmouseover=show; LI.onmouseout=hide;
		}
		LI = LI.nextSibling;
	}
	while(LI);
}

function searchUL(UL) {
	do {
		if(UL) UL = UL.nextSibling;
		if(UL && UL.nodeName == "UL") return UL;
	}
	while(UL);
	return false;
}

function show() {
	var UL = searchUL(this.firstChild);
	UL.style.display = "block"; UL.style.backgroundColor = "#B2C1D1";
}
function hide() {
	searchUL(this.firstChild).style.display = "none";
}

function changeOutColor(element, style, isCurrent) {

	if (isCurrent == 0)
		element.className = style;
		

}
function popupContactIntern(url)
{
	var win = window.open(url,"contactwindow","width=470,height=500");
	win.focus();
}

window.onload=hoverIE;
//}
