if(navigator.appName&&navigator.appName.indexOf("Microsoft")!=-1&&navigator.userAgent.indexOf("Windows")!=-1&&navigator.userAgent.indexOf("Windows 3.1")==-1){document.write('<script language="VBScript">\n');document.write("On Error Resume Next\n");document.write("Sub GTScope_FSCommand(ByVal command, ByVal args)\n");document.write("	Call GTScope_DoFSCommand(command, args)\n");document.write("End Sub\n");document.write("<\/script>\n")}var isInternetExplorer=navigator.appName.indexOf("Microsoft")!=-1;var GTScopeObj;var iZoom=0;var maxRes=1200;var minRes=0.21;var curTab="divGeo";var bWheelActive=true;var myDate=new Date();var iObjectId=myDate.getTime();if(window.addEventListener){window.addEventListener("DOMMouseScroll",wheel,false)}window.onmousewheel=document.onmousewheel=wheel;function activateWheel(A){bWheelActive=A}function wheel(A){if(!bWheelActive){return }var B=0;if(!A){A=window.event}if(A.wheelDelta){B=-A.wheelDelta/40;if(window.opera){B=-B}}else{if(A.detail){B=A.detail}}if(B){zoomOffset(B)}}function zoomOffset(A){var B;if(!bWheelActive){return }B=iZoom;B*=1+A/40;B=fixRes(B);iZoom=(B>minRes)?B:minRes;if(iZoom!=minRes){iZoom=(B<maxRes)?B:maxRes}GTScopeObj.SetVariable("zoomTo",iZoom+":1");checkOverviewVisibility(iZoom);B=Math.sqrt((iZoom-minRes)/(maxRes-minRes));zoomCursorJS.setValue(B)}function fixRes(A){return(Math.round(A*100)/100)}function processZoomEvent(A){var B;B=fixRes(A);if((iZoom<=(B+0.01))&&(iZoom>=(B-0.01))){return }iZoom=B;checkOverviewVisibility(iZoom);B=Math.sqrt((iZoom-minRes)/(maxRes-minRes));zoomCursorJS.setValue(B)}function zoomToRes(A){var B;B=fixRes(A);if((iZoom<=(B+0.01))&&(iZoom>=(B-0.01))){return }iZoom=B;GTScopeObj.SetVariable("zoomTo",iZoom);checkOverviewVisibility(iZoom)}function checkOverviewVisibility(A){if(A>500){if($("Overview").style.visibility=="visible"){$("Overview").style.visibility="hidden"}}else{if($("Overview").style.visibility=="hidden"){$("Overview").style.visibility="visible"}}}function activateFlashPan(A){var B;if(A){B=1}else{B=0}GTScopeObj.SetVariable("enablePan",B)}function selectItems(A){GTScopeObj.SetVariable("selectItems",A)}function centerOnItem(A){GTScopeObj.SetVariable("centerOnItem",A)}function move(A){GTScopeObj.SetVariable("translateTo",A)}function GTScope_DoFSCommand(B,A){switch(B){case"debug":break;case"zoomEvent":processZoomEvent(A);break;case"infoItem":showInfoItem(A);break;case"itemsList":refreshItemsList(A);break;case"showmenu":window.status="";break;case"aboutdlg":showAboutDlgWindow();break;default:alert("commande inconnue '"+B+"' - '"+A+"'")}return }function jumpTo(A){GTScopeObj.SetVariable("jumpTo",A)}function layerSwitch(A){GTScopeObj.SetVariable("layerSwitch",A)}function sourceSwitch(A){GTScopeObj.SetVariable("srcSwitch",A)}function appearance(A){GTScopeObj.SetVariable("appearance",A)}function init(){GTScopeObj=isInternetExplorer?document.all.GTScope:document.GTScope;initGraphicsComponents(true);GTScopeObj.SetVariable("giveMeTheZoom","");setSplashWndVisibility(true);document.getElementById("ifdivGeo").src="./TreeViewViews.htm"}function initGraphicsComponents(C){var B;var A;B=getWindowHeight();A=getWindowWidth();$("if"+curTab).height=B-240;if(curTab=="divList"){document.getElementById("ifdivList").contentWindow.resizeList(B-270)}if(C){GTScopeObj.SetVariable("scaleOffsetX",300)}A-=220;B-=200;document.getElementById("Overview").style.left=A.toString()+"px";document.getElementById("Overview").style.top=B.toString()+"px";if(C){document.getElementById("Overview").style.visibility="visible"}}function reinit(){initGraphicsComponents(false);if(document.getElementById("divSplashWnd").style.visibility=="visible"){setSplashWndVisibility(true)}}function processClick(A){window.status="clic souris sur l'item "+A}function showLayers(E,C){var B=C.split(",");var A;var D="";D=B[0]+":"+E;for(A=1;A<B.length;A++){D+=","+B[A]+":"+E}layerSwitch(D)}function showSources(E,B){var A=B.split(",");var C;var D="";D=A[0]+":"+E;for(C=1;C<A.length;C++){D+=","+A[C]+":"+E}sourceSwitch(D)}function showMenu(B){var C=new Array("divGeo","divSources","divLayers","divList");var A=new Array("./TreeViewViews.htm","./TreeViewSources.htm","./TreeViewLayers.htm","./TreeViewList.htm");var D;for(i=0;i<C.length;i++){if(C[i]==B){D=getWindowHeight();$("if"+C[i]).height=D-240;if(B=="divList"){document.getElementById("ifdivList").contentWindow.resizeList(D-270)}if(document.getElementById("if"+C[i]).src.indexOf("loading.htm")>0){document.getElementById("if"+C[i]).src=A[i]}$(C[i]).style.visibility="visible";$(C[i]).style.display="block"}else{$(C[i]).style.visibility="hidden";$(C[i]).style.display="none"}}curTab=B}function getWindowHeight(){var A;if(navigator.appName.indexOf("Explorer")>0){if(document.documentElement&&document.documentElement.clientHeight){A=document.documentElement.clientHeight}else{if(document.body&&document.body.clientHeight){A=document.body.clientHeight}}}else{A=window.innerHeight}return(A)}function getWindowWidth(){var A;if(navigator.appName.indexOf("Explorer")>0){if(document.documentElement&&document.documentElement.clientWidth){A=document.documentElement.clientWidth}else{if(document.body&&document.body.clientWidth){A=document.body.clientWidth}}}else{A=window.innerWidth}return(A)}function setMenuVisibility(A){if(A){if(document.getElementById("NavMenu").style.left=="60px"){document.getElementById("NavMenu").style.left="300px"}document.getElementById("divMenu").style.visibility="visible";$(curTab).style.visibility="visible";document.getElementById("divHideButton").style.visibility="visible";document.getElementById("divShowButton").style.visibility="hidden";GTScopeObj.SetVariable("scaleOffsetX",300)}else{document.getElementById("divMenu").style.visibility="hidden";$(curTab).style.visibility="hidden";document.getElementById("divHideButton").style.visibility="hidden";document.getElementById("divShowButton").style.visibility="visible";GTScopeObj.SetVariable("scaleOffsetX",10);if(document.getElementById("NavMenu").style.left=="300px"){document.getElementById("NavMenu").style.left="60px"}}}function snapNavMenu(){if(document.getElementById("divMenu").style.visibility=="visible"){document.getElementById("NavMenu").style.left="300px"}else{document.getElementById("NavMenu").style.left="60px"}document.getElementById("NavMenu").style.top="60px"}function snapOverview(){var A;var B;B=getWindowHeight()-200;A=getWindowWidth()-220;document.getElementById("Overview").style.left=A.toString()+"px";document.getElementById("Overview").style.top=B.toString()+"px"}function showInfoItem(A){if(A.indexOf("http://")>-1){window.open(A)}else{document.getElementById("ifInfoItem").src=A;setInfoVisibility(true)}}function setInfoVisibility(A){if(A){document.getElementById("divInfos").style.right=20;document.getElementById("divInfos").style.top=60;document.getElementById("divInfos").style.visibility="visible"}else{document.getElementById("divInfos").style.visibility="hidden";document.getElementById("ifInfoItem").src="./loading.htm"}}function refreshItemsList(A){if(document.getElementById("ifdivList")){document.getElementById("ifdivList").contentWindow.refreshItemsList(A)}}function showAboutDlgWindow(){setAboutWndVisibility(true)}function setAboutWndVisibility(A){var C;var B;if(A){if(document.getElementById("ifAboutWnd").src.indexOf("loading.htm")>0){document.getElementById("ifAboutWnd").src="./AboutWnd.htm"}C=getWindowHeight()/2-200;B=getWindowWidth()/2-300;document.getElementById("divAboutWnd").style.top=C+"px";document.getElementById("divAboutWnd").style.left=B+"px";document.getElementById("divAboutWnd").style.visibility="visible"}else{document.getElementById("divAboutWnd").style.visibility="hidden";document.getElementById("ifAboutWnd").src="./AboutWnd.htm"}}function setSplashWndVisibility(A){var C;var B;if(A){if(document.cookie=="displaySplashScreen=0"){document.getElementById("NavMenu").style.visibility="visible";return }C=getWindowHeight()/2-200;B=getWindowWidth()/2-300;document.getElementById("divSplashWnd").style.top=C+"px";document.getElementById("divSplashWnd").style.left=B+"px";if(document.getElementById("ifSplashWnd").src.indexOf("loading.htm")>0){document.getElementById("ifSplashWnd").src="./splashWnd.htm"}document.getElementById("divSplashWnd").style.visibility="visible"}else{if(document.getElementById("ifSplashWnd").contentWindow.displayAtStartUp()){SetCookie("displaySplashScreen","1",1)}else{SetCookie("displaySplashScreen","0",1)}document.getElementById("divSplashWnd").style.visibility="hidden";document.getElementById("NavMenu").style.visibility="visible"}}function SetCookie(E,D,C){var B=new Date();var A=new Date();if(C==null||C==0){C=1}A.setTime(B.getTime()+3600000*24*C);document.cookie=E+"="+escape(D)+";expires="+A.toGMTString()}function showHelp(){document.getElementById("ifInfoItem").src="help.htm";setInfoVisibility(true)};