var request;var dest;var anch;function i_js(_1){var _2=document.getElementsByTagName("head").item(0);var js=document.createElement("script");js.setAttribute("language","javascript");js.setAttribute("type","text/javascript");js.setAttribute("src",_1);_2.appendChild(js);return false;}function r_js(_4){var _5=document.getElementById(_4);if(null!=_5){with(_5){var _6=_5.getElementsByTagName("script");for(i in _6){var _7=_6[i].src;if(null!=_7){if(_5.getElementsByTagName("script")[0].src.indexOf(".js")!=-1){i_js(_7);}}}}}}function showLoading(){if(typeof _8=="undefined"||typeof _9=="undefined"){var _8;var _9;if(typeof(window.innerWidth)=="number"){_8=window.innerWidth;_9=window.innerHeight;}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){_8=document.documentElement.clientWidth;_9=document.documentElement.clientHeight;}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){_8=document.body.clientWidth;_9=document.body.clientHeight;}}}}var _a=Math.round((_8-70)/2);var _b=Math.round(((_9-46)/3)+46)+ss_getCurrentYPos();document.getElementById("ploading").style.left=_a+"px";document.getElementById("ploading").style.top=_b+"px";document.getElementById("ploading").style.display="block";}function hideLoading(){document.getElementById("ploading").style.display="none";}function getAnchorPosition(_c){if(document.layers){var _d=document.anchors[_c];return{x:_d.x,y:_d.y};}else{if(document.getElementById){var _d=document.anchors[_c];var _e={x:0,y:0};while(_d){_e.x+=_d.offsetLeft;_e.y+=_d.offsetTop;_d=_d.offsetParent;}return _e;}}}function ss_getCurrentYPos(){if(document.body&&document.body.scrollTop){return document.body.scrollTop;}if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop;}if(window.pageYOffset){return window.pageYOffset;}return 0;}function AnchorPosition_getPageOffsetLeft(el){var ol=el.offsetLeft;while((el=el.offsetParent)!=null){ol+=el.offsetLeft;}return ol;}function AnchorPosition_getWindowOffsetLeft(el){return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;}function AnchorPosition_getPageOffsetTop(el){var ot=el.offsetTop;while((el=el.offsetParent)!=null){ot+=el.offsetTop;}return ot;}function AnchorPosition_getWindowOffsetTop(el){return AnchorPosition_getPageOffsetTop(el)-document.body.scrollTop;}function getAnchorPosition(_15){var _16=false;var _17=new Object();var x=0,y=0;var _1a=false,_1b=false,_1c=false;if(document.getElementById){_1a=true;}else{if(document.all){_1b=true;}else{if(document.layers){_1c=true;}}}if(_1a&&document.all){x=AnchorPosition_getPageOffsetLeft(document.all[_15]);y=AnchorPosition_getPageOffsetTop(document.all[_15]);}else{if(_1a){var o=document.getElementById(_15);x=AnchorPosition_getPageOffsetLeft(o);y=AnchorPosition_getPageOffsetTop(o);}else{if(_1b){x=AnchorPosition_getPageOffsetLeft(document.all[_15]);y=AnchorPosition_getPageOffsetTop(document.all[_15]);}else{if(_1c){var _1e=0;for(var i=0;i<document.anchors.length;i++){if(document.anchors[i].name==_15){_1e=1;break;}}if(_1e==0){_17.x=0;_17.y=0;return _17;}x=document.anchors[i].x;y=document.anchors[i].y;}else{_17.x=0;_17.y=0;return _17;}}}}_17.x=x;_17.y=y;return _17;}function processStateChange(){var _20;if(request.readyState==4){contentDiv=document.getElementById(dest);if(request.status==200){hideLoading();window.scroll(0,0);response=request.responseText;contentDiv.innerHTML=response;set_anchor(anch);r_js(dest);window.status="";}else{if(request.status==0){return;}contentDiv.innerHTML="Error: Status "+request.status;}}}function find_anchor(url){var s=url;if(s.indexOf("drivers")!=-1){anch=2;}if(s.indexOf("other")!=-1){anch=3;}}function wait_set_anchor(){if(anch){if(anch==2){window.location.hash="#drivers";}if(anch==3){window.location.hash="#other";}}}function set_anchor(an){if(an){if(navigator.appName=="Microsoft Internet Explorer"){if(an==2){window.scroll(0,getAnchorPosition("drivers").y);}if(an==3){window.scroll(0,getAnchorPosition("other").y);}}else{if(navigator.userAgent.toLowerCase().indexOf("opera")!=-1){window.setTimeout("wait_set_anchor()",100);}else{if(an==2){window.location.hash="#drivers";}if(an==3){window.location.hash="#other";}}}}}function set_window_top(){if(navigator.appName=="Microsoft Internet Explorer"){window.scroll(0,0);}else{window.location.hash="top";}}function get_url(URL,_25){var st=URL;dest=_25;anch=0;find_anchor(URL);if(request){request.abort();}showLoading();if(window.XMLHttpRequest){request=new XMLHttpRequest();request.onreadystatechange=processStateChange;request.open("GET",URL,true);request.send(null);}else{if(window.ActiveXObject){request=new ActiveXObject("Microsoft.XMLHTTP");if(request){request.onreadystatechange=processStateChange;request.open("POST",URL,true);request.send();}}}}function isFile(str){var O=AJ();if(!O){return false;}try{O.open("HEAD",str,false);O.send(null);return(O.status==200)?true:false;}catch(er){return false;}}function AJ(){var obj;if(window.XMLHttpRequest){obj=new XMLHttpRequest();}else{if(window.ActiveXObject){try{obj=new ActiveXObject("MSXML2.XMLHTTP.3.0");}catch(er){obj=false;}}}return obj;}function dwl_file_clear(){dwlfrm=document.getElementById("dwlframe");dwlfrm.src="";}function php_file_exists(url){var req=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();var str;if(!req){throw new Error("XMLHttpRequest not supported");}req.open("GET",url,false);req.send(null);if(req.status==200){str=req.responseText;if(str.indexOf("filefind")!=-1){return true;}else{return false;}}return false;}function get_file(URL){var _2e=URL;var _2f="http://"+document.domain;var _30;if(_2e.indexOf("download.php?")!=-1){_30="dwlfind.php?"+_2e.substring(_2e.indexOf("?")+1);}if(php_file_exists(_30)){dwlfrm=document.getElementById("dwlframe");dwlfrm.src=URL;if(navigator.appName=="Microsoft Internet Explorer"){window.setTimeout("dwl_file_clear()",1500);}}else{get_url(URL,"mainview");}}