function expandAll(){
var param, n = 0;
while (param = document.getElementById('div' + n++))
param.style.display=(param.style.display=="none")?"":"none";
}
function expand(param)	{		
param.style.display=(param.style.display=="none")?"":"none";	
}
function HideContent(d) {
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
document.getElementById(d).style.display = "block";
}
function ReverseDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}

<!-- Prevew sections PopUp Window Opener -->
<!-- var newwindow; -->
<!-- PopUp Window Opener -->
function openNewWindow(URLtoOpen,windowName,height,width)
{
windowFeatures ="menubar=no,scrollbars=yes,location=no,favorites=no,resizable=yes,status=no,toolbar=no,directories=no";
var test = "'"; 
winLeft = (screen.width-width)/2; 
winTop = (screen.height-(height+110))/2; 
myWin= open(URLtoOpen,windowName,"width=" + width +",height=" + height + ",left=" + winLeft + ",top=" + winTop + test + windowFeatures + test);
if (window.focus) {myWin.focus()}
}

<!-- External Video Player in Modal Window -->
function modalWin(myplayer, width, height) {
windowFeatures ="toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes ,modal=yes";
if (window.showModalDialog) {
window.showModalDialog(myplayer,"EPEC-Video",
"dialogWidth:" + width + "px;dialogHeight:" + height + "px;edge:sunken;scroll:no;resizable:no;status:no");
} else {
window.open(myplayer,'EPEC-Video',
'height=' + height + ',width=' + width + ',' + windowFeatures);
}
} 
<!-- External Video Player -->
function ExternalPlayer(player, videofile,windowName,height,width)
{
var playernum
var s1 = new SWFObject("flvplayer.swf","single","350","280","7");
	s1.addParam("allowfullscreen","true");
	s1.addVariable("image","images/start.gif");
	s1.addVariable("file","<?php echo $myvideo; ?>");
	s1.addVariable("backcolor","0x000000");
	s1.addVariable("frontcolor","0xCCCCCC");
	s1.addVariable("lightcolor","0xFFFCCC");
	s1.addVariable("overstretch","fit");
	//s1.addVariable("width","300");
	//s1.addVariable("height","250");
	s1.addVariable("autostart","false");
	s1.write("player"+playernum);
}
<!-- Refreshes parent window and cloase the popup -->
function win(){
window.opener.document.location.reload();
self.close();
}
<!-- Change font size -->
<!-- var fontSize = 100; -->
var fontSize = 100;
function FontSizeSet()
{
var el, n = 1;
while (el = document.getElementById('content' + n++))
//while (el = document.getElementById('content'))
el.style.fontSize = fontSize + '%';
return false;
}
function SetFontLarger()
{
if (fontSize < 150) 
fontSize=fontSize+15;
return FontSizeSet();
}
function SetFontSmaller()
{
if (fontSize > 80) 
fontSize=fontSize-15;
return FontSizeSet();
}
var menuids=["psep2"] //Enter id(s) of SuckerTree UL menus, separated by commas
function buildsubmenus_horizontal(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
		if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
			ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		}
		else{ //else if this is a sub level menu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		}
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.visibility="visible"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.visibility="hidden"
    }
    }
  }
}
if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)