// hauptnavigation : ie fix fue li:hover

sfHover = function() {
	var sfEls = document.getElementById("navigation").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);

// produktuebersicht : tabellenspalte ein/ausblenden

function toggleRow(id) {
	var tdArray = new Array();
	tdArray = $('produktuebersichtTable').getElementsBySelector('tr.' + id);
	// toggle all
	tdArray.each(function(s) {
		$(s).toggle();
	});
}


// popup oeffnen

function show_page (file_path,winName,winParams) {

	var sBaseHref = document.getElementsByTagName("base")[0];
	if (sBaseHref) {
		var baseHref = sBaseHref.getAttribute("href");
		if (file_path.search(/http.+/) < 0) {
			file_path = baseHref+file_path;	
		}
	}
	
	newWindow = window.open(file_path,winName,winParams);
	
	newWindow.focus();	
	if (newWindow.scrollbars && newWindow.scrollbars.visible == false)
	 newWindow.scrollbars.visible = true;
}	


function goto_page(file_path) {

	var sBaseHref = document.getElementsByTagName("base")[0];
	if (sBaseHref) {
		var baseHref = sBaseHref.getAttribute("href");
		if (file_path.search(/http.+/) < 0) {
			file_path = baseHref+file_path;	
		}
	}

	document.location.href = file_path;
	
}	