var xmlHttp

setCookie('hcl', '');

mouseover_timer = 0;

function showDataMO(hlid) {

  hlaid = hlid;
  
  mouseover_timer = 1;

  setCookie('hclMOv', hlid);
//" + hlid + "
  setTimeout("showDataMOProcess()", 1000);
  
} // end function


function showDataMOT() {
  
  mouseover_timer = 0;

  setCookie('hclMOv', '');
    
} // end function


function showDataMOProcess() {

 //alert( + "\n" + mouseover_timer)

  if(getCookie('hclMOv') != null && getCookie('hclMOv') != "") {
  
     hlhref = document.getElementById(hlaid).href;

     hlhref = hlhref.replace("javascript:showData('", "");
     hlhref = hlhref.replace("')", "");

     hlhref_data = hlhref.split("','");
  
     showData(hlhref_data[0], hlhref_data[1]);

  } // end if
  
} // end function


function showData(v, url) { 

 ov = getCookie('hcl');

 setCookie('hcl', v);


 if(v != ov) {

    if(ov != "" && ov != null) {
       document.getElementById("HCL_LEFT_IMG" + ov).src = "graphics/menu/leftmenuc.jpg";
       document.getElementById("HCL_MID_BG" + ov).style.backgroundImage = "url('graphics/menu/menurpc.jpg')";
       document.getElementById("HLa" + ov).className = "HomeLinksMainTitles";
       document.getElementById("HCL_RIGHT_IMG" + ov).src = "graphics/menu/rightmenuc.jpg";
    }
    
    document.getElementById("loading_msg").style.display = "block";
    document.getElementById("dataContentsArea").innerHTML = "&nbsp;";

    document.getElementById("HCL_LEFT_IMG" + v).src = "graphics/menu/leftmenuo.jpg";
    document.getElementById("HCL_MID_BG" + v).style.backgroundImage = "url('graphics/menu/menurpo.jpg')";
    document.getElementById("HLa" + v).className = "HomeLinksMainTitlesSel";
    document.getElementById("HCL_RIGHT_IMG" + v).src = "graphics/menu/rightmenuo.jpg";
 
    xmlHttp=GetXmlHttpObject();

    if(xmlHttp==null) {
       alert ("Browser does not support HTTP Request")
       return
    }

    xmlHttp.onreadystatechange=stateChanged 
    
    xmlHttp.open("GET",url,true)

    xmlHttp.send(null)
 
 } // end if
 
} // end function

function stateChanged() {
 
 if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
    document.getElementById("loading_msg").style.display = "none";
    document.getElementById("dataContentsArea").innerHTML=xmlHttp.responseText 
  }
   
} // end function

function GetXmlHttpObject() {

 var xmlHttp=null;

 try {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
 }
 catch (e) {
  //Internet Explorer
  try  {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
  catch (e)  {
   xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }

 return xmlHttp;

} // end function


//Get Cookie Function
function getCookie(name) {
	var cname = name + "=";
	var dc = document.cookie;
	
	if (dc.length > 0) {
		begin = dc.indexOf(cname);
		if (begin != -1) {
			begin += cname.length;
			end = dc.indexOf(";", begin);
			if (end == -1) end = dc.length;
				return unescape(dc.substring(begin, end));
		}
	}
	return null;
}

//Set Cookie Function
function setCookie(name, value, expires, path, domain, secure) {
	document.cookie = name + "=" + escape(value) + 
	((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
	((path == null) ? "" : "; path=" + path) +
	((domain == null) ? "" : "; domain=" + domain) +
	((secure == null) ? "" : "; secure");
}


