function toggleMenu(currMenu){
	if (document.getElementById) {
  		thisMenu = document.getElementById(currMenu).style
		thisMenuEnd = document.getElementById(currMenu+'_end').style
 		if (thisMenu.display == "block") {
  			thisMenu.display = "none" 
			thisMenuEnd.display = "block" 
		}
  		else {
   			thisMenu.display = "block"
			thisMenuEnd.display = "none" 
		}
   		return false 
	}
 	else {
  		return true 
	} 
}



function correctPNG() {
	for(var i=0; i<document.images.length; i++)
	{
	  var img = document.images[i];
	  var imgName = img.src.toUpperCase();
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
		 {
		 var imgID = (img.id) ? "id='" + img.id + "' " : "";
		 var imgClass = (img.className) ? "class='" + img.className + "' " : "";
		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
		 var imgStyle = "display:inline-block;";
		 if (img.align == "left") imgStyle = "float:left;" + imgStyle;
		 if (img.align == "right") imgStyle = "float:right;" + imgStyle;
		 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;	
		 var strNewHTML = "<span " + imgID + imgClass + imgTitle
		 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
		 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
		 img.outerHTML = strNewHTML;
		 i = i-1;
		 }
		 
	}
	
}


function adjustHeight(){  

	var divName = 'leftcontent';
	var offsetValue = 230;
	var parent = 'wrappercontent';
	
	if (self.innerHeight)
	{
		winHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		winHeight = document.documentElement.clientHeight;
	}
	else if (document.body)
	{
		winHeight = document.body.clientHeight;
	}
	
	if (parent) {
		var winHeight  = document.getElementById(parent).offsetHeight; 
	}
	
	if (winHeight > 0) { 
		var contentElement = document.getElementById(divName); 
		var contentheight = contentElement.offsetHeight; 
		
		if (winHeight - contentheight > 0) { 	
			winHeight = winHeight - offsetValue; 
			contentElement.style.height = winHeight + "px";
		} 
	} 
			
}
 
window.addEventListener?window.addEventListener("load",adjustHeight,false):window.attachEvent("onload",adjustHeight);

