MIREO_REDIRECT_BY="MireoRedirector.aspx";MIREO_REDIRECT_TO="http://maps.mireo.hr/GElin2";
function Pi(Dk){var Dy=Dk.toString();var Dl=new String();for(var BZ=0;BZ<Dy.length;++BZ){var p=Dy.charAt(BZ);if(p=="\\"||(p=="\""||(p=="\t"||(p=="\r"||p=="\n"))))Dl=Dl+"\\";if(p=="\t")p="t";if(p=="\r")p="r";if(p=="\n")p="n";Dl=Dl+p;}return "\""+Dl+"\"";};function Oi(AN,AO,EK){if(EK)this.NR=EK;else this.NR="";this.columnnames=new Array(AN.length);for(var BZ=0;BZ<AN.length;++BZ)this.columnnames[BZ]=AN[BZ];this.columntypes=new Array(AO.length);for(var BZ=0;BZ<AO.length;++BZ)this.columntypes[BZ]=AO[BZ];this.MH=new Array();this.Jt=function (){var Db=new Oh(this);return Db;};this.IW=function (Dh){var DX=new Oh(this);for(var BZ=0;BZ<this.columnnames.length;++BZ){DX[this.columnnames[BZ]]=Dh[this.columnnames[BZ]];}this.MH.push(DX);};this.FM=function (AI,AJ){this.columntypes.push(AJ);this.columnnames.push(AI);};function Oh(EJ){this.Gi=EJ;for(var BZ=0;BZ<EJ.columnnames.length;++BZ)this[EJ.columnnames[BZ]]=null;this.Gn=function (){for(var BZ=0;BZ<this.Gi.MH.length;++BZ){if(this.Gi.MH[BZ]===this){this.Gi.MH.splice(BZ,1);}}};};};Oi.Hb=function (Ad,EK){for(var BZ=0;BZ<Ad.length;++BZ){if(Ad[BZ].NR==EK){return Ad[BZ];}}return null;};function Oy(Ci){return Ci.constructor==Array;};function PE(Ci){if(!Ci.constructor){return true;}return Ci.constructor==Number||(Ci.constructor==String||Ci.constructor==Boolean);};function PF(Ci){return Ci.constructor==String;};function Oz(Ci){return Ci.constructor==Boolean;};function PD(Ci){return Ci.constructor==Number;};function PC(Ci){return typeof(obj)=="function";};function PA(Ci){return Ci.constructor==Oi;};function PG(Ci){if(PC(Ci)){return "";}if(Oy(Ci)){if(Ci.length>0&&(PD(Ci[0])||Oz(Ci[0]))){var Db="";var Dn="";var Db="";if(PD(Ci[0])){for(var BZ=0;BZ<Ci.length;++BZ){Db=Db+(Dn+Ci[BZ].toString().replace(",","."));Dn=",";}}else {for(var BZ=0;BZ<Ci.length;++BZ){if(Ci[BZ]){Db=Db+(Dn+"1");}else {Db=Db+(Dn+"0");}Dn=",";}}return Db.length+":"+Db;}else {var Db="";for(var BZ=0;BZ<Ci.length;++BZ){Db=Db+PG(Ci[BZ]);}return Db.length+":"+Db;}}else if(PA(Ci)){var Db="";Db=Db+PG(Ci.NR);Db=Db+PG(Ci.columnnames);Db=Db+PG(Ci.columntypes);var ES="";for(var BZ=0;BZ<Ci.MH.length;++BZ){var ET="";for(var Bn=0;Bn<Ci.columnnames.length;++Bn){ET=ET+PG(Ci.MH[BZ][Ci.columnnames[Bn]]);}ES=ES+(ET.length+":"+ET);}Db=Db+(ES.length+":"+ES);return Db.length+":"+Db;}else if(!PE(Ci)){var Db="";if(Ci.constructor.MEMBER_ARRAY){for(var BZ=0;BZ<Ci.constructor.MEMBER_ARRAY.length;++BZ){Db=Db+PG(Ci[Ci.constructor.MEMBER_ARRAY[BZ]]);}}else {for(var CI in Ci){Db=Db+PG(Ci[CI]);}}return Db.length+":"+Db;}else {if(PF(Ci)){return Ci.toString().length+":"+Ci.toString();}else if(Oz(Ci)){if(Ci){return "1:1";}else {return "1:0";}}else {return Ci.toString().length+":"+Ci.toString().replace(",",".");};};;};function PU(Eb,Cv,AE,AA){var Ea;if(typeof(MIREO_REDIRECT_BY)!="undefined"){Ea=Eb+"/"+MIREO_REDIRECT_BY;AE=MIREO_REDIRECT_TO+"/"+Cv+"*"+AE;}else {Ea=Eb+"/"+Cv;}var A=OW();if(A){if(AA){A.onreadystatechange=function (){if(A.readyState==4){if(A.status==200){AA(A.responseText);}else {var BC=new WebException(A.statusText);BC.status=A.status;AA(BC);}}};A.open("POST",Ea,true);}else {A.open("POST",Ea,false);}A.setRequestHeader("ContentType","text/plain");A.send(AE);if(!AA){if(A.readyState==4&&A.status!=200){var BC=new WebException(A.statusText);BC.status=A.status;throw BC;;}else {return A.responseText;}}}else {return null;}function OW(){var C=null;try {C=new ActiveXObject("Msxml2.XMLHTTP");}catch(Ax){try {C=new ActiveXObject("Microsoft.XMLHTTP");}catch(oc){C=null;};;};;if(!C&&typeof(XMLHttpRequest)!="undefined"){C=new XMLHttpRequest();}return C;};};function Pg(Ck,Cl,BJ,EU){if(BJ==null)BJ=0;if(EU==null)EU=Cl.length;if(Cl.substring(BJ,BJ+3)=="EX:"){throw new WebException(Cl.substring(BJ+3,EU));;}if(Ck=="void"){return null;}if(Ck=="string"){return Cl.substring(BJ,EU);}if(Ck=="bool"){if(Cl.substring(BJ,EU)=="1")return true;return false;}if(Ck=="number"){return parseFloat(Cl.substring(BJ,EU));}if(Ph.Ig(Ck)){var EY=Ph.Hs(Ck);if(EY=="number"||EY=="bool"){var Db=new Array();var Az=Cl.substring(BJ,EU).split(",");for(var BZ=0;BZ<Az.length;++BZ){Db.push(Pg(EY,Az[BZ]));}return Db;}else {var Db=new Array();var AV=BJ;while(AV<EU){var BZ=Cl.indexOf(":",AV);var Bt=parseInt(Cl.substring(AV,BZ));AV=BZ+1;Db.push(Pg(EY,Cl,AV,AV+Bt));AV=AV+Bt;}return Db;}}if(Ph.Ii(Ck)){var AV=BJ;var BZ=Cl.indexOf(":",AV);var Bt=parseInt(Cl.substring(AV,BZ));AV=BZ+1;var EK=Pg("string",Cl,AV,AV+Bt);AV=AV+Bt;BZ=Cl.indexOf(":",AV);Bt=parseInt(Cl.substring(AV,BZ));AV=BZ+1;var AK=Pg("[string",Cl,AV,AV+Bt);AV=AV+Bt;BZ=Cl.indexOf(":",AV);Bt=parseInt(Cl.substring(AV,BZ));AV=BZ+1;var AM=Pg("[string",Cl,AV,AV+Bt);AV=AV+Bt;var Db=new Oi(AK,AM,EK);BZ=Cl.indexOf(":",AV);AV=BZ+1;while(AV<EU){BZ=Cl.indexOf(":",AV);Bt=parseInt(Cl.substring(AV,BZ));AV=BZ+1;Db.IW(Pf(Db,AK,AM,Cl,AV,AV+Bt));AV=AV+Bt;}return Db;}var AC=eval(Ck);if(AC&&AC.TYPE_ARRAY){var Db=new AC();var AV=BJ;var Bn=0;while(AV<EU){var BZ=Cl.indexOf(":",AV);var Bt=parseInt(Cl.substring(AV,BZ));AV=BZ+1;Db[AC.MEMBER_ARRAY[Bn]]=Pg(AC.TYPE_ARRAY[Bn],Cl,AV,AV+Bt);AV=AV+Bt;++Bn;}return Db;}return Cl.substring(BJ,EU);};function Pf(EJ,AK,AM,Cl,BJ,EU){var AV=BJ;var Bn=0;var Db=EJ.Jt();while(AV<EU){var BZ=Cl.indexOf(":",AV);var Bt=parseInt(Cl.substring(AV,BZ));AV=BZ+1;Db[AK[Bn]]=Pg(AM[Bn],Cl,AV,AV+Bt);AV=AV+Bt;++Bn;}return Db;};function Ph(){};Ph.Ig=function (Ck){return Ck.charAt(0)=="[";};Ph.Ii=function (Ck){return Ck=="DataTable";};Ph.Hs=function (Ck){return Ck.substring(1);};function WebException(CL){this.JW=CL;};WebException.prototype.toString=function (){return this.JW;};WebException.validate=function (Ch){if(Ch.constructor==WebException)throw Ch;;};function PY(Ea,BE,Cu,Dj,Ce){var AE=BE+":";for(var BZ=0;BZ<Ce;++BZ){AE=AE+PG(Cu[BZ]);}if(Cu.length>Ce){PU(_url_dir_,Ea,AE,function (Dc){try {WebException.validate(Dc);var Ch=Pg(Dj,Dc);Cu[Ce](Ch);}catch(Ax){Cu[Ce](Ax);};;});}else {return Pg(Dj,PU(_url_dir_,Ea,AE));}};function Pc(Ci,Cu){var Bx=Ci.constructor.MEMBER_ARRAY;var EI=Ci.constructor.TYPE_ARRAY;for(var BZ=0;BZ<Ci.constructor.MEMBER_ARRAY.length;++BZ){if(BZ<Cu.length){Ci[Bx[BZ]]=Cu[BZ];}else {Ci[Bx[BZ]]=Of(EI[BZ]);}}function Of(EY){if(EY.charAt(0)=="["){return new Array();}if(EY=="string"){return "";}if(EY=="number"){return 0;}if(EY=="bool"){return false;}if(EY=="DataTable"){return new Oi([],[],"");}return eval("new "+EY+"();");};};var _r_f_body_="Pc(this,arguments);";var _url_dir_="http://"+window.location.hostname;if(window.location.port!=80){_url_dir_=_url_dir_+(":"+window.location.port);}_url_dir_=_url_dir_+window.location.pathname;_url_dir_=_url_dir_.substring(0,_url_dir_.lastIndexOf("/"));function createFunctionString(AD,BL,Dd,Cd){if(Dd=="void"){return "PY("+AD+".URL,"+Pi(BL)+",arguments,"+Pi(Dd)+","+Cd+");";}else {return "return PY("+AD+".URL,"+Pi(BL)+",arguments,"+Pi(Dd)+","+Cd+");";}};function registerExternTypes(){PU(_url_dir_,"ExternTypes.ms","#");};function registerClass(Ea){PU(_url_dir_,Ea,"#");};var Point=new Function("",_r_f_body_);Point.TYPE_ARRAY=["number","number"];Point.MEMBER_ARRAY=["x","y"];Point.URL="System.Drawing.Point,ExternTypes.ms";Point.op_Implicit=new Function("",createFunctionString("Point","op_Implicit","PointF",1));Point.op_Explicit=new Function("",createFunctionString("Point","op_Explicit","Size",1));Point.op_Addition=new Function("",createFunctionString("Point","op_Addition","Point",2));Point.op_Subtraction=new Function("",createFunctionString("Point","op_Subtraction","Point",2));Point.op_Equality=new Function("",createFunctionString("Point","op_Equality","bool",2));Point.op_Inequality=new Function("",createFunctionString("Point","op_Inequality","bool",2));Point.Add=new Function("",createFunctionString("Point","Add","Point",2));Point.Subtract=new Function("",createFunctionString("Point","Subtract","Point",2));Point.Ceiling=new Function("",createFunctionString("Point","Ceiling","Point",1));Point.Truncate=new Function("",createFunctionString("Point","Truncate","Point",1));Point.Round=new Function("",createFunctionString("Point","Round","Point",1));var PointF=new Function("",_r_f_body_);PointF.TYPE_ARRAY=["number","number"];PointF.MEMBER_ARRAY=["x","y"];PointF.URL="System.Drawing.PointF,ExternTypes.ms";PointF.op_Addition=new Function("",createFunctionString("PointF","op_Addition","PointF",2));PointF.op_Subtraction=new Function("",createFunctionString("PointF","op_Subtraction","PointF",2));PointF.op_Addition=new Function("",createFunctionString("PointF","op_Addition","PointF",2));PointF.op_Subtraction=new Function("",createFunctionString("PointF","op_Subtraction","PointF",2));PointF.op_Equality=new Function("",createFunctionString("PointF","op_Equality","bool",2));PointF.op_Inequality=new Function("",createFunctionString("PointF","op_Inequality","bool",2));PointF.Add=new Function("",createFunctionString("PointF","Add","PointF",2));PointF.Subtract=new Function("",createFunctionString("PointF","Subtract","PointF",2));PointF.Add=new Function("",createFunctionString("PointF","Add","PointF",2));PointF.Subtract=new Function("",createFunctionString("PointF","Subtract","PointF",2));var Rectangle=new Function("",_r_f_body_);Rectangle.TYPE_ARRAY=["number","number","number","number"];Rectangle.MEMBER_ARRAY=["x","y","width","height"];Rectangle.URL="System.Drawing.Rectangle,ExternTypes.ms";Rectangle.FromLTRB=new Function("",createFunctionString("Rectangle","FromLTRB","Rectangle",4));Rectangle.op_Equality=new Function("",createFunctionString("Rectangle","op_Equality","bool",2));Rectangle.op_Inequality=new Function("",createFunctionString("Rectangle","op_Inequality","bool",2));Rectangle.Ceiling=new Function("",createFunctionString("Rectangle","Ceiling","Rectangle",1));Rectangle.Truncate=new Function("",createFunctionString("Rectangle","Truncate","Rectangle",1));Rectangle.Round=new Function("",createFunctionString("Rectangle","Round","Rectangle",1));Rectangle.Inflate=new Function("",createFunctionString("Rectangle","Inflate","Rectangle",3));Rectangle.Intersect=new Function("",createFunctionString("Rectangle","Intersect","Rectangle",2));Rectangle.Union=new Function("",createFunctionString("Rectangle","Union","Rectangle",2));var Size=new Function("",_r_f_body_);Size.TYPE_ARRAY=["number","number"];Size.MEMBER_ARRAY=["width","height"];Size.URL="System.Drawing.Size,ExternTypes.ms";Size.op_Implicit=new Function("",createFunctionString("Size","op_Implicit","SizeF",1));Size.op_Addition=new Function("",createFunctionString("Size","op_Addition","Size",2));Size.op_Subtraction=new Function("",createFunctionString("Size","op_Subtraction","Size",2));Size.op_Equality=new Function("",createFunctionString("Size","op_Equality","bool",2));Size.op_Inequality=new Function("",createFunctionString("Size","op_Inequality","bool",2));Size.op_Explicit=new Function("",createFunctionString("Size","op_Explicit","Point",1));Size.Add=new Function("",createFunctionString("Size","Add","Size",2));Size.Ceiling=new Function("",createFunctionString("Size","Ceiling","Size",1));Size.Subtract=new Function("",createFunctionString("Size","Subtract","Size",2));Size.Truncate=new Function("",createFunctionString("Size","Truncate","Size",1));Size.Round=new Function("",createFunctionString("Size","Round","Size",1));var DPoint=new Function("",_r_f_body_);DPoint.TYPE_ARRAY=["number","number"];DPoint.MEMBER_ARRAY=["x","y"];DPoint.URL="web_invoke.DPoint,ExternTypes.ms";var DRect=new Function("",_r_f_body_);DRect.TYPE_ARRAY=["number","number","number","number"];DRect.MEMBER_ARRAY=["x1","y1","x2","y2"];DRect.URL="web_invoke.DRect,ExternTypes.ms";var GeoAddress=new Function("",_r_f_body_);GeoAddress.TYPE_ARRAY=["string","string","string","string","string","string","string","string","string","string","string","DPoint","DRect"];GeoAddress.MEMBER_ARRAY=["_country","_city","_area","_PLZ","_street","_house_no","_POI","_type","_phone","_tag","_source","pt","rc"];GeoAddress.URL="web_invoke.GeoAddress,ExternTypes.ms";registerExternTypes();function Global(){}Global.URL="mapserver.Global,MapServer.ms";registerClass(Global.URL);Global.GetMapMercatorBounds=new Function("",createFunctionString("Global","GetMapMercatorBounds","Rectangle",0));Global.GetMapBounds=new Function("",createFunctionString("Global","GetMapBounds","DRect",0));function MapSearchWeb(){}MapSearchWeb.URL="mireo.NET.MapSearchWeb,MapSearchWeb.ms";registerClass(MapSearchWeb.URL);MapSearchWeb.Search=new Function("",createFunctionString("MapSearchWeb","Search","[GeoAddress",1));MapSearchWeb.GetGeoAddressGeometry=new Function("",createFunctionString("MapSearchWeb","GetGeoAddressGeometry","WebGeoAddressGeometry",2));MapSearchWeb.GetGAGeoCompressed=new Function("",createFunctionString("MapSearchWeb","GetGAGeoCompressed","WebGAGeoCompressed",2));MapSearchWeb.GetRoute=new Function("",createFunctionString("MapSearchWeb","GetRoute","WebRoute",2));MapSearchWeb.GetRouteCompressed=new Function("",createFunctionString("MapSearchWeb","GetRouteCompressed","WebRouteCompressed",2));MapSearchWeb.FindClosestStreet=new Function("",createFunctionString("MapSearchWeb","FindClosestStreet","GeoAddress",1));var WebRoute=new Function("",_r_f_body_);WebRoute.TYPE_ARRAY=["number","number","[DPoint","[number","[[Point"];WebRoute.MEMBER_ARRAY=["length","time_length","points","zoom_factors","geometries"];WebRoute.URL="mireo.NET.WebRoute,MapSearchWeb.ms";registerClass(WebRoute.URL);var WebRouteCompressed=new Function("",_r_f_body_);WebRouteCompressed.TYPE_ARRAY=["number","number","[DPoint","[number","[number","[number","[number"];WebRouteCompressed.MEMBER_ARRAY=["length","time_length","points","zoom_factors","geometry_x","geometry_y","zoom_levels"];WebRouteCompressed.URL="mireo.NET.WebRouteCompressed,MapSearchWeb.ms";registerClass(WebRouteCompressed.URL);var WebGeoAddressGeometry=new Function("",_r_f_body_);WebGeoAddressGeometry.TYPE_ARRAY=["[number","[[[Point"];WebGeoAddressGeometry.MEMBER_ARRAY=["zoom_factors","geometries"];WebGeoAddressGeometry.URL="mireo.NET.WebGeoAddressGeometry,MapSearchWeb.ms";registerClass(WebGeoAddressGeometry.URL);var WebGAGeoCompressed=new Function("",_r_f_body_);WebGAGeoCompressed.TYPE_ARRAY=["[number","[number","[number","[number"];WebGAGeoCompressed.MEMBER_ARRAY=["zoom_factors","geometry_x","geometry_y","zoom_levels"];WebGAGeoCompressed.URL="mireo.NET.WebGAGeoCompressed,MapSearchWeb.ms";registerClass(WebGAGeoCompressed.URL);function Oa(){this.type=0;this.Nl=0;this.Kt=null;var R=navigator.userAgent.toLowerCase();if(R.indexOf("opera")!=-1)this.type=4;else if(R.indexOf("msie")!=-1&&document.all){this.type=1;if(R.indexOf("msie 5"))this.Nl=5;}else if(R.indexOf("safari")!=-1){this.type=3;if(R.indexOf("safari/125")!=-1)this.Nl=1;}else if(R.indexOf("mozilla")!=-1){this.type=2;if(R.indexOf("firefox/1")!=-1)this.Nl=1;else if(R.indexOf("firefox/2")!=-1)this.Nl=2;else this.Nl=3;;};;;if(R.indexOf("x11;")!=-1)this.Kt=1;};var browser=new Oa();var Sphere={};Sphere.Lw=134217728;Sphere.Lx=180;Sphere.JA=1.5707963267948966;Sphere.JB=0.78539816339744828;Sphere.JY=0.149053797;Sphere.Ie=function (Ed){return Ed/Sphere.Lw*Sphere.Lx;};Sphere.Le=function (Ed){return Ed*180/Math.PI;};Sphere.If=function (Ed){return Ed/Sphere.Lw*Math.PI;};Sphere.Gl=function (Ed){return Ed*Math.PI/180;};Sphere.Gk=function (Ed){return Math.round(Ed/Sphere.Lx*Sphere.Lw);};Sphere.Lf=function (Ed){return Math.round(Ed/Math.PI*Sphere.Lw);};Sphere.World2Deg=function (Ei){var Em=Sphere.Ie(Ei.x);var Er=Sphere.Le(2*Math.atan(Math.exp(Sphere.If(Ei.y)))-Sphere.JA);return new DPoint(Em,Er);};Sphere.Deg2World=function (DM){var Em=Sphere.Gk(DM.x);var Er=Sphere.Lf(Math.log(Math.tan(Sphere.JB+Sphere.Gl(DM.y)/2)));return new Point(Em,Er);};Sphere.Nx=function (Ei,Ey){return new Point(Math.round(Ei.x/Ey),Math.round(-Ei.y/Ey));};Math.Iz=function (Em){return Math.log(Em)/Math.LN10;};function PB(DY){return DY.x1==0&&(DY.y1==0&&(DY.x2==0&&DY.y2==0));};function Ow(Cj,L){if(arguments.length==2)L.apply(Cj);else {var F=new Array(arguments.length-2);for(var BZ=0;BZ<F.length;++BZ){F[BZ]=arguments[BZ+2];}L.apply(Cj,F);}};function Ox(L,Ao){for(var BZ in L.prototype){Ao.prototype[BZ]=L.prototype[BZ];}};function findPosX(Ci){var AZ=0;if(Ci.offsetParent){while(Ci.offsetParent){AZ=AZ+Ci.offsetLeft;Ci=Ci.offsetParent;}}else if(Ci.x)AZ=AZ+Ci.x;;return AZ;};function findPosY(Ci){var Aa=0;if(Ci.offsetParent){while(Ci.offsetParent){Aa=Aa+Ci.offsetTop;Ci=Ci.offsetParent;}}else if(Ci.y)Aa=Aa+Ci.y;;return Aa;};function getMouseCoordinates(Ax){var DJ=0;var DK=0;if(!Ax)var Ax=window.event;if(Ax.pageX||Ax.pageY){DJ=Ax.pageX;DK=Ax.pageY;}else if(Ax.clientX||Ax.clientY){DJ=Ax.clientX;DK=Ax.clientY;if(window.pageXOffset){DJ=DJ+window.pageXOffset;DK=DK+window.pageYOffset;}else if(document.documentElement&&document.documentElement.scrollTop){DJ=DJ+document.documentElement.scrollLeft;DK=DK+document.documentElement.scrollTop;}else if(document.body){DK=DK+document.body.scrollLeft;DK=DK+document.body.scrollTop;};;};return new Point(DJ,DK);};function Oq(BD,DC){var EC=eval(BD).toString();while(EC.length<DC)EC="0"+EC;return EC;};function numFormat(Ed,AY){if(Ed==null)return "";switch(AY){case "TMLEN":{var BX=Math.floor(Ed/3600);var CN=Math.floor((Ed-BX*3600)/60);var Dm=Ed%60;var Db=Oq(BX,2)+":"+Oq(CN,2)+":"+Oq(Dm,2);return Db;};case "DISTANCE":return ""+Math.floor(Ed/100)/10+" km";};return null;};function PO(){return false;};var ElementCreator={};ElementCreator.createChildDiv=function (Bs,EW,Eh,BW,S,BI,BK,EL){var At=document.createElement("div");At.style.position="absolute";At.style.left=Bs+"px";At.style.top=EW+"px";At.style.width=Eh+"px";At.style.height=BW+"px";if(BI)At.style.fontFamily=BI;if(BK)At.style.fontSize=BK;if(EL)At.style.textAlign=EL;if(S)At.style.backgroundColor=S;return At;};ElementCreator.createImage=function (Bs,EW,Dx,Eh,BW,FD,m,Du){var Bb=document.createElement(browser.type==1&&m==true?"DIV":"IMG");Bb.style.position="absolute";Bb.style.left=Bs+"px";Bb.style.top=EW+"px";if(Eh!=null)Bb.style.width=Eh+"px";if(BW!=null)Bb.style.height=BW+"px";if(FD!=null)Bb.style.zIndex=FD;if(browser.type==1&&m==true){Bb.style.fontSize="1px";var CM="crop";if(Du!=null&&Du){CM="scale";}Bb.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+Dx+"', sizingMethod="+CM+")";}else {Bb.src=Dx;Bb.galleryImg=false;}if(browser.type==1){Bb.unselectable="on";Bb.onselectstart=PO;}else Bb.style.MozUserSelect="none";Bb.oncontextmenu=PO;return Bb;};ElementCreator.createImageRelative=function (Dx,Eh,BW,m){var Bb=document.createElement(browser.type==1&&m==true?"DIV":"IMG");if(Eh!=null)Bb.style.width=Eh+"px";if(BW!=null)Bb.style.height=BW+"px";if(browser.type==1&&m==true){Bb.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+Dx+"', sizingMethod='crop')";}else {Bb.align="top";Bb.src=Dx;Bb.galleryImg=false;}if(browser.type==1){Bb.unselectable="on";Bb.onselectstart=PO;}else Bb.style.MozUserSelect="none";Bb.oncontextmenu=PO;return Bb;};ElementCreator.Fq=function (Bb,Bs,EW,Dx,Eh,BW,FD,m){Bb.style.position="absolute";Bb.style.left=Bs+"px";Bb.style.top=EW+"px";if(Eh!=null)Bb.style.width=Eh+"px";if(BW!=null)Bb.style.height=BW+"px";if(FD!=null)Bb.style.zIndex=FD;if(browser.type==1&&m==true){Bb.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+Dx+"', sizingMethod='crop')";}else {Bb.src=Dx;Bb.galleryImg=false;}if(browser.type==1){Bb.unselectable="on";Bb.onselectstart=PO;}else Bb.style.MozUserSelect="none";Bb.oncontextmenu=PO;return Bb;};function Om(Ay,Bs,EW,Ef,Ec){this.OJ=false;this.src=Ay;this.HA=false;this.KN=null;this.KJ=null;this.KL=null;this.onmove=null;this.onclick=null;this.Gr=false;this.HF=new Point(0,0);this.Fz=new Point(0,0);this.src.style.position="absolute";this.moveTo(Bs,EW);this.Jc=eventHandler(this,"KZ");this.Jd=eventHandler(this,"Kb");this.Je=eventHandler(this,"Kc");if(browser.type==2)attachToEvent(window,"mouseout",eventHandler(this,"Kk"));this.HS=this.src.setCapture?this.src:window;attachToEvent(this.src,"mousedown",this.Jc);attachToEvent(this.src,"dblclick",eventHandler(this,"KI"));if(Ec){this.Kl=null;this.OO=document.createElement("DIV");this.OO.style.border="solid navy 1px";this.OO.style.display="none";this.OO.style.position="absolute";this.OO.zIndex=this.OO.style.zIndex=64;this.OO.style.fontSize="1px";this.src.appendChild(this.OO);}};Om.prototype.IB=function (BB){var AU=getMouseCoordinates(BB);AU.x-=findPosX(this.OO.parentNode);AU.y-=findPosY(this.OO.parentNode);return AU;};Om.prototype.moveTo=function (Em,Er){if(this.left!=Em||this.top!=Er){this.left=Em;this.top=Er;this.src.style.left=this.left+"px";this.src.style.top=this.top+"px";if(this.onmove)this.onmove();}};Om.prototype.KZ=function (Ax){if(Ax.Fn){if(browser.type==2){OZ();}else {this.src.focus();}return;}this.HA=true;this.HF.x=Ax.screenX;this.HF.y=Ax.screenY;attachToEvent(this.HS,"mousemove",this.Jd);attachToEvent(this.HS,"mouseup",this.Je);if(this.src.setCapture)this.src.setCapture();this.GA=new Date().getTime();this.Fz.x=Ax.screenX;this.Fz.y=Ax.screenY;this.OJ=Ax.shiftKey;if(this.OJ){this.OT=this.IB(Ax);}else {if(this.KN)this.KN(Ax);}this.Ks=this.src.style.cursor;cancelBubbling(Ax);};Om.prototype.Kb=function (Ax){var Em=this.left+(Ax.screenX-this.HF.x);var Er=this.top+(Ax.screenY-this.HF.y);if(this.src.Ja!=null&&Em<this.src.Ja)Em=this.src.Ja;if(this.src.JP!=null&&Em>this.src.JP)Em=this.src.JP;if(this.src.Jb!=null&&Er<this.src.Jb)Er=this.src.Jb;if(this.src.JQ!=null&&Er>this.src.JQ)Er=this.src.JQ;var Ar=Em-this.left;var As=Er-this.top;if(this.OJ){if(this.OO){this.src.style.cursor="SE-resize";var DH=this.IB(Ax);this.OO.style.left=Math.min(this.OT.x,DH.x)+"px";this.OO.style.top=Math.min(this.OT.y,DH.y)+"px";this.OO.style.width=Math.abs(this.OT.x-DH.x)+"px";this.OO.style.height=Math.abs(this.OT.y-DH.y)+"px";this.OO.style.display="block";}}else {this.src.style.cursor="move";this.moveTo(Em,Er);if(this.KJ){this.KJ(new Size(Ar,As));}this.HF.x+=Ar;this.HF.y+=As;}};Om.prototype.Kc=function (Ax){detachFromEvent(this.HS,"mousemove",this.Jd);detachFromEvent(this.HS,"mouseup",this.Je);this.src.style.cursor=this.Ks;if(document.releaseCapture)document.releaseCapture();if(browser.type==2){OZ();}else {this.src.focus();}var Cc=new Date().getTime();if(this.OJ){if(this.OO){this.OO.style.display="none";if(this.Kl){Ax.NL=this.OT;Ax.HQ=this.IB(Ax);this.Kl(Ax);}}}else {if(this.KL)this.KL(Ax);}if(this.onclick){if(Cc-this.GA<=500&&(Math.abs(this.Fz.x-Ax.screenX)<=2&&Math.abs(this.Fz.y-Ax.screenY)<=2)){Ax.LV=this.IB(Ax);this.onclick(Ax);}}this.HA=false;};Om.prototype.Kk=function (Ax){if(!Ax.relatedTarget&&this.HA)this.Kc(Ax);};Om.prototype.KI=function (Ax){if(this.ondblclick){Ax.LV=this.IB(Ax);this.ondblclick(Ax);}};function measureHTML(BU){var Aq=document.createElement("DIV");Aq.style.cssText="position:absolute; left:-3000px; display:table;";Aq.innerHTML=BU;document.body.appendChild(Aq);if(Aq.childNodes[0]!=null&&Aq.childNodes[0].nodeName=="DIV"){var Db=new Size(Aq.childNodes[0].offsetWidth,Aq.childNodes[0].offsetHeight);document.body.removeChild(Aq);return Db;}var Db=new Size(Aq.offsetWidth,Aq.offsetHeight);document.body.removeChild(Aq);return Db;};function OZ(){var T;if(!OZ.FN){T=document.createElement("INPUT");T.id="blurText";T.type="button";T.style.cssText="position:absolute;display:none";document.body.appendChild(T);OZ.FN=true;}else {T=document.getElementById("blurText");}T.focus();T.blur();};OZ.FN=false;function Pm(Ax){var Af=0;if(!Ax)Ax=window.HP;if(Ax.wheelDelta){Af=Ax.wheelDelta/120;}else if(Ax.detail){Af=-Ax.detail/3;};return Math.round(Af);};function redirected_path(Cv){if(typeof(MIREO_REDIRECT_TO)!="undefined"){return MIREO_REDIRECT_TO+"/"+Cv;}else {return Cv;}};function eventHandler(Cj,BV){return function (H){if(!H)H=window.event;if(H&&!H.target)H.target=H.srcElement;Cj[BV](H);};};function attachToEvent(Ay,BB,BV){if(Ay.addEventListener)Ay.addEventListener(BB,BV,false);else if(Ay.attachEvent)Ay.attachEvent("on"+BB,BV);else Ay["on"+BB]=BV;;};function detachFromEvent(Ay,BB,BV){if(Ay.removeEventListener)Ay.removeEventListener(BB,BV,false);else if(Ay.detachEvent)Ay.detachEvent("on"+BB,BV);else Ay["on"+BV]=null;;};function OY(Ay,BV){if(Ay.addEventListener){Ay.addEventListener("DOMMouseScroll",BV,false);Ay.addEventListener("mousewheel",BV,false);}else if(Ay.attachEvent)Ay.attachEvent("onmousewheel",BV);;};function cancelBubbling(Ax){if(browser.type==1)window.event.cancelBubble=true;else {Ax.cancelBubble=true;Ax.preventDefault();Ax.stopPropagation();}};function Pe(BE,Cj,F){this.HW=BE;this.Jv=Cj;this.FX=F;this.name="setTimeoutObject"+Pe.GP++;eval(this.name+"= this;");};Pe.GP=0;Pe.prototype.exec=function (){this.HW.apply(this.Jv,this.FX);};function Pd(BE,EU,Cj){var F=new Array(arguments.length-3);for(var BZ=0;BZ<F.length;++BZ){F[BZ]=arguments[BZ+3];}var Do=new Pe(BE,Cj,F);return window.setTimeout(Do.name+".exec()",EU);};function Pa(AS,Bs,EW){this.ML=200;first_ticklen=this.ML/4;this.JC=ElementCreator.createChildDiv(Bs,EW,this.ML+40,37);this.MK=ElementCreator.createChildDiv(10,0,this.ML,5);this.MK.style.border="1px solid black";this.MK.style.overflow="hidden";for(var BZ=0;BZ<4;++BZ)this.MK.appendChild(ElementCreator.createChildDiv(BZ*first_ticklen,0,first_ticklen,5,BZ%2?"white":"black"));var Ex=ElementCreator.createChildDiv(0,8,20,10,null,"Arial, sans serif","11px","center");Ex.innerHTML="0";this.JO=ElementCreator.createChildDiv(this.ML-20,8,60,10,null,"Arial, sans serif","11px","center");this.JO.innerHTML="";this.JC.appendChild(Ex);this.JC.appendChild(this.JO);this.JC.appendChild(this.MK);this.JC.style.zIndex=99;AS.appendChild(this.JC);};Pa.prototype.Fs=function (Bs,EW){this.JC.style.left=Bs+"px";this.JC.style.top=EW+"px";};Pa.prototype.Ls=function (Da){var Eh=this.ML;var CF=Eh*Da;var Df=Math.pow(10,Math.floor(Math.Iz(CF)));var CG=Math.floor(CF/Df)*Df;var CU=Math.ceil(Math.floor(Eh*CG/CF)/4);if(CU==this.NV)return;var EO=this.MK.childNodes;for(var BZ=0;BZ<EO.length;++BZ){var At=EO.item(BZ);At.style.width=CU+"px";At.style.left=BZ*CU+"px";}this.MK.style.width=4*CU+"px";this.JO.style.left=4*CU-20+"px";this.JO.innerHTML="40000 km";if(CG>900)this.JO.innerHTML=Math.floor(CG/1000)+" km";else this.JO.innerHTML=CG+" m";this.NV=CU;};function Pn(AS,Bs,EW){this.ND=16;var At=ElementCreator.createChildDiv(Bs,EW,20,220);var O=ElementCreator.createImage(4,this.ND,redirected_path("map/images/zoom_bg.gif"));this.OQ=ElementCreator.createImage(2,0,redirected_path("map/images/zoom_plus.gif"));this.OR=ElementCreator.createImage(2,140,redirected_path("map/images/zoom_minus.gif"));this.OS=ElementCreator.createImage(0,50,redirected_path("map/images/zoom_slider.gif"));O.style.height="123px";At.appendChild(O);attachToEvent(this.OQ,"mousedown",eventHandler(this,"Kp"));attachToEvent(this.OR,"mousedown",eventHandler(this,"Kq"));At.appendChild(this.OQ);At.appendChild(this.OR);At.appendChild(this.OS);AS.appendChild(At);this.OS.Ja=0;this.OS.JP=0;this.OS.Jb=17;this.OS.JQ=128;this.HE=new Om(this.OS,0,this.ND+22+1);this.HE.KL=eventHandler(this,"KM");this.zfM=MireoMap.zfM;this.OG=10;this.HE.moveTo(0,this.ND+this.OG*11+1);this.JC=At;};Pn.prototype.Fs=function (Bs,EW){this.JC.style.left=Bs+"px";this.JC.style.top=EW+"px";};Pn.prototype.KM=function (Ax){var Er=parseInt(this.OS.style.top);var Ey=Math.floor((Er-this.ND+5.5)/11);if(Ey==this.OG)return;this.OG=Ey;this.HE.moveTo(0,this.ND+Ey*11+1);if(this.Kn)this.Kn(this.zfM[Ey]);};Pn.prototype.Mv=function (Ey){if(this.Ni(Ey))if(this.Kn)this.Kn(this.zfM[Ey]);;};Pn.prototype.Ni=function (Ey){if(Ey==this.OG)return false;this.OG=Ey;this.HE.moveTo(0,this.ND+Ey*11+1);return true;};Pn.prototype.Kp=function (){if(this.OG>0)this.Mv(this.OG-1);};Pn.prototype.Kq=function (){if(this.OG<this.zfM.length-1)this.Mv(this.OG+1);};function PK(AS,Bs,EW,CB){var At=ElementCreator.createChildDiv(Bs-275,EW,210,25,null);this.HO=ElementCreator.createChildDiv(140,0,70,25,null);this.HO.innerHTML="<input type='button' onclick='' value='Satellite' id='SView' style='width:100%; text-align: center; font-weight: normal; cursor:pointer;'/>";attachToEvent(this.HO,"click",eventHandler(this,"KD"));At.appendChild(this.HO);this.HN=ElementCreator.createChildDiv(70,0,70,25,null);this.HN.innerHTML="<input type='button' onclick='' value='Map' id='MView' style='width:100%; text-align: center; font-weight: normal; cursor:pointer;'/>";attachToEvent(this.HN,"click",eventHandler(this,"KD"));At.appendChild(this.HN);this.HM=ElementCreator.createChildDiv(0,0,70,25,null);this.HM.innerHTML="<input type='button' onclick='' value='Hybrid' id='HView' style='width:100%; text-align: center; font-weight: normal; cursor:pointer;'/>";attachToEvent(this.HM,"click",eventHandler(this,"KD"));At.appendChild(this.HM);this.JC=At;AS.appendChild(At);if(CB==1){this.Jq="SView";this.HO.childNodes[0].focus();this.HO.childNodes[0].style.fontWeight="bold";this.HN.childNodes[0].blur();this.HN.childNodes[0].style.fontWeight="normal";this.HM.childNodes[0].blur();this.HM.childNodes[0].style.fontWeight="normal";}else if(CB==0){this.Jq="MView";this.HO.childNodes[0].blur();this.HO.childNodes[0].style.fontWeight="normal";this.HN.childNodes[0].focus();this.HN.childNodes[0].style.fontWeight="bold";this.HM.childNodes[0].blur();this.HM.childNodes[0].style.fontWeight="normal";}else {this.Jq="HView";this.HO.childNodes[0].blur();this.HO.childNodes[0].style.fontWeight="normal";this.HN.childNodes[0].blur();this.HN.childNodes[0].style.fontWeight="normal";this.HM.childNodes[0].focus();this.HM.childNodes[0].style.fontWeight="bold";};};PK.prototype.KD=function (Ax){if((this.Jq=="MView"||this.Jq=="HView")&&Ax.target.id=="SView"){if(this.KX)this.KX();this.Jq="SView";this.HO.childNodes[0].focus();this.HO.childNodes[0].style.fontWeight="bold";this.HN.childNodes[0].blur();this.HN.childNodes[0].style.fontWeight="normal";this.HM.childNodes[0].blur();this.HM.childNodes[0].style.fontWeight="normal";}else if((this.Jq=="SView"||this.Jq=="HView")&&Ax.target.id=="MView"){if(this.KV)this.KV();this.Jq="MView";this.HO.childNodes[0].blur();this.HO.childNodes[0].style.fontWeight="normal";this.HN.childNodes[0].focus();this.HN.childNodes[0].style.fontWeight="bold";this.HM.childNodes[0].blur();this.HM.childNodes[0].style.fontWeight="normal";}else if((this.Jq=="MView"||this.Jq=="SView")&&Ax.target.id=="HView"){if(this.KT)this.KT();this.Jq="HView";this.HO.childNodes[0].blur();this.HO.childNodes[0].style.fontWeight="normal";this.HN.childNodes[0].blur();this.HN.childNodes[0].style.fontWeight="normal";this.HM.childNodes[0].focus();this.HM.childNodes[0].style.fontWeight="bold";};;};PK.prototype.Fs=function (Bs,EW){this.JC.style.left=Bs-275+"px";this.JC.style.top=EW+"px";};function PX(AS,Br,EX){var As=ElementCreator.GR(Br-80,EX,70,70);As.style.display="block";this.LF=new Array();this.LF.push(ElementCreator.GV(5,5,"map/images/PanControl/PanNeutral.png",60,60,1,true));this.LF.push(ElementCreator.GV(5,5,"map/images/PanControl/PanRight.png",60,60,1,true));this.LF.push(ElementCreator.GV(5,5,"map/images/PanControl/PanDown.png",60,60,1,true));this.LF.push(ElementCreator.GV(5,5,"map/images/PanControl/PanLeft.png",60,60,1,true));this.LF.push(ElementCreator.GV(5,5,"map/images/PanControl/PanUp.png",60,60,1,true));As.appendChild(this.LF[0]);Od(this.LF[0],"mousedown",this.HS("onMouseDown"));As.appendChild(ElementCreator.GV(0,0,"map/images/PanControl/PanControlBackground.png",70,70,0,true));this.JE=As;AS.appendChild(this.JE);this.Jf=0;};PX.prototype.NO=function (En,Es){var CZ=new Point(0,0);CZ.x=Bx.Nu.x+En*Bx.OL;CZ.y=Bx.Nu.y+Es*Bx.OL;Bx.Jq(CZ,true);this.Jf=this.setTimeout("this.startMotion("+En+","+Es+")",200);};PX.prototype.NS=function (){alert("stop Motion, this.motion = "+this.Jf);clearTimeout(this.Jf);};PX.prototype.Kc=function (Aw){var DM=Oz(Aw);DM.x-=Ou(this.LF[0]);DM.y-=Ov(this.LF[0]);var En=DM.x;var Es=DM.y;var DX=(En-30)*(En-30)+(Es-30)*(Es-30);this.HU=null;var EN=null;if(DX<900){if(Es>60-En){if(Es<En){this.HU={keyCode:39};EN=this.LF[1];}else {EN=this.LF[2];this.HU={keyCode:40};}}else {if(Es<En){EN=this.LF[4];this.HU={keyCode:38};}else {EN=this.LF[3];this.HU={keyCode:37};}}}this.JE.Lu(EN,this.LF[0]);if(this.HU){Bx.KT(this.HU);this.HT=EN.Mf?EN:window;if(this.HT.Mf)this.HT.Mf();this.Ji=this.HS("onMouseUp");Od(this.HT,"mouseup",this.Ji);Oi(Aw);}};PX.prototype.Kf=function (){if(this.Ji){Oq(this.HT,"mouseup",this.Ji);this.Ji=null;}this.JE.Lu(this.LF[0],this.JE.childNodes[0]);Bx.KU(this.HU);if(this.HT.Ln)this.HT.Ln();this.HT=null;};PX.prototype.Fs=function (Br,EX){this.JE.style.left=Br-80+"px";this.JE.style.top=EX+"px";};function Po(By,AS,Bs,EW){this.JD=By;this.ND=32;var At=ElementCreator.createChildDiv(Bs,EW,32,194);var O;var P;this.OS=ElementCreator.createImage(7,43,redirected_path("map/images/ZoomSliderHT/Dragger.png"),18,10,0,true);this.OR=ElementCreator.createImage(0,0,redirected_path("map/images/ZoomSliderHT/ZoomOut.png"),32,26,0,true);this.OR.style.top="";this.OR.style.bottom="0px";P=ElementCreator.createChildDiv(0,0,32,168,"#BDBEC0");P.style.top="";P.style.bottom="26px";this.OQ=ElementCreator.createImage(0,5,redirected_path("map/images/ZoomSliderHT/ZoomIn.png"),32,20,0,true);this.OQ.style.top="";this.OQ.style.bottom="171px";O=ElementCreator.createImage(10,this.ND+1,redirected_path("map/images/ZoomSliderHT/ZoomBar.png"),12,120,0,true);O.style.top="";O.style.bottom=194-this.ND-1-120+"px";At.appendChild(P);At.appendChild(O);attachToEvent(this.OQ,"mousedown",eventHandler(this,"Kp"));attachToEvent(this.OR,"mousedown",eventHandler(this,"Kq"));At.appendChild(this.OQ);At.appendChild(this.OR);At.appendChild(this.OS);AS.appendChild(At);this.OS.Ja=7;this.OS.JP=7;this.OS.Jb=this.ND+0+1;this.OS.JQ=this.ND+(MireoMap.zfM.length-1)*11+1;this.HE=new Om(this.OS,7,this.ND+22+1);this.HE.KL=eventHandler(this,"KM");this.zfM=MireoMap.zfM;this.OG=10;this.HE.moveTo(7,this.ND+this.OG*11+1);this.JC=At;this.JC.id="zoom_slider_main_div";};Po.prototype.Fs=function (Bs,EW){this.JC.style.left=Bs+"px";};Po.prototype.KM=function (Ax){var Er=parseInt(this.OS.style.top);var Ey=Math.floor((Er-this.ND+5.5)/11);if(Ey==this.OG)return;this.OG=Ey;this.HE.moveTo(7,this.ND+Ey*11+1);if(this.Kn)this.Kn(this.zfM[Ey]);};Po.prototype.Mv=function (Ey){if(this.Ni(Ey))if(this.Kn)this.Kn(this.zfM[Ey]);;};Po.prototype.Ni=function (Ey){if(Ey==this.OG)return false;this.OG=Ey;this.HE.moveTo(7,this.ND+Ey*11+1);return true;};Po.prototype.Kp=function (){if(this.OG>0)this.Mv(this.OG-1);};Po.prototype.Kq=function (){if(this.OG<this.zfM.length-1)this.Mv(this.OG+1);};function PL(By,AS,Bs,EW,CB,Bk){var At=ElementCreator.createChildDiv(Bs,EW,300,32,null,"Arial, sans serif","12px","center");this.JD=By;this.IH=ElementCreator.createImage(0,0,redirected_path("map/images/MapSwitcherHT/HideButton.png"),32,32,0,true);this.IH.id="hideButton";attachToEvent(this.IH,"click",eventHandler(this,"KP"));this.Hm=ElementCreator.createImage(33,0,redirected_path("map/images/MapSwitcherHT/FullScreen.png"),32,32,0,true);this.Hm.id="fullScreen";attachToEvent(this.Hm,"click",eventHandler(this,"KO"));this.Hn=false;At.appendChild(this.IH);this.MT=ElementCreator.createChildDiv(32,0,1,32,"white");At.appendChild(this.MT);this.MT.id="sep0";At.appendChild(this.Hm);this.MU=ElementCreator.createChildDiv(65,0,1,32,"white");At.appendChild(this.MU);this.MU.id="sep1";At.style.width=this.JR(At)+"px";At.style.display="block";this.JC=At;this.JC.id="map_switcher_main_div";AS.appendChild(At);this.changeLanguage(Bk);this.NB=ElementCreator.createImage(Bs-35,EW,redirected_path("map/images/MapSwitcherHT/ShowButton.png"),32,32,0,true);this.NB.id="showButton";this.NB.style.left="";this.NB.style.right="2px";this.NB.style.display="none";attachToEvent(this.NB,"click",eventHandler(this,"Kj"));AS.appendChild(this.NB);this.Nm=new Size(this.JC.offsetWidth,this.JC.offsetHeight);var EE=this;By.changeLanguage=function (Bl){EE.changeLanguage(Bl);};};PL.prototype.JR=function (At){var EX=0;for(var BZ=0;BZ<At.childNodes.length;BZ++){EX=EX+parseInt(At.childNodes[BZ].style.width);}return EX;};PL.prototype.changeLanguage=function (Bl){if(this.JC.childNodes.length>4){for(var BZ=this.JC.childNodes.length-1;BZ>=4;BZ--){this.JC.removeChild(this.JC.childNodes[BZ]);}this.JC.style.width=this.JR(this.JC)+"px";}var Bs=parseInt(this.JC.style.width);var Du=[0,0,0];var Eh=0;for(var BZ=0;BZ<Bl.length;BZ++){Du[BZ]=measureHTML(Bl[BZ]).width;if(Du[BZ]>Eh)Eh=Du[BZ];}this.JE=ElementCreator.createChildDiv(Bs,0,Eh,32,"#BDBEC0");this.JE.id="MView";this.JE.style.cssText+="; z-index:1;text-align:center;color:black;cursor:pointer;font-weight:normal; line-height: 32px;";this.JE.innerHTML=Bl[0];this.JE.style.Iu="32px";attachToEvent(this.JE,"click",eventHandler(this,"KB"));this.MI=ElementCreator.createChildDiv(Bs+Eh+1,0,Eh,32,"#BDBEC0");this.MI.id="SView";this.MI.style.cssText+="; z-index:1;text-align:center;color:black;cursor:pointer;font-weight:normal; line-height: 32px;";this.MI.innerHTML=Bl[1];attachToEvent(this.MI,"click",eventHandler(this,"KB"));this.IO=ElementCreator.createChildDiv(Bs+2*Eh+2,0,Eh,32,"#BDBEC0");this.IO.id="HView";this.IO.style.cssText+="; z-index:1;text-align:center;color:black;cursor:pointer;font-weight:normal; line-height: 32px;";this.IO.innerHTML=Bl[2];attachToEvent(this.IO,"click",eventHandler(this,"KB"));this.JC.appendChild(this.JE);this.MV=ElementCreator.createChildDiv(Bs+Eh,0,1,32,"white");this.JC.appendChild(this.MV);this.MV.id="sep2";this.JC.appendChild(this.MI);this.MW=ElementCreator.createChildDiv(Bs+2*Eh+1,0,1,32,"white");this.JC.appendChild(this.MW);this.MW.id="sep3";this.JC.appendChild(this.IO);this.MX=ElementCreator.createChildDiv(Bs+3*Eh+2,0,1,32,"white");this.JC.appendChild(this.MX);this.MX.id="sep4";switch(this.JD.JJ){case 0:this.JE.style.background="#D1D2D4";this.JE.style.color="White";this.Jq="MView";break;case 1:this.MI.style.background="#D1D2D4";this.MI.style.color="White";this.Jq="SView";break;case 2:this.IO.style.background="#D1D2D4";this.IO.style.color="White";this.Jq="HView";break;};this.JC.style.width=this.JR(this.JC)+"px";this.JC.style.left=parseInt(this.JD.LD.JC.style.left)-parseInt(this.JC.style.width)+"px";};PL.prototype.KB=function (Ax){if((this.Jq=="MView"||this.Jq=="HView")&&Ax.target.id=="SView"){if(this.KX)this.KX();this.Jq="SView";this.MI.style.background="#D1D2D4";this.MI.style.color="White";this.JE.style.background="#BDBEC0";this.JE.style.color="Black";this.IO.style.background="#BDBEC0";this.IO.style.color="Black";}else if((this.Jq=="SView"||this.Jq=="HView")&&Ax.target.id=="MView"){if(this.KV)this.KV();this.Jq="MView";this.MI.style.background="#BDBEC0";this.MI.style.color="Black";this.JE.style.background="#D0D1D3";this.JE.style.color="White";this.IO.style.background="#BDBEC0";this.IO.style.color="Black";}else if((this.Jq=="MView"||this.Jq=="SView")&&Ax.target.id=="HView"){if(this.KT)this.KT();this.Jq="HView";this.MI.style.background="#BDBEC0";this.MI.style.color="Black";this.JE.style.background="#BDBEC0";this.JE.style.color="Black";this.IO.style.background="#D0D1D3";this.IO.style.color="White";};;};PL.prototype.Fs=function (Bs,EW){this.JC.style.left=parseInt(this.JD.LD.JC.style.left)-parseInt(this.JC.style.width)+"px";this.JC.style.top=EW+"px";};PL.prototype.KP=function (){this.JC.style.display="none";this.JD.LD.JC.style.display="none";this.JD.OM.JC.style.display="none";this.NB.style.display="block";};PL.prototype.Kj=function (){this.NB.style.display="none";this.JC.style.display="block";this.JD.OM.JC.style.display="block";this.JD.LD.JC.style.display="block";};PL.prototype.KO=function (){if(!this.Hn){this.Hn=true;ElementCreator.Fq(this.Hm,33,0,redirected_path("map/images/MapSwitcherHT/NormalScreen.png"),32,32,0,true);}else {this.Hn=false;ElementCreator.Fq(this.Hm,33,0,redirected_path("map/images/MapSwitcherHT/FullScreen.png"),32,32,0,true);}if(this.JD.fullscreen){this.JD.fullscreen(this.Hn);}};function PR(By,AS,Bs,EW){var At=ElementCreator.createChildDiv(Bs,EW,76,76);At.style.display="block";this.JD=By;this.LC=new Array();this.LC.push(ElementCreator.createImage(0,0,redirected_path("map/images/PanControl/PanNeutral.png"),76,76,2,true));this.LC.push(ElementCreator.createImage(0,0,redirected_path("map/images/PanControl/PanRight.png"),76,76,2,true));this.LC.push(ElementCreator.createImage(0,0,redirected_path("map/images/PanControl/PanDown.png"),76,76,2,true));this.LC.push(ElementCreator.createImage(0,0,redirected_path("map/images/PanControl/PanLeft.png"),76,76,2,true));this.LC.push(ElementCreator.createImage(0,0,redirected_path("map/images/PanControl/PanUp.png"),76,76,2,true));At.appendChild(this.LC[0]);attachToEvent(this.LC[0],"mousedown",eventHandler(this,"KZ"));At.appendChild(ElementCreator.createImage(0,0,redirected_path("map/images/PanControl/PanControlBackground.png"),76,70,1,true));this.JC=At;this.JC.id="pan_control_main_div";this.JC.style.zIndex=1;AS.appendChild(this.JC);};PR.prototype.KZ=function (Ax){var DM=getMouseCoordinates(Ax);DM.x-=findPosX(this.LC[0]);DM.y-=findPosY(this.LC[0]);var Em=DM.x;var Er=DM.y;var DX=(Em-38)*(Em-38)+(Er-38)*(Er-38);this.HT=null;var EM=null;if(DX>1024)return;if(Er>76-Em){if(Er<Em){this.HT={keyCode:39};EM=this.LC[1];}else {EM=this.LC[2];this.HT={keyCode:40};}}else {if(Er<Em){EM=this.LC[4];this.HT={keyCode:38};}else {EM=this.LC[3];this.HT={keyCode:37};}}this.JC.replaceChild(EM,this.LC[0]);if(this.HT){this.JD.KQ(this.HT);this.HS=EM.setCapture?EM:window;if(this.HS.setCapture)this.HS.setCapture();this.Je=eventHandler(this,"Kc");attachToEvent(this.HS,"mouseup",this.Je);cancelBubbling(Ax);}};PR.prototype.Kc=function (){if(this.Je){detachFromEvent(this.HS,"mouseup",this.Je);this.Je=null;}this.JC.replaceChild(this.LC[0],this.JC.childNodes[0]);this.JD.KR(this.HT);if(this.HS.releaseCapture)this.HS.releaseCapture();this.HS=null;};PR.prototype.Fs=function (Bs,EW){this.JC.style.left=Bs+"px";};function HTMapView(){this.mapcopyright=new Array();this.mapcopyright.push("©2009 T-HT - Map data ©2009 Mireo, Interactive1");this.mapcopyright.push("©2009 T-HT - Image ©2009 DigitalGlobe, Interactive1");this.mapcopyright.push("©2009 T-HT - Map data ©2009 Mireo, Image ©2009 DigitalGlobe, Interactive1");this.mapcopyrightcolor=["black","white","white"];this.innerText=["Map","Satellite","Hybrid"];};HTMapView.prototype.createChildControls=function (By){By.LD=new PR(By,By.GL,By.Nm.width-80,2);By.OM=new Po(By,By.GL,By.Nm.width-36,72);By.JF=new PL(By,By.GL,By.Nm.width-80,2,By.JJ,this.innerText);By.GS(By.Kx.mapcopyright[By.JJ],By.Kx.mapcopyrightcolor[By.JJ]);};HTMapView.prototype.onResize=function (By){By.LD.Fs(By.Nm.width-80,2);By.OM.Fs(By.Nm.width-36,72);By.JF.Fs(By.Nm.width-80,2);};var SELECT_PEN=0;var SELECT_BRUSH=1;var DRAW_LINE=2;var DRAW_POLYLINE=3;var DRAW_RECTANGLE=4;var DRAW_ELLIPSE=5;var FILL_POLYGON=6;var FILL_RECTANGLE=7;var FILL_ELLIPSE=8;var DRAW_DIRECTED_POLYLINE=9;var SET_ALPHA_LEVEL=10;function Ou(AF,AG){this.GH=AF;this.GI=AG;};Ou.NY=function (AR){return Ob(Oe(AR));function Oe(G){var Db=new Array();for(var BZ=0;BZ<G.length;++BZ){var AP=G[BZ].GH;var AQ=G[BZ].GI;var Bt=AQ.length;Db.push(AP&255);Db.push(AP>>8&255);if(AP==DRAW_POLYLINE||(AP==FILL_POLYGON||AP==DRAW_DIRECTED_POLYLINE)){var CT=Bt/2;Db.push(CT&255);Db.push(CT>>8&255);}for(var Bn=0;Bn<Bt;++Bn){var Em=AQ[Bn];Db.push(Em&255);Db.push(Em>>8&255);}}return Db;};function Ob(G){var BA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var Db=new Array();var BZ=0;do {var I=G[BZ++];var J=G[BZ++];var K=G[BZ++];var q=I>>2;var t=(I&3)<<4|J>>4;var u=(J&15)<<2|K>>6;var v=K&63;if(isNaN(J)){u=(v=64);}else if(isNaN(K)){v=64;};Db.push(BA.charAt(q));Db.push(BA.charAt(t));Db.push(BA.charAt(u));Db.push(BA.charAt(v));} while(BZ<G.length);var Di=Db.join("");return Di;};};Ou.MR=function (B,DX,BM,H,Ee){return new Ou(SELECT_PEN,arguments);};Ou.MQ=function (B,DX,BM,H){return new Ou(SELECT_BRUSH,arguments);};Ou.HJ=function (En,Es,Ep,Eu){return new Ou(DRAW_LINE,arguments);};Ou.HK=function (){if(arguments.length!=1){return new Ou(DRAW_POLYLINE,arguments);}else {return new Ou(DRAW_POLYLINE,arguments[0]);}};Ou.HL=function (Em,Er,Ee,BU){return new Ou(DRAW_RECTANGLE,arguments);};Ou.HH=function (Em,Er,Ee,BU){return new Ou(DRAW_ELLIPSE,arguments);};Ou.HY=function (){if(arguments.length!=1){return new Ou(FILL_POLYGON,arguments);}else {return new Ou(FILL_POLYGON,arguments[0]);}};Ou.HZ=function (Em,Er,Ee,BU){return new Ou(FILL_RECTANGLE,arguments);};Ou.HX=function (Em,Er,Ee,BU){return new Ou(FILL_ELLIPSE,arguments);};Ou.HG=function (){if(arguments.length!=1){return new Ou(DRAW_DIRECTED_POLYLINE,arguments);}else {return new Ou(DRAW_DIRECTED_POLYLINE,arguments[0]);}};Ou.MY=function (B){return new Ou(SET_ALPHA_LEVEL,arguments);};var MireoDefaultCopyright="Map data and technology ©2004-2005 Mireo";function Oj(){this.mapcopyright=new Array();this.mapcopyright.push(MireoDefaultCopyright);this.mapcopyright.push(MireoDefaultCopyright);this.mapcopyright.push(MireoDefaultCopyright);this.mapcopyrightcolor=["black","black","black"];};Oj.prototype.createChildControls=function (By){By.OM=new Pn(By.GL,By.Nm.width-50,30);By.GS(By.Kx.mapcopyright[By.JJ],By.Kx.mapcopyrightcolor[By.JJ]);};Oj.prototype.onResize=function (By){By.OM.Fs(By.Nm.width-50,30);By.GN.style.left=By.Nm.width-230+"px";By.GN.style.top=By.Nm.height-20+"px";};function MireoMap(At,Ct){if(!Ct){this.Kx=new Oj();}else this.Kx=Ct;this.GL=At;At.style.overflow="hidden";this.LE=true;this.Iq=0;this.Ip=0;this.Gc=false;this.OG=null;this.JT=null;this.JJ=0;this.Nm=new Size(this.GL.offsetWidth,this.GL.offsetHeight);this.Fk();this.GT();this.GY();this.GX();this.JL=new Array();this.HE=new Om(this.HB,0,0,null,true);this.HE.KJ=eventHandler(this,"KK");this.HE.KL=eventHandler(this,"KM");this.HE.Kl=eventHandler(this,"Km");this.HE.onclick=eventHandler(this,"KD");this.HE.ondblclick=eventHandler(this,"KG");this.onmousewheel=OY(this.HB,eventHandler(this,"Ke"));this.MJ=new Pa(this.GL,20,this.Nm.height-50);this.Kx.createChildControls(this);this.OM.Kn=eventHandler(this,"Ko");if(this.JF){this.JF.KX=eventHandler(this,"KY");this.JF.KV=eventHandler(this,"KW");this.JF.KT=eventHandler(this,"KU");}this.Gh=Global.GetMapMercatorBounds();this.No=new Point(this.Gh.x,this.Gh.y);this.Np=new Point(this.Gh.x+this.Gh.width,this.Gh.y+this.Gh.height);attachToEvent(window.document,"keydown",eventHandler(this,"KQ"));attachToEvent(window.document,"keyup",eventHandler(this,"KR"));this.Fg=new Array();this.Fg.push(ElementCreator.createImageRelative(redirected_path("map/images/Borders/upper_right.png"),13,11,true));this.Fg.push(ElementCreator.createImageRelative(redirected_path("map/images/Borders/lower_right.png"),13,11,true));this.Fg.push(ElementCreator.createImageRelative(redirected_path("map/images/Borders/lower_left.png"),13,11,true));this.Fg.push(ElementCreator.createImageRelative(redirected_path("map/images/Borders/upper_left.png"),13,11,true));var CH=this;if(browser.type==2&&browser.Nl<3){document.onmousemove=function (Ax){CH.Jf=Ax.pageX;CH.Jg=Ax.pageY;};}};MireoMap.IT=256;MireoMap.Fc=new Image(MireoMap.IT,MireoMap.IT);if(typeof(MIREO_REDIRECT_TO)!="undefined"){MireoMap.IU=MIREO_REDIRECT_TO+"/MapServer.aspx?";MireoMap.Fc.src=MIREO_REDIRECT_TO+"/blankMap.gif";}else {var dir="http://"+window.location.host;dir=dir+window.location.pathname;dir=dir.substring(0,dir.lastIndexOf("/"));MireoMap.IU=dir+"/MapServer.aspx?";MireoMap.Fc.src=dir+"/blankMap.gif";}MireoMap.zfM=[8,16,32,64,128,256,512,1024,2048,4096,8192];MireoMap.prototype.setCenterAndZoom=function (DM,Ew){this.Mu(Sphere.Deg2World(DM),this.IZ(Ew));};MireoMap.prototype.moveCenterTo=function (DM,N){this.Jm(Sphere.Deg2World(DM),N);};MireoMap.prototype.getCenter=function (){return Sphere.World2Deg(this.Nq);};MireoMap.prototype.getZoomLevel=function (){return this.OP(this.OG);};MireoMap.prototype.setZoomLevel=function (Ew){this.Mu(this.Nq,this.IZ(Ew));};MireoMap.prototype.getBounds=function (){var ER=new Point(-this.HE.left,-this.HE.top);var d=new Point(ER.x+this.Nm.width,ER.y+this.Nm.height);var EQ=Sphere.World2Deg(this.HC(ER));var Z=Sphere.World2Deg(this.HC(d));return new DRect(EQ.x,EQ.y,Z.x,Z.y);};MireoMap.prototype.setBounds=function (DZ){var Ab=(DZ.x1+DZ.x2)/2;var Ac=(DZ.y1+DZ.y2)/2;var DO=Sphere.Deg2World(new DPoint(DZ.x1,DZ.y1));var DQ=Sphere.Deg2World(new DPoint(DZ.x2,DZ.y2));var FB=Math.abs(DQ.x-DO.x)/this.Nm.width;var FC=Math.abs(DQ.y-DO.y)/this.Nm.height;var Ew=this.OP(Math.max(FB,FC));this.setCenterAndZoom(new DPoint(Ab,Ac),Ew);};MireoMap.prototype.getMapDataBounds=function (){return dataBounds;};MireoMap.prototype.addOverMapDrawer=function (Cp){Cp.Mk(this);this.Kv.appendChild(Cp.IS);};MireoMap.prototype.removeOverMapDrawer=function (Cp){if(Cp.IS.parentNode==this.Kv){this.Kv.removeChild(Cp.IS);}};MireoMap.prototype.addMapMarker=function (CC){CC.div.setPosition(this.Nu(CC.position));this.JL.push(CC);this.JK.appendChild(CC.div);this.NF();};MireoMap.prototype.removeMapMarker=function (CC){this.JK.removeChild(CC.div);for(var BZ=0;BZ<this.JL.length;++BZ){if(this.JL[BZ]==CC){this.JL.splice(BZ,1);break;}}};MireoMap.prototype.displayInfoWindow=function (DM,BY,Cm,D){if(D==null){D=new GeoAddress();D.pt=DM;}this.Gw(Sphere.Deg2World(DM),BY,Cm,D);};MireoMap.prototype.displayInfoWindowOnMarker=function (CC,BY,D){if(D==null){D=new GeoAddress();D._POI=CC.IR.title;D.pt=Sphere.World2Deg(CC.position);}this.Gw(CC.position,BY,CC.height,D);};MireoMap.prototype.closeInfoWindow=function (){if(this.Ib!=null){this.removeMapMarker(this.Ib);this.Ib=null;}};MireoMap.prototype.GS=function (BY,AL){var Ae="<DIV style=\"font-family: Arial, sans serif; font-size:10px; text-align:right\">"+BY+"</DIV>";var Du=measureHTML(Ae);this.GN=ElementCreator.createChildDiv(this.Nm.width-Du.width,this.Nm.height-20,Du.width,15,null,"Arial, sans serif","10px","right");this.GN.style.left="";this.GN.style.top="";this.GN.style.right="10px";this.GN.style.bottom="5px";this.GN.innerHTML=BY;this.GN.style.color=AL;this.GL.appendChild(this.GN);};MireoMap.prototype.Nh=function (BY,AL){var Ae="<DIV style=\"font-family: Arial, sans serif; font-size:10px; text-align:right\">"+BY+"</DIV>";var Du=measureHTML(Ae);this.GN.style.width=Du.width+"px";this.GN.innerHTML=BY;this.GN.style.color=AL;};MireoMap.prototype.viewSizeChanged=function (){if(this.JI==null)return;var Q=this.GL.offsetWidth>this.Nm.width||this.GL.offsetHeight>this.Nm.height;var Av=this.OG*(this.GL.offsetWidth-this.Nm.width)/2;var Aw=-this.OG*(this.GL.offsetHeight-this.Nm.height)/2;var CW=new Point(this.Nq.x+Av,this.Nq.y+Aw);this.Nm=new Size(this.GL.offsetWidth,this.GL.offsetHeight);this.Fk();this.MJ.Fs(20,this.Nm.height-50);this.Kx.onResize(this);this.Ft();switch(this.LP(CW)){case -1:CW.x=this.No.x;break;case 1:CW.x=this.Np.x-1;break;};switch(this.LQ(CW)){case -1:CW.y=this.No.y;break;case 1:CW.y=this.Np.y-1;break;};this.Nq=CW;if(this.move){this.move(Sphere.World2Deg(this.Nq));}this.MJ.Ls(this.IC());if(Q){for(var BZ=0;BZ<this.Kv.childNodes.length;++BZ){this.Kv.childNodes[BZ].Li();}}};MireoMap.prototype.Gv=function (){var Ai=0;if(this.OM.JC.style.left)var Aj=this.Nm.width-parseInt(this.OM.JC.style.left);else var Aj=parseInt(this.OM.JC.style.width)+parseInt(this.OM.JC.style.right);var Al=this.JF?parseInt(this.JF.JC.style.top)+parseInt(this.JF.JC.style.height):0;var Ak=this.Nm.height-parseInt(this.MJ.JC.style.top);if(this.GN.style.top)var Ah=this.Nm.IF-parseInt(this.GN.style.top);else var Ah=parseInt(this.GN.style.height)+parseInt(this.GN.style.bottom);var Ag=Math.max(Ak,Ah);this.Ib.left+=Ai;this.Ib.right+=Aj;this.Ib.top-=Al;this.Ib.bottom+=Ag;};function selectInfoWindow(Bm){MireoMap.Ia=Bm;};MireoMap.prototype.Gw=function (DM,BY,Cm,D){if(Cm==null)Cm=0;this.closeInfoWindow();if(!MireoMap.Ia){selectInfoWindow(InfoWindow);}this.Ib=new MireoMap.Ia(this,DM,BY,Cm,D);this.Ib.Fi=true;this.addMapMarker(this.Ib);if(this.ondisplayinfowindow)this.ondisplayinfowindow(this.Ib);var Bs=-this.HE.left;var EW=-this.HE.top;var De=Bs+this.Nm.width;var U=EW+this.Nm.height;var CO=false;var Em=this.Nq.x;var Er=this.Nq.y;this.Gv();var DR=new Point(0,0);DR=this.Nu(DM);DR.x=DR.x-findPosX(this.GL)+findPosX(this.HB);DR.y=DR.y-findPosY(this.GL)+findPosY(this.HB)-Cm;if(this.Ib.left<Bs){CO=true;Em=Em-(Bs-this.Ib.left)*this.OG;DR.x+=Bs-this.Ib.left;}else if(this.Ib.right>De){CO=true;Em=Em-(De-this.Ib.right)*this.OG;DR.x+=De-this.Ib.right;};if(this.Ib.top<EW){CO=true;Er=Er+(EW-this.Ib.top)*this.OG;DR.y+=EW-this.Ib.top;}else if(this.Ib.bottom>U){CO=true;Er=Er+(U-this.Ib.bottom)*this.OG;DR.y-=U-this.Ib.bottom;};var CX=new Point(Em,Er);if(CX!=new Point(Em,Er)){CO=true;}if(CO){this.Jm(CX,true);}};MireoMap.prototype.Jm=function (CV,N){var Ey=this.OG;if(N&&this.LR(CV)){var AT=new Array();var Dz=30*Ey;var Am=CV.x-this.Nq.x;var An=CV.y-this.Nq.y;var Af=Math.sqrt(Am*Am+An*An);var EA=Dz*Am/Af;var EB=Dz*An/Af;var Em=this.Nq.x;var Er=this.Nq.y;var Bu=Af-Dz;for(var BZ=0;BZ<Bu;BZ=BZ+Dz){Em=Em+EA;Er=Er+EB;AT.push(new Point(Em,Er));}AT.push(CV);this.GM(AT,0);}else {this.Md(new Point(CV.x,CV.y));this.Ml();}};MireoMap.prototype.IZ=function (BZ){if(BZ<0)return MireoMap.zfM[0];if(BZ>=MireoMap.zfM.length)return MireoMap.zfM[MireoMap.zfM.length-1];return MireoMap.zfM[BZ];};MireoMap.prototype.OP=function (Ey){for(var BZ=0;BZ<MireoMap.zfM.length;++BZ)if(Ey<=MireoMap.zfM[BZ])return BZ;;return MireoMap.zfM.length-1;};MireoMap.prototype.Lz=function (Ey){return MireoMap.zfM[this.OP(Ey)];};MireoMap.prototype.Fu=function (Ey){this.OG=Ey;this.JT=MireoMap.IT*this.OG;};MireoMap.prototype.IC=function (){var Eg=Sphere.World2Deg(this.Nq);return this.OG*Sphere.JY*Math.cos(Sphere.Gl(Eg.y));};MireoMap.prototype.Jk=function (Em,Er){this.Nq.x+=Em;this.Nq.y+=Er;this.MJ.Ls(this.IC());};MireoMap.prototype.LR=function (Ei){var DM=this.Nv(Ei);var Du=this.LG();return DM.x>=0&&(DM.y>=0&&(DM.x<Du.width&&DM.y<Du.height));};MireoMap.prototype.GM=function (AT,Ba){if(Ba!=null){this.Mf(AT[Ba]);++Ba;if(Ba<AT.length){Pd(this.GM,10,this,AT,Ba);}else {this.Ml();if(this.move){this.move(Sphere.World2Deg(this.Nq));}}}else {if(this.Iq==0&&this.Ip==0){this.Ml();if(this.move){this.move(Sphere.World2Deg(this.Nq));}}else {var CP=10*this.Ip*this.OG;var CQ=-10*this.Iq*this.OG;if(this.Gc){CP=CP*10;CQ=CQ*10;}this.Mf(new Point(this.Nq.x+CP,this.Nq.y+CQ));Pd(this.GM,1,this,null,null);}}};MireoMap.prototype.Ml=function (){for(var BZ=0;BZ<this.Kv.childNodes.length;++BZ){this.Kv.childNodes[BZ].Li();}this.Kv.style.top=this.JI[0][0].style.top;this.Kv.style.left=this.JI[0][0].style.left;};MireoMap.prototype.LP=function (Ek){if(Ek.x<this.No.x)return -1;if(Ek.x>=this.Np.x)return 1;return 0;};MireoMap.prototype.LQ=function (Ek){if(Ek.y<this.No.y)return -1;if(Ek.y>=this.Np.y)return 1;return 0;};MireoMap.prototype.Md=function (Eg){this.Mf(Eg);if(this.move){this.move(Sphere.World2Deg(this.Nq));}};MireoMap.prototype.Mf=function (Eg){Eg=new Point(Eg.x,Eg.y);switch(this.LP(Eg)){case -1:Eg.x=this.No.x;break;case 1:Eg.x=this.Np.x-1;break;};switch(this.LQ(Eg)){case -1:Eg.y=this.No.y;break;case 1:Eg.y=this.Np.y-1;break;};var Av=(this.Nq.x-Eg.x)/this.OG;var Aw=(Eg.y-this.Nq.y)/this.OG;this.HE.moveTo(this.HE.left+Av,this.HE.top+Aw);this.Jj(Av,Aw);};MireoMap.prototype.Mu=function (Eg,Ey){Eg=new Point(Eg.x,Eg.y);switch(this.LP(Eg)){case -1:Eg.x=this.No.x;break;case 1:Eg.x=this.Np.x-1;break;};switch(this.LQ(Eg)){case -1:Eg.y=this.No.y;break;case 1:Eg.y=this.Np.y-1;break;};var Co=this.OG;this.Ga();this.Nq=Eg;this.Fu(Ey);var CS=this.JT;var Au=new Point(Eg.x-this.Nm.width/2*Ey,Eg.y+this.Nm.height/2*Ey);var El=new Point(Math.floor(Au.x/CS)*CS,Math.ceil(Au.y/CS)*CS);var DM=new Point((El.x-Au.x)/Ey,(Au.y-El.y)/Ey);this.Ge=El;this.Gf=DM;this.Ll();this.HE.moveTo(DM.x,DM.y);this.MJ.Ls(this.IC());for(var BZ=0;BZ<this.Kv.childNodes.length;++BZ){this.Kv.childNodes[BZ].Li();}for(var BZ=0;BZ<this.JK.childNodes.length;++BZ){var Cb=this.JK.childNodes[BZ];Cb.setPosition(this.Nu(Cb.owner.position));}this.Kv.style.top=this.JI[0][0].style.top;this.Kv.style.left=this.JI[0][0].style.left;this.OM.Ni(this.OP(this.OG));if(this.zoomchanged){this.zoomchanged(Co,this.OG);}var Cx=this.Nu(this.No);var Cz=this.Nu(this.Np);this.HB.Ja=-Cz.x+this.Nm.width/2;this.HB.JP=-Cx.x+this.Nm.width/2;this.HB.Jb=-Cx.y+this.Nm.height/2;this.HB.JQ=-Cz.y+this.Nm.height/2;if(this.move){this.move(Sphere.World2Deg(this.Nq));}};MireoMap.prototype.Fk=function (){this.LH=new Size(Math.floor((this.Nm.width-2)/MireoMap.IT)+2,Math.floor((this.Nm.height-2)/MireoMap.IT)+2);};MireoMap.prototype.Ga=function (){if(this.JI!=null)return;this.JI=new Array();var Bh=MireoMap.IT;for(var Bn=0;Bn<this.LH.width;++Bn){var AW=new Array();this.JI.push(AW);for(var BZ=0;BZ<this.LH.height;++BZ){var Bd=this.GZ(Bn*Bh,BZ*Bh,Bh);AW.push(Bd);}}};MireoMap.prototype.Ft=function (){var Bh=MireoMap.IT;if(this.JI==null){this.JI=new Array();}var EG=this.JI.length;for(var Bn=EG;Bn<this.LH.width;++Bn){this.JI.push(new Array());}for(var Bn=this.LH.width;Bn<EG;++Bn){var AW=this.JI[this.JI.length-1];for(var BZ=0;BZ<AW.length;++BZ){this.HB.removeChild(AW[BZ]);}this.JI.pop();}for(var Bn=0;Bn<this.LH.width;++Bn){var AW=this.JI[Bn];var EH=AW.length;for(var BZ=EH;BZ<this.LH.height;++BZ){var DA=Bn*Bh+this.JI[0][0].LL;var DB=AW.length*Bh+this.JI[0][0].LM;var Bd=this.GZ(DA,DB,Bh);this.Mj(Bd,this.Ge.x+Bn*this.JT,this.Ge.y-AW.length*this.JT);AW.push(Bd);}for(var BZ=this.LH.height;BZ<EH;++BZ){this.HB.removeChild(AW[AW.length-1]);AW.pop(Bd);}}this.Jj(0,0);};MireoMap.prototype.GY=function (){var Cr=this.LG();this.Kv=ElementCreator.createChildDiv(0,0,Cr.width,Cr.height);this.Kv.style.zIndex=2;this.HB.appendChild(this.Kv);};MireoMap.prototype.NF=function (){this.JL.sort(function (Bv,Bw){return Bw.position.y-Bv.position.y;});for(var BZ=0;BZ<this.JL.length;++BZ){if(this.JL[BZ].Fi){this.JL[BZ].div.style.zIndex=BZ+this.JL.length;}else if(this.JL[BZ].Mx){this.JL[BZ].div.style.zIndex=BZ;}else {this.JL[BZ].div.style.zIndex=-1;};}};MireoMap.prototype.GZ=function (DV,DW,Bh){var Bd=document.createElement("IMG");Bd.style.position="absolute";Bd.LL=DV;Bd.LM=DW;Bd.style.left=DV+"px";Bd.style.top=DW+"px";Bd.style.width=Bh+"px";Bd.style.height=Bh+"px";Bd.style.MozUserFocus="normal";Bd.galleryImg=false;if(browser.type==1){Bd.unselectable="on";Bd.onselectstart=PO;}else Bd.style.MozUserSelect="none";Bd.oncontextmenu=PO;this.HB.appendChild(Bd);return Bd;};MireoMap.prototype.Mj=function (Bd,CJ,CK){if(CJ)Bd.JU=CJ;if(CK)Bd.JV=CK;Bd.src=MireoMap.Fc.src;Bd.src=MireoMap.IU+"lwM="+Bd.JU+"&twM="+Bd.JV+"&zf="+this.OG+"&w="+MireoMap.IT+"&h="+MireoMap.IT+"&type="+this.JJ;};MireoMap.prototype.GT=function (){this.HB=document.createElement("div");this.HB.style.position="absolute";this.HB.style.top="0px";this.HB.style.left="0px";this.HB.style.zIndex=0;this.GL.appendChild(this.HB);};MireoMap.prototype.GX=function (){this.JK=document.createElement("div");this.JK.style.position="absolute";this.JK.style.top="0px";this.JK.style.left="0px";this.JK.style.zIndex=10;this.HB.appendChild(this.JK);};MireoMap.prototype.Ll=function (){var Bh=MireoMap.IT;for(var Bn=0;Bn<this.LH.width;++Bn){var AW=this.JI[Bn];for(var BZ=0;BZ<this.LH.height;++BZ){var Bd=AW[BZ];Bd.LL=Bn*Bh;Bd.LM=BZ*Bh;Bd.style.left=Bn*Bh+"px";Bd.style.top=BZ*Bh+"px";this.Mj(Bd,this.Ge.x+Bn*this.JT,this.Ge.y-BZ*this.JT);}}};MireoMap.prototype.LG=function (){return new Size(this.LH.width*MireoMap.IT,this.LH.height*MireoMap.IT);};MireoMap.prototype.Nv=function (Ej){return new Point(Math.round((Ej.x-this.Ge.x)/this.OG),Math.round((this.Ge.y-Ej.y)/this.OG));};MireoMap.prototype.HC=function (DE){return new Point((this.HE.left+DE.x-this.Gf.x)*this.OG+this.Ge.x,this.Ge.y-(this.HE.top+DE.y-this.Gf.y)*this.OG);};MireoMap.prototype.Nu=function (Ej){return new Point(Math.round((Ej.x-this.Ge.x)/this.OG+this.Gf.x-this.HE.left),Math.round((this.Ge.y-Ej.y)/this.OG+this.Gf.y-this.HE.top));};MireoMap.prototype.Ko=function (Ey){this.Mu(this.Nq,Ey);};MireoMap.prototype.KW=function (){this.JJ=0;this.Mu(this.Nq,this.OG);this.Nh(this.Kx.mapcopyright[this.JJ],this.Kx.mapcopyrightcolor[this.JJ]);};MireoMap.prototype.KY=function (){this.JJ=1;this.Mu(this.Nq,this.OG);this.Nh(this.Kx.mapcopyright[this.JJ],this.Kx.mapcopyrightcolor[this.JJ]);};MireoMap.prototype.KU=function (){this.JJ=2;this.Mu(this.Nq,this.OG);this.Nh(this.Kx.mapcopyright[this.JJ],this.Kx.mapcopyrightcolor[this.JJ]);};MireoMap.prototype.KK=function (EF){this.HD=true;this.Jj(EF.width,EF.height);};MireoMap.prototype.KM=function (Ax){if(this.Kv.style.top!=this.JI[0][0].style.top||this.Kv.style.left!=this.JI[0][0].style.left){for(var BZ=0;BZ<this.Kv.childNodes.length;++BZ){this.Kv.childNodes[BZ].Li();}this.Kv.style.top=this.JI[0][0].style.top;this.Kv.style.left=this.JI[0][0].style.left;}if(this.move&&this.HD){this.move(Sphere.World2Deg(this.Nq));}this.HD=false;};MireoMap.prototype.Km=function (Ax){var Em=Math.round((Ax.NL.x+Ax.HQ.x)/2);var Er=Math.round((Ax.NL.y+Ax.HQ.y)/2);this.Nq=this.HC(new Point(Em,Er));var Ee=this.Nm.width;var BU=this.Nm.height;var Cg=Math.abs(Ax.HQ.x-Ax.NL.x);var Ca=Math.abs(Ax.HQ.y-Ax.NL.y);var BG=Cg/Ee;var BH=Ca/BU;var BF=Math.max(BG,BH);var Ey;if(Ax.HQ.x>Ax.NL.x){Ey=Math.round(this.OG*BF);}else {Ey=Math.round(this.OG/BF);}this.Mu(this.Nq,this.Lz(Ey));};MireoMap.prototype.KD=function (Ax){if(this.click){var Em=Ax.LV.x;var Er=Ax.LV.y;var CD=this.JL;var Cs=null;for(var BZ=CD.length-1;BZ>=0;--BZ){if(CD[BZ].isClicked(Em,Er)){Cs=CD[BZ];break;}}this.click(Sphere.World2Deg(this.HC(Ax.LV)),Cs);}};MireoMap.prototype.KG=function (Ax){if(this.dblclick){var Em=Ax.LV.x;var Er=Ax.LV.y;var CD=this.JL;var Cs=null;for(var BZ=CD.length-1;BZ>=0;--BZ){if(CD[BZ].isClicked(Em,Er)){Cs=CD[BZ];break;}}this.dblclick(Sphere.World2Deg(this.HC(Ax.LV)),Cs);}};MireoMap.prototype.Jj=function (Em,Er){var Bf=this.LH.width;var Bi=this.LH.height;var Bj=MireoMap.IT;var Ey=this.OG;this.Gf.x+=Em;this.Gf.y+=Er;var EP=this.Gf;while(EP.x+Bf*Bj<this.Nm.width)this.He();while(EP.y+Bi*Bj<this.Nm.height)this.Hc();while(EP.x>0)this.Hd();while(EP.y>0)this.Hf();this.Jk(-Em*Ey,Er*Ey);};MireoMap.prototype.He=function (){var AH=this.JI.shift();var Bf=this.LH.width;var Bj=MireoMap.IT;var Ey=this.OG;for(var BZ=0;BZ<AH.length;++BZ){var Bd=AH[BZ];Bd.LL+=Bf*Bj;Bd.style.left=Bd.LL+"px";Bd.JU+=Bf*Bj*Ey;this.Mj(Bd);}this.JI.push(AH);this.Gf.x+=MireoMap.IT;this.Ge.x+=MireoMap.IT*this.OG;};MireoMap.prototype.Hd=function (){var Bf=this.LH.width;var Bj=MireoMap.IT;var Ey=this.OG;var AH=this.JI.pop();for(var BZ=0;BZ<AH.length;++BZ){var Bd=AH[BZ];Bd.LL-=Bf*Bj;Bd.style.left=Bd.LL+"px";Bd.JU-=Bf*Bj*Ey;this.Mj(Bd);}this.JI.unshift(AH);this.Gf.x-=MireoMap.IT;this.Ge.x-=MireoMap.IT*this.OG;};MireoMap.prototype.Hf=function (){var Bi=this.LH.height;var Bj=MireoMap.IT;var Ey=this.OG;var ED=this.JI;for(var BZ=0;BZ<ED.length;++BZ){var Bd=ED[BZ].pop();Bd.LM-=Bi*Bj;Bd.style.top=Bd.LM+"px";Bd.JV+=Bi*Bj*Ey;this.Mj(Bd);ED[BZ].unshift(Bd);}this.Gf.y-=MireoMap.IT;this.Ge.y+=MireoMap.IT*this.OG;};MireoMap.prototype.Hc=function (){var Bi=this.LH.height;var Bj=MireoMap.IT;var Ey=this.OG;var ED=this.JI;for(var BZ=0;BZ<ED.length;++BZ){var Bd=ED[BZ].shift();Bd.LM+=Bi*Bj;Bd.style.top=Bd.LM+"px";Bd.JV-=Bi*Bj*Ey;this.Mj(Bd);ED[BZ].push(Bd);}this.Gf.y+=MireoMap.IT;this.Ge.y-=MireoMap.IT*this.OG;};MireoMap.prototype.KQ=function (Ax){if(Ax.ctrlKey||(Ax.altKey||Ax.metaKey)){return true;}if(Ax.target&&(Ax.target.nodeName=="INPUT"&&Ax.target.getAttribute("type").toLowerCase()=="text"||Ax.target.nodeName=="TEXTAREA")){return true;}};MireoMap.prototype.KQ=function (Ax){if(this.IQ(Ax))return true;var CR=this.Iq!=0||this.Ip!=0;switch(Ax.keyCode){case 38:this.Iq=-1;if(!CR)this.GM();;return false;case 40:this.Iq=1;if(!CR)this.GM();;return false;case 37:this.Ip=-1;if(!CR)this.GM();;return false;case 39:this.Ip=1;if(!CR)this.GM();;return false;case 17:this.Gc=true;return false;case 61:case 43:case 187:case 107:this.setZoomLevel(this.OP(this.OG)-1);return false;case 45:case 95:case 189:case 109:this.setZoomLevel(this.OP(this.OG)+1);return false;};return true;};MireoMap.prototype.KR=function (Ax){switch(Ax.keyCode){case 38:case 40:this.Iq=0;return false;case 37:case 39:this.Ip=0;return false;case 17:this.Gc=false;return false;};};MireoMap.prototype.IQ=function (Ax){if(Ax.target&&(Ax.target.nodeName=="INPUT"&&Ax.target.getAttribute("type").toLowerCase()=="text"||Ax.target.nodeName=="TEXTAREA")){return true;}return false;};MireoMap.prototype.Ke=function (Ax){if(Ax.preventDefault){Ax.preventDefault();}else {Ax.returnValue=false;}if(this.Nr!=null)return;var Ez=this.getZoomLevel();Pm(Ax)>0?Ez=Ez-1:Ez=Ez+1;if(Ez<0||Ez>=MireoMap.zfM.length)return;var FA=this.IZ(Ez);var DM=browser.type==2&&browser.Nl<3?new Point(this.Jf,this.Jg):getMouseCoordinates(Ax);var DP=new Point(DM.x,DM.y);DM.x-=findPosX(this.HB);DM.y-=findPosY(this.HB);var DU=this.HC(DM);var DT=Sphere.World2Deg(DU);DP.x-=findPosX(this.GL);DP.y-=findPosY(this.GL);var Bz=new Point(0,0);Bz.x=Math.round(parseInt(this.Nm.width)/2);Bz.y=Math.round(parseInt(this.Nm.height)/2);var Ap=new Point(0,0);Ap.x=Bz.x-DP.x;Ap.y=Bz.y-DP.y;var CY=new Point(0,0);CY.x=DU.x+Ap.x*FA;CY.y=DU.y-Ap.y*FA;var CZ=Sphere.World2Deg(CY);Pm(Ax)>0?this.Ji(-1,DP.x,DP.y,0):this.Ji(1,DP.x,DP.y,0);this.setCenterAndZoom(CZ,Ez);};MireoMap.prototype.Ji=function (FH,DJ,DK,Cm){if(this.Nr==null){this.Nr=1;for(var BZ=0;BZ<this.Fg.length;BZ++){this.GL.appendChild(this.Fg[BZ]);}}var Av=FH==-1?20:-80;var Ds=[1,1,-1,-1];var Dt=[-1,1,1,-1];for(var BZ=0;BZ<4;++BZ){this.Fg[BZ].style.position="absolute";this.Fg[BZ].style.left=DJ+Ds[BZ]*(Av+Cm)+"px";this.Fg[BZ].style.top=DK+Dt[BZ]*(Av+Cm)+"px";}if(Cm<60){Cm=Cm+20;Pd(this.Ji,100,this,FH,DJ,DK,Cm);}else {for(var BZ=0;BZ<this.Fg.length;BZ++){this.GL.removeChild(this.Fg[BZ]);}this.Nr=null;}};function MapIcon(Bc,Bg,Be,Dp,Dr,Dq){this.IR=Bc;this.IX=new Size(parseInt(Bg.width),parseInt(Bg.height));this.IV=new Point(parseInt(Be.x),parseInt(Be.y));if(Dp){this.Mx=Dp;this.NC=new Size(parseInt(Dr.width),parseInt(Dr.height));this.My=new Point(parseInt(Dq.x),parseInt(Dq.y));}};function MapMarker(CA,DI,EZ){if(!CA)return;this.width=CA.IX.width;this.height=CA.IX.height;if(DI){this.position=Sphere.Deg2World(DI);}else {this.position=new Point(0,0);}this.IK=CA.IV;this.div=document.createElement("div");this.div.style.position="absolute";this.div.style.top="0px";this.div.style.left="0px";this.div.style.zIndex=0;this.div.owner=this;;this.div.setPosition=function (DM){this.owner.setPosition(DM);};this.IR=ElementCreator.createImage(-CA.IV.x,-CA.IV.y,CA.IR,CA.IX.width,CA.IX.height,0,true);if(EZ){this.IR.style.cursor="pointer";this.IR.title=EZ;}this.div.appendChild(this.IR);if(CA.Mx){this.Mx=ElementCreator.createImage(-CA.My.x,-CA.My.y,CA.Mx,CA.NC.width,CA.NC.height,-2,true);this.div.appendChild(this.Mx);}};MapMarker.prototype.setPosition=function (DM){var Em=DM.x;var Er=DM.y;this.div.style.left=Em+"px";this.div.style.top=Er+"px";this.x1=Em-this.IK.x;this.y1=Er-this.IK.y;this.x2=this.x1+this.width;this.y2=this.y1+this.height;};MapMarker.prototype.Mt=function (EZ){this.IR.title=EZ;};MapMarker.prototype.isClicked=function (Em,Er){return Em>=this.x1&&(Em<=this.x2&&(Er>=this.y1&&Er<=this.y2));};function POIMarker(CA,DD){Ow(this,MapMarker,CA,new DPoint(DD.X,DD.Y),DD.Go);this.POI=DD;};Ox(MapMarker,POIMarker);function Od(CA,DI,AB,EV){Ow(this,MapMarker,CA,DI,EV);this.Fo=document.createElement("DIV");var AX="z-index:2;left:6px;top:4px;position:absolute;color:white;text-align:center;width:22px;height:12px;font-weight:bold;font-family:Arial;";if(AB==null||AB.length<4){AX=AX+"font-size:11px;";}else {AX=AX+"font-size:9px;";}this.Fo.style.cssText=AX;this.Fo.style.left=6-this.IK.x+"px";this.Fo.style.top=4-this.IK.y+"px";if(AB!=null)this.Fo.innerHTML=AB;this.div.appendChild(this.Fo);};Ox(MapMarker,Od);Od.prototype.Mb=function (AB){this.Fo.innerHTML=AB;if(AB==null||AB.length<4){this.Fo.style.fontSize="11px";}else {this.Fo.style.fontSize="9px";}};Od.prototype.Mg=function (AX){this.Fo.style.cssText=AX;};function PQ(){this.JD=null;this.IS=ElementCreator.createImage(0,0,PQ.Nc.src,1,1,1,true);};PQ.Nc=new Image(1,1);if(typeof(MIREO_REDIRECT_TO)!="undefined"){PQ.HI=MIREO_REDIRECT_TO+"/OffscreenDrawer.aspx?";PQ.Nc.src=MIREO_REDIRECT_TO+"/Transparent.png";}else {var dir="http://"+window.location.host;dir=dir+window.location.pathname;dir=dir.substring(0,dir.lastIndexOf("/"));PQ.HI=dir+"/OffscreenDrawer.aspx?";PQ.Nc.src=dir+"/Transparent.png";}PQ.prototype.Mk=function (By){this.JD=By;this.IS.owner=this;this.IS.Li=function (){this.owner.Li();};this.LZ=new Image();this.LZ.src=PQ.Nc.src;attachToEvent(this.LZ,"load",eventHandler(this,"KS"));};PQ.prototype.Li=function (){var Du=this.JD.LG();this.IS.style.left=this.JD.JI[0][0].style.left;this.IS.style.top=this.JD.JI[0][0].style.top;this.IS.style.width=Du.width+"px";this.IS.style.height=Du.height+"px";this.Fx();var G=this.Hy();if(G!=null&&G.length!=0){var EC=Ou.NY(G);this.Mr(EC,Du.width,Du.height);}};PQ.prototype.Fx=function (){ElementCreator.Fq(this.IS,0,0,PQ.Nc.src,1,1,1,true);};PQ.prototype.Mr=function (AE,Ee,BU){this.LZ.width=Ee;this.LZ.height=BU;this.LZ.src=PQ.HI+"c="+AE+"&w="+Ee+"&h="+BU;};PQ.prototype.KS=function (Ax){if(this.LZ.complete){ElementCreator.Fq(this.IS,0,0,this.LZ.src,this.LZ.width,this.LZ.height,1,true);}};PQ.Ij=function (En,Es,Ep,Eu,Ee,BU){var Eo=-1*(En<0)+(En>Ee);var Et=-1*(Es<0)+(Es>BU);var Eq=-1*(Ep<0)+(Ep>Ee);var Ev=-1*(Eu<0)+(Eu>BU);if(En==Ep){if(Eo!=0)return false;return Et!=Ev||Et==0;}else {if(Eo==0&&Et==0||Eq==0&&Ev==0)return true;if(Eo==Eq){if(Eo!=0){return false;}else {return Et!=Ev;}}if(Et==Ev){if(Et!=0){return false;}else {return Eo!=Eq;}}var Bo=(Eu-Es)/(Ep-En);var Bp=Es-Bo*En;var Bq=Bp;var Br=Bo*Ee+Bp;return !(Bq<0&&Br<0||Bq>BU&&Br>BU);}};PQ.Il=function (G,Ee,BU){for(var BZ=0;BZ<=G.length-4;BZ=BZ+2){if(PQ.Ij(G[BZ],G[BZ+1],G[BZ+2],G[BZ+3],Ee,BU))return true;}return false;};function DirectedPolylineDrawer(B,DX,BM,H,Ee,V,O,M){Ow(this,PQ);this.geometries=null;this.LJ=Ou.MR(255,DX,BM,H,Ee);this.Fj=Ou.MQ(255,V,O,M);this.FT=Ou.MY(B);};Ox(PQ,DirectedPolylineDrawer);DirectedPolylineDrawer.prototype.Mi=function (BO){this.geometries=BO;};DirectedPolylineDrawer.prototype.Mm=function (B,DX,BM,H,Ee){this.LJ=Ou.MR(255,DX,BM,H,Ee);this.FT=Ou.MY(B);};DirectedPolylineDrawer.prototype.Ma=function (DX,BM,H){this.Fj=Ou.MQ(255,DX,BM,H);};DirectedPolylineDrawer.prototype.Hy=function (){if(this.geometries==null)return new Array();var CE=220;var Du=this.JD.LG();var Dw=Du.width;var Dv=Du.height;var Ew=this.JD.getZoomLevel();var DS;do {var Db=new Array();var BT=new Array();var BP=this.geometries[Ew];if(BP==null||BP.length==0)return Db;Db.push(this.FT);Db.push(this.LJ);Db.push(this.Fj);DS=0;var Cq=false;var En;var Es;var By=this.JD;var DM=By.Nv(BP[0]);var Ep=DM.x;var Eu=DM.y;var Bt=BP.length;for(var BZ=1;BZ<Bt;++BZ){En=Ep;Es=Eu;DM=By.Nv(BP[BZ]);Ep=DM.x;Eu=DM.y;if(PQ.Ij(En,Es,Ep,Eu,Dw,Dv)){if(!Cq){BT.push(En);BT.push(Es);++DS;}BT.push(Ep);BT.push(Eu);++DS;Cq=true;}else {if(BT.length>2){Db.push(Ou.HG(BT));++DS;}Cq=false;BT=new Array();}}if(BT.length>2){Db.push(Ou.HG(BT));}if(Db.length==3){Db=new Array();return Db;}++Ew;} while(DS>CE);return Db;};function PolypolylineDrawer(B,DX,BM,H,Ee){Ow(this,PQ);this.geometries=null;this.LJ=Ou.MR(255,DX,BM,H,Ee);this.FT=Ou.MY(B);};Ox(PQ,PolypolylineDrawer);PolypolylineDrawer.prototype.Mi=function (BO){this.geometries=BO;};PolypolylineDrawer.prototype.Mm=function (B,DX,BM,H,Ee){this.LJ=Ou.MR(255,DX,BM,H,Ee);this.FT=Ou.MY(B);};PolypolylineDrawer.prototype.Hy=function (){if(this.geometries==null)return new Array();var CE=220;var DS;var Du=this.JD.LG();var Ew=this.JD.getZoomLevel();var Ee=Du.width;var BU=Du.height;do {var Db=new Array();DS=0;Db.push(this.FT);Db.push(this.LJ);var BP=this.geometries[Ew];for(var BZ=0;BZ<BP.length;++BZ){var DF=BP[BZ];var Cy=new Array();if(DF.length>0){var CT=1;var Cn=this.JD.Nv(DF[0]);Cy.push(Cn.x);Cy.push(Cn.y);++CT;for(var Bn=1;Bn<DF.length;++Bn){var Cw=this.JD.Nv(DF[Bn]);if(Cw.x!=Cn.x||Cw.y!=Cn.y){Cy.push(Cw.x);Cy.push(Cw.y);++CT;}Cn=Cw;}var DL=Cy.length;while(DL>=4&&!PQ.Ij(Cy[0],Cy[1],Cy[2],Cy[3],Ee,BU)){Cy.shift();Cy.shift();--CT;DL=DL-2;}while(DL>=4&&!PQ.Ij(Cy[DL-4],Cy[DL-3],Cy[DL-2],Cy[DL-1],Ee,BU)){Cy.pop();Cy.pop();--CT;DL=DL-2;}if(DL>=4){Db.push(Ou.HK(Cy));DS=DS+CT;}}}++Ew;} while(DS>CE&&Ew<this.geometries.length);if(Db.length==2){Db=new Array();}return Db;};function GeoAddressDrawer(B,DX,BM,H,Ee){Ow(this,PolypolylineDrawer,B,DX,BM,H,Ee);this.IN=false;this.IM=new Od(GeoAddressDrawer.IL,new Point(0,0),"");};Ox(PolypolylineDrawer,GeoAddressDrawer);if(typeof(MIREO_REDIRECT_TO)!="undefined"){GeoAddressDrawer.IL=new MapIcon(MIREO_REDIRECT_TO+"/map/images/HouseNumber.png",new Size(32,32),new Point(16,31),MIREO_REDIRECT_TO+"/map/images/RoutePointShadow.png",new Size(32,32),new Point(7,31));}else {GeoAddressDrawer.IL=new MapIcon("map/images/HouseNumber.png",new Size(32,32),new Point(16,31),"map/images/RoutePointShadow.png",new Size(32,32),new Point(7,31));}GeoAddressDrawer.Iv=new Array("Route","Pedestrian zone","Walkway","Highway","Fast road","Regional road","Main road","Local road","Connecting road","Slow road","Minor road","Service road","Railway","Ferry");GeoAddressDrawer.Ik=function (EC){var Cf=parseInt(EC);if(!isNaN(Cf)){return Cf>=1001;}for(var BZ=0;BZ<GeoAddressDrawer.Iv.length;++BZ){if(GeoAddressDrawer.Iv[BZ]==EC){return true;}}return false;};GeoAddressDrawer.prototype.Mk=function (By){if(this.IN&&this.JD!=null){this.JD.removeMapMarker(this.IM);this.IN=false;}if(this.IN&&By!=null){this.JD.addMapMarker(this.IM);this.IN=true;}PQ.prototype.Mk.call(this,By);};function uncompress_gm(BS){var Db=new WebGeoAddressGeometry();Db.zoom_factors=BS.zoom_factors;Db.geometries=new Array();var DG=new Array();for(var BZ=0;BZ<Db.zoom_factors.length;++BZ){Db.geometries.push(new Array());DG.push(new Array());}var FG=BS.zoom_levels;var BQ=BS.geometry_x;var BR=BS.geometry_y;var Bt=FG.length;var BO=Db.geometries;for(var BZ=0;BZ<Bt;++BZ){var DM={x:BQ[BZ],y:BR[BZ]};if(DM.x!=0&&DM.y!=0){var FF=FG[BZ];for(var Bn=0;Bn<=FF;++Bn)DG[Bn].push(DM);}else {for(var Ey=0;Ey<Db.zoom_factors.length;++Ey){if(DG[Ey].length>1)BO[Ey].push(DG[Ey]);DG[Ey]=new Array();}}}for(var Ey=0;Ey<Db.zoom_factors.length;++Ey)if(DG[Ey].length>1)BO[Ey].push(DG[Ey]);;return Db;};function uncompress_route(Dg){var Db=new WebRoute();Db.length=Dg.length;Db.time_length=Dg.time_length;Db.points=Dg.points;Db.zoom_factors=Dg.zoom_factors;Db.geometries=new Array();var BQ=Dg.geometry_x;var BR=Dg.geometry_y;for(var BZ=0;BZ<Db.zoom_factors.length;++BZ){Db.geometries.push(new Array());}var FG=Dg.zoom_levels;var Bt=Dg.zoom_levels.length;var BO=Db.geometries;for(var BZ=0;BZ<Bt;++BZ){var FF=FG[BZ];var DM={x:BQ[BZ],y:BR[BZ]};for(var Bn=0;Bn<=FF;++Bn){BO[Bn].push(DM);}}return Db;};GeoAddressDrawer.prototype.setGeoAddress=function (BN,FE){if(this.IN&&this.JD!=null){this.JD.removeMapMarker(this.IM);this.IN=false;}var EN=this;if(!BN){this.Mi(null);this.LO=null;this.Li();}else {if(GeoAddressDrawer.Ik(BN._type)){this.Mi(null);this.LO=null;var By=this.JD;if(FE){if(PB(BN.rc))window.setTimeout(function (){By.setCenterAndZoom(BN.pt,1);},50);else window.setTimeout(function (){By.setBounds(BN.rc);},50);}else this.Li();MapSearchWeb.GetGAGeoCompressed(BN,MireoMap.zfM,Os);}else {this.Mi(null);this.LO=new Point(BN.pt.x,BN.pt.y);var By=this.JD;if(FE)window.setTimeout(function (){By.setCenterAndZoom(BN.pt,1);},50);else this.Li();}}function Os(BP){WebException.validate(BP);if(BN._house_no&&BN._house_no!=""){EN.IM.Mb(BN._house_no);EN.IM.position=Sphere.Deg2World(BN.pt);if(EN.JD){EN.JD.addMapMarker(EN.IM);EN.IN=true;}}EN.Mi(uncompress_gm(BP).geometries);window.setTimeout(function (){EN.Li();},50);};};GeoAddressDrawer.prototype.zoomToGeoAddress=function (BN){this.setGeoAddress(BN,true);};function RouteDrawer(B,DX,BM,H,Ee,V,O,M){Ow(this,DirectedPolylineDrawer,B,DX,BM,H,Ee,V,O,M);this.MG=new MapMarker(RouteDrawer.MF);this.MB=new MapMarker(RouteDrawer.MA);this.MD=new Array();this.ME=0;};Ox(DirectedPolylineDrawer,RouteDrawer);if(typeof(MIREO_REDIRECT_TO)!="undefined"){RouteDrawer.MF=new MapIcon(MIREO_REDIRECT_TO+"/map/images/RouteStart.png",new Size(32,32),new Point(16,31),MIREO_REDIRECT_TO+"/map/images/RouteStartShadow.png",new Size(32,32),new Point(7,31));RouteDrawer.MA=new MapIcon(MIREO_REDIRECT_TO+"/map/images/RouteEnd.png",new Size(32,32),new Point(16,31),MIREO_REDIRECT_TO+"/map/images/RouteEndShadow.png",new Size(32,32),new Point(7,31));RouteDrawer.MC=new MapIcon(MIREO_REDIRECT_TO+"/map/images/RoutePoint.png",new Size(32,32),new Point(16,31),MIREO_REDIRECT_TO+"/map/images/RoutePointShadow.png",new Size(32,32),new Point(7,31));}else {RouteDrawer.MF=new MapIcon("map/images/RouteStart.png",new Size(32,32),new Point(16,31),"map/images/RouteStartShadow.png",new Size(32,32),new Point(7,31));RouteDrawer.MA=new MapIcon("map/images/RouteEnd.png",new Size(32,32),new Point(16,31),"map/images/RouteEndShadow.png",new Size(32,32),new Point(7,31));RouteDrawer.MC=new MapIcon("map/images/RoutePoint.png",new Size(32,32),new Point(16,31),"map/images/RoutePointShadow.png",new Size(32,32),new Point(7,31));}RouteDrawer.prototype.Mk=function (By){if(this.geometries!=null&&this.JD!=null){this.JD.removeMapMarker(this.MG);for(var BZ=0;BZ<this.ME;++BZ){this.JD.removeMapMarker(this.MD[BZ]);}this.JD.removeMapMarker(this.MB);}if(this.geometries!=null&&By!=null){By.addMapMarker(this.MG);for(var BZ=0;BZ<this.ME;++BZ){By.addMapMarker(this.MD[BZ]);}By.addMapMarker(this.MB);}PQ.prototype.Mk.call(this,By);};RouteDrawer.prototype.setRoute=function (Dg){this.Mq(Dg);this.Li();};RouteDrawer.prototype.Mq=function (Dg){if(this.geometries!=null&&this.JD!=null){this.JD.removeMapMarker(this.MG);for(var BZ=0;BZ<this.ME;++BZ){this.JD.removeMapMarker(this.MD[BZ]);}this.JD.removeMapMarker(this.MB);this.ME=0;}if(!Dg){this.Mi(null);}else {for(var BZ=this.MD.length;BZ<Dg.points.length-2;++BZ){this.MD.push(new Od(RouteDrawer.MC,new Point(0,0),(BZ+1).toString()));}this.ME=Dg.points.length-2;this.MG.position=Sphere.Deg2World(Dg.points[0]);for(var BZ=0;BZ<Dg.points.length-2;++BZ){this.MD[BZ].position=Sphere.Deg2World(Dg.points[BZ+1]);}this.MB.position=Sphere.Deg2World(Dg.points[Dg.points.length-1]);if(this.JD){this.JD.addMapMarker(this.MG);for(var BZ=0;BZ<this.ME;++BZ){this.JD.addMapMarker(this.MD[BZ]);}this.JD.addMapMarker(this.MB);}this.Mi(Dg.geometries);}};RouteDrawer.prototype.zoomToRoute=function (Dg){if(Dg){this.Mq(Dg);}if(this.geometries!=null&&this.JD!=null){var BP=this.geometries[0];var Bs=Number.POSITIVE_INFINITY;var De=Number.NEGATIVE_INFINITY;var EW=Number.POSITIVE_INFINITY;var U=Number.NEGATIVE_INFINITY;for(var BZ=0;BZ<BP.length;++BZ){var DM=BP[BZ];if(DM.x<Bs)Bs=DM.x;if(DM.x>De)De=DM.x;if(DM.y<EW)EW=DM.y;if(DM.y>U)U=DM.y;}var DN=Sphere.World2Deg(new Point(Bs,EW));var DP=Sphere.World2Deg(new Point(De,U));if(Bs!=Number.MAX_VALUE){this.JD.setBounds(new DRect(DN.x,DN.y,DP.x,DP.y));}}};
function InfoWindow(map, pt, html, offset, addr){

    this.iwinType = 0;
	
	this.map = map;
	
	this.position = new Point(0, 0);
	
	this.offset = 0;
	this.offsetx = 0;
	this.offsety = 0;
	
	var sz = measureHTML(html);
	if (sz.width < 200) sz.width = 200;
	sz.width += 10; sz.height += 10;
	this.createImageDiv(sz.width, sz.height + 15);
	
	this.createShadowDiv(sz.width, sz.height);
	
	this.innerDiv = ElementCreator.createChildDiv(12 - sz.width/2, -122 - sz.height, sz.width, sz.height, 'white');
	this.innerDiv.style.overflow = "hidden";
	this.innerDiv.style.zIndex = 1;
	
	this.innerDiv.style.overflow = 'hidden';
	
	var divTop = (browser.type==2?10:10);
	
	this.closeDiv = ElementCreator.createChildDiv(sz.width/2 - divTop, -230, 15, 15, 'white', "Arial", '12px');
	this.closeDiv.style.zIndex = 1000;
	this.closeDiv.style.cssText += 'z-index:1;text-align:right;text-decoration:underline;color:blue;cursor:pointer;';
	this.closeDiv.onclick = function(){map.closeInfoWindow();};
	this.closeDiv.innerHTML = "<img src='search/images/iconClose.gif' width='14' height='14'>";
	
	this.image.appendChild(this.innerDiv);
	this.image.appendChild(this.closeDiv);
	
	this.innerDiv.onmousedown = this.onMouseDown;
	this.closeDiv.onmousedown = this.onMouseDown;
	
	this.div = document.createElement("div");
	this.div.style.position = "absolute";
	this.div.style.top = "0px";
	this.div.style.left = "0px";
	this.div.style.zIndex = 0;
	this.div.owner = this;;
	this.div.setPosition = function(pt){
		this.owner.setPosition(pt);
	}
	this.div.appendChild(this.image);
	this.div.appendChild(this.shadow);
	this.setInfo(pt, html, offset, addr);
	
	this.innerSize = sz;
	
	this.LT = new Size(parseInt(this.image.childNodes[3].style.left), parseInt(this.image.childNodes[0].style.top));
	this.arrowL = parseInt(parseInt(this.image.childNodes[8].style.width)/2);
	this.routerPos = new Size(12 - this.innerSize.width/2, 183 - 305);
	this.color = 'white';
}

