if(navigator.userAgent.indexOf("MSIE")==-1){var loadimg=new Image();loadimg.src="/img/loadinganim.gif";document.images.loadimg=loadimg}function showbox(c,b,a){load_box(c,a)}function load_box(c,b){var a=1;while(document.getElementById("loadbox"+a)&&document.getElementById("loadbox"+a).style.visibility=="visible"){a++}if(!document.getElementById("loadbox"+a)){createloadbox(a)}box=document.getElementById("loadbox"+a);box.innerHTML=c;if(parseInt(b)>0){box.style.width=b}center_element(box,parseInt(box.clientHeight/2),parseInt(box.clientWidth/2));window.onscroll=new Function("var box=document.getElementById('loadbox"+a+"');center_element(box,parseInt(box.clientHeight/2),parseInt(box.clientWidth/2));")}function hidebox(a){box=document.getElementById("loadbox"+a);box.style.visibility="hidden";box.style.left="-500px";window.onscroll=null}function createloadbox(a){var b=document.createElement("div");b.setAttribute("id","loadbox"+a);b.className="loadbox";document.body.appendChild(b)};