var deconcept=deconcept||{};if(typeof deconcept.util=="undefined"||!deconcept.util){deconcept.util={}}if(typeof deconcept.SWFObjectUtil=="undefined"||!deconcept.SWFObjectUtil){deconcept.SWFObjectUtil={}}deconcept.SWFObject=function(E,C,K,F,H,J,L,G,A,D){if(!document.getElementById){return }this.DETECT_KEY=D?D:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];if(E){this.setAttribute("swf",E)}if(C){this.setAttribute("id",C)}if(K){this.setAttribute("width",K)}if(F){this.setAttribute("height",F)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(J){this.addParam("bgcolor",J)}var B=L?L:"high";this.addParam("quality",B);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var I=(G)?G:window.location;this.setAttribute("xiRedirectUrl",I);this.setAttribute("redirectUrl","");if(A){this.setAttribute("redirectUrl",A)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(A,B){this.params[A]=B},getParams:function(){return this.params},addVariable:function(A,B){this.variables[A]=B},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var A=[];var B;var C=this.getVariables();for(B in C){if(C.hasOwnProperty(B)){A[A.length]=B+"="+C[B]}}return A},getSWFHTML:function(){var D="";var C={};var A="";var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}D='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';D+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';C=this.getParams();for(A in C){if(C.hasOwnProperty(A)){D+=[A]+'="'+C[A]+'" '}}B=this.getVariablePairs().join("&");if(B.length>0){D+='flashvars="'+B+'"'}D+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}D='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';D+='<param name="movie" value="'+this.getAttribute("swf")+'" />';C=this.getParams();for(A in C){if(C.hasOwnProperty(A)){D+='<param name="'+A+'" value="'+C[A]+'" />'}}B=this.getVariablePairs().join("&");if(B.length>0){D+='<param name="flashvars" value="'+B+'" />'}D+="</object>"}return D},write:function(A){var B;if(this.getAttribute("useExpressInstall")){B=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(B)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}var C;if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){C=(typeof A=="string")?document.getElementById(A):A;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!==""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var D=null;var C=new deconcept.PlayerVersion([0,0,0]);var A,B;if(navigator.plugins&&navigator.mimeTypes.length){A=navigator.plugins["Shockwave Flash"];if(A&&A.description){C=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){B=3;while(D){try{B++;D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);C=new deconcept.PlayerVersion([B,0,0])}catch(E){D=null}}}else{try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(E){try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");C=new deconcept.PlayerVersion([6,0,21]);D.AllowScriptAccess="always"}catch(E){if(C.major==6){return C}}try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(E){}}if(D!==null){C=new deconcept.PlayerVersion(D.GetVariable("$version").split(" ")[1].split(","))}}}return C};deconcept.PlayerVersion=function(A){this.major=A[0]!==null?parseInt(A[0],0):0;this.minor=A[1]!==null?parseInt(A[1],0):0;this.rev=A[2]!==null?parseInt(A[2],0):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false
}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(D){var C=document.location.search||document.location.hash;if(D===null){return C}var B,A;if(C){B=C.substring(1).split("&");for(A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==D){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var C=document.getElementsByTagName("OBJECT");for(var B=C.length-1;B>=0;B--){C[B].style.display="none";for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var BG={};BG.util={};BG.util.Flash=function(D,A,B,C){this.init(D,A,B,C)};BG.util.Flash.prototype={swfUrl:null,containerId:null,container:null,attributes:null,options:null,id:null,swf:null,contentReady:null,init:function(D,A,B,C){this.id=B.id;this.options=C;this.attributes=B;if(typeof A=="string"){this.containerId=A}else{this.container=A}this.swfUrl=D},write:function(){this._embedSWF(this.swfUrl,this.id,this.attributes.version,this.attributes.backgroundColor,this.attributes.expressInstall,this.attributes.wmode,this.options)},destroy:function(){var A;if(this.swf){if(this.containerId!=null&&this.containerId!=""){A=document.getElementById(this.containerId)}else{A=this.container}A.removeChild(this.swf)}for(var B in this){if(this.hasOwnProperty(B)){this[B]=null}}},call:function(B){var C=[];for(var A=1;A<arguments.length;A++){C.push(arguments[A])}this.swf[B].apply(this.swf,C)},_embedSWF:function(I,D,C,F,H,B,K){var E=new deconcept.SWFObject(I,D,"100%","100%",C,F);if(!!H){E.useExpressInstall(H)}E.addParam("allowScriptAccess","always");if(!!B){}E.addVariable("allowedDomain",document.location.hostname);E.addVariable("mapId",D);for(var G in K){E.addVariable(G,K[G])}var A;if(this.containerId!=null&&this.containerId!=""){A=document.getElementById(this.containerId)}else{A=this.container}var J=E.write(A);if(J){this.swf=document.getElementById(D);this.swf.owner=this}},_eventHandler:function(B){var A=B.type;switch(A){case"swfReady":this._loadHandler();this.contentReady.fire("contentReady");return ;case"log":return }try{this[A].fire(A)}catch(C){log.warn(C)}},_loadHandler:function(){}};BG.util.Flash.eventHandler=function(A,C){var B=document.getElementById(A);if(!B.owner){setTimeout(function(){BG.util.Flash.eventHandler(A,C)},0)}else{B.owner._eventHandler(C)}};BG.util.Flash.proxyFunctionCount=0;BG.util.Flash.createProxyFunction=function(B){var A=BG.util.Flash.proxyFunctionCount;BG.util.Flash["proxyFunction"+A]=function(){return B.apply(null,arguments)};BG.util.Flash.proxyFunctionCount++;return"BG.util.Flash.proxyFunction"+A.toString()};BG.util.Flash.removeProxyFunction=function(A){if(!A||A.indexOf("BG.util.Flash.proxyFunction")<0){return }A=A.substr(26);BG.util.Flash[A]=null};var bg=bg||{};bg.api={};bg.api.MapOptions={extent:null,searchName:null,filters:null,legend:null,useMouseWheel:true,textSearches:null,textSearchesRestrict:null,proxSearches:null,proxSearchesRestrict:null,onInitFinishedCallback:null,onSelectionCallback:null,getImageCallback:null,getResultsCallback:null,showTextSearch:false,showTOC:false,showExtras:false,showProxSearchBar:true};bg.api.MarkerOptions={x:null,y:null,id:null,imageUrl:null,title:null,content:null,footer:null,toolTip:null,infoWidth:-1,markerWidth:27,markerHeight:27,openInfoBubble:false};bg.api.Map=function(A,C,B){this.init(A,C,B)};bg.api.Map.prototype={flashObject:null,init:function(J,B,K){if(J==null){return }var H=J+"_map";var C={version:"9",backgroundColor:"#ffffff",expressInstall:false,wmode:"opaque",id:H};if(K==null){K={}}var E=K.filters;if(E){K.filters=E.join("__@@__")}var G=K.legend;if(G){K.legend=G.join("@")}var I=K.proxSearches;if(I){if(I.length==0){K.proxSearches="NONE"}else{K.proxSearches=I.join("__@@__")}}var A=K.textSearches;if(A){if(A.length==0){K.textSearches="NONE"}else{K.textSearches=A.join("__@@__")}}var F=K.textSearchesRestrict;if(F){if(F.length==0){K.textSearchesRestrict="NONE"}else{K.textSearchesRestrict=F.join("__@@__")}}if(typeof K.showProxSearchBar=="undefined"){K.showProxSearchBar=true}K.webUrl=B;var D=new BG.util.Flash(B+"PlanInteractif.swf",J,C,K);D.write();this.flashObject=D},fitAll:function(){this.flashObject.swf.fitAll()},zoomIn:function(){this.flashObject.swf.zoomIn()},zoomOut:function(){this.flashObject.swf.zoomOut()},getScale:function(){return this.flashObject.swf.getScale()
},zoomToScale:function(A){this.flashObject.swf.zoomToScale(A)},panLeft:function(){this.flashObject.swf.panLeft()},panRight:function(){this.flashObject.swf.panRight()},panUp:function(){this.flashObject.swf.panUp()},panDown:function(){this.flashObject.swf.panDown()},getExtent:function(){return this.flashObject.swf.getExtent()},setExtent:function(A){this.flashObject.swf.setExtent(A)},setCenter:function(A){this.flashObject.swf.setCenter(A)},setProxSearches:function(A){this.flashObject.swf.setProxSearches(A)},addMarker:function(A){this.flashObject.swf.addMarker(A)},removeMarker:function(A){this.flashObject.swf.removeMarker(A)},activateMouseWheel:function(){this.flashObject.swf.activateMouseWheel()},deactivateMouseWheel:function(){this.flashObject.swf.deactivateMouseWheel()},getImage:function(){return this.flashObject.swf.getImage()},setLegend:function(A){this.flashObject.swf.setLegend(A)},search:function(A,B){this.flashObject.swf.search(A,B)}};bg.api.getExtentFromCenterAndScale=function(K,C,B,A){var D=parseInt(document.getElementById(K).style.width);var F=parseInt(document.getElementById(K).style.height);var H=(D/1280)*(4/5)*17*2.54/100;var G=H*A;var I=(F/D)*G;var E=C-G/2;var J=B-I/2;var L=(J+I)+", "+J+", "+E+", "+(E+G);return L};
