function toggleSlide(objname){
  if(document.getElementById(objname).style.display == "none"){
    // div is hidden, so let's slide down
    slidedown(objname);
  }else{
    // div is not hidden, so slide up
    slideup(objname);
  }
}

function toggleMenu(id, show){
		
		if(show)
		document.getElementById(id).style.display = "block";
		else
		document.getElementById(id).style.display = "none";
}

function Launch(page , width, height) { 
	OpenWin = this.open(page, "lacare", "toolbar=no, menubar=no ,location=no, scrollbars=no, resizable=no, width=" + width + ", height=" + height + ", top=" + (screen.height/2 - height/2) + ", left=" + (screen.width/2 - width/2) + "\""); 
} 

function Launch1(page , width, height) { 
	OpenWin = this.open(page, "lacare", "toolbar=yes, menubar=yes ,location=yes, scrollbars=yes, resizable=no, width=" + width + ", height=" + height + ", top=" + (screen.height/2 - height/2) + ", left=" + (screen.width/2 - width/2) + "\""); 
} 

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

window.onload = clearCurrentLink;

function clearCurrentLink(){
    var a = document.getElementsByTagName("A");
    for(var i=0;i<a.length;i++)
    {
		if(a[i].href == window.location.href.split("#")[0] && a[i].name == "sec_menu")
        {
			removeNode(a[i]);
		}
		
	}
}

function removeNode(n){
    if(n.hasChildNodes())
        for(var i=0;i<n.childNodes.length;i++)
            n.parentNode.insertBefore(n.childNodes[i].cloneNode(true),n);
    n.parentNode.removeChild(n);
}