InfoWindow.prototype.createImageDiv = function(width, height){
	this.image = document.createElement('DIV');
	this.image.style.cssText = 'position:absolute;';
	this.image.owner = this;
	this.image.setPosition = function(pt){
		this.owner.setImagePosition(pt);
	}
	var w_2 = Math.floor(width/2);
	var _w_2 = Math.floor(-width/2);
	this.image.appendChild(ElementCreator.createImage(_w_2 + 6, -114 - height, redirected_path('map/images/InfoWin/N.png'), width, 10, 0, true,true));
	this.image.appendChild(ElementCreator.createImage(w_2 + 6, -114 - height, redirected_path('map/images/InfoWin/NE.png'), 10, 10, 0, true,true));
	this.image.appendChild(ElementCreator.createImage(_w_2 - 4, -114 - height, redirected_path('map/images/InfoWin/NW.png'), 10, 10, 0, true,true));
	this.image.appendChild(ElementCreator.createImage(w_2 + 6, -104 - height, redirected_path('map/images/InfoWin/E.png'), 10, height, 0, true,true));
	this.image.appendChild(ElementCreator.createImage(_w_2 - 4, -104 - height, redirected_path('map/images/InfoWin/W.png'), 10, height, 0, true,true));
	this.image.appendChild(ElementCreator.createImage(w_2 + 6, -104, redirected_path('map/images/InfoWin/SE.png'), 10, 10, 0, true,true));
	this.image.appendChild(ElementCreator.createImage(_w_2 - 4, -104, redirected_path('map/images/InfoWin/SW.png'), 10, 10, 0, true,true));
	this.image.appendChild(ElementCreator.createImage(_w_2 + 6, -104, redirected_path('map/images/InfoWin/S.png'), width, 10, 0, true,true));
	this.image.appendChild(ElementCreator.createImage(0, -96, redirected_path('map/images/InfoWin/Arrow.png'), 26, 96, 0, true,true));
	this.image.appendChild(ElementCreator.createImage(_w_2 + 6, -104 - height, redirected_path('map/images/InfoWin/inner.gif'), width, height, 0, true,true));
		
	var infoWindowSize = new Size(0,0);	
	for (i = 0; i<8; i++){
	    infoWindowSize.width += parseInt(this.image.childNodes[i].style.width);
	    infoWindowSize.height += parseInt(this.image.childNodes[i].style.height);
	}
	infoWindowSize.width /=2; //10px vise
	infoWindowSize.height /=2;	infoWindowSize.height += parseInt(this.image.childNodes[8].style.height); // 10px vise
	this.IWinSize = infoWindowSize;
}


