__cached_tooltip = null;__current_tooltip_id = null;__current_comp = null;__tooltip_timeout_id = null;
function showTooltip(id, comp) {var i = id.lastIndexOf('#');if (i > 0) id = id.substring(0, i);if (__current_comp == comp) return;if (__cached_tooltip == null) {__cached_tooltip = {};document.body.onmousemove=getMousePos;}__current_tooltip_id = id;__current_comp = comp;if (__tooltip_timeout_id) clearTimeout(__tooltip_timeout_id);__tooltip_timeout_id = setTimeout("showTooltip0(\""+id+"\")", 300);}
function showTooltip0(id) {__tooltip_timeout_id = null;if (__current_comp == null || __current_tooltip_id == null) return;if (__cached_tooltip[__current_tooltip_id]) {displayTooltip(__cached_tooltip[__current_tooltip_id]);return;}var url = id + "l";var xmlrequest = createXMLHttpRequest();xmlrequest.onreadystatechange = function (){if ( xmlrequest.readyState == 4 && xmlrequest.status == 200) {__cached_tooltip[id] = xmlrequest.responseText;if (id == __current_tooltip_id)displayTooltip(xmlrequest.responseText);}};xmlrequest.open("GET", url, true);xmlrequest.send("");}
function hideTooltip() {if (__tooltip_timeout_id) clearTimeout(__tooltip_timeout_id);if (__current_comp && __current_comp.title == "" && __current_comp._title ) __current_comp.title = __current_comp._title;__tooltip_timeout_id = null;__current_tooltip_id = null;__current_comp = null;var div = E("game_tooltip");if (div) {div.style.display = "none";}}var agt=navigator.userAgent.toLowerCase();  var isie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1) && (agt.indexOf("omniweb") == -1));  var mouse_pos = {x:0, y:0};(new Image()).src = "http://www.flashrolls.com/css/tooltip.png";if (isie) (new Image()).src = "http://www.flashrolls.com/css/tooltip.gif";
function IeTrueBody(){return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;}  
function getMousePos(e){mouse_pos.x = (!isie)?e.pageX : event.clientX+IeTrueBody().scrollLeft;mouse_pos.y = (!isie)?e.pageY : event.clientY+IeTrueBody().scrollTop;}
function mouseoutTooltip(e) {if (e) {var reltg = null;try {reltg = e.relatedTarget;} catch (e) {}if (!reltg) reltg = e.toElement;while (reltg) {if (reltg == __current_comp || reltg == div) return false;reltg = reltg.parentNode;}}var div = E("game_tooltip");if (!div) {__current_tooltip_id = null;__current_comp = null;return true;}hideTooltip();return true;}
function displayTooltip(html) {var div = E("game_tooltip");if (!div) {div = document.createElement("div");div.id = "game_tooltip";div.style.display = "none";div.onmouseout = function(event) {mouseoutTooltip(event);};document.body.appendChild(div);}div.innerHTML = html;var max_width = document.body.clientWidth;if (mouse_pos.x + 300 > max_width) {div.style.left = max_width - 300 + "px";} else {div.style.left = mouse_pos.x + "px";}div.style.top = mouse_pos.y + 1 + "px";if (!__current_comp._title) __current_comp._title = __current_comp.title;__current_comp.title = "";div.style.display = "";}