// JavaScript Document

/*** get mouse pointer coords ***/
var IE=document.all?true:false;
if(!IE){document.captureEvents(Event.MOUSEMOVE)}
var tempX=0;
var tempY=0;
function getMouseXY(e){
	var XY=(IE)?[event.clientX+document.body.scrollLeft,event.clientY+document.body.scrollTop]:[e.pageX,e.pageY];
	tempX=XY[0];tempY=XY[1];
	return true;
}
document.onmousemove=getMouseXY;

function showYAHOOchart(arg3,arg4,arg5,arg6,arg7,s){
	hideYAHOOchart();
	var html = "<span>"+s+"</span>&nbsp;&nbsp;&nbsp;"+arg3+"&nbsp;<span class=\""+arg4+"\">"+arg5+"</span>&nbsp;<img border=\"0\" src=\""+arg6+"\" hspace=\"3\">&nbsp;(<span class=\""+arg4+"\">"+arg7+"%</span>)";
	document.getElementById('BDR_YAHOO_chart_title').innerHTML = html;
	document.getElementById('BDR_YAHOO_chart_image').style.backgroundImage = "url(http://ichart.finance.yahoo.com/w?s=" + s + "&randomstring="+Math.random()+")";
	document.getElementById('BDR_YAHOO_chart').style.left = ""+(tempX - 185)+"px";
	document.getElementById('BDR_YAHOO_chart').style.top = ""+(tempY + 40)+"px";
	document.getElementById('BDR_YAHOO_chart').style.display = "block";
	document.getElementById('BDR_YAHOO_chart').style.visibility = "inherit";
}

function hideYAHOOchart(){
	document.getElementById('BDR_YAHOO_chart').style.display = "none";
	document.getElementById('BDR_YAHOO_chart').style.visibility = "hidden";
}

function showYAHOOfxchart(img,s){
	hideYAHOOfxchart();
	var html = "<span>"+s+"</span>&nbsp;&nbsp;&nbsp;<span class=\"BDR_YAHOO_fximage\"><img border=\"0\" src=\""+img+"\" hspace=\"3\"></span>";
	document.getElementById('BDR_YAHOO_fxchart_title').innerHTML = html;
	document.getElementById('BDR_YAHOO_fxchart_image').style.backgroundImage = "url(http://ichart.finance.yahoo.com/w?s=" + s + "&randomstring="+Math.random()+")";
	document.getElementById('BDR_YAHOO_fxchart').style.left = ""+(tempX - 185)+"px";
	document.getElementById('BDR_YAHOO_fxchart').style.top = ""+(tempY + 40)+"px";
	document.getElementById('BDR_YAHOO_fxchart').style.display = "block";
	document.getElementById('BDR_YAHOO_fxchart').style.visibility = "inherit";
}

function hideYAHOOfxchart(){
	document.getElementById('BDR_YAHOO_fxchart').style.display = "none";
	document.getElementById('BDR_YAHOO_fxchart').style.visibility = "hidden";
}
