// JavaScript Document

function rmTooltip(tid,divPosOBJ){
	var tooltipOBJ = document.getElementById('tooltip');
	var tooltipConOBJ = document.getElementById('tooltip_content');

	newPos = getDIVPosABSO(divPosOBJ);

	tooltipOBJ.style.position = 'absolute';
	tooltipOBJ.style.top = (newPos[1]+40)+'px';
	tooltipOBJ.style.left = (newPos[0]-100)+'px';
	tooltipConOBJ.innerHTML = document.getElementById('rmText_'+tid).value;
	tooltipOBJ.style.display = 'block';
}

function playRM(tid,rmid,divPos){
	rmPlayerBOXobj = document.getElementById('rmPlayerBOX');
	rmPlayerBOXobj.innerHTML = "<span style=\"background: #EAEAEA;\">Loading Player. Please Wait...</span>";

	var s1 = new SWFObject(sdom+"flash/mplayer.swf","ply","488","120","9","");
	s1.addParam("allowfullscreen","true");
	s1.addParam("wmode","transparent");
	s1.addParam("bgcolor","#000000");
	s1.addParam("allownetworking","all");
	s1.addParam("allowscriptaccess","always");
	s1.addParam("flashvars","rmid="+rmid+"&sdomain="+sdom+"&tid="+tid);	
	s1.write("rmPlayerBOX");

	divPosOBJ = document.getElementById(divPos);
	newPos = getDIVPosABSO(divPosOBJ);
	rmPlayerBOXobj.style.top = (newPos[1]-100)+'px';
	rmPlayerBOXobj.style.left = (newPos[0]+2)+'px';
	rmPlayerBOXobj.style.display = 'block';
}

function hideRMPlayer(){
	rmPlayerBOXobj = document.getElementById('rmPlayerBOX');
	rmPlayerBOXobj.style.display = 'none';
}
