
a=new Array(10);function ajax(){var xmlHttp;try{xmlHttp=new XMLHttpRequest();}catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHttp");}catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHttp");}catch(e){alert("Your browser does not support AJAX!");return false;}}}return xmlHttp;}
var goto_top_type=-1;var goto_top_itv=0;function goto_top_timer(){var y=goto_top_type==1?document.documentElement.scrollTop:document.body.scrollTop;var moveby=15;y-=Math.ceil(y*moveby/100);if(y<0)
y=0;if(goto_top_type==1)
document.documentElement.scrollTop=y;else
document.body.scrollTop=y;if(y==0){clearInterval(goto_top_itv);goto_top_itv=0;}}
function goto_top(){if(goto_top_itv==0){if(document.documentElement&&document.documentElement.scrollTop)
goto_top_type=1;else if(document.body&&document.body.scrollTop)
goto_top_type=2;else
goto_top_type=0;if(goto_top_type>0)
goto_top_itv=setInterval('goto_top_timer()',25);}}
function req(page)
{if(!a[page])
{var NI=ajax();if(NI)
{NI.open("GET","rpc.php?page="+page,true);var divTag=document.createElement("div");divTag.id="loading";divTag.setAttribute("style","display:block");divTag.innerHTML='<img alt="" src="images/large-loading.gif"/>';document.getElementById('r-left').appendChild(divTag);goto_top();NI.onreadystatechange=function(){if(NI.readyState==4){if(NI.status==200){a[page]=NI.responseText;document.getElementById('r-left').innerHTML=a[page];}}};NI.send(null);}}
else
{goto_top();document.getElementById('r-left').innerHTML=a[page];}
return false;}