function yQ(){return typeof VEMap!="undefined"&&typeof VETime!="undefined";};var MapController=Class.create();MapController.GLMAP={DIV_ID:"map",ZOOM_LEVELS:{globalFirst:1,globalLast:15,offset:function(ax){return 19-ax;},deoffset:function(hq){return-hq+19;}},Coverage:{LATITUDE:[70.11657,70.11141,70.12085,69.97927,69.79481,69.78189,69.76942,69.76093,69.76349,69.75858,69.75315,69.75554,69.74164,69.73726,69.71989,69.71529,69.68482,69.68702,69.68332,69.67441,69.67636,69.66898,69.63240,69.60191,69.59637,69.57623,69.55986,69.52874,69.53317,69.53798,69.54040,69.58989,69.65014,69.66935,69.65809,69.64282,69.64351,69.60941,69.56844,69.53739,69.51747,69.48161,69.46987,69.43602,69.41589,69.40542,69.40639,69.41825,69.42372,69.40648,69.39765,69.38963,69.38085,69.36344,69.31755,69.31797,69.32910,69.32202,69.31857,69.32383,69.29617,69.25871,69.24616,69.23751,69.22849,69.20924,69.20653,69.17580,69.16530,69.16148,69.15346,69.13740,69.11980,69.11305,69.06704,69.06307,69.03951,69.01521,69.01082,69.02517,69.05191,69.07663,69.11115,69.17189,69.22435,69.26831,69.39762,69.47831,69.63903,69.69533,69.72975,69.77063,69.81842,69.84919,69.88079,69.92099,69.99819,70.01397,70.05424,70.08982,70.09187,70.07730,70.06416,70.07552,70.07741,70.07456,70.06074,70.02346,70.01921,69.99153,69.99041,69.98451,69.97591,69.96067,69.95225,69.94825,69.93461,69.93220,69.91756,69.91775,69.91039,69.93508,69.93938,69.93245,69.93341,69.94058,69.96013,69.95855,69.94498,69.96477,69.94740,69.94502,69.93939,69.91870,69.90148,69.88909,69.85535,69.81907,69.81453,69.79438,69.79298,69.77989,69.77706,69.76024,69.75605,69.73861,69.72053,69.72334,69.71939,69.69655,69.68456,69.66550,69.65795,69.65558,69.64653,69.62082,69.61067,69.57253,69.55358,69.55101,69.54298,69.53158,69.52219,69.49254,69.47532,69.46820,69.44849,69.43486,69.42639,69.42091,69.41611,69.40907,69.40523,69.40682,69.39835,69.39325,69.39041,69.37519,69.36073,69.35520,69.34391,69.34038,69.32730,69.31058,69.30452,69.29617,69.28678,69.27693,69.27214,69.25747,69.25366,69.21159,69.20453,69.19674,69.16011,69.13879,69.10973,69.10377,69.07960,69.05804,69.03251,69.02888,69.01828,69.00386,69.00004,68.98062,68.96687,68.95236,68.90587,68.90264,68.89330,68.88487,68.88738,68.90507,68.88958,68.88518,68.85099,68.83915,68.82118,68.80973,68.79989,68.75005,68.72810,68.71490,68.70252,68.69084,68.67758,68.67603,68.66954,68.66625,68.66367,68.64280,68.63136,68.62804,68.62638,68.62533,68.62240,68.62094,68.62226,68.62567,68.62365,68.61544,68.61306,68.61305,68.61410,68.61721,68.61601,68.61705,68.61373,68.61150,68.60656,68.60525,68.58190,68.55459,68.56221,68.63623,68.68190,68.69957,68.71735,68.72713,68.74531,68.75359,68.78971,68.77997,68.82714,68.83652,68.81885,68.75075,68.70552,68.69216,68.67523,68.62852,68.68934,68.68755,68.72612,68.74451,68.71667,68.82723,68.91877,68.95632,69.07289,69.14416,69.21449,69.27659,69.29456,69.31188,69.26091,69.22234,69.19193,69.13952,69.12209,69.10393,69.03629,69.07886,69.11979,69.06189,69.05669,69.04838,69.04170,69.03857,69.03886,69.03664,69.02932,69.01789,69.01164,69.00070,68.99673,68.98464,68.97266,68.96360,68.95357,68.94344,68.94006,68.93736,68.92998,68.91561,68.90409,68.89249,68.89507,68.89631,68.89559,68.89203,68.88850,68.87248,68.86249,68.85864,68.85469,68.84788,68.83548,68.82345,68.81276,68.80458,68.79747,68.78257,68.76199,68.75934,68.76318,68.76060,68.75403,68.74245,68.73119,68.69808,68.68260,68.67533,68.67230,68.67208,68.66944,68.66114,68.65493,68.64873,68.62194,68.61370,68.60455,68.59247,68.58679,68.58025,68.58356,68.58579,68.57496,68.56492,68.55535,68.54960,68.52395,68.51596,68.49679,68.47945,68.48041,68.47906,68.47884,68.47520,68.47109,68.46928,68.47294,68.47297,68.47228,68.47731,68.47730,68.47272,68.45445,68.44347,68.45779,68.46070,68.45906,68.44885,68.43414,68.42241,68.42563,68.43263,68.41967,68.41563,68.40664,68.39784,68.39611,68.39326,68.38592,68.38608,68.39206,68.38697,68.37415,68.36429,68.35580,68.34631,68.33342,68.33135,68.31988,68.30602,68.26810,68.25469,68.24121,68.21291,68.13166,68.13827,68.14701,68.15180,68.15126,68.14243,68.13368,68.12882,68.11397,68.08501,68.06424,68.04477,68.03885,68.02234,68.01786,68.00686,67.97810,67.97055,67.96934,67.96122,67.94497,67.93536,67.92471,67.91862,67.91214,67.90571,67.89525,67.89362,67.86950,67.84804,67.82290,67.80655,67.79546,67.77880,67.75485,67.72270,67.70899,67.68924,67.66271,67.65188,67.64214,67.62975,67.62615,67.61664,67.61548,67.60798,67.60000,67.58993,67.57768,67.56950,67.56853,67.56363,67.55177,67.54300,67.53245,67.52383,67.51513,67.50729,67.49517,67.48787,67.46309,67.45882,67.44690,67.44602,67.45297,67.46188,67.45450,67.44975,67.44700,67.44033,67.44147,67.44111,67.43068,67.42646,67.40620,67.39626,67.38670,67.37530,67.36177,67.34790,67.33583,67.33138,67.32406,67.31732,67.31334,67.29452,67.28960,67.28131,67.28227,67.27488,67.27282,67.26936,67.26861,67.25924,67.25195,67.24604,67.24247,67.23465,67.22170,67.21322,67.20334,67.18653,67.17552,67.16119,67.14948,67.11951,67.09153,67.05167,67.03643,67.02116,67.00777,66.99827,66.99312,66.98325,66.97128,66.95905,66.94991,66.94977,66.94313,66.92731,66.91123,66.89650,66.88864,66.87258,66.84464,66.82906,66.81873,66.80284,66.79361,66.78197,66.78535,66.78282,66.77123,66.76492,66.75788,66.75077,66.74661,66.71793,66.69780,66.68262,66.66731,66.65993,66.64856,66.63579,66.62706,66.60644,66.57149,66.56110,66.55192,66.54256,66.54088,66.53059,66.51478,66.49889,66.49220,66.47353,66.46770,66.46380,66.45338,66.44477,66.43452,66.42327,66.40248,66.39352,66.37955,66.35627,66.34651,66.33599,66.32850,66.32355,66.30532,66.28443,66.26695,66.24391,66.23630,66.22157,66.20126,66.18124,66.17831,66.17109,66.16449,66.15924,66.14855,66.14189,66.13647,66.11098,66.09546,66.08195,66.06345,66.04861,66.03383,66.01716,66.00759,66.00272,65.99677,65.99170,65.97689,65.96706,65.95585,65.94752,65.93345,65.92600,65.91773,65.91385,65.90765,65.89687,65.88837,65.87868,65.86642,65.85667,65.84772,65.84040,65.81676,65.80209,65.78245,65.74167,65.72943,65.70837,65.37118,64.62809,64.29413,63.66319,63.19885,61.78496,60.79028,60.62255,60.12945,59.96596,59.21376,57.74478,56.06606,55.78516,55.78079,55.29376,55.48786,55.14797,55.12075,55.42236,55.52057,55.66734,55.84817,56.03765,56.29703,58.28572,58.76096,58.77441,58.75828,58.74409,58.67228,58.52364,58.38806,58.25027,58.17455,58.15512,58.08137,57.97747,57.94130,57.91723,57.89860,57.84816,57.79369,57.77773,57.76635,57.75938,57.75990,57.76168,57.76318,57.76900,57.78775,57.81889,57.88217,57.91368,57.96840,58.07749,58.15833,58.27979,58.33251,58.40165,58.44330,58.55264,58.60027,58.64950,58.75985,58.81517,58.91933,58.95596,59.00064,59.11761,59.14297,59.17935,59.22108,59.26903,59.31380,59.36230,59.56299,59.66496,59.75893,59.78886,60.04681,60.23059,60.31098,60.51294,60.68782,60.83335,61.00255,61.07111,61.15762,61.35144,61.54614,61.67857,61.71446,61.84963,62.03194,62.15010,62.28662,62.43324,62.46638,62.62354,62.74766,62.81198,62.92708,62.96774,63.09133,63.18792,63.25980,63.42893,63.58078,63.69498,63.76817,64.04074,64.14058,64.24011,64.35771,64.54729,64.72845,64.86982,64.98522,65.05175,65.26521,65.47018,65.70181,65.97142,66.18938,66.40449,66.66905,66.71416,66.81537,67.01618,67.33950,67.39287,67.43746,67.47092,67.53783,67.58719,67.62281,67.69915,67.82280,68.00858,68.09669,68.23962,68.28502,68.33745,68.46356,68.60531,68.73364,68.76076,68.84569,68.89728,69.08004,69.18324,69.25068,69.35232,69.38819,69.51134,69.51810,69.59670,69.64942,69.69490,69.74504,69.81154,69.98550,70.16842,70.34764,70.38503,70.48349,70.56083,70.62637,70.70362,70.79002,70.85297,70.97479,70.98768,71.10429,71.18623,71.27050,71.28596,71.29997,71.31408,71.33568,71.38337,71.37917,71.36199,71.35178,71.32965,71.29422,71.27927,71.12069,71.02359,70.94475,70.86817,70.82655,70.66858,70.53903,70.50013,70.47141,70.43766,70.40230,70.36155,70.35128,70.23728,70.11657],LONGITUDE:[31.57250,31.53506,31.50674,31.10544,30.81863,30.83250,30.85386,30.85230,30.85938,30.86832,30.86235,30.87360,30.87372,30.89139,30.89150,30.87474,30.93113,30.93764,30.94591,30.94755,30.93549,30.92404,30.95558,30.95064,30.93959,30.94760,30.93366,30.81860,30.74710,30.69439,30.51682,30.41854,30.23452,30.15238,30.08602,30.09198,30.13852,30.15331,30.18915,30.17743,30.12379,30.11500,30.11795,30.05339,30.00946,29.95169,29.93686,29.91772,29.85867,29.79760,29.78840,29.72501,29.71352,29.69566,29.56994,29.53526,29.52329,29.48633,29.41669,29.39645,29.28894,29.27704,29.28874,29.31363,29.31396,29.30514,29.29429,29.28661,29.27100,29.24907,29.25839,29.23998,29.23653,29.24271,29.16017,29.14282,29.09492,29.05716,29.04192,29.02033,28.92968,28.85495,28.80579,28.83068,28.83191,28.93124,29.21979,29.33697,29.17098,29.13434,28.91739,28.68893,28.40452,28.33076,28.34535,28.16097,28.01286,27.98452,27.97723,27.96067,27.94852,27.79791,27.74400,27.70017,27.67230,27.61265,27.56066,27.52617,27.42873,27.35838,27.31208,27.28895,27.27487,27.30440,27.29193,27.23547,27.16733,27.13098,27.10008,27.06230,27.03763,26.98609,26.94119,26.89789,26.87843,26.85965,26.85142,26.78488,26.71819,26.67880,26.54973,26.49059,26.46445,26.45519,26.40763,26.41831,26.38603,26.26049,26.24137,26.24587,26.22897,26.21499,26.19252,26.18350,26.15126,26.13570,26.05231,26.01425,25.99938,25.95061,25.94272,25.89156,25.90098,25.92943,25.95537,25.95903,25.97679,25.93756,25.87429,25.84153,25.84001,25.87232,25.87711,25.84642,25.86449,25.83497,25.82576,25.80662,25.80941,25.79310,25.82203,25.80915,25.81294,25.83191,25.84363,25.84617,25.83429,25.81218,25.81858,25.78361,25.77707,25.75944,25.75901,25.73783,25.74797,25.73550,25.74760,25.74321,25.72925,25.72101,25.70210,25.71339,25.69457,25.69308,25.72750,25.74357,25.72019,25.73147,25.72435,25.75245,25.75037,25.77019,25.77750,25.76208,25.74544,25.71247,25.71367,25.69333,25.65429,25.63572,25.62820,25.60038,25.53414,25.48125,25.39776,25.39701,25.26775,25.23866,25.21839,25.19694,25.15717,25.12364,25.12331,25.13100,25.11156,25.11343,25.10834,25.11106,25.11250,25.11454,25.11377,25.11928,25.08724,25.08626,25.07842,25.08033,25.07140,25.06963,25.05796,25.05095,25.02113,25.01510,25.00041,24.99290,24.98550,24.98025,24.96454,24.95747,24.94759,24.93580,24.92335,24.91696,24.90660,24.90320,24.85720,24.78346,24.60842,24.46765,24.30228,24.25099,24.20807,24.15298,24.15857,24.07561,23.98335,23.87148,23.77541,23.73108,23.67353,23.44065,23.36376,23.16759,23.04596,22.80083,22.60577,22.53539,22.37453,22.34079,22.19187,22.17577,21.98361,21.84640,21.72334,21.62709,21.44166,21.27882,21.09617,21.00331,20.98758,21.04673,21.05563,21.10868,21.05755,20.88120,20.71732,20.55731,20.58768,20.62662,20.64563,20.67712,20.73516,20.76849,20.79450,20.82013,20.83711,20.84101,20.85783,20.88852,20.90517,20.91463,20.91779,20.90825,20.88496,20.86163,20.85258,20.88395,20.90053,20.90759,20.91567,20.92764,20.95304,20.99572,21.01366,21.07346,21.08963,21.12230,21.14592,21.15322,21.17850,21.20013,21.23583,21.25582,21.26367,21.26877,21.30561,21.32648,21.36216,21.37962,21.39728,21.41222,21.40956,21.42234,21.45640,21.51346,21.53332,21.55989,21.58507,21.62251,21.63631,21.66532,21.71300,21.71071,21.70468,21.71375,21.72389,21.77678,21.81472,21.85830,21.90826,21.92114,21.94559,21.96903,22.00719,22.01352,22.02246,22.04133,22.07802,22.09794,22.11101,22.12348,22.12724,22.15647,22.17138,22.21865,22.24415,22.28955,22.32314,22.34428,22.34174,22.35973,22.38928,22.41399,22.43198,22.46971,22.53540,22.57561,22.60718,22.63863,22.65378,22.66950,22.68579,22.69101,22.71994,22.73204,22.74242,22.76746,22.80443,22.83783,22.84662,22.86269,22.87299,22.90429,22.92928,22.96844,22.99748,23.06035,23.07969,23.10941,23.15449,23.14972,23.17545,23.21801,23.24657,23.28664,23.29949,23.32179,23.33426,23.34262,23.34316,23.36874,23.39215,23.41071,23.45007,23.48288,23.53339,23.55707,23.57520,23.62748,23.63855,23.65940,23.66492,23.66556,23.65521,23.64574,23.62897,23.60931,23.58261,23.54019,23.50994,23.49994,23.48991,23.49326,23.50486,23.49614,23.50018,23.48620,23.48609,23.49891,23.50174,23.51378,23.53127,23.53841,23.55981,23.54850,23.55024,23.54201,23.54267,23.54527,23.52779,23.49861,23.46972,23.46357,23.47900,23.48462,23.47029,23.45010,23.44381,23.41772,23.41331,23.42791,23.44480,23.46048,23.51562,23.53998,23.55583,23.58138,23.60580,23.63428,23.66918,23.69973,23.72480,23.73846,23.78005,23.78989,23.78207,23.77016,23.76600,23.76350,23.76859,23.78550,23.80548,23.81645,23.81657,23.80548,23.79102,23.77365,23.77144,23.76216,23.73568,23.70781,23.67824,23.65236,23.62795,23.60749,23.60473,23.60086,23.58945,23.59610,23.58772,23.61732,23.62384,23.61230,23.58933,23.58266,23.60707,23.65927,23.69404,23.72018,23.73741,23.75753,23.77133,23.78534,23.79787,23.82586,23.83501,23.84648,23.86804,23.88261,23.88334,23.88928,23.89694,23.92796,23.93673,23.96411,23.99004,24.01447,24.01896,24.00913,23.99631,23.97465,23.95809,23.93880,23.93223,23.92428,23.89777,23.90077,23.90512,23.91650,23.91804,23.90606,23.90620,23.89073,23.88538,23.88282,23.88742,23.89297,23.89240,23.88025,23.86244,23.83890,23.82504,23.80262,23.80622,23.75030,23.73273,23.72591,23.71471,23.69163,23.65619,23.64828,23.64600,23.65166,23.67673,23.68135,23.68512,23.68266,23.67642,23.67754,23.67200,23.66377,23.65878,23.67011,23.68217,23.70296,23.71103,23.72263,23.76726,23.80449,23.82239,23.85810,23.89947,23.91946,23.93569,23.93919,23.93376,23.94504,23.94400,23.94649,23.96607,23.98643,24.00003,24.01854,24.03640,24.04280,24.04350,24.04763,24.04379,24.04422,24.04624,24.05461,24.08496,24.09673,24.11907,24.11822,24.12113,24.12425,24.12866,24.13633,24.14771,24.16093,24.16362,24.16419,24.15923,24.13809,24.12053,24.11070,24.18586,24.21571,24.04794,22.74562,22.21660,21.59547,20.21623,19.32810,18.95263,19.28004,19.22405,19.39341,20.61945,20.38699,20.15859,20.16118,19.17715,15.51043,14.85792,14.18296,12.73552,12.64463,12.64182,12.61721,12.51098,12.39518,12.21705,10.56900,10.59309,10.28554,10.14946,10.05931,9.78836,9.53165,9.30011,9.06727,8.94027,8.90308,8.75382,8.53976,8.45817,8.37168,8.29766,8.08719,7.84183,7.76629,7.69307,7.58821,7.46570,7.25780,7.16385,7.10230,6.93487,6.77247,6.48636,6.39260,6.27520,6.04435,5.87173,5.61044,5.51952,5.40416,5.34225,5.22312,5.17910,5.14566,5.08298,5.05539,5.00763,4.95909,4.89513,4.59888,4.54955,4.50217,4.47043,4.45548,4.45826,4.47956,4.60673,4.67203,4.65248,4.64486,4.56494,4.50710,4.47292,4.36275,4.26608,4.18472,4.09295,4.08747,4.09548,4.11542,4.13558,4.15094,4.16840,4.28324,4.44114,4.54884,4.68461,4.88736,4.93834,5.25490,5.50858,5.64122,5.88781,5.97841,6.33806,6.62388,6.83892,7.11065,7.35802,7.52685,7.64809,8.10784,8.35982,8.62410,8.94047,9.32524,9.69982,9.99696,10.08226,10.14877,10.36595,10.57806,10.79868,10.95389,11.08383,11.29777,11.56745,11.63367,11.85883,11.66701,11.35136,11.31275,11.30325,11.31336,11.35971,11.41458,11.48558,11.70651,12.12847,12.27988,12.39430,12.58982,12.67666,12.80213,13.26398,13.49180,13.70099,13.73807,13.83995,13.94861,14.37398,14.61843,14.78661,15.15547,15.28795,15.75614,15.79219,16.25435,16.57040,16.81148,17.05551,17.16005,17.43780,17.80525,18.17896,18.29322,18.82277,19.38592,19.87947,20.47973,21.17593,21.70119,22.24045,22.29834,22.84701,23.24747,23.66863,23.77493,23.98880,24.62928,24.91983,25.59879,25.96378,26.68122,27.06084,27.77452,28.33625,28.46753,29.16125,29.56672,30.02615,30.45125,30.61036,31.14326,31.56956,31.66189,31.70895,31.74461,31.76157,31.75793,31.75300,31.63716,31.57250]}};Object.extend(MapController.GLMAP.Coverage,AbstractCoverage);MapController.VEMAP={DIV_ID:"veMap",ZOOM_LEVELS:{globalFirst:16,globalLast:18,offset:function(ax){return 19-ax;},deoffset:function(hq){return-hq+19;}},Coverage:{}};Object.extend(MapController.VEMAP.Coverage,AbstractCoverage);MapController.Styles={REGULAR:0,AERIAL:1,HYBRID:2,BIRDS_EYE:3};MapController.BirdseyeOrientations=null;MapController.BirdseyeOrientations={NORTH:0,WEST:1,EAST:2,SOUTH:3};MapController.prototype={};Object.extend(MapController.prototype,AbstractMapController);Object.extend(MapController.prototype,{aI:null,aR:null,dK:null,dA:null,an:null,eN:null,dU:2,hs:59.90891042881661,gR:10.789260864257801,hh:64.47,hl:11.50,hc:15,cp:null,qp:null,fI:null,gb:null,hx:null,nr:null,nN:null,qr:null,fZ:null,dR:null,fH:null,is:null,hv:null,pI:null,ql:null,ya:null,sq:MapController.Styles.REGULAR,sI:null,qX:null,kB:null,yd:null,dI:null,cq:null,yq:null,lO:true,gJ:false,mP:false,kl:false,na:null,rh:null,rf:null,rj:null,jO:new Hash(),kF:false,pQ:false,hw:false,dr:null,initialize:function(cs,ax,aC,aD,am,bk,ep,gm,oF,oD,wW){this.gJ=(typeof gm!="undefined")?gm:false;this.dK=$(MapController.GLMAP.DIV_ID);this.dA=$(MapController.VEMAP.DIV_ID);this.eN=$(cs);this.lO=(typeof oF!="undefined")?oF:true;this.qp=this.addEventType("oncontextmenu");this.fI=this.addEventType("onmapstylechange");this.cp=this.addEventType("onchangeview");this.gb=this.addEventType("onbeginpan");this.hx=this.addEventType("onendpan");this.qr=this.addEventType("onpan");this.fZ=this.addEventType("onresize");this.nr=this.addEventType("onendslide");this.nN=this.addEventType("onbeginslide");this.dR=this.addEventType("onbirdseyezoomlevelchange");this.fH=this.addEventType("onbirdseyeloaded");this.is=this.addEventType("onbirdseyeavailable");this.ht=this.addEventType("onbirdseyefailed");this.hv=this.addEventType("onloadbirdseye");this.yd=this.addEventType("internal_onveready");try{this.pI=this.addEventType("onaddmeasurepoint");this.ql=this.addEventType("onclearmeasurepoints");this.ya=this.addEventType("onprocessrequest");}catch(e){}this.hh=aC;this.hl=aD;this.hc=ax;this.yq=ep;this.pQ=$ifDefined(wW,false);this.uW(ax,aC,aD,am,bk,gm);this.cq=this.an.getMapStyle();this.dI=new MapMarkers();this.logMapRequest(ep,this.an);this.addEventListener("onchangeview",this.logMapRequest.bind(this,ep,this.an));if($defined(oD)&&oD){var oN=$("logo1881");if(oN!=null){oN.show();}}},setVELoaded:function(){VirtualEarthMap.ReadyState=VirtualEarthMap.ReadyStates.READY;if(this.aR!=null){this.aR.ready();}},eK:function(fQ){var bannerHeight=0;if(!this.lO){if(fQ&&this.aI!=null){var aO=Element.getWidth(this.eN),aJ=Element.getHeight(this.eN)-bannerHeight;this.aI.resize(aO,aJ);}return;}var cf=Utilities.Window.getSize();var aO,aJ;if(this.dL){if(this.aR!=null){this.aR.resize();}if(this.aI!=null){this.aI.resize();}Element.setStyle($("contentContainer"),{"width":"100%","height":"100%"});var co=this.cS!=null?this.cS.menuWidth:0;aO=cf.width-co;aJ=cf.height-MapSettings.offsetBottom-bannerHeight;Element.setStyle($("mapWrap"),{width:aO+"px",height:aJ+"px"});}else{var hC=0,ii=$("mapWrapper");if(ii!=null){hC=ii.offsetTop;}var co=this.cS!=null?this.cS.menuWidth:0;aO=cf.width-co;aJ=cf.height-hC-MapSettings.offsetBottom-bannerHeight;Element.setStyle($("mapWrap"),{width:aO+"px",height:aJ-2+"px"});Element.setStyle($("contentContainer"),{"width":aO+co+"px","height":aJ+"px"});Element.setStyle($("logo1881"),{"top":(aJ-70)+"px"});}if(this.aI!=null){this.aI.resize(aO,aJ);}if(this.aR!=null){this.aR.resize(aO,aJ);}if(this.an!=null){this.fZ.fire(this.dL);if(!$defined(fQ)||fQ==false){this.cp.fire(this.an.getCenter(),this.an.getMapStyle(),this.getZoomLevel(),this.getViewport(),this.an.getType());}}},reset:function(){this.setCenter(this.hh,this.hl,this.hc);},setInitialPosition:function(lat,lon,ax){this.hc=ax;this.hh=lat;this.hl=lon;},getControlPane:function(){alert("Sjekk bruk av getControlPane!");return this.eN;},addWmsLayer:function(aA){if(this.aI!=null){this.aI.addWmsLayer(aA);}else{this.jO.set("addWmsLayer:"+aA.layer,this.addWmsLayer.bind(this,aA));}},removeWmsLayer:function(bM){if(this.aI!=null){this.aI.removeWmsLayer(bM);}else{this.jO.unset("addWmsLayer:"+bM);}},setBirdseye:function(aC,aD){this.setMapStyle(MapController.Styles.BIRDS_EYE,{lat:aC,lon:aD});},mO:2,yG:null,setMapStyle:function(am,at){this.hw=false;var bL=false;if(am==MapController.Styles.REGULAR||am==MapController.Styles.AERIAL||am==MapController.Styles.HYBRID){if(this.cq==MapController.Styles.BIRDS_EYE){this.aR.showLine("route");var aq=this.an.getViewport();var ay={lat:(aq.north+aq.south)/2,lon:(aq.east+aq.west)/2};this.dU=this.kB;if(MapController.GLMAP.Coverage.intersects(aq.south,aq.west,aq.north,aq.east)){if(this.aI!=null){ay.level=MapController.GLMAP.ZOOM_LEVELS.offset(this.dU);this.aI.centerAndZoom(ay);this.an=this.aI;this.an.setMapStyle(am);}else{this.an=this.iw(this.dU,ay.lat,ay.lon,am);}this.cq=am;bL=true;Element.hide(this.dA);Element.show(this.dK);}else{this.kF=true;this.an.setMapStyle(am);this.an.setZoomLevel(this.dU,true);this.cq=am;bL=true;}}else if(this.an.setMapStyle(am)){this.cq=am;bL=true;}}else if(am==MapController.Styles.BIRDS_EYE&&this.an.getMapStyle()!=am){if(this.isBirdseyeAvailable()||$defined(at)){var wU=this.qX=this.getCenter();var ay=$ifDefined(at,wU);this.sI=this.getViewport();this.kB=this.getZoomLevel();this.sq=this.cq;if(this.an.getType()=="GLMap"){this.kl=true;var ax=this.mO;this.mO=(this.mO==2)?3:2;if(this.aR==null){this.dA.style.zIndex= -1;Element.show(this.dA);this.lH(ax,ay.lat,ay.lon,MapController.Styles.BIRDS_EYE);this.an=this.aR;}else{ay.level=ax;this.an=this.aR;this.lA(ay,MapController.Styles.BIRDS_EYE,true);}bL=true;}else{if(!$defined(at)){this.an.setMapStyle(am);}else{this.hv.fire();this.aR.ny(at);}this.aR.hideLine("route");this.cq=MapController.Styles.BIRDS_EYE;this.dR.fire(MapController.VEMAP.ZOOM_LEVELS.globalLast);bL=true;}}}else if($defined(at)){this.qX=this.getCenter();this.sI=this.getViewport();this.kB=this.getZoomLevel();this.sq=MapController.Styles.BIRDS_EYE;this.hv.fire();this.aR.ny(at);}if(bL){if(am!=MapController.Styles.BIRDS_EYE){this.fI.fire(am);this.cp.fire(this.an.getCenter(),am,this.getZoomLevel(),this.getViewport(),this.an.getType());}}return bL;},getDimensions:function(){return this.eN.getDimensions();},gp:function(bq){this.cS=bq;var cf=Utilities.Window.getSize();var aO=Element.getWidth($("mapWrapper"))-bq.menuWidth;var aJ=cf.height-MapSettings.offsetBottom-2;aJ-=$('mapWrapper').offsetTop;Element.setStyle($("mapWrap"),{left:(bq.menuWidth)+"px",width:(aO)+"px",height:aJ+"px"});if(this.an==this.aR){this.aR.resize(aO,aJ);if(this.aI!=null){this.aI.resize(aO,aJ);}}else{this.aI.resize(aO,aJ);if(this.aR!=null){this.aR.resize(aO,aJ);}}},setBirdseyeOrientation:function(bk){if(this.an.getMapStyle()==MapController.Styles.BIRDS_EYE){var lD=[VEOrientation.North,VEOrientation.West,VEOrientation.East,VEOrientation.South];this.an.rq(lD[bk]);return true;}return false;},getMapStyle:function(){return this.cq;},isBirdseyeAvailable:function(){return this.an.isBirdseyeAvailable();},isAerialAvailable:function(){if(this.dr!=null&&this.getZoomLevel()<8){return!this.dr.qf();}return true;},setZoomLevel:function(ax,ov){if(this.cq==MapController.Styles.BIRDS_EYE){if(typeof ov=="undefined"||ov==true){if(Math.abs(ax-MapController.GLMAP.ZOOM_LEVELS.globalFirst)<Math.abs(MapController.VEMAP.ZOOM_LEVELS.globalLast-ax)){this.dR.fire(MapController.GLMAP.ZOOM_LEVELS.globalFirst);this.an.setZoomLevel(2,true);}else{this.dR.fire(MapController.VEMAP.ZOOM_LEVELS.globalLast);this.an.setZoomLevel(1,true);}}else{if(ax==0){this.dR.fire(MapController.GLMAP.ZOOM_LEVELS.globalFirst);this.an.setZoomLevel(2,true);}else{this.dR.fire(MapController.VEMAP.ZOOM_LEVELS.globalLast);this.an.setZoomLevel(1,true);}}}else{if(ax<=MapController.VEMAP.ZOOM_LEVELS.globalLast&&ax>=MapController.GLMAP.ZOOM_LEVELS.globalFirst){var aq=this.an.getViewport();if(this.dF({level:ax,viewport:aq},false,true)){aq=this.an.getViewport();this.dF({level:ax,viewport:aq});}}}},getZoomLevels:function(){var i;var retval=new Array();for(i=MapController.GLMAP.ZOOM_LEVELS.globalFirst;i<=MapController.VEMAP.ZOOM_LEVELS.globalLast;i++){retval.push(i);}return retval;},getZoomLevel:function(){if(this.an!=null){if(this.getMapStyle()!=MapController.Styles.BIRDS_EYE){return this.an.ZOOM_LEVELS.deoffset(this.an.getZoomLevel());}else{return this.an.getZoomLevel();}}else{return dU;}},pan:function(tP,tW){this.an.pan(tP,tW);this.dF({level:this.getZoomLevel(),viewport:this.an.getViewport()});},getViewport:function(){return this.an.getViewport();},setCenter:function(lat,lon,aQ){var at={level:$defined(aQ)?aQ:this.getZoomLevel(),lat:lat,lon:lon};if(this.cq!=MapController.Styles.BIRDS_EYE){this.dF(at,false,true);at.level=this.an.ZOOM_LEVELS.offset(at.level);this.an.centerAndZoom(at);var ay=this.an.getCenter();ay.viewport=this.an.getViewport();ay.level=this.an.ZOOM_LEVELS.deoffset(this.an.getZoomLevel());this.dF(ay);}else{try{at.level=this.an.ZOOM_LEVELS.offset(at.level);this.an.centerAndZoom(at);at.level=this.an.ZOOM_LEVELS.deoffset(at.level);at.viewport=this.an.getViewport();this.dF(at);}catch(e){}}this.cp.fire(this.an.getCenter(),this.an.getMapStyle(),this.getZoomLevel(),this.getViewport(),this.an.getType());},getCenter:function(zb){return this.an.getCenter();},getCenterUTM:function(){return this.an.getCenterUTM();},isInside:function(lat,lon,left,top,right,bottom){var l=$ifDefined(left,0);var t=$ifDefined(top,0);var r=$ifDefined(right,Element.getWidth(this.eN));var b=$ifDefined(bottom,Element.getHeight(this.eN));var iV=this.getPixelLatLon({x:r,y:b});var jg=this.getPixelLatLon({x:l,y:t});return lat<=jg.lat&&lat>=iV.lat&&lon>=jg.lon&&lon<=iV.lon;},getLatLonPixel:function(lat,lon){return this.an.getLatLonPixel(lat,lon);},getPixelLatLon:function(){if(arguments.length==2){return this.an.getPixelLatLon({x:arguments[0],y:arguments[1]});}else{return this.an.getPixelLatLon(arguments[0]);}},setHotspot:function(bf,aC,aD,fP,fT,aS,de,aG){var aP='hotspot_1';this.setHotspots('hotspot',[[aP,bf,aC,aD,(typeof aS!="undefined")?aS:aC+", "+aD,(typeof de!="undefined")?de:"",$defined(aG)&&typeof aG=="function"?aG:Prototype.emptyFunction,undefined,undefined,(typeof fP!="undefined")?fP:0,(typeof fT!="undefined")?fT:0]]);return aP;},addAnnotation:function(bH,et){if(!($defined(bH)&&$defined(bH.coordinate)&&$defined(bH.coordinate.lat)&&$defined(bH.coordinate.lon))){alert("addAnnotation krever et objekt med feltet coordinate. Coordinate må ha feltene lat og lon");}var et=$ifDefined(et,"default");var aP=et+this.dI.getCollectionSize(et);var xK=$ifDefined(bH.iconURL,"/Resource/Map/images/measPoint.gif");var aS=$ifDefined(bH.title,null);var aW=$ifDefined(bH.description,null);var fP=$ifDefined(bH.xOffset,$ifDefined(bH.offsetX,0));var fT=$ifDefined(bH.yOffset,$ifDefined(bH.offsetY,0));var fK=$ifDefined(bH.lowerBound,MapController.GLMAP.ZOOM_LEVELS.globalFirst);var gx=$ifDefined(bH.upperBound,MapController.VEMAP.ZOOM_LEVELS.globalLast);var aG=$ifDefined(bH.callback,null);this.nZ(fK,gx);this.dI.begin(et,gx);this.dI.add(aP,xK,bH.coordinate.lat,bH.coordinate.lon,aS,aW,aG,fK,gx,fP,fT);this.dI.end();var ld=[this.aI.addHotspot.bind(this.aI)];this.dI.draw(et,ld);},removeAnnotationGroup:function(et){this.qF(et);},qF:function(et,fK,gx){fK=$ifDefined(fK,MapController.GLMAP.ZOOM_LEVELS.globalFirst);gx=$ifDefined(gx,MapController.VEMAP.ZOOM_LEVELS.globalLast);var si=[];if(this.aI!=null&&fK<=MapController.GLMAP.ZOOM_LEVELS.globalLast){si.push(this.aI.clearHotspots.bind(this.aI));}this.dI.clear(et,si);},nZ:function(fK,gx){if(this.aI==null&&fK<=MapController.GLMAP.ZOOM_LEVELS.globalLast){Element.show(this.dK);this.iw(this.getZoomLevel(),this.hs,this.gR);Element.hide(this.dK);}},setHotspots:function(ez,dm,cO){var cO=$defined(cO)&&cO!=null?cO:MapController.VEMAP.ZOOM_LEVELS.globalLast;this.nZ(0,cO);this.qF(ez,MapController.GLMAP.ZOOM_LEVELS.globalFirst,cO);this.dI.begin(ez,cO);var i,ao=dm.length;for(i=0;i<ao;i++){var jU=dm[i].length;this.dI.add(dm[i][0],dm[i][1],dm[i][2],dm[i][3],dm[i][4],dm[i][5],dm[i][6],(jU>7)?dm[i][7]:undefined,(jU>8)?dm[i][8]:undefined,(jU>9)?dm[i][9]:undefined,(jU>10)?dm[i][10]:undefined);}this.dI.end();var ld=[this.aI.addHotspot.bind(this.aI)];this.dI.draw(ez,ld);},showHotspotDialog:function(dN,dz){this.an.showHotspotDialog(dN,dz);},removeHotspots:function(ez){var sk=[];if(this.aI!=null)sk.push(this.aI.clearHotspots.bind(this.aI));this.dI.clear(ez,sk);},setViewport:function(bu,bs,bo,bp,iY){iY=$ifDefined(iY,0);var min={x:bu,y:bs};var max={x:bo,y:bp};var cU=null;var ll;if(bu-bo!=0||bp-bs!=0){if(this.aI==null){Element.show(this.dK);this.iw(0,this.hs,this.gR);Element.hide(this.dK);}var tC=(max.x-min.x)*0.05;var xj=(max.y-min.y)*0.1;cU=this.aI.getBestView({x1:min.x,y1:min.y-xj,x2:max.x,y2:max.y+tC});cU.zoom=MapController.GLMAP.ZOOM_LEVELS.offset(cU.zoom);if(cU.zoom<iY){cU.zoom=iY;}ll=cU.coordinate;if(this.cq==3&&cU.zoom>1){this.setMapStyle(MapController.Styles.REGULAR);}}else{ll={y:bp,x:bo};cU={zoom:iY};}this.setCenter(ll.y,ll.x,cU.zoom);},setMarker:function(icon,northing,easting,title,description,lowerbound,upperbound,iconXOffset,iconYOffset){alert("MapController.setMarker");},drawLine:function(id,dY,ek){if(this.aR!=null){this.aR.drawLine(id,dY,ek,this.cS,this.getWidth());}else{this.mP=true;this.rh=dY;this.rf=ek;this.rj=id;}},hideLine:function(id){if(this.aR!=null){this.aR.hideLine(id);}this.mP=false;},getWidth:function(){return Element.getWidth(this.eN);},getHeight:function(){return Element.getHeight(this.eN);},getMapProvider:function(){return this.an.getType();},rk:function(){if(this.cq==MapController.Styles.BIRDS_EYE){return this.aR.rk();}return null;},uW:function(ax,aC,aD,am,bk,gm){if($defined(ax)){this.dU=ax;}else if(ax<MapController.GLMAP.ZOOM_LEVELS.globalFirst||ax>MapController.VEMAP.ZOOM_LEVELS.globalLast){throw{message:"InvalidArgumentException: Invalid zoom level."};}if(aC){this.hs=aC;}if(aD){this.gR=aD;}if(this.dU<=MapController.GLMAP.ZOOM_LEVELS.globalLast&&am!=MapController.Styles.BIRDS_EYE){this.an=this.iw(this.dU,this.hs,this.gR,am);Element.hide(this.dA);Element.show(this.dK);}else{this.an=this.lH(ax,this.hs,this.gR,am,bk);if(am!=MapController.Styles.BIRDS_EYE){this.dK.hide();this.dA.show();}else{this.dK.hide();this.dA.hide();}}if(am!=MapController.Styles.BIRDS_EYE){this.dF({viewport:this.an.getViewport(),level:ax},true,true);}},iI:[],vP:function(aP,ci){var zh=this.aI.getMouseDownCoords();switch(aP){case "addFromPointMenuItem":Menu.setRouteStart({'description':'Startpunkt','lat':ci.lat,'lon':ci.lon});break;case "addToPointMenuItem":Menu.setRouteDestination({'description':'Stoppunkt','lat':ci.lat,'lon':ci.lon});break;case "addViaPointMenuItem":Menu.setRouteVia({'description':'Viapunkt','lat':ci.lat,'lon':ci.lon});break;case "showCoordinates":Menu.main({"description":ci.lat.toFixed(5)+" "+ci.lon.toFixed(5),"lat":ci.lat,"lon":ci.lon});break;case "addMeasurePoints":this.addAnnotation({coordinate:ci,upperBound:MapController.GLMAP.ZOOM_LEVELS.globalLast,xOffset: -4,yOffset: -4},"measurePoints");this.iI.push(ci);this.pI.fire(this.iI,ci);if(this.aI!=null){this.aI.clearDrawings();this.aI.drawLine(this.iI);}break;case "deleteMeasurePoints":this.resetMeasurements();break;case "zoomInMenuItem":var pa=MapController.VEMAP.ZOOM_LEVELS.globalLast-this.jL();var ax=Math.ceil(pa/2)+this.jL();var at={'lat':ci.lat,'lon':ci.lon,'level':ax};this.an.centerAndZoom(at);this.cp.fire(this.an.getCenter(),this.an.getMapStyle(),this.getZoomLevel(),this.getViewport(),this.an.getType());break;case "zoomOutMenuItem":var pa=this.jL();var ax=Math.ceil((this.jL())/2);var at={'lat':ci.lat,'lon':ci.lon,'level':ax};this.an.centerAndZoom(at);this.cp.fire(this.an.getCenter(),this.an.getMapStyle(),this.getZoomLevel(),this.getViewport(),this.an.getType());break;case "centerMapMenuItem":var at={'lat':ci.lat,'lon':ci.lon};this.an.centerAndZoom(at);this.cp.fire(this.an.getCenter(),this.an.getMapStyle(),this.getZoomLevel(),this.getViewport(),this.an.getType());break;}},resetMeasurements:function(){if(this.aI!=null){this.removeAnnotationGroup("measurePoints");this.iI.length=0;this.aI.clearDrawings();this.ql.fire();}},iw:function(aQ,lat,lon,am){if(aQ>MapController.GLMAP.ZOOM_LEVELS.globalLast){aQ=MapController.GLMAP.ZOOM_LEVELS.globalLast;}this.aI=new GLMap(MapController.GLMAP.ZOOM_LEVELS.offset(aQ),lat,lon,$defined(am)?am:this.cq,this.gJ);if(this.pQ){this.aI.wM(this.vP.bind(this));}Object.extend(this.aI,MapController.GLMAP);if(this.dL){this.aI.resize();}this.aI.addEventListener("onchangeview",this.uH.bindAsEventListener(this));this.aI.addEventListener("onbeginpan",this.pA.bindAsEventListener(this));this.aI.addEventListener("onendpan",this.lM.bindAsEventListener(this));this.eK(true);this.dr=new DrawLayer(this.aI);var rT=this.jO.values();var i,ao=rT.length;for(i=0;i<ao;i++){rT[i]();}this.jO=null;return this.aI;},lH:function(aQ,lat,lon,am,bk){var at={level:MapController.VEMAP.ZOOM_LEVELS.offset(aQ),lat:lat,lon:lon};try{this.aR=new VirtualEarthMap(MapController.VEMAP.DIV_ID,at.level,at.lat,at.lon,am,bk,this.gJ);this.aR.ve_addEventListener("onstartpan",this.pA.bind(this));this.aR.ve_addEventListener("onmouseup",this.lM.bind(this));this.aR.ve_addEventListener("onendpan",this.lM.bind(this));this.aR.ve_addEventListener("onobliqueenter",(function(){this.is.fire();}).bind(this));}catch(e){}Object.extend(this.aR,MapController.VEMAP);if(this.mP){this.aR.drawLine(this.rj,this.rh,this.rf,this.cS,this.getWidth());}this.aR.addEventListener("onlevelloaded",this.uE.bind(this));this.aR.addEventListener("oncontextmenu",this.uD.bind(this));this.aR.addEventListener("onchangeview",this.uG.bind(this));this.aR.addEventListener("internal_onbirdseyeloaded",this.uJ.bind(this));this.aR.addEventListener("internal_onbirdseyefailed",this.uI.bind(this));if(this.dL){this.aR.resize();}this.eK();return this.aR;},uH:function(kJ){this.dF({level:MapController.GLMAP.ZOOM_LEVELS.deoffset(kJ.level),viewport:kJ.viewport});},dF:function(at,kk,ib){kk=$defined(kk)?kk:false;ib=$defined(ib)?ib:false;var bL=true;if(this.cq!=MapController.Styles.BIRDS_EYE){if($defined(at.level)){if(at.level>=MapController.GLMAP.ZOOM_LEVELS.globalFirst&&at.level<=MapController.VEMAP.ZOOM_LEVELS.globalLast){var aq=$defined(at.viewport)?at.viewport:null;if(this.an.getType()=="GLMap"&&at.level>MapController.GLMAP.ZOOM_LEVELS.globalLast){this.lA(at);}else if(this.an.getType()=="GLMap"&&aq!=null&& !MapController.GLMAP.Coverage.intersects(aq.minLat,aq.minLon,aq.maxLat,aq.maxLon)){this.lA(at);}else if(this.an.getType()=="VirtualEarthMap"&&(at.level<MapController.VEMAP.ZOOM_LEVELS.globalFirst)&&(aq==null||MapController.GLMAP.Coverage.intersects(aq.minLat,aq.minLon,aq.maxLat,aq.maxLon))){this.wD(at);this.eK();}else if(at.level!=this.getZoomLevel()&& !kk){this.an.setZoomLevel(this.an.ZOOM_LEVELS.offset(at.level),true);}else{bL=false;}this.dU=at.level;}}}else{if(!this.an.isBirdseyeAvailable()||(typeof at.level!="undefined"&&at.level>4)){this.an.setMapStyle(MapController.Styles.REGULAR);this.cq=MapController.Styles.REGULAR;this.fI.fire(MapController.Styles.REGULAR);ib=true;return this.dF(at);}}var center=this.an.getCenter();if(!ib){this.cp.fire(this.an.getCenter(),this.an.getMapStyle(),this.getZoomLevel(),this.getViewport(),this.an.getType());}return bL;},zI:function(){if(this.an.getType()=="VirtualEarthMap"){return MapController.VEMAP.ZOOM_LEVELS.deoffset(this.an.getZoomLevel());}else{return this.an.getZoomLevel();}},wD:function(at){var ay=($defined(at)&&$defined(at.lat))?Object.clone(at):this.aR.getCenter();Element.hide(this.dA);Element.show(this.dK);if(this.aI==null){this.iw(parseInt($defined(at.level)?at.level:this.getZoomLevel()),ay.lat,ay.lon);}else{if($defined(at.level)){ay.level=MapController.GLMAP.ZOOM_LEVELS.offset(at.level);}this.aI.center(ay);}var oc=this.an.getMapStyle();if(this.aI.getMapStyle()!=oc){this.aI.setMapStyle(oc);}this.an=this.aI;},lA:function(hQ,am,oW){if(typeof oW!="undefined"&&oW){this.dA.style.zIndex= -1;}else{Element.hide(this.dK);}Element.show(this.dA);if(!$defined(am)){am=(this.an!=null)?this.an.getMapStyle():0;}var ay=($defined(hQ.lat)&&$defined(hQ.lon))?hQ:this.aI.getCenter();var ax=hQ.level?hQ.level:this.getZoomLevel();if(this.aR==null){this.lH(ax,ay.lat,ay.lon,am);}else{var pos={level:MapController.VEMAP.ZOOM_LEVELS.offset(ax),lat:ay.lat,lon:ay.lon};if(am!=MapController.Styles.BIRDS_EYE){if(this.aR.getMapStyle()!=am){this.aR.setMapStyle(am);}this.aR.centerAndZoom(pos);}else if(am==MapController.Styles.BIRDS_EYE){this.hv.fire();this.aR.ny(pos);}}this.an=this.aR;},jL:function(){if(this.an.getType()=="GLMap"){return this.an.getZoomLevel();}else{return MapController.VEMAP.ZOOM_LEVELS.deoffset(this.an.getZoomLevel());}},uD:function(pointerX,pointerY,lat,lon){var bq=Position.realOffset($(MapController.VEMAP.DIV_ID));this.qp.fire(this.an.getType(),pointerX,pointerY,bq[0],bq[1],lat,lon);},uJ:function(bk){this.dK.hide();this.dA.show();this.kB=this.dU=2;this.gJ=false;this.dA.style.zIndex=2001;this.cq=MapController.Styles.BIRDS_EYE;this.fH.fire();this.fI.fire(this.cq,bk);this.dR.fire(MapController.VEMAP.ZOOM_LEVELS.globalLast);this.cp.fire(this.an.getCenter(),this.an.getMapStyle(),this.dU,this.getViewport(),this.an.getType());this.hw=true;},uI:function(){this.gJ=false;var ax=3;var ay=this.an.getCenter();this.dF({level:ax,lat:ay.lat,lon:ay.lon});this.cp.fire(this.an.getCenter(),this.an.getMapStyle(),this.getZoomLevel(),this.getViewport(),this.an.getType());this.fI.fire(this.an.getMapStyle());this.ht.fire();},hf:null,uG:function(lat,lon,aQ,gH){if(this.hf!=null&&this.hf.lat==lat&&this.hf.lon==lon&&this.hf.zoomLevel==aQ&&this.hf.mapStyle==gH){return;}this.hf={lat:lat,lon:lon,zoomLevel:aQ,mapStyle:gH};if(this.hw&&gH!=MapController.Styles.BIRDS_EYE){this.hw=false;aQ=MapController.VEMAP.ZOOM_LEVELS.offset(3);}else if(gH!=MapController.Styles.BIRDS_EYE){this.hw=false;}if(this.kF){this.kF=false;return;}if(this.an.getType()=="GLMap"&& !this.kl){return;}if(this.na!=null){this.aR.center(this.na);this.na=null;}else if(this.kl){this.kl=false;this.gJ=true;this.aR.hideLine("route");}else{var ax=1;if(gH==MapController.Styles.BIRDS_EYE){ax=aQ;if(ax==2){this.dR.fire(MapController.GLMAP.ZOOM_LEVELS.globalFirst);}else{this.dR.fire(MapController.VEMAP.ZOOM_LEVELS.globalLast);}}else{ax=MapController.VEMAP.ZOOM_LEVELS.deoffset(aQ);}this.dF({viewport:this.an.getViewport(),level:ax,lat:lat,lon:lon},true);}},uE:function(hq){var ax=1;if(this.cq==MapController.Styles.BIRDS_EYE){ax=hq;}else{ax=MapController.VEMAP.ZOOM_LEVELS.deoffset(hq);}this.dF({level:ax,viewport:this.aR.getViewport()});},pA:function(e){this.gb.fire(this.an.getType());},lM:function(e){this.hx.fire(this.an.getType());}});Object.extend(MapController.prototype,new AbstractEventTrigger());