InfoWindow.prototype.createShadowDiv = function(width, height){
	var shadow_height = Math.floor(-InfoWindow.sin*(height/2)) + 20;
	var shadow_width = Math.floor(width+InfoWindow.cos*(height/2)) + 20;
	
	this.shadow = document.createElement('DIV');
	this.shadow.style.cssText = 'position:absolute;z-index:-1';
	this.shadow.owner = this;
	this.shadow.setPosition = function(pt){
		this.owner.setShadowPosition(pt);
	}
	
	this.shadow.appendChild(ElementCreator.createImage(Math.floor(-144 * shadow_width/370) + 45, -48 - shadow_height, redirected_path('map/images/InfoWin/shBack.png'), shadow_width, shadow_height, 1, true, true));
	this.shadow.appendChild(ElementCreator.createImage(0, -48 - shadow_height, redirected_path('map/images/InfoWin/shMask.png'), 64, shadow_height, 1, true, true));
	this.shadow.appendChild(ElementCreator.createImage(0, -48, redirected_path('map/images/InfoWin/shArrow.png'), 64, 48, 1, true, true));
}

InfoWindow.sin = Math.sin(-Math.PI/4);
InfoWindow.cos = Math.cos(-Math.PI/4);
InfoWindow.fact = 2;

InfoWindow.prototype.setImagePosition = function(){
	if (this.offset < 0){
		this.top += this.offset;
	}
	this.image.style.top = this.offset + 'px';
}

