/************************************
 Pop-up functions
************************************/
function openWin (winurl, w, h, scroll, resize) {
  var winprops = 'width='+w+',height='+h+',top=0,left=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scroll+',resizable='+resize;
  var newwin = window.open(winurl, 'winname', winprops);
	if(parseInt(Navigator.appVersion) >= 4)
	{
 		newwin.focus();
	}
}
var win=null;



/*******************************
Top topNav Dropdown
********************************/

sfHover = function() {
    var sfEls = document.getElementById("topNav").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);

/*******************************
Toggle Function
********************************/
function toggle() {
	var ele = document.getElementById("toggleText");
	var text = document.getElementById("displayText");
	if(ele.style.display == "block") {
    		ele.style.display = "none";
		text.innerHTML = "<b>Read More</b><img src='imagesB/bullet.png' alt='Bullet.' width='17' height='17' border='0'>";
  	}
	else {
		ele.style.display = "block";
		text.innerHTML = "<b>Hide</b><img src='imagesB/bulletFlip.png' alt='Bullet.' width='17' height='17' border='0'>";
	}
} 

