// GLOBAL HORIZONTAL NAV

sfHover = function() {
	var sfEls = document.getElementById("nav").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);


// LOCAL VERTICAL NAV

function toggle(id){
    ul = "ul_" + id;
    img = "img_" + id;
    ulElement = document.getElementById(ul);
    imgElement = document.getElementById(img);
    if (ulElement){
            if (ulElement.className == 'closed'){
                    ulElement.className = "open";
                    imgElement.src = "http://www.samuelageloff.com/folusa/images/bullet_open.gif";
                    }else{
                    ulElement.className = "closed";
                    imgElement.src = "http://www.samuelageloff.com/folusa/images/bullet_closed.gif";
                    }
            }
    }
    
// POP UP WINDOWZ    
    
function popUp(strURL,strType,strHeight,strWidth) {
	var strOptions="";
		if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
		if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
		if (strType=="elastic")									strOptions="scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
window.open(strURL, 'newWin', strOptions);
}