InfoWindow.prototype.setShadowPosition = function(){
	this.shadow.style.left = this.offsetx + 'px';
	this.shadow.style.top = this.offsety + 'px';
}

InfoWindow.prototype.setPosition = function(pt){
	var x = pt.x;
	var y = pt.y;
	this.left = Math.round(x - this.innerSize.width/2 - 10);
	this.top = y - this.innerSize.height - 136;
	this.right = this.left + this.innerSize.width + 30;
	this.bottom = y;
	if (this.offset < 0){
		this.top += this.offset;
	}
	this.div.style.left = x+'px';
	this.div.style.top = y+'px';
	this.setImagePosition();
	this.setShadowPosition();
}

InfoWindow.prototype.appendChild = function(obj){
	this.image.appendChild(obj);
}

InfoWindow.prototype.removeChild = function(obj){
	this.image.removeChild(obj);
}


InfoWindow.prototype.setInfo = function(wp, html, offset, addr){
	this.position = wp;
	this.addr = addr;
	this.innerDiv.innerHTML = html;
	if (offset != null){
		this.offset = -offset;
		this.offsetx = Math.round(-offset*InfoWindow.sin/InfoWindow.fact);
		this.offsety = Math.round(-offset*InfoWindow.cos/InfoWindow.fact);
	}
}

