var requestedChart="";var xmlhttp=null;var openCharts=new Array();var _from,_to,_row,_col;var _high,_low,_close;function initCharts(){xmlhttp=createXMLHttpRequest();}function createXMLHttpRequest(){if(window.XMLHttpRequest){return new XMLHttpRequest();}else{if(typeof XMLHttpRequest=="undefined"){XMLHttpRequest=function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0");}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0");}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(a){}try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(a){}throw new Error("This browser does not support XMLHttpRequest.");};}}}function closeTip(){UnTip();requestedChart="";hilite("off");}function hilite(){if(arguments.length>0&&arguments[0]=="off"){for(var d=openCharts.pop();d!=null;d=openCharts.pop()){var b=document.getElementById(d);if(b){b.innerHTML=b.innerHTML.replace(/<strong>(.*?)<\/strong>/i,"$1");}}}else{if(arguments.length==4){var a=document.getElementById(arguments[0]+arguments[1]+arguments[2]+arguments[3]);
if(a){a.innerHTML="<strong>"+a.innerHTML+"</strong>";}}}}function showTip(d){try{var b=d.split(",",4);_to=to=b[0];_from=from=b[1];_row=row=b[2];_col=col=b[3];closeTip();if(xmlhttp==null){xmlhttp=createXMLHttpRequest();}xmlhttp.onreadystatechange=function(){};xmlhttp.abort();var a="/currency/jsp/chartdata.jsp?"+to+","+from+","+row+","+col;xmlhttp.open("GET",a,true);xmlhttp.onreadystatechange=_showTip;xmlhttp.send(null);}catch(c){}return false;}function _showTip(){if(xmlhttp.readyState==4&&xmlhttp.status==200){var g=_from;var f=_to;var d=_row;var b=_col;var c=xmlhttp.responseText;var a=(b<6)?42:-335;var e=-22;Tip(c,FIX,[f+g+d+b,a,e],LEFT,true);requestedChart=f+","+g+","+d+","+b;hilite(f,g,d,b);openCharts.push(f+g+d+b);}}function showInfo(a){try{if(a){if(typeof a=="object"){a.style.display="block";}else{if(typeof a=="string"){document.getElementById(a).style.display="block";}}}else{document.getElementById("infotext").style.display="block";}}catch(b){}}function hideInfo(a){try{if(a){if(typeof a=="object"){a.style.display="none";
}else{if(typeof a=="string"){document.getElementById(a).style.display="none";}}}else{document.getElementById("infotext").style.display="none";}}catch(b){}}function toggleInfo(b){try{var a=null;if(arguments.length==0){a=document.getElementById("infotext");}else{a=document.getElementById(b);}if(a.style.display!="block"){showInfo(a);}else{hideInfo(a);}}catch(c){}}var refreshHandle=null;function stopRefresh(){if(window.clearTimeout&&refreshHandle!=null){window.clearTimeout(refreshHandle);refreshHandle=null;}}function startRefresh(){stopRefresh();if(window.setTimeout&&window.location&&window.location.reload){refreshHandle=window.setTimeout("window.location.reload()",60000);}}initCharts();