YAHOO.example.onMenuReady = function() {
    // Instantiate and render the menu
    var oMenu = new YAHOO.widget.Menu(
                        "plsidebar", 
                        {
                            position:"static", 
                            hidedelay:750, 
                            lazyload:true 
                        }
                    );                 
        oMenu.render();
};
// Initialize and render the menu when it is available in the DOM
YAHOO.util.Event.onContentReady("plsidebar", YAHOO.example.onMenuReady);

// delete confirmation
function confirmLocation(obj)
{	
	var answer =  confirm('Are you sure?')
	if (answer){	
		window.location.href = obj	
	}
	else {
		return False
	}
}



function showdiv(id,txt) {
	//safe function to show an element with a specified id		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (txt) document.getElementById(id).innerHTML = txt;
		document.getElementById(id).style.display = 'block';  
    document.getElementById(id).className = '';  
	}
	else {
		if (document.layers) { // Netscape 4
			if (txt) document.id.innerHTML = txt;
			document.id.display = 'block';
      document.id.className = '';
		}
		else { // IE 4
			if (txt) document.all.id.innerHTML = txt;
			document.all.id.style.display = 'block';
		}
	}
}
function hidediv(id,txt) {
	//safe function to show an element with a specified id		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (txt) document.getElementById(id).innerHTML = txt;
		document.getElementById(id).style.display = 'none';    
	}
	else {
		if (document.layers) { // Netscape 4
			if (txt) document.id.innerHTML = txt;
			document.id.display = 'none';
		}
		else { // IE 4
			if (txt) document.all.id.innerHTML = txt;
			document.all.id.style.display = 'none';
		}
	}
}
	