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 GTSO;var iZoom=0;var maxRes=2;var minRes=0.12;var bWheelActive=true;var myDate=new Date();var iObjectId=myDate.getTime();var iCurZIR=-1;var strCurZIR="";var bMouseOver;var bListenFlash=false;var bIsInit=false;var bIsZIRLoaded=false;var bIsViewerLoaded=false;var iNbLoadedLayer=0;var gtsf_var;if(window.addEventListener){window.addEventListener("DOMMouseScroll",wheel,true)}window.onmousewheel=document.onmousewheel=wheel;function gtsf_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){gtsf_zoomOffset(B)}if(A.preventDefault){A.preventDefault();A.returnValue=false}}function gtsf_zoomOffset(A){var B;B=iZoom;B*=1+A/40;B=fixRes(B);iZoom=(B>minRes)?B:minRes;if(iZoom!=minRes){iZoom=(B<maxRes)?B:maxRes}GTSO.SetVariable("zoomTo",iZoom+":1");B=Math.sqrt((iZoom-minRes)/(maxRes-minRes));gtsf_cursorZoomEvent(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;B=Math.sqrt((iZoom-minRes)/(maxRes-minRes));gtsf_cursorZoomEvent(B)}function gtsf_zoomToRes(A){var B;B=fixRes(A);if((iZoom<=(B+0.01))&&(iZoom>=(B-0.01))){return }iZoom=B;GTSO.SetVariable("zoomTo",iZoom)}function gtsf_zoomFromCursor(B){var A;A=B*B*(maxRes-minRes)+minRes;gtsf_zoomToRes(A)}function gtsf_activateFlashPan(A){var B;if(A){B=1}else{B=0}GTSO.SetVariable("enablePan",B)}function gtsf_setViewTo(A){GTSO.SetVariable("centerOnItems","15,20:"+A)}function gtsf_move(A){GTSO.SetVariable("translateTo",A)}function GTScope_DoFSCommand(C,A){var B;if(C=="cartoCmptLoaded"){iNbLoadedLayer+=1;if(iNbLoadedLayer==18){if(bIsInit){if(gtsf_var!=null){if((gtsf_var.length<3)||(gtsf_var.indexOf(","))>=0){gtsf_setViewTo(gtsf_var)}}}else{bIsZIRLoaded=true}}if(A=="viewer"){if(bIsInit){if(gtsf_var!=null){if((gtsf_var.length>3)&&(gtsf_var.indexOf(","))==-1){gtsf_setPermaLink(gtsf_var)}}}else{bIsViewerLoaded=true}}}if(!bListenFlash){return }switch(C){case"permalink":gtsf_permaLinkEvent(A);break;case"zoomEvent":processZoomEvent(A);break;case"mouseOnItem":B=A.split(":");gtsf_rollOverEvent(B[0],B[1],B[2],B[3],B[4]);break;case"mouseOutItem":B=A.split(":");gtsf_rollOutEvent(B[0],B[1]);break;default:}return }function gtsf_getRes(){return(iZoom)}function gtsf_getCurrentZIR(){return(iCurZIR)}function gtsf_goTo(A){GTSO.SetVariable("jumpTo",A)}function sourceSwitch(A){GTSO.SetVariable("srcSwitch",A)}function gtsf_computePermaLink(){GTSO.SetVariable("getPermaLink","")}function gtsf_setPermaLink(A){GTSO.SetVariable("setPermaLink",A)}function gtsf_init(){GTSO=navigator.appName.indexOf("Microsoft")!=-1?document.all.GTScope:document.GTScope;initGraphicsComponents(true);bListenFlash=true;GTSO.SetVariable("giveMeTheZoom","");iCurZIR=-1;strCurZIR="";bIsInit=true;if(bIsZIRLoaded){if(gtsf_var!=null){if((gtsf_var.length<3)||(gtsf_var.indexOf(","))>=0){gtsf_setViewTo(gtsf_var)}}}if(bIsViewerLoaded){if(gtsf_var!=null){if((gtsf_var.length>3)&&(gtsf_var.indexOf(","))==-1){gtsf_setPermaLink(gtsf_var)}}}}function initGraphicsComponents(A){}function reinit(){initGraphicsComponents(false);if(document.getElementById("divSplashWnd").style.visibility=="visible"){setSplashWndVisibility(true)}}function gtsf_showLayers(A,C){var B=C.split(",");var G="";var F="";var H=new Array(1,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,23);var I;I=false;for(var E=0;E<B.length;E++){if(B[E]==2){GTSO.SetVariable("showTitleSwitch","20:"+A+",21:"+A+",22:"+A+",20100:"+A+",201000:"+A+",21100:"+A+",211000:"+A)}else{for(var D=0;D<H.length;D++){I=false;if(B[E]==H[D]){if(F.length>0){F+=","}F+=B[E]+":"+A;I=true;break}}if(!I){if(G.length>0){G+=","}G+=B[E]+":"+A}}}if(F.length>0){GTSO.SetVariable("srcSwitchById",F)}if(G.length>0){GTSO.SetVariable("layerSwitch",G)}}function gtsf_getDisplayedLayers(){GTSO.SetVariable("getDisplayLayers","")}function gtsf_activateMeasureTool(A){GTSO.SetVariable("measureTool",A)}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)};