<!-- hide script from old browsers
// Version 0.1.0 2007-10-03
function locallang(en, se, ko){
        langIndex = document.URL.lastIndexOf('L=');
        lang = document.URL.substring(langIndex+2,langIndex+3);
        if(lang == '1') document.write(se);
        else if(lang == '2') document.write(ko);
        else document.write(en);
}


//*************************************************************
//
//	Functions for expanding and hiding blocks of content
//
//*************************************************************
function expand(txt) {
	document.getElementById(txt).style.display = 'inline';
	return false;
}

function hide(txt) {
	document.getElementById(txt).style.display = 'none';
	return false;
}


//*************************************************************
//      Create a global variable that can be accessed from a child
//      window that's opened with aw_quicktime();
//*************************************************************
        var aw_quicktime;
        var aw_quicktime_title;

        function aw_quicktime(title, prm) {
                aw_quicktime_title = title;
                //If blank, give it a default value
                if(prm == undefined)prm = '<span style="color: white; font-size: 20px;">Plugin: aw_quicktime</span>';
                l = prm.length;
                aw_quicktime = '';
                for(c = 0; c<l; c++) {
                        temp = prm.charAt(c);
                        if(temp == '@')temp = '"';
                        if(temp == '+')temp = ' ';
                        aw_quicktime = aw_quicktime + temp;
                }
                window.open('fileadmin/templates/ywamrestenas/media.htm','TITLE','width=770,height=700,resizable=no,scrollbars=no,toolbar=no,location=no,status=no,menu=no,copyhistory=no,alwaysRaised=yes');
                return false;
        };

//*************************************************************
//      Popup menu event handlers
//*************************************************************
function showMenu(item) {
        document.getElementById('menu_level2_'+item).style.display="block";
}

function hideMenu(item) {
        document.getElementById('menu_level2_'+item).style.display="none";
}

//*************************************************************
//      Menu IE fix
//*************************************************************
// patch IE's :hover & :focus problems with tags other than <a>

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			sel = document.getElementsByTagName("select");
			for (var i=0; i<sel.length; i++) {
				sel[i].style.visibility = 'hidden';	
			}
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			sel = document.getElementsByTagName("select");
			for (var i=0; i<sel.length; i++) {
				sel[i].style.visibility = 'visible';	
			}
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	
}
// only win:
if (window.attachEvent) window.attachEvent("onload", sfHover);

//*************************************************************
//      Custom scrollbar
//*************************************************************
//CSBfleXcroll('content');-sh-3.00$ cat functions.js > fs.js

// end hiding script from old browsers -->
