document.body.style.paddingTop="25px";
var getElementsByClassName=function(d,h,g){getElementsByClassName=document.getElementsByClassName?function(c,a,b){b=b||document;c=b.getElementsByClassName(c);a=a?RegExp("\\b"+a+"\\b","i"):null;b=[];for(var f,e=0,i=c.length;e<i;e+=1){f=c[e];if(!a||a.test(f.nodeName))b.push(f)}return b}:document.evaluate?function(c,a,b){a=a||"*";b=b||document;var f=c.split(" "),e="",i=document.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?"http://www.w3.org/1999/xhtml":null;c=[];for(var k,j=0,l=f.length;j<
l;j+=1)e+="[contains(concat(' ', @class, ' '), ' "+f[j]+" ')]";try{k=document.evaluate(".//"+a+e,b,i,0,null)}catch(m){k=document.evaluate(".//"+a+e,b,null,0,null)}for(;a=k.iterateNext();)c.push(a);return c}:function(c,a,b){a=a||"*";b=b||document;var f=c.split(" ");c=[];a=a==="*"&&b.all?b.all:b.getElementsByTagName(a);b=[];var e;e=0;for(var i=f.length;e<i;e+=1)c.push(RegExp("(^|\\s)"+f[e]+"(\\s|$)"));i=0;for(var k=a.length;i<k;i+=1){f=a[i];e=false;for(var j=0,l=c.length;j<l;j+=1){e=c[j].test(f.className);
if(!e)break}e&&b.push(f)}return b};return getElementsByClassName(d,h,g)};function loadXMLDoc(d){rurbarReq=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");rurbarReq.onreadystatechange=function(){if(rurbarReq.readyState==4&&(rurbarReq.status==200||window.location.href.indexOf("http")==-1))loadEffects()};rurbarReq.open("GET",d,true);rurbarReq.send("")}function setRurBarWidth(){document.body.style.marginRight="0"}
startForumsList=function(){if(document.all&&document.getElementById){setRurBarWidth();var d=document.getElementById("rurbar-forums");d.onmouseover=function(){document.getElementById("rurbar-forums-dropdown").className+=" over"};d.onmouseout=function(){document.getElementById("rurbar-forums-dropdown").className=document.getElementById("rurbar-forums-dropdown").className.replace(" over","")};d=getElementsByClassName("rurbar-parent");for(var h=0;h<d.length;h++){var g=d[h];if(g.nodeName=="LI"){g.onmouseover=
function(){this.childNodes[1].className+=" over"};g.onmouseout=function(){this.childNodes[1].className=this.className.replace(" over","")}}}}};
startSitesList=function(){if(document.all&&document.getElementById){var d=document.getElementById("rurbar-sites");d.onmouseover=function(){document.getElementById("rurbar-sites-dropdown").className+=" over"};d.onmouseout=function(){document.getElementById("rurbar-sites-dropdown").className=document.getElementById("rurbar-sites-dropdown").className.replace(" over","")};d=document.getElementById("rurbar-magazines");d.onmouseover=function(){document.getElementById("rurbar-magazines-dropdown").className+=
" over"};d.onmouseout=function(){document.getElementById("rurbar-magazines-dropdown").className=document.getElementById("rurbar-magazines-dropdown").className.replace(" over","")};d=document.getElementById("rurbar-rest");d.onmouseover=function(){document.getElementById("rurbar-rest-dropdown").className+=" over"};d.onmouseout=function(){document.getElementById("rurbar-rest-dropdown").className=document.getElementById("rurbar-rest-dropdown").className.replace(" over","")}}};
function loadEffects(){function d(){var a=document.getElementById("news-scroll"),b=a.getElementsByTagName("a")[0];a.removeChild(b);a.appendChild(b)}function h(){news_interval=window.clearInterval(news_interval)}function g(){news_interval=window.setInterval(d,8E3)}var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("href","http://terminus.teslix.com/~acafon/rurbar/rurbar.css");document.getElementsByTagName("head")[0].appendChild(c);c=document.createElement("div");
c.setAttribute("id","rurbar");document.getElementsByTagName("body")[0].appendChild(c);document.getElementById("rurbar").innerHTML=rurbarReq.responseText;startForumsList();startSitesList();news_interval=0;document.getElementById("news-scroll").onmouseover=h;document.getElementById("news-scroll").onmouseout=g;document.getElementById("rurbar-next-news").onmouseover=h;document.getElementById("rurbar-next-news").onmouseout=g;document.getElementById("rurbar-next-news").onclick=d;document.getElementById("rurbar-previous-news").onmouseover=
h;document.getElementById("rurbar-previous-news").onmouseout=g;document.getElementById("rurbar-previous-news").onclick=function(){var a=document.getElementById("news-scroll"),b=a.getElementsByTagName("a")[0],f=a.getElementsByTagName("a")[a.getElementsByTagName("a").length-1];a.removeChild(f);a.insertBefore(f,b)};g()}loadXMLDoc("/loadrurbar.php");