InfoWindow.prototype.onMouseDown=function(b){
	if(b){
		b.cancelDrag=true
	}else{
		cancelBubbling(b)
	}
}

InfoWindow.prototype.isClicked = function(){
	return false;
}


// JScript File
//  LT infowindow

function InfoWindowTransparent(map, pt, html, offset, addr){
   
	this.map = map;
	
	this.position = new Point(0, 0);
	
	this.offset = 0;
	this.offsetx = 0;
	this.offsety = 0;
	
	var sz = measureHTML(html);
	if (sz.width < 200) sz.width = 200;
	sz.width += 10; sz.height += 10;
	this.createImageDiv(sz.width + 15, sz.height + 30);
	
	this.createShadowDiv(sz.width + 15, sz.height + 30);
	
    this.headerDiv = ElementCreator.createChildDiv(this.Needle.width, 5, sz.width-25, this.Needle.height-5, null, "Arial", '12px');
    this.headerDiv.style.cssText += '; z-index:1;text-align:center;color:white;cursor:text;font-weight:normal';
    this.headerDiv.innerHTML = "Ulica";     
    
	this.htmlDiv = ElementCreator.createChildDiv(this.Needle.width + 10, this.Needle.height+10, sz.width, sz.height, null, "Arial", '12px');
	this.htmlDiv.style.cssText += '; z-index:1;text-align:left;color:black;cursor:text; font-weight:bold';
	
	this.closeDiv = ElementCreator.createChildDiv(this.IWinSize.width-60, this.IWinSize.height-25, 50, 15, null, "Arial", '12px');
	this.closeDiv.style.cssText += '; z-index:1;text-align:right;text-decoration:underline;color:blue;cursor:pointer;';	
	this.closeDiv.onclick = function(){map.closeInfoWindow();};
	this.closeDiv.innerHTML = "Zatvori"; 
		
	this.image.appendChild(this.closeDiv);
	this.image.appendChild(this.htmlDiv);
	
	this.closeDiv.onmousedown = this.onMouseDown;
	this.htmlDiv.onmousedown = this.onMouseDown; 
	
	this.image.appendChild(this.headerDiv);
	this.headerDiv.onmousedown = this.onMouseDown;
	
	this.div = document.createElement("div");
	this.div.style.position = "absolute";
	this.div.style.top = "0px";
	this.div.style.left = "0px";
	this.div.style.zIndex = 0;
	this.div.owner = this;;
	this.div.setPosition = function(pt){
		this.owner.setPosition(pt);
	}
	this.div.appendChild(this.image);	
	this.div.appendChild(this.shadow);
	
	this.setInfo(pt, html, offset, addr);
	
	this.innerSize = sz;
	
	this.LT = new Size(parseInt(this.shadow.childNodes[0].style.left) + parseInt(this.shadow.childNodes[0].style.width), parseInt(this.image.childNodes[1].style.top));
	this.arrowL = 0;
	this.routerPos = new Size(this.Needle.width + 10, this.IWinSize.height - 25);
	this.color = null;
}

