var coolboxnames = new Array(); function closeAllCoolBoxes(){ for(var name in coolboxnames){ hide2(name); } } function changeCoolboxContent(id,contentpath,title){ req = false; // branch for native XMLHttpRequest object if(window.XMLHttpRequest) { try { req = new XMLHttpRequest(); } catch(e) { req = false; } // branch for IE/Windows ActiveX version } else if(window.ActiveXObject) { try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { req = false; } } } if(req) { req.onreadystatechange = function(){ if (req.readyState==4) { if(getRef(id+"_content")){ getRef(id+"_content").innerHTML=req.responseText; // getRef(id).style.left = ""; // getRef(id).style.right = 0; if(title){ if(contentpath=="map"){ title=""+title; } getRef(id+"_title").innerHTML=title; } } } } req.open("GET","/include/coolbox/"+contentpath, true); req.send(""); } else { alert("your browser does not support this functionallity."); document.location.href="index.jsp?coolbox-"+id+"="+path+"&D=2577"; } } function findPosX(obj) { var curleft = 0; if (obj.offsetParent) { while (obj.offsetParent) { curleft += obj.offsetLeft obj = obj.offsetParent; } } else if (obj.x) curleft += obj.x; return curleft; } function mapOver(id){ if(typeof(id)=="object"){ id = id.id; } id = id.split("_")[1]; var txtObj= getRef("txtdiv_"+id); if(txtObj) txtObj.className="location_over"; var imgObj= getRef("mapimg_"+id); if(imgObj){ imgObj.className=""; var circleObj = getRef("mapcircle"); circleObj.style.left = (parseInt(imgObj.style.left)+imgObj.width/2-circleObj.width/2)+"px"; circleObj.style.top =(parseInt(imgObj.style.top)+imgObj.height/2-circleObj.height/2)+"px"; circleObj.style.display=""; var showtxtObj = getRef("txtdetail"); showtxtObj.style.left = (parseInt(circleObj.style.left)-14)+"px"; showtxtObj.style.top =(parseInt(circleObj.style.top)+circleObj.height-4)+"px"; if(txtObj==null){ showtxtObj.innerHTML = id; } else { showtxtObj.innerHTML = txtObj.innerHTML; } showtxtObj.style.display=""; } } function mapOut(id){ if(typeof(id)=="object"){ var parts = id.id.split("_"); id=parts[1] for(var i=2; i