function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function Display_LoginBox() {
	var divRef;
	divRef=document.getElementById("loginbox1");
	divRef.style.display="none";
	divRef=document.getElementById("loginbox2");
	divRef.style.display="block";
	difRef=document.getElementById("login_email");
	divRef.focus();
	return false;
}
function hidAllChannelDescriptions() {
  for (i=0;i<descObjs.length;i++)
	{
		descObjs[i].style.display='none';
	}
}
function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible";
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden";
}
function showLMsg()
{
return;
//alert ("You are leaving the Ecoplum.com domain and entering an external link. The link provides additional information that may be useful or interesting and is being provided consistent with the intended purpose of EcoPlum's website. However, EcoPlum cannot attest to the accuracy of information provided by this link or any other linked site. Providing links to a non-EcoPlum website does not constitute an endorsement by EcoPlum or any of its employees of the sponsors of the site or the information or products presented on the site.");
}

function togglediv(div1_name, div2_name) {
	var div1=document.getElementById(div1_name);
	var div2=document.getElementById(div2_name);
	if (div1){
		if (div1.style.display == 'none')  div1.style.display='block';
		else div1.style.display='none';
	}

	if (div2){
		if (div2.style.display == 'none')  div2.style.display='block';
		else div2.style.display='none';
	}
}

var mastertabvar=new Object();
mastertabvar.baseopacity=0;
mastertabvar.browserdetect="";

function showsubmenu(masterid, id){
if (typeof highlighting!="undefined")
clearInterval(highlighting);
submenuobject=document.getElementById(id)
mastertabvar.browserdetect=submenuobject.filters? "ie" : typeof submenuobject.style.MozOpacity=="string"? "mozilla" : "";
hidesubmenus(mastertabvar[masterid]);
submenuobject.style.display="block";
instantset(mastertabvar.baseopacity);
highlighting=setInterval("gradualfade(submenuobject)",50);
}

function hidesubmenus(submenuarray){
for (var i=0; i<submenuarray.length; i++)
document.getElementById(submenuarray[i]).style.display="none";
}

function instantset(degree){
if (mastertabvar.browserdetect=="mozilla")
submenuobject.style.MozOpacity=degree/100;
//else if (mastertabvar.browserdetect=="ie")
//submenuobject.filters.alpha.opacity=degree;
}


function gradualfade(cur2){
if (mastertabvar.browserdetect=="mozilla" && cur2.style.MozOpacity<1)
cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.1, 0.99);
//else if (mastertabvar.browserdetect=="ie" && cur2.filters.alpha.opacity<100)
//cur2.filters.alpha.opacity+=10;
else if (typeof highlighting!="undefined") //fading animation over
clearInterval(highlighting);
}

function initalizetab(tabid){
mastertabvar[tabid]=new Array();
var menuitems=document.getElementById(tabid).getElementsByTagName("li");
for (var i=0; i<menuitems.length; i++){
if (menuitems[i].getAttribute("rel")){
menuitems[i].setAttribute("rev", tabid); //associate this submenu with main tab
mastertabvar[tabid][mastertabvar[tabid].length]=menuitems[i].getAttribute("rel"); //store ids of submenus of tab menu
if (menuitems[i].className=="selected")
showsubmenu(tabid, menuitems[i].getAttribute("rel"))
//menuitems[i].getElementsByTagName("a")[0].onmouseover=function(){
//showsubmenu(this.parentNode.getAttribute("rev"), this.parentNode.getAttribute("rel"));
//}
}
}
}

var link1;
var link2;
var link3;
var link4;
window.onLoad = function() {
link1 = document.getElementById('leisure');
link2 = document.getElementById('info');
link3 = document.getElementById('about');
link4 = document.getElementById('adm');
var col2 = "#c6ffb4";
var col1 = "#e6a9ec";
/*document.getElementById('submenubar1').onmouseover = function() { link1.style.background = col1; }
document.getElementById('submenubar1').onmouseout = function() { link1.style.background = ""; }
document.getElementById('submenubar2').onmouseover = function() { link2.style.background = col1; }
document.getElementById('submenubar2').onmouseout = function() { link2.style.background = ""; }
document.getElementById('submenubar3').onmouseover = function() { link3.style.background = col1; }
document.getElementById('submenubar3').onmouseout = function() { link3.style.background = ""; }
document.getElementById('submenubar4').onmouseover = function() { link4.style.background = col1; }
document.getElementById('submenubar4').onmouseout = function() { link4.style.background = ""; }
*/
}