InfoWindowTransparent.prototype.createImageDiv = function(width, height){
	this.image = document.createElement('DIV');
	this.image.style.cssText = 'position:absolute;';
	this.image.owner = this;
	this.image.setPosition = function(pt){
		this.owner.setImagePosition(pt);
	}
	var w1 = 25;
	var h1 = 20;
	this.Needle = new Size(w1, h1);
	this.image.appendChild(ElementCreator.createImage(0, 0, redirected_path('map/images/InfoWinTransparent/needleTL.png'), w1, h1, 0, true,true));
	this.image.appendChild(ElementCreator.createImage(w1, 0, redirected_path('map/images/InfoWinTransparent/header_gray.png'), width, h1, 0, true,true));
	this.image.appendChild(ElementCreator.createImage(w1, h1, redirected_path('map/images/InfoWinTransparent/background_white.png'), width, height, 0,true,true));
	
	var infoWindowSize = new Size(0,0);
	infoWindowSize.width = w1 + width;
	infoWindowSize.height = h1 + height;	
	this.IWinSize = infoWindowSize;
	
}


InfoWindowTransparent.prototype.createShadowDiv = function(width, height){ 
    var shadow_height = this.IWinSize.height;
    var shadow_width = this.IWinSize.width;
    this.shadow = document.createElement('DIV');
	this.shadow.style.cssText = 'position:absolute;z-index:-1';
	this.shadow.owner = this;
	this.shadow.setPosition = function(pt){
		this.owner.setShadowPosition(pt);
	}
	
	this.shadow.appendChild(ElementCreator.createImage(this.IWinSize.width, 2, redirected_path('map/images/InfoWinTransparent/shadowR.png'), 5, this.IWinSize.height-2, 1, true, true));
	this.shadow.appendChild(ElementCreator.createImage(this.Needle.width + 2, this.IWinSize.height, redirected_path('map/images/InfoWinTransparent/shadowB.png'), this.IWinSize.width - this.Needle.width - 2 , 5, 1, true, true));
	this.shadow.appendChild(ElementCreator.createImage(this.IWinSize.width, this.IWinSize.height, redirected_path('map/images/InfoWinTransparent/shadowBR.png'), 5, 5, 1, true, true));
    
}

