var is3dok=false;var timershell;var _pbTE=false;var _TEOk=true;var is_mac=0;var is_linux=0;var is_win32=0;var SGERR_MULTIPLE_TABS=-2147220989;function check3d(_1){var _2;if(!/.*erreurOS\.do.*/.test(location.href)){platformSniffer(abspath()+"/erreurOS.do");}if(is_win32){if(!DetectTE(__versionTE,__freezeTE)){if(location.href.match(".*erreurTE.do.*")==null){_2=abspath()+"/erreurTE.do";if(_1){return _2;}else{window.location.href=_2;}}}else{var _3=navigator.appName;if(_3=="Microsoft Internet Explorer"){var _4=CheckBrowserVersion(__versionIE);if(!_4){var _2=abspath()+"/erreurIE.do";if(_1){return _2;}else{window.location.href=_2;}}else{is3dok=true;if(_1){return null;}}}else{var _5=window.location.search.indexOf("?");var _6="";if(_5!=-1){_6=window.location.search.substring(_5);}var _2=abspath()+"/indexshell.do"+_6;timershell=setTimeout("timer_shell()",500);window.location.href=_2;}}}if(is_linux){if(!DetectTELinux(__versionTELinux,__freezeTELinux)){window.location.href=abspath()+"/erreurTE.do";}else{is3dok=true;if(_1){return null;}}}}function DetectTE(_7,_8){var _9=navigator.userAgent.toLowerCase();if(_9.indexOf("msie")!=-1&&_9.indexOf("win")!=-1){return DetectTEOnIE(_7,_8);}else{return DetectTEMisc(_7,_8);}}function DetectTEMisc(_a,_b){var _c="application/Skyline.TerraExplorer";var _d=navigator.mimeTypes[_c];if(typeof(_d)=="undefined"||_d==""){return _pbTE;}if(typeof(_a)=="undefined"||_a==""){return _TEOk;}_c=_c+"."+_a;_d=navigator.mimeTypes[_c];if(typeof(_d)=="undefined"||_d==""){return _pbTE;}return _TEOk;}function DetectTELinux(_e,_f){var _10="Skyline TerraExplorer";var _11=navigator.plugins[_10];var _12;if(typeof(_11)=="undefined"||_11==""){return _pbTE;}if(typeof(_e)=="undefined"||_e==""){return _TEOk;}_12=_11.description.substring(_11.description.lastIndexOf(" "));if(parseFloat(_e)>parseFloat(_12.substring(0,_e.length+1))){return _pbTE;}if(parseFloat(_e)==parseFloat(_12.substring(0,_e.length+1))){if(parseFloat(_f)>parseFloat(_12.substring(_12.length,_f.length+1))){return _pbTE;}}return _TEOk;}function DetectTEMAC(_13,_14){return DetectTELinux(_13,_14);}function DetectTEOnIE(_15,_16){try{var _17=new ActiveXObject("TEDetect.TETest");if(typeof(_17)=="undefined"){return _pbTE;}if(_17.Type=="NA"){return _pbTE;}if(typeof(_15)=="undefined"||_15==""){return _TEOk;}if(typeof(_17.Major)=="undefined"||typeof(_17.Minor)=="undefined"||typeof(_17.Build)=="undefined"||typeof(_17.Freeze)=="undefined"){return _pbTE;}var _18=_17.Major+"."+_17.Minor+"."+_17.Build;var _19=_17.Freeze;if((_18<_15)||((_18==_15)&&(parseInt(_19)<parseInt(_16)))){return _pbTE;}}catch(err){return _pbTE;}return _TEOk;}function CheckBrowserVersion(_1a){var ua=window.navigator.userAgent;var _1c=ua.indexOf("MSIE ");if(_1c>0){if(ua.substring(_1c+5,ua.indexOf(";",_1c))<_1a){return false;}}else{return false;}return true;}function timer_shell(){window.location.href=abspath()+"/index.do";}function abspath(){var url=unescape(window.location.href);var _1e=url.indexOf("//")+2;var _1f=url.substring(0,url.indexOf("/",_1e));var _20=_1f;var reg=new RegExp("file:///","g");_20=_20.replace(reg,"");return _20;}function platformSniffer(url){var agt=navigator.userAgent.toLowerCase();is_mac=(agt.indexOf("mac")!=-1);var _24=((agt.indexOf("os/2")!=-1)||(navigator.appVersion.indexOf("OS/2")!=-1)||(agt.indexOf("ibm-webexplorer")!=-1));is_linux=(agt.indexOf("inux")!=-1);var _25=((agt.indexOf("win")!=-1)||(agt.indexOf("16bit")!=-1));var _26=((agt.indexOf("win95")!=-1)||(agt.indexOf("windows 95")!=-1));var _27=((agt.indexOf("win16")!=-1)||(agt.indexOf("16bit")!=-1)||(agt.indexOf("windows 3.1")!=-1)||(agt.indexOf("windows 16-bit")!=-1));var _28=((agt.indexOf("windows 3.1")!=-1)||(agt.indexOf("win16")!=-1)||(agt.indexOf("windows 16-bit")!=-1));var _29=((agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1));var _2a=((agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1));is_win32=(_26||_2a||_29||(navigator.platform=="Win32")||(agt.indexOf("win32")!=-1)||(agt.indexOf("32bit")!=-1));}if(is3D){platformSniffer("");if(is_linux){if(!DetectTELinux(__versionTELinux,__freezeTELinux)){window.location.href=abspath()+"/erreurTE.do";}else{is3dok=true;}}if(is_mac){if(!DetectTEMAC(__versionTEMac,__freezeTEMac)){window.location.href=abspath()+"/erreurTE.do";}else{is3dok=true;}}if(is_win32){check3d();}}