function sfHoverOn(ctrl) {
	ctrl.className+=" sfhover";
}
function sfHoverOff(ctrl) {
	ctrl.className=ctrl.className.replace(/sfhover/, "");
}
/*
sfHover2 = function() {
	try {
		var sfEls = document.getElementById("main_nav").getElementsByTagName("div");
		for (var i=0; i<sfEls.length; i++) {
			if (sfEls[i].className != 'sub' && sfEls[i].className != 'sel') {
				sfEls[i].onmouseover=function() {
					this.className+=" sfhover";
				}
				sfEls[i].onmouseout=function() {
					this.className=this.className.replace(/sfhover/, "");
				}
			}
		}
	} catch(e) {}
}
sfHover3 = function() {
	try {
		var sfEls = document.getElementById("right").getElementsByTagName("li");
		for (var i=0; i<sfEls.length; i++) {
			if (sfEls[i].className != 'sub' && sfEls[i].className != 'sel') {
				sfEls[i].onmouseover=function() {
					this.className+=" sfhover";
				}
				sfEls[i].onmouseout=function() {
					this.className=this.className.replace(/sfhover/, "");
				}
			}
		}
	} catch(e) {}
}

function bonload()
{
	sfHover();
	//sfHover2();
	//sfHover3();
}
*/
function openPic(url,winName,winParams)       
{       //

   var theWindow = window.open(url,winName,winParams);

   if (theWindow) {theWindow.focus();}

}
function createBookmark(furl, titel)
{
	if (window.sidebar) {
		window.sidebar.addPanel(titel, furl, "");
	} else if (window.external) {
		window.external.AddFavorite( furl, titel );
	}
}

function toggle_flyout(node)
{
    if(node.getElementsByTagName('ul').length == 0)
    {
        return;
    }

    if(node.getElementsByTagName('ul')[0].style.display != "block")
    {
        node.getElementsByTagName('ul')[0].style.display = "block";
    }
    else
    {
        node.getElementsByTagName('ul')[0].style.display = "none";
    }

}