InfoWindowTransparent.prototype.setImagePosition = function(){
	if (this.offset < 0){
		this.top += this.offset;
	}
	this.image.style.top = this.offset + 'px';
}

InfoWindowTransparent.prototype.setShadowPosition = function(){
	this.shadow.style.left = this.offsetx + 'px';
	this.shadow.style.top = this.offsety + 'px';
}

InfoWindowTransparent.prototype.setPosition = function(pt){
	var x = pt.x;
	var y = pt.y;
	this.left = x + 2;
	this.top = y - 2;
	this.right = x + this.IWinSize.width + 5; 
	this.bottom = y + this.IWinSize.height + 5;
	if (this.offset < 0){
		this.top += this.offset;
	}
	this.div.style.left = x + 'px';
	this.div.style.top = y + 'px';
	this.setImagePosition();
	this.setShadowPosition();
}

InfoWindowTransparent.prototype.appendChild = function(obj){
	this.image.appendChild(obj);
}

InfoWindowTransparent.prototype.removeChild = function(obj){
	this.image.removeChild(obj);
}


InfoWindowTransparent.prototype.setInfo = function(wp, html, offset, addr){
	this.position = wp;
	this.addr = addr;
	var htmlSize = measureHTML(html);
    this.htmlDiv.innerHTML = html;
	if (offset != null){
		this.offset = -offset;
		this.offsetx = 0; 
		this.offsety = this.offset; 
	}
}

InfoWindowTransparent.prototype.onMouseDown=function(b){
	if(b){
		b.cancelDrag=true
	}else{
		cancelBubbling(b)
	}
}

InfoWindowTransparent.prototype.isClicked = function(){
	return false;
}




