if(document.getElementById("cnav")!=null){
	startList = function() {
	if (document.all&&document.getElementById) {
	navRoot = document.getElementById("cnav");
	for (i=0; i<navRoot.childNodes.length; i++) {
	node = navRoot.childNodes[i];
	if (node.nodeName=="LI") {
	node.onmouseover=function() {
	this.className+=" over";
	  }
	  node.onmouseout=function() {
	  this.className=this.className.replace(" over", "");
	   }
	   }
	  }
	 }
	}
	window.onload=startList;
}
function switchMnu(sID){
	aMenus=document.getElementById('mnuDivs').value.split(",");
	for(i=0;i<aMenus.length;i++){
		document.getElementById(aMenus[i]).style.display='none';
	}
	document.getElementById(sID).style.display='block';
}
function Get_Cookie(name){
    var start = document.cookie.indexOf(name+"=");
    var len = start+name.length+1;
    if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
    if (start == -1) return null;
    var end = document.cookie.indexOf(";",len);
    if (end == -1) end = document.cookie.length;
    return unescape(document.cookie.substring(len,end));
}
function Set_Cookie(name,value,expires,path,domain,secure){
    document.cookie = name + "=" +escape(value) +
        ( (expires) ? ";expires=" + expires.toGMTString() : "") +
        ( (path) ? ";path=" + path : "") + 
        ( (domain) ? ";domain=" + domain : "") +
        ( (secure) ? ";secure" : "");
}
function Delete_Cookie(name,path,domain){
    if (Get_Cookie(name)) document.cookie = name + "=" +
       ( (path) ? ";path=" + path : "") +
       ( (domain) ? ";domain=" + domain : "") +
       ";expires=Thu, 01-Jan-70 00:00:01 GMT";
}
function popUp(sPage, iWidth, iHeight, bCenter){
	if(bCenter == true){
		if(navigator.appName == "Microsoft Internet Explorer"){
			iY = document.body.offsetHeight;
			iX = window.screen.availWidth;
		}
		else{
			iY = window.outerHeight
			iX = window.outerWidth
		}
		iX = (iX / 2) - (iWidth / 2);
		iY = (iY / 2) - (iHeight / 2);
	}else{
		iX = 300;
		iY = 100;
	}
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(sPage, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + iWidth + ",height=" + iHeight + ",left = " + iX + ",top = " + iY + "');");
}
function xmlHTTPRequest(url, method, data){
  if (!method) method = "GET";
  if (!data) data = null;
  req = xmlHTTPRequestObject();

  if (req) {
   req.open (method, url, false);
   if(method=="POST") req.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
   req.send (data);
   return req.responseText;
  }
  return false;
}
function xmlHTTPAsyncRequest(url, method, data, callbackr){
  if (!method) method = "GET";
  if (!data) data = null;
  req = xmlHTTPRequestObject();
  if (req) {
   eval ('req.onreadystatechange = ' + callbackr + ';');
 req.open (method, url, true);
 req.send (data);
 return req
  }
}
function xmlHTTPRequestObject(){
 var obj = false;
 var objectIDs = new Array(
  "Microsoft.XMLHTTP",
  "Msxml2.XMLHTTP",
  "MSXML2.XMLHTTP.3.0",
  "MSXML2.XMLHTTP.4.0");
 var success = false;
 for (i=0; !success && i < objectIDs.length; i++){
  try {
   obj = new ActiveXObject(objectIDs[i]);
   success = true;
  } catch (e) { obj = false; }
 }
 if (!obj)
  obj = new XMLHttpRequest();
 return obj;
}
function isXMLHTTPRequestSupported(){
 return xmlHTTPRequestObject != null;
}
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;" + img.style.cssText
		 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
	     }
      }
   }
//window.attachEvent("onload", correctPNG);
