// JavaScript Document

//START HELP BALLONS VIDEO WALL
if($j(".helptext")){//if1 start
$j(".helptext").mousemove(
		function(e)
		{
				if($j("#helpballoon").size()>0)
				{
				t=(e.pageY-$j("#helpballoon").height()-5)+"px";//(t-tup)+"px";
				l=(e.pageX-13)+"px";//(l+lft+$(this).width())/2+"px";
				
				$j("#helpballoon").css({top:t,left:l,visibility:"visible"});
				}
		}
);

	$j(".helptext").hover(
		function(e)
		{

			if($j(this).attr("help_text"))
			{

				offset=$j(this).offset();
				t=offset.top
				l=offset.left

				if($j("#helpballoon").size()==0)
					$j(this).append("<div id='helpballoon' style='position:absolute;visibility:hidden;opacity:.8;'>"
								 +"<table width='120'  border='0' cellspacing='0' cellpadding='0' style='margin-bottom:-2px;'>"   
  +" <tr valign='top'>"    
    +" <td bgcolor='#FF6600' style='align:left;padding:5px;'>"+$j(this).attr("help_text")+"</td>"    
   +"</tr>"  
 +"</table>"

											 +"</div>");
				//triangle_html="<div class='triangle'><img src='../images/images_modified/video_wall_arrow.gif' style='margin-top:10px' /></div>"
				//$("#helpballoon").html($(this).attr("help_text")+triangle_html);
					
				$j("#helpballoon").fadeTo('fast',0.8);

var tup;
var lft;
				if($j.browser.msie)
				    {       tup=-20;
							lft=100;
						}else
						{   
							tup=60;
							lft=60;
							}
				
				t=e.pageY+"px";//(t-tup)+"px";
				l=e.pageX+"px";//(l+lft+$(this).width())/2+"px";
				$j("#helpballoon").css({top:t,left:l,visibility:"visible"});
				//alert(t);

			}	
		},
		function()
		{
			if($j("#helpballoon").size()>0)
				$j("#helpballoon").replaceWith("");//.css({visibility:"hidden"});

		}

	)
}//if1 end
//END HELP BALLON