this.tooltip=function(){xOffset=40;yOffset=35;$("a.tooltip").hover(function(e){this.t=this.title;this.title="";$("body").append("<p id='tooltip'>"+this.t+"</p>");$("#tooltip").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX-yOffset)+"px").fadeIn("fast")},function(){this.title=this.t;$("#tooltip").remove()});$("a.tooltip").mousemove(function(e){$("#tooltip").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX-yOffset)+"px")})};$(document).ready(function(){tooltip()});var Behaviour={list:new Array,register:function(_3){Behaviour.list.push(_3)},start:function(){Behaviour.addLoadEvent(function(){Behaviour.apply()})},apply:function(){for(h=0;sheet=Behaviour.list[h];h++){for(selector in sheet){list=document.getElementsBySelector(selector);if(!list){continue}for(i=0;element=list[i];i++){sheet[selector](element)}}}},addLoadEvent:function(_4){var _5=window.onload;if(typeof window.onload!="function"){window.onload=_4}else{window.onload=function(){_5();_4()}}}};Behaviour.start();function getAllChildren(e){return e.all?e.all:e.getElementsByTagName("*")};document.getElementsBySelector=function(_7){if(!document.getElementsByTagName){return new Array()}var _8=_7.split(" ");var _9=new Array(document);for(var i=0;i<_8.length;i++){token=_8[i].replace(/^\s+/,"").replace(/\s+$/,"");if(token.indexOf("#")>-1){var _b=token.split("#");var _c=_b[0];var id=_b[1];var _e=document.getElementById(id);if(_c&&_e.nodeName.toLowerCase()!=_c){return new Array()}_9=new Array(_e);continue}if(token.indexOf(".")>-1){var _b=token.split(".");var _c=_b[0];var _f=_b[1];if(!_c){_c="*"}var _10=new Array;var _11=0;for(var h=0;h<_9.length;h++){var _13;if(_c=="*"){_13=getAllChildren(_9[h])}else{_13=_9[h].getElementsByTagName(_c)}for(var j=0;j<_13.length;j++){_10[_11++]=_13[j]}}_9=new Array;var _15=0;for(var k=0;k<_10.length;k++){if(_10[k].className&&_10[k].className.match(new RegExp("\\b"+_f+"\\b"))){_9[_15++]=_10[k]}}continue}if(token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){var _c=RegExp.$1;var _17=RegExp.$2;var _18=RegExp.$3;var _19=RegExp.$4;if(!_c){_c="*"}var _10=new Array;var _11=0;for(var h=0;h<_9.length;h++){var _13;if(_c=="*"){_13=getAllChildren(_9[h])}else{_13=_9[h].getElementsByTagName(_c)}for(var j=0;j<_13.length;j++){_10[_11++]=_13[j]}}_9=new Array;var _15=0;var _1a;switch(_18){case"=":_1a=function(e){return(e.getAttribute(_17)==_19)};break;case"~":_1a=function(e){return(e.getAttribute(_17).match(new RegExp("\\b"+_19+"\\b")))};break;case"|":_1a=function(e){return(e.getAttribute(_17).match(new RegExp("^"+_19+"-?")))};break;case"^":_1a=function(e){return(e.getAttribute(_17).indexOf(_19)==0)};break;case"$":_1a=function(e){return(e.getAttribute(_17).lastIndexOf(_19)==e.getAttribute(_17).length-_19.length)};break;case"*":_1a=function(e){return(e.getAttribute(_17).indexOf(_19)>-1)};break;default:_1a=function(e){return e.getAttribute(_17)}}_9=new Array;var _15=0;for(var k=0;k<_10.length;k++){if(_1a(_10[k])){_9[_15++]=_10[k]}}continue}if(!_9[0]){return}_c=token;var _10=new Array;var _11=0;for(var h=0;h<_9.length;h++){var _13=_9[h].getElementsByTagName(_c);for(var j=0;j<_13.length;j++){_10[_11++]=_13[j]}}_9=_10}return _9};var xmlhttp;if(!xmlhttp&&typeof XMLHttpRequest!="undefined"){try{xmlhttp=new XMLHttpRequest()}catch(e){xmlhttp=false}}function myXMLHttpRequest(){var _22;try{_22=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{_22=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){_22=false}}if(!_22&&typeof XMLHttpRequest!="undefined"){try{var _22=new XMLHttpRequest()}catch(e){var _22=false;alert("couldn't create xmlhttp object")}}return(_22)};function sndReq(_23,_24,_25,_26){var _27=document.getElementById("unit_ul"+_24);_27.innerHTML="<div class=\"loading\"></div>";xmlhttp.open("get","rpc.php?j="+_23+"&q="+_24+"&t="+_25+"&c="+_26);xmlhttp.onreadystatechange=handleResponse;xmlhttp.send(null)};function handleResponse(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){var _28=xmlhttp.responseText;var _29=new Array();if(_28.indexOf("|")!=-1){_29=_28.split("|");changeText(_29[0],_29[1])}}}};function changeText(_2a,_2b){var IE=(document.all)?1:0;var DOM=0;if(parseInt(navigator.appVersion)>=5){DOM=1}if(DOM){var _2e=document.getElementById(_2a);_2e.innerHTML=_2b}else{if(IE){document.all[_2a].innerHTML=_2b}}};var ratingAction={"a.rater":function(_2f){_2f.onclick=function(){var _30=this.href.replace(/.*\?(.*)/,"$1");var _31=_30.split("&");var _32=new Array();for(j=0;j<_31.length;j++){var _33=_31[j].replace(/(.*)=.*/,"$1");var _34=_31[j].replace(/.*=(.*)/,"$1");_32[_33]=_34}var _35=_32["q"];var _36=_32["j"];var _37=_32["t"];var _38=_32["c"];sndReq(_36,_35,_37,_38);return false}}};Behaviour.register(ratingAction);