//  Prototip 2.0.5 - 28-10-2008
//  Copyright (c) 2008 Nick Stakenburg (http://www.nickstakenburg.com)
//
//  Licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Unported License
//  http://creativecommons.org/licenses/by-nc-nd/3.0/

//  More information on this project:
//  http://www.nickstakenburg.com/projects/prototip2/

var Prototip = {
  Version: '2.0.5'
};

var Tips = {
  options: {
    images: '../../../prototip/prototip2.0.5/images/prototip/', // image path, can be relative to this file or an absolute url
    zIndex: 9000                   // raise if required
  }
};

Prototip.Styles = {
  // The default style every other style will inherit from.
  // Used when no style is set through the options on a tooltip.
  'default': {
    border: 6,
    borderColor: '#c7c7c7',
    className: 'default',
    closeButton: false,
    hideAfter: false,
    hideOn: 'mouseleave',
    hook: false,
	//images: 'styles/creamy/',    // Example: different images. An absolute url or relative to the images url defined above.
    radius: 6,
	showOn: 'mousemove',
    stem: {
      //position: 'topLeft',       // Example: optional default stem position, this will also enable the stem
      height: 12,
      width: 15
    }
  },

  'protoblue': {
    className: 'protoblue',
    border: 6,
    borderColor: '#116497',
    radius: 6,
    stem: { height: 12, width: 15 }
  },

  'protosmap': {
    className: 'protosmap',
    border: 4,
    borderColor: '#30405b',
    radius: 4,
    stem: { height: 24, width: 15 }
  },

  'protopenkat': {
    className: 'protopenkat',
    border: 4,
    borderColor: '#30405b',
    radius: 4,
    stem: { height: 24, width: 15 }
  },

  'darkgrey': {
    className: 'darkgrey',
    border: 6,
    borderColor: '#363636',
    radius: 6,
    stem: { height: 12, width: 15 }
  },

  'creamy': {
    className: 'creamy',
    border: 6,
    borderColor: '#ebe4b4',
    radius: 6,
    stem: { height: 12, width: 15 }
  },

  'protogrey': {
    className: 'protogrey',
    border: 6,
    borderColor: '#606060',
    radius: 6,
    stem: { height: 12, width: 15 }
  }
};

if (typeof Prototype != 'undefined')
{
	eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('P.11(X,{5V:"1.6.0.3",3U:c(){8.3C("25");b(/^(6x?:\\/\\/|\\/)/.6i(e.9.W)){e.W=e.9.W}13{h A=/1P(?:-[\\w\\d.]+)?\\.4G(.*)/;e.W=(($$("4C 4y[2b]").3t(c(B){O B.2b.2k(A)})||{}).2b||"").3j(A,"")+e.9.W}b(25.2r.3e&&!17.3X.v){17.3X.34("v","5L:5y-5r-5k:5d");17.1f("3G:32",c(){17.4P().4I("v\\\\:*","4H: 30(#2Z#4D);")})}e.2p();r.1f(2S,"2R",8.2R)},3C:c(A){b((4v 2S[A]=="4p")||(8.2P(2S[A].4l)<8.2P(8["4i"+A]))){4g("X 6p "+A+" >= "+8["4i"+A]);}},2P:c(A){h B=A.3j(/4c.*|\\./g,"");B=6h(B+"0".6e(4-B.3g));O A.66("4c")>-1?B-1:B},62:$w("43 60"),1U:c(A){b(25.2r.3e){O A}A=A.2s(c(E,D){h B=P.2A(8)?8:8.m,C=D.5J;5E(C&&C!=B){5x{C=C.5t}5q(F){C=B}}b(C==B){O}E(D)});O A},37:c(A){O(A>0)?(-1*A):(A).5g()},2R:c(){e.4j()}});P.11(e,{1D:[],1c:[],2p:c(){8.2G=8.1t},1p:(c(A){O{1k:(A?"29":"1k"),1a:(A?"1S":"1a"),29:(A?"29":"1k"),1S:(A?"1S":"1a")}})(25.2r.3e),3D:{1k:"1k",1a:"1a",29:"1k",1S:"1a"},2f:{k:"31",31:"k",i:"1s",1s:"i",1Y:"1Y",1e:"1h",1h:"1e"},3A:{q:"1e",p:"1h"},2U:c(A){O!!23[1]?8.2f[A]:A},1n:(c(B){h A=s 4x("4w ([\\\\d.]+)").4u(B);O A?(3u(A[1])<7):10})(4n.4m),2N:(25.2r.4k&&!17.6w),34:c(A){8.1D.2L(A)},1J:c(A){h B=8.1D.3t(c(C){O C.m==$(A)});b(B){B.4f();b(B.1b){B.o.1J();b(e.1n){B.1v.1J()}}8.1D=8.1D.4b(B)}A.1P=2a},4j:c(){8.1D.3m(c(A){8.1J(A.m)}.1j(8))},2J:c(C){b(C==8.49){O}b(8.1c.3g===0){8.2G=8.9.1t;3i(h B=0,A=8.1D.3g;B<A;B++){8.1D[B].o.f({1t:8.9.1t})}}C.o.f({1t:8.2G++});b(C.T){C.T.f({1t:8.2G})}8.49=C},47:c(A){8.3f(A);8.1c.2L(A)},3f:c(A){8.1c=8.1c.4b(A)},46:c(){e.1c.1Q("V")},Y:c(B,F){B=$(B),F=$(F);h K=P.11({1g:{x:0,y:0},R:10},23[2]||{});h D=K.1z||F.2t();D.k+=K.1g.x;D.i+=K.1g.y;h C=K.1z?[0,0]:F.3H(),A=17.1E.2D(),G=K.1z?"20":"15";D.k+=(-1*(C[0]-A[0]));D.i+=(-1*(C[1]-A[1]));b(K.1z){h E=[0,0];E.q=0;E.p=0}h I={m:B.21()},J={m:P.2c(D)};I[G]=K.1z?E:F.21();J[G]=P.2c(D);3i(h H 3Q J){3O(K[H]){U"5w":U"5u":J[H].k+=I[H].q;18;U"5s":J[H].k+=(I[H].q/2);18;U"5p":J[H].k+=I[H].q;J[H].i+=(I[H].p/2);18;U"5o":U"5m":J[H].i+=I[H].p;18;U"5l":U"5j":J[H].k+=I[H].q;J[H].i+=I[H].p;18;U"5h":J[H].k+=(I[H].q/2);J[H].i+=I[H].p;18;U"5f":J[H].i+=(I[H].p/2);18}}D.k+=-1*(J.m.k-J[G].k);D.i+=-1*(J.m.i-J[G].i);b(K.R){B.f({k:D.k+"j",i:D.i+"j"})}O D}});e.2p();h 5c=59.3J({2p:c(C,E){8.m=$(C);b(!8.m){4g("X: r 58 56, 55 3J a 1b.");O}e.1J(8.m);h A=(P.2F(E)||P.2A(E)),B=A?23[2]||[]:E;8.1u=A?E:2a;b(B.28){B=P.11(P.2c(X.33[B.28]),B)}8.9=P.11(P.11({1m:10,1i:0,3k:"#4R",1o:0,u:e.9.u,19:e.9.4L,1B:!(B.1d&&B.1d=="1Z")?0.14:10,1C:10,1x:"1S",3B:10,Y:B.Y,1g:B.Y?{x:0,y:0}:{x:16,y:16},1K:(B.Y&&!B.Y.1z)?1l:10,1d:"2q",n:10,28:"2Z",15:8.m,12:10,1E:(B.Y&&!B.Y.1z)?10:1l,q:10},X.33["2Z"]),B);8.15=$(8.9.15);8.1o=8.9.1o;8.1i=(8.1o>8.9.1i)?8.1o:8.9.1i;b(8.9.W){8.W=8.9.W.2Y("://")?8.9.W:e.W+8.9.W}13{8.W=e.W+"4F/"+(8.9.28||"")+"/"}b(!8.W.4E("/")){8.W+="/"}b(P.2F(8.9.n)){8.9.n={R:8.9.n}}b(8.9.n.R){8.9.n=P.11(P.2c(X.33[8.9.28].n)||{},8.9.n);8.9.n.R=[8.9.n.R.2k(/[a-z]+/)[0].2e(),8.9.n.R.2k(/[A-Z][a-z]+/)[0].2e()];8.9.n.1I=["k","31"].3z(8.9.n.R[0])?"1e":"1h";8.1r={1e:10,1h:10}}b(8.9.1m){8.9.1m.9=P.11({2V:25.4B},8.9.1m.9||{})}8.1p=$w("4A 43").3z(8.m.4z.2e())?e.3D:e.1p;b(8.9.Y.1z){h D=8.9.Y.1q.2k(/[a-z]+/)[0].2e();8.20=e.2f[D]+e.2f[8.9.Y.1q.2k(/[A-Z][a-z]+/)[0].2e()].2B()}8.3y=(e.2N&&8.1o);8.3x();e.34(8);8.3w();X.11(8)},3x:c(){8.o=s r("S",{u:"1P"}).f({1t:e.9.1t});b(8.3y){8.o.V=c(){8.f("k:-3v;i:-3v;1O:2o;");O 8};8.o.Q=c(){8.f("1O:1c");O 8};8.o.1c=c(){O(8.2Q("1O")=="1c"&&3u(8.2Q("i").3j("j",""))>-4t)}}8.o.V();b(e.1n){8.1v=s r("4s",{u:"1v",2b:"4r:10;",4q:0}).f({2m:"2i",1t:e.9.1t-1,4o:0})}b(8.9.1m){8.24=8.24.2s(8.2O)}8.1q=s r("S",{u:"1u"});8.12=s r("S",{u:"12"}).V();b(8.9.19||(8.9.1x.m&&8.9.1x.m=="19")){8.19=s r("S",{u:"2j"}).26(8.W+"2j.2l")}},2H:c(){b(17.32){8.3r();8.3s=1l;O 1l}13{b(!8.3s){17.1f("3G:32",8.3r);O 10}}},3r:c(){$(17.2M).N(8.o);b(e.1n){$(17.2M).N(8.1v)}b(8.9.1m){$(17.2M).N(8.T=s r("S",{u:"6v"}).26(8.W+"T.6t").V())}h G="o";b(8.9.n.R){8.n=s r("S",{u:"6r"}).f({p:8.9.n[8.9.n.1I=="1h"?"p":"q"]+"j"});h B=8.9.n.1I=="1e";8[G].N(8.3p=s r("S",{u:"6q 2K"}).N(8.4e=s r("S",{u:"6o 2K"})));8.n.N(8.1T=s r("S",{u:"6n"}).f({p:8.9.n[B?"q":"p"]+"j",q:8.9.n[B?"p":"q"]+"j"}));b(e.1n&&!8.9.n.R[1].4d().2Y("6m")){8.1T.f({2m:"6l"})}G="4e"}b(8.1i){h D=8.1i,F;8[G].N(8.1W=s r("6j",{u:"1W"}).N(8.1V=s r("3n",{u:"1V 3l"}).f("p: "+D+"j").N(s r("S",{u:"2n 6g"}).N(s r("S",{u:"1X"}))).N(F=s r("S",{u:"6f"}).f({p:D+"j"}).N(s r("S",{u:"4a"}).f({1w:"0 "+D+"j",p:D+"j"}))).N(s r("S",{u:"2n 6d"}).N(s r("S",{u:"1X"})))).N(8.2W=s r("3n",{u:"2W 3l"}).N(8.2T=s r("S",{u:"2T"}).f("2I: 0 "+D+"j"))).N(8.48=s r("3n",{u:"48 3l"}).f("p: "+D+"j").N(s r("S",{u:"2n 6c"}).N(s r("S",{u:"1X"}))).N(F.6b(1l)).N(s r("S",{u:"2n 69"}).N(s r("S",{u:"1X"})))));G="2T";h C=8.1W.2X(".1X");$w("68 67 65 63").3m(c(I,H){b(8.1o>0){X.45(C[H],I,{1L:8.9.3k,1i:D,1o:8.9.1o})}13{C[H].2E("44")}C[H].f({q:D+"j",p:D+"j"}).2E("1X"+I.2B())}.1j(8));8.1W.2X(".4a",".2W",".44").1Q("f",{1L:8.9.3k})}8[G].N(8.1b=s r("S",{u:"1b "+8.9.u}).N(8.27=s r("S",{u:"27"}).N(8.12)));b(8.9.q){h E=8.9.q;b(P.61(E)){E+="j"}8.1b.f("q:"+E)}b(8.n){h A={};A[8.9.n.1I=="1e"?"i":"1s"]=8.n;8.o.N(A);8.2g()}8.1b.N(8.1q);b(!8.9.1m){8.3d({12:8.9.12,1u:8.1u})}},3d:c(E){h A=8.o.2Q("1O");8.o.f("p:1M;q:1M;1O:2o").Q();b(8.1i){8.1V.f("p:0");8.1V.f("p:0")}b(E.12){8.12.Q().42(E.12);8.27.Q()}13{b(!8.19){8.12.V();8.27.V()}}b(P.2A(E.1u)){E.1u.Q()}b(P.2F(E.1u)||P.2A(E.1u)){8.1q.42(E.1u)}8.1b.f({q:8.1b.41()+"j"});8.o.f("1O:1c").Q();8.1b.Q();h C=8.1b.21(),B={q:C.q+"j"},D=[8.o];b(e.1n){D.2L(8.1v)}b(8.19){8.12.Q().N({i:8.19});8.27.Q()}b(E.12||8.19){8.27.f("q: 3c%")}B.p=2a;8.o.f({1O:A});8.1q.2E("2K");b(E.12||8.19){8.12.2E("2K")}b(8.1i){8.1V.f("p:"+8.1i+"j");8.1V.f("p:"+8.1i+"j");B="q: "+(C.q+2*8.1i)+"j";D.2L(8.1W)}D.1Q("f",B);b(8.n){8.2g();b(8.9.n.1I=="1e"){8.o.f({q:8.o.41()+8.9.n.p+"j"})}}8.o.V()},3w:c(){8.3b=8.24.1y(8);8.40=8.V.1y(8);b(8.9.1K&&8.9.1d=="2q"){8.9.1d="1k"}b(8.9.1d==8.9.1x){8.1R=8.3Z.1y(8);8.m.1f(8.9.1d,8.1R)}b(8.19){8.19.1f("1k",c(E){E.26(8.W+"5Y.2l")}.1j(8,8.19)).1f("1a",c(E){E.26(8.W+"2j.2l")}.1j(8,8.19))}h C={m:8.1R?[]:[8.m],15:8.1R?[]:[8.15],1q:8.1R?[]:[8.o],19:[],2i:[]},A=8.9.1x.m;8.39=A||(!8.9.1x?"2i":"m");8.1N=C[8.39];b(!8.1N&&A&&P.2F(A)){8.1N=8.1q.2X(A)}h D={29:"1k",1S:"1a"};$w("Q V").3m(c(H){h G=H.2B(),F=(8.9[H+"3Y"].38||8.9[H+"3Y"]);8[H+"3W"]=F;b(["29","1S","1k","1a"].2Y(F)){8[H+"3W"]=(8.1p[F]||F);8["38"+G]=X.1U(8["38"+G])}}.1j(8));b(!8.1R){8.m.1f(8.9.1d,8.3b)}b(8.1N){8.1N.1Q("1f",8.5X,8.40)}b(!8.9.1K&&8.9.1d=="1Z"){8.2u=8.R.1y(8);8.m.1f("2q",8.2u)}8.3V=8.V.2s(c(G,F){h E=F.5P(".2j");b(E){E.5N();F.5M();G(F)}}).1y(8);b(8.19||(8.9.1x&&(8.9.1x.m==".2j"))){8.o.1f("1Z",8.3V)}b(8.9.1d!="1Z"&&(8.39!="m")){8.2C=X.1U(c(){8.1G("Q")}).1y(8);8.m.1f(8.1p.1a,8.2C)}h B=[8.m,8.o];8.36=X.1U(c(){e.2J(8);8.2v()}).1y(8);8.35=X.1U(8.1C).1y(8);B.1Q("1f",8.1p.1k,8.36).1Q("1f",8.1p.1a,8.35);b(8.9.1m&&8.9.1d!="1Z"){8.2z=X.1U(8.3T).1y(8);8.m.1f(8.1p.1a,8.2z)}},4f:c(){b(8.9.1d==8.9.1x){8.m.1A(8.9.1d,8.1R)}13{8.m.1A(8.9.1d,8.3b);b(8.1N){8.1N.1Q("1A")}}b(8.2u){8.m.1A("2q",8.2u)}b(8.2C){8.m.1A("1a",8.2C)}8.o.1A();8.m.1A(8.1p.1k,8.36).1A(8.1p.1a,8.35);b(8.2z){8.m.1A(8.1p.1a,8.2z)}},2O:c(C,B){b(!8.1b){b(!8.2H()){O}}8.R(B);b(8.2y){O}13{b(8.3S){C(B);O}}8.2y=1l;h D={2h:{1F:22.1F(B),1H:22.1H(B)}};h A=P.2c(8.9.1m.9);A.2V=A.2V.2s(c(F,E){8.3d({12:8.9.12,1u:E.5I});8.R(D);(c(){F(E);h G=(8.T&&8.T.1c());b(8.T){8.1G("T");8.T.1J();8.T=2a}b(G){8.Q()}8.3S=1l;8.2y=2a}.1j(8)).1B(0.6)}.1j(8));8.5H=r.Q.1B(8.9.1B,8.T);8.o.V();8.2y=1l;8.T.Q();8.5F=(c(){s 5B.5A(8.9.1m.30,A)}.1j(8)).1B(8.9.1B);O 10},3T:c(){8.1G("T")},24:c(A){b(!8.1b){b(!8.2H()){O}}8.R(A);b(8.o.1c()){O}8.1G("Q");8.5z=8.Q.1j(8).1B(8.9.1B)},1G:c(A){b(8[A+"3N"]){5v(8[A+"3N"])}},Q:c(){b(8.o.1c()){O}b(e.1n){8.1v.Q()}b(8.9.3B){e.46()}e.47(8);8.1b.Q();8.o.Q();b(8.n){8.n.Q()}8.m.3M("1P:5C")},1C:c(A){b(8.9.1m){b(8.T&&8.9.1d!="1Z"){8.T.V()}}b(!8.9.1C){O}8.2v();8.5D=8.V.1j(8).1B(8.9.1C)},2v:c(){b(8.9.1C){8.1G("1C")}},V:c(){8.1G("Q");8.1G("T");b(!8.o.1c()){O}8.3L()},3L:c(){b(e.1n){8.1v.V()}b(8.T){8.T.V()}8.o.V();(8.1W||8.1b).Q();e.3f(8);8.m.3M("1P:2o")},3Z:c(A){b(8.o&&8.o.1c()){8.V(A)}13{8.24(A)}},2g:c(){h C=8.9.n,B=23[0]||8.1r,D=e.2U(C.R[0],B[C.1I]),F=e.2U(C.R[1],B[e.2f[C.1I]]),A=8.1o||0;8.1T.26(8.W+D+F+".2l");b(C.1I=="1e"){h E=(D=="k")?C.p:0;8.3p.f("k: "+E+"j;");8.1T.f({"2w":D});8.n.f({k:0,i:(F=="1s"?"3c%":F=="1Y"?"50%":0),5G:(F=="1s"?-1*C.q:F=="1Y"?-0.5*C.q:0)+(F=="1s"?-1*A:F=="i"?A:0)+"j"})}13{8.3p.f(D=="i"?"1w: 0; 2I: "+C.p+"j 0 0 0;":"2I: 0; 1w: 0 0 "+C.p+"j 0;");8.n.f(D=="i"?"i: 0; 1s: 1M;":"i: 1M; 1s: 0;");8.1T.f({1w:0,"2w":F!="1Y"?F:"2i"});b(F=="1Y"){8.1T.f("1w: 0 1M;")}13{8.1T.f("1w-"+F+": "+A+"j;")}b(e.2N){b(D=="1s"){8.n.f({R:"3P",5n:"5K",i:"1M",1s:"1M","2w":"k",q:"3c%",1w:(-1*C.p)+"j 0 0 0"});8.n.28.2m="3K"}13{8.n.f({R:"3R","2w":"2i",1w:0})}}}8.1r=B},R:c(B){b(!8.1b){b(!8.2H()){O}}e.2J(8);b(e.1n){h A=8.o.21();b(!8.2x||8.2x.p!=A.p||8.2x.q!=A.q){8.1v.f({q:A.q+"j",p:A.p+"j"})}8.2x=A}b(8.9.Y){h J,H;b(8.20){h K=17.1E.2D(),C=B.2h||{};h G,I=2;3O(8.20.4d()){U"5O":U"5i":G={x:0-I,y:0-I};18;U"5Q":G={x:0,y:0-I};18;U"5R":U"5S":G={x:I,y:0-I};18;U"5T":G={x:I,y:0};18;U"5U":U"5e":G={x:I,y:I};18;U"5W":G={x:0,y:I};18;U"5b":U"5a":G={x:0-I,y:I};18;U"5Z":G={x:0-I,y:0};18}G.x+=8.9.1g.x;G.y+=8.9.1g.y;J=P.11({1g:G},{m:8.9.Y.1q,20:8.20,1z:{i:C.1H||22.1H(B)-K.i,k:C.1F||22.1F(B)-K.k}});H=e.Y(8.o,8.15,J);b(8.9.1E){h M=8.3a(H),L=M.1r;H=M.R;H.k+=L.1h?2*X.37(G.x-8.9.1g.x):0;H.i+=L.1h?2*X.37(G.y-8.9.1g.y):0;b(8.n&&(8.1r.1e!=L.1e||8.1r.1h!=L.1h)){8.2g(L)}}H={k:H.k+"j",i:H.i+"j"};8.o.f(H)}13{J=P.11({1g:8.9.1g},{m:8.9.Y.1q,15:8.9.Y.15});H=e.Y(8.o,8.15,P.11({R:1l},J));H={k:H.k+"j",i:H.i+"j"}}b(8.T){h E=e.Y(8.T,8.15,P.11({R:1l},J))}b(e.1n){8.1v.f(H)}}13{h F=8.15.2t(),C=B.2h||{},H={k:((8.9.1K)?F[0]:C.1F||22.1F(B))+8.9.1g.x,i:((8.9.1K)?F[1]:C.1H||22.1H(B))+8.9.1g.y};b(!8.9.1K&&8.m!==8.15){h D=8.m.2t();H.k+=-1*(D[0]-F[0]);H.i+=-1*(D[1]-F[1])}b(!8.9.1K&&8.9.1E){h M=8.3a(H),L=M.1r;H=M.R;b(8.n&&(8.1r.1e!=L.1e||8.1r.1h!=L.1h)){8.2g(L)}}H={k:H.k+"j",i:H.i+"j"};8.o.f(H);b(8.T){8.T.f(H)}b(e.1n){8.1v.f(H)}}},3a:c(C){h E={1e:10,1h:10},D=8.o.21(),B=17.1E.2D(),A=17.1E.21(),G={k:"q",i:"p"};3i(h F 3Q G){b((C[F]+D[G[F]]-B[F])>A[G[F]]){C[F]=C[F]-(D[G[F]]+(2*8.9.1g[F=="k"?"x":"y"]));b(8.n){E[e.3A[G[F]]]=1l}}}O{R:C,1r:E}}});P.11(X,{45:c(G,H){h F=23[2]||8.9,B=F.1o,E=F.1i,D=s r("57",{u:"64"+H.2B(),q:E+"j",p:E+"j"}),A={i:(H.3I(0)=="t"),k:(H.3I(1)=="l")};b(D&&D.3h&&D.3h("2d")){G.N(D);h C=D.3h("2d");C.54=F.1L;C.53((A.k?B:E-B),(A.i?B:E-B),B,0,6a.52*2,1l);C.51();C.3F((A.k?B:0),0,E-B,E);C.3F(0,(A.i?B:0),E,E-B)}13{G.N(s r("S").f({q:E+"j",p:E+"j",1w:0,2I:0,2m:"3K",R:"3P",4Z:"2o"}).N(s r("v:4Y",{4X:F.1L,4W:"4V",4U:F.1L,4T:(B/E*0.5).4S(2)}).f({q:2*E-1+"j",p:2*E-1+"j",R:"3R",k:(A.k?0:(-1*E))+"j",i:(A.i?0:(-1*E))+"j"})))}}});r.6k({26:c(C,B){C=$(C);h A=P.11({3E:"i k",3q:"4Q-3q",3o:"4O",1L:""},23[2]||{});C.f(e.1n?{4N:"4M:6s.4K.6u(2b=\'"+B+"\'\', 3o=\'"+A.3o+"\')"}:{4J:A.1L+" 30("+B+") "+A.3E+" "+A.3q});O C}});X.4h={Q:c(){e.2J(8);8.2v();h D={};b(8.9.Y){D.2h={1F:0,1H:0}}13{h A=8.15.2t(),C=8.15.3H(),B=17.1E.2D();A.k+=(-1*(C[0]-B[0]));A.i+=(-1*(C[1]-B[1]));D.2h={1F:A.k,1H:A.i}}b(8.9.1m){8.2O(D)}13{8.24(D)}8.1C()}};X.11=c(A){A.m.1P={};P.11(A.m.1P,{Q:X.4h.Q.1j(A),V:A.V.1j(A),1J:e.1J.1j(e,A.m)})};X.3U();',62,406,'||||||||this|options||if|function||Tips|setStyle||var|top|px|left||element|stem|wrapper|height|width|Element|new||className|||||||||||||||||||insert|return|Object|show|position|div|loader|case|hide|images|Prototip|hook||false|extend|title|else||target||document|break|closeButton|mouseout|tooltip|visible|showOn|horizontal|observe|offset|vertical|border|bind|mouseover|true|ajax|fixIE|radius|useEvent|tip|stemInverse|bottom|zIndex|content|iframeShim|margin|hideOn|bindAsEventListener|mouse|stopObserving|delay|hideAfter|tips|viewport|pointerX|clearTimer|pointerY|orientation|remove|fixed|backgroundColor|auto|hideTargets|visibility|prototip|invoke|eventToggle|mouseleave|stemImage|capture|borderTop|borderFrame|prototip_Corner|middle|click|mouseHook|getDimensions|Event|arguments|showDelayed|Prototype|setPngBackground|toolbar|style|mouseenter|null|src|clone||toLowerCase|_inverse|positionStem|fakePointer|none|close|match|png|display|prototip_CornerWrapper|hidden|initialize|mousemove|Browser|wrap|cumulativeOffset|eventPosition|cancelHideAfter|float|iframeShimDimensions|ajaxContentLoading|ajaxHideEvent|isElement|capitalize|eventCheckDelay|getScrollOffsets|addClassName|isString|zIndexTop|build|padding|raise|clearfix|push|body|WebKit419|ajaxShow|convertVersionString|getStyle|unload|window|borderCenter|inverseStem|onComplete|borderMiddle|select|include|default|url|right|loaded|Styles|add|activityLeave|activityEnter|toggleInt|event|hideElement|getPositionWithinViewport|eventShow|100|_update|IE|removeVisible|length|getContext|for|replace|borderColor|borderRow|each|li|sizingMethod|stemWrapper|repeat|_build|_isBuilding|find|parseFloat|9500px|activate|setup|fixSafari2|member|_stemTranslation|hideOthers|require|specialEvent|align|fillRect|dom|cumulativeScrollOffset|charAt|create|block|afterHide|fire|Timer|switch|relative|in|absolute|ajaxContentLoaded|ajaxHide|start|buttonEvent|Action|namespaces|On|toggle|eventHide|getWidth|update|input|prototip_Fill|createCorner|hideAll|addVisibile|borderBottom|_highest|prototip_Between|without|_|toUpperCase|stemBox|deactivate|throw|Methods|REQUIRED_|removeAll|WebKit|Version|userAgent|navigator|opacity|undefined|frameBorder|javascript|iframe|9500|exec|typeof|MSIE|RegExp|script|tagName|area|emptyFunction|head|VML|endsWith|styles|js|behavior|addRule|background|Microsoft|closeButtons|progid|filter|scale|createStyleSheet|no|000000|toFixed|arcSize|strokeColor|1px|strokeWeight|fillcolor|roundrect|overflow||fill|PI|arc|fillStyle|cannot|available|canvas|not|Class|LEFTBOTTOM|BOTTOMLEFT|Tip|vml|BOTTOMRIGHT|leftMiddle|abs|bottomMiddle|TOPLEFT|rightBottom|com|bottomRight|leftBottom|clear|bottomLeft|rightMiddle|catch|microsoft|topMiddle|parentNode|rightTop|clearTimeout|topRight|try|schemas|showTimer|Request|Ajax|shown|hideAfterTimer|while|ajaxTimer|marginTop|loaderTimer|responseText|relatedTarget|both|urn|stop|blur|LEFTTOP|findElement|TOPMIDDLE|TOPRIGHT|RIGHTTOP|RIGHTMIDDLE|RIGHTBOTTOM|REQUIRED_Prototype|BOTTOMMIDDLE|hideAction|close_hover|LEFTMIDDLE|textarea|isNumber|_captureTroubleElements|br|cornerCanvas|bl|indexOf|tr|tl|prototip_CornerWrapperBottomRight|Math|cloneNode|prototip_CornerWrapperBottomLeft|prototip_CornerWrapperTopRight|times|prototip_BetweenCorners|prototip_CornerWrapperTopLeft|parseInt|test|ul|addMethods|inline|MIDDLE|prototip_StemImage|prototip_StemBox|requires|prototip_StemWrapper|prototip_Stem|DXImageTransform|gif|AlphaImageLoader|prototipLoader|evaluate|https'.split('|'),0,{}));
}var hx=false;
var b=false;
function _SM_createRequestObject()
{
var c;
if(hx&&window.XDomainRequest)
{
c=new XDomainRequest();
b=true;
}
else
if(window.XMLHttpRequest)
{
c=new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
try
{
c=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(hy)
{
c=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return c;
}
var e=0;
function _SM_getDivm(_SM_div_name)
{
var hz;
if(e==0)
{
if(document.getElementById)
{
e=3;
}
else if(document.g)
{
e=1;
}
else if(document.all)
{
e=2;
}
}
if(e==1)
{
hz=document.g[_SM_div_name];
}
else if(e==2)
{
hz=document.all(_SM_div_name);
}
else if(e==3)
{
hz=document.getElementById(_SM_div_name);
}
return hz;
}
function hA(hB)
{
var hC=(hB.target)?hB.target:hB.srcElement;
var coords={left:0,top:0};
if(hB.k){
var l={left:parseInt(m("progressBar",
"borderLeftWidth","border-left-width")),
top:parseInt(m("progressBar",
"borderTopWidth","border-top-width"))};
coords.left=hB.k-l.left;
coords.top=hB.hD-l.top;
}else if(hB.offsetX){
coords.left=hB.offsetX;
coords.top=hB.offsetY;
}
return coords;
}
function _SM_getPageEventCoords(hB)
{
var coords={left:0,top:0};
if(hB.pageX){
coords.left=hB.pageX;
coords.top=hB.pageY;
}else if(hB.clientX){
coords.left=
hB.clientX+document.body.scrollLeft-document.body.clientLeft;
coords.top=
hB.clientY+document.body.scrollTop-document.body.clientTop;
if(document.body.parentElement&&(document.body.parentElement.clientLeft||document.body.parentElement.clientTop)){
var o=document.body.parentElement;
if(document.body.parentElement.clientLeft)
{
coords.left+=o.scrollLeft-o.clientLeft;
}
if(document.body.parentElement.clientTop)
{
coords.top+=o.scrollTop-o.clientTop;
}
}
else if(document.body.parentElement&&(document.body.parentElement.scrollLeft||document.body.parentElement.scrollTop)){
var o=document.body.parentElement;
if(document.body.parentElement.scrollLeft)
{
coords.left+=o.scrollLeft;
}
if(document.body.parentElement.scrollTop)
{
coords.top+=o.scrollTop;
}
}
}
return coords;
}
function _SM_getElementPosition(hE)
{
var q=_SM_getDivm(hE);
var offsetLeft=0;
var offsetTop=0;
while(q){
offsetLeft+=q.offsetLeft;
offsetTop+=q.offsetTop;
q=q.offsetParent;
}
if(navigator.userAgent.indexOf("Mac")!=-1&&
typeof document.body.leftMargin!="undefined"){
offsetLeft+=document.body.leftMargin;
offsetTop+=document.body.topMargin;
}
return{left:offsetLeft,top:offsetTop};
}
var r=navigator.userAgent;
var s=parseFloat(navigator.appVersion);
var hF=r.indexOf("Opera")>-1;
var u=r.indexOf("compatible")>-1
&&r.indexOf("MSIE")>-1
&&!hF;
var v=hG=hH=hI=hJ=A=B=false;
if(u){
var C=new RegExp("MSIE (\\d+\\.\\d+);");
C.test(r);
var D=parseFloat(RegExp["$1"]);
v=D>=4;
hG=D>=5;
hH=D>=5.5;
hI=D>=6.0;
hJ=D>=7.0;
A=D>=8.0;
B=D<7.0;
}
function _SM_CorrectIE6PNGs()
{
if(B&&(document.body.filters))
{
for(var E=0;E<document.images.length;E++)
{
var F=document.images[E]
var G=F.src.toUpperCase()
if(G.substring(G.length-3,G.length)=="PNG")
{
var H=(F.id)?"id='"+F.id+"' ":""
var I=(F.className)?"class='"+F.className+"' ":""
var J=(F.title)?"title='"+F.title+"' ":"title='"+F.alt+"' "
var K="display:inline-block;"+F.style.cssText
if(F.align=="left")K="float:left;"+K
if(F.align=="right")K="float:right;"+K
if(F.parentElement.href)K="cursor:hand;"+K
var L="<span "+H+I+J
+" style=\""+"width:"+F.width+"px; height:"+F.height+"px;"+K+";"
+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+"(src=\'"+F.src+"\', sizingMethod='scale');\"></span>"
F.outerHTML=L
E=E-1
}
}
}
}
var M=new Array();
function N()
{
var O=_SM_getDivm('diagDisplay');
if(O)
{
var P='<code>';
var E=0;
for(E=0;E<M.length;E++)
{
P+=M[E].Q+'<br>';
}
P+='</code>';
O.innerHTML=P;
}
}
function _SM_addDiag(Q)
{
M[M.length]={Q:Q};
while(M.length>200)
{
M.shift();
}
N();
}
var R=new Array();
function _SM_HideCallout(reason)
{
if(typeof Tip!='undefined')
{
Tips.hideAll();
}
}
function _SM_HideNamedCallout(S,reason)
{
if(typeof Tip!='undefined')
{
var T=_SM_getDivm(S);
if(T)
{
if(typeof T.U!='undefined'&&T.U)
{
T.U.hide();
}
}
}
}
function _SM_ShowNamedCallout(S,reason)
{
if(typeof Tip!='undefined')
{
var T=_SM_getDivm(S);
if(T)
{
if(typeof T.U!='undefined'&&T.U)
{
T.U.show();
}
}
}
}
function V()
{
if(typeof Tip!='undefined')
{
Tips.hideAll();
}
}
function W(S)
{
if(typeof Tip!='undefined')
{
Tips.hideAll();
}
}
function _SM_ClearTooltip(X)
{
if(typeof Tip!='undefined')
{
Tips.remove(X);
}
}
function _SM_SetTooltipFromObject(X,Y)
{
var Z;
if(typeof Tip!='undefined')
{
var ba='protosmap';
var bb='rightMiddle';
var bc='leftMiddle';
var bd='leftMiddle';
var be=true;
var bf=3;
var bg=false;
var bh='auto';
var title;
var text;
var height;
if(typeof Y.text!='undefined'&&Y.text!=null&&Y.text.length>0)
{
text=Y.text;
}
if(typeof Y.style=='undefined'||Y.style==null||Y.style.length==0)
{
Y.style=ba;
}
if(typeof Y.hook=='undefined'||Y.hook==null)
{
Y.hook={target:bb,tip:bc};
}
else
{
if(typeof Y.hook.target=='undefined'||Y.hook.target==null||Y.hook.target.length==0)
{
Y.hook.target=bb;
}
if(typeof Y.hook.tip=='undefined'||Y.hook.tip==null||Y.hook.tip.length==0)
{
Y.hook.tip=bc;
}
}
if(typeof Y.stem=='undefined'||Y.stem==null||Y.stem.length==0)
{
Y.stem=bd;
}
if(typeof Y.fixed=='undefined')
{
Y.fixed=be;
}
if(typeof Y.hideAfter=='undefined')
{
Y.hideAfter=bf;
}
if(typeof Y.hideOn=='undefined')
{
Y.hideOn=bg;
}
if(typeof Y.bi!='undefined'&&Y.bi!=null&&Y.bi.length>0)
{
width=300;
height=250;
if(typeof Y.width=='undefined'||Y.width==null)
{
Y.width=width;
}
if(typeof Y.height=='undefined'||Y.height==null)
{
Y.height=height;
}
text='<iframe src="'+Y.bi+'" width="'+Y.width+'" height="'+Y.height+'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true"></iframe>';
}
if(typeof Y.width=='undefined'||Y.width==null)
{
Y.width=bh;
}
Z=new Tip(X,text,Y);
}
return Z;
}
function _SM_SetTooltip(X,text,bj,bk,bl,bm,bi)
{
return _SM_SetTooltipFromObject(X,{text:text,title:bj,style:bk,width:bl,height:bm,bi:bi});
}
function _SM_DisplayCallout(bn,bo,bp,bq)
{
}
function _SM_DisplayCalloutDiv(bn,bo,S,bq)
{
}
function _SM_ShowCalloutText(hB,bp,bq)
{
var coords=_SM_getPageEventCoords(hB);
_SM_DisplayCallout(coords.left+10,coords.top-10,bp,bq);
}
function _SM_ShowCalloutTextOffset(hB,bp,br,bs,bq)
{
var coords=_SM_getPageEventCoords(hB);
_SM_DisplayCallout(coords.left+br,coords.top-bs,bp,bq);
}
function _SM_ShowCalloutDivOffset(hB,S,br,bs,bq)
{
var coords=_SM_getPageEventCoords(hB);
_SM_DisplayCalloutDiv(coords.left+br,coords.top-bs,S,bq);
}
function _SM_getCookie(bt)
{
if(document.cookie.length>0)
{
var bu=document.cookie.indexOf(bt+"=");
if(bu!=-1)
{
bu+=bt.length+1;
var bv=document.cookie.indexOf(";",bu);
if(bv==-1)bv=document.cookie.length;
return unescape(document.cookie.substring(bu,bv));
}
}
return null;
}
function _SM_setCookie(bt,value,bw)
{
var bx=new Date();
bx.setTime(bx.getTime()+(bw*24*3600*1000));
document.cookie=bt+"="+escape(value)+((bw==null)?"":"; expires="+bx.toGMTString());
}
function _SM_setAllCookie(bt,value,bw)
{
var bx=new Date();
bx.setTime(bx.getTime()+(bw*24*3600*1000));
document.cookie=bt+"="+escape(value)+((bw==null)?"":"; expires="+bx.toGMTString());
document.cookie=bt+"="+escape(value)+((bw==null)?"":"; domain=streetmap.co.uk; expires="+bx.toGMTString());
document.cookie=bt+"="+escape(value)+((bw==null)?"":"; domain=www.streetmap.co.uk; expires="+bx.toGMTString());
}
var _SM_mapVis=new Array();
var _SM_mapFixed=new Array();
var by=new Array();
var bz=new Array();
var bA='unset';
var bB=false;
var bC=false;
var bD=false;
var bE=0;
var bF=0;
var bG=_SM_createRequestObject();
var bH=false;
var bI=false;
var _SM_locationX=0;
var _SM_locationY=0;
var _SM_locationZ=1;
var _SM_cpp=1.0;
var _SM_locationLX=0;
var _SM_locationLY=100;
var _SM_locationUX=0;
var _SM_locationUY=100;
var _SM_tileSize=0;
var _SM_imageSize=0;
var _SM_mapWidth=0;
var _SM_mapHeight=0;
var _SM_mercMode=false;
var _SM_skipSize=0;
var _SM_mapType=0;
var _SM_mzc=null;
var _SM_scaleImage=null;
var _SM_scaleImageSize=0;
var _SM_scaleText=null;
var _SM_al=new Array();
var _SM_urlBase='';
var _SM_PfnIconDisplayed=false;
var _SM_DIWM=false;
var bJ=new Array();
var bK=new Array();
var bL=new Array();
var bM=new Array();
var bN=new Array();
var bO=new Array();
var bP=new Array();
var bQ=new Array();
function _SM_AddMapRedrawCallback(bR)
{
var bS;
var bT=false;
for(bS=0;bS<bJ.length&&!bT;bS++)
{
if(bJ[bS]==bR)
{
bU=true;
}
}
if(!bT)
{
bJ[bJ.length]=bR;
}
}
function _SM_RemoveMapRedrawCallback(bR)
{
var bS;
for(bS=0;bS<bJ.length;bS++)
{
if(bJ[bS]==bR)
{
bJ.splice(bS,1);
}
}
}
function _SM_AddMapMoveCallback(bR)
{
var bS;
var bT=false;
for(bS=0;bS<bK.length&&!bT;bS++)
{
if(bK[bS]==bR)
{
bU=true;
}
}
if(!bT)
{
bK[bK.length]=bR;
}
}
function _SM_RemoveMapMoveCallback(bR)
{
var bS;
for(bS=0;bS<bK.length;bS++)
{
if(bK[bS]==bR)
{
bK.splice(bS,1);
}
}
}
function _SM_AddMapLoadedCallback(bR)
{
var bS;
var bT=false;
for(bS=0;bS<bL.length&&!bT;bS++)
{
if(bL[bS]==bR)
{
bU=true;
}
}
if(!bT)
{
bL[bL.length]=bR;
}
}
function _SM_RemoveMapLoadedCallback(bR)
{
var bS;
for(bS=0;bS<bL.length;bS++)
{
if(bL[bS]==bR)
{
bL.splice(bS,1);
}
}
}
function _SM_AddIconClickedCallback(bR)
{
var bS;
var bT=false;
for(bS=0;bS<bM.length&&!bT;bS++)
{
if(bM[bS]==bR)
{
bU=true;
}
}
if(!bT)
{
bM[bM.length]=bR;
}
}
function _SM_RemoveIconClickedCallback(bR)
{
var bS;
for(bS=0;bS<bM.length;bS++)
{
if(bM[bS]==bR)
{
bM.splice(bS,1);
}
}
}
function _SM_AddIconBuildedCallback(bR)
{
var bS;
var bT=false;
for(bS=0;bS<bN.length&&!bT;bS++)
{
if(bN[bS]==bR)
{
bU=true;
}
}
if(!bT)
{
bN[bN.length]=bR;
}
}
function _SM_RemoveIconBuildedCallback(bR)
{
var bS;
for(bS=0;bS<bN.length;bS++)
{
if(bN[bS]==bR)
{
bN.splice(bS,1);
}
}
}
function _SM_AddMapClickedCallback(bR)
{
var bS;
var bT=false;
for(bS=0;bS<bO.length&&!bT;bS++)
{
if(bO[bS]==bR)
{
bU=true;
}
}
if(!bT)
{
bO[bO.length]=bR;
}
}
function _SM_RemoveMapClickedCallback(bR)
{
var bS;
for(bS=0;bS<bO.length;bS++)
{
if(bO[bS]==bR)
{
bO.splice(bS,1);
}
}
}
function _SM_AddMapZoomCallback(bR)
{
var bS;
var bT=false;
for(bS=0;bS<bP.length&&!bT;bS++)
{
if(bP[bS]==bR)
{
bU=true;
}
}
if(!bT)
{
bP[bP.length]=bR;
}
}
function _SM_RemoveMapZoomCallback(bR)
{
var bS;
for(bS=0;bS<bP.length;bS++)
{
if(bP[bS]==bR)
{
bP.splice(bS,1);
}
}
}
function _SM_AddMapAdCallback(bR)
{
var bS;
var bT=false;
for(bS=0;bS<bQ.length&&!bT;bS++)
{
if(bQ[bS]==bR)
{
bU=true;
}
}
if(!bT)
{
bQ[bQ.length]=bR;
}
}
function _SM_RemoveMapAdCallback(bR)
{
var bS;
for(bS=0;bS<bQ.length;bS++)
{
if(bQ[bS]==bR)
{
bQ.splice(bS,1);
}
}
}
function _SM_sal()
{
for(E=0;E<_SM_al.length;E++)
{
if(typeof _SM_al[E]=='undefined')
{
_SM_al[E]=true;
}
else
{
}
}
}
function bV()
{
if(by.length>0)
{
bG=_SM_createRequestObject();
var bW=by.shift();
switch(bW.bX)
{
case 1:
if(b)
{
bG.onload=bY;
}
else
{
bG.onreadystatechange=bZ;
}
break;
case 2:
if(b)
{
bG.onload=ca;
}
else
{
bG.onreadystatechange=cb;
}
break;
case 3:
if(b)
{
bG.onload=cc;
}
else
{
bG.onreadystatechange=cd;
}
break;
case 4:
if(b)
{
bG.onload=ce;
}
else
{
bG.onreadystatechange=cf;
}
break;
case 5:
if(b)
{
bG.onload=cg;
}
else
{
bG.onreadystatechange=hK;
}
break;
}
bG.open('GET',_SM_urlBase+bW.bi);
bG.send(null);
}
}
function hL()
{
if(by.length>0)
{
setTimeout(bV,1);
}
else
{
bB=false;
}
}
function cj(bi,bX)
{
by[by.length]={bi:bi,bX:bX};
if(!bB)
{
bB=true;
hL();
}
}
function ck()
{
if(by.length>0)
{
hL();
}
else
{
bB=false;
}
}
function cl()
{
var bW=bz.shift();
var cm=document.createElement('script');
cm.src=_SM_urlBase+bW.bi;
if(bW.id)cm.id=bW.id;
document.getElementsByTagName('head')[0].appendChild(cm);
}
function cn(bi,id)
{
bz[bz.length]={bi:bi,id:id};
if(!bB)
{
bB=true;
cl();
}
}
function co(Y)
{
if(bz.length>0)
{
cl();
}
else
{
bB=false;
}
if(Y.id)
{
var parent=_SM_getDivm(Y.id);
if(parent)
{
if(!u||hJ)
{
document.getElementsByTagName('head')[0].removeChild(parent);
}
}
}
}
function cp(id)
{
if(bz.length>0)
{
cl();
}
else
{
bB=false;
}
if(id)
{
var parent=_SM_getDivm(id);
if(parent)
{
if(!u||hJ)
{
document.getElementsByTagName('head')[0].removeChild(parent);
}
}
}
}
function cq(cr,cs)
{
}
function cf(){
if(bG.readyState==4)
{
if(bG.status==200)
{
ct(bG.responseText);
}
}
}
function ce(){
ct(bG.responseText);
}
function ct(cu){
{
ck();
var cv=cu.indexOf('\r');
if(cv>0)
{
var bS;
for(bS=0;bS<bQ.length;bS++)
{
if(bQ[bS])
{
bQ[bS](cu.slice(0,cv),cu.slice(cv));
}
}
}
}
}
function cd(){
if(bG.readyState==4)
{
if(bG.status==200)
{
hM(bG.responseText);
}
}
}
function cc(){
hM(bG.responseText);
}
function hM(cu)
{
{
ck();
}
}
function cx(cy,S,width,height)
{
var parent=_SM_getDivm(S);
if(parent)
{
if(_SM_mercMode)
{
parent.innerHTML='<iframe src="/adi.srf?adzone='+cy+'&mx='+_SM_locationX+'&my='+_SM_locationY+'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" width="'+width+'" height="'+height+'"></iframe>';
}
else
{
parent.innerHTML='<iframe src="/adi.srf?adzone='+cy+'&x='+_SM_locationX+'&y='+_SM_locationY+'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" width="'+width+'" height="'+height+'"></iframe>';
}
}
}
function cz(cy,S,width,height)
{
cx(cy,S,width,height);
}
function cA(cr,cs)
{
var bi;
if(bH)
{
var id=cr+'_'+cs;
if(_SM_mercMode)
{
bi='/ajaxtp.srf?mx='+cr+'&my='+cs+'&z='+_SM_locationZ+'&tp=mb&json=1&jfn=_SM_handleJsonResponseTile&jid='+id;
}
else
{
bi='/ajaxtp.srf?x='+cr+'&y='+cs+'&z='+_SM_locationZ+'&tp=b&json=1&jfn=_SM_handleJsonResponseTile&jid='+id;
}
cn(bi,id);
}
else
{
if(_SM_mercMode)
{
bi='/ajaxtp.srf?mx='+cr+'&my='+cs+'&z='+_SM_locationZ+'&tp=mb';
}
else
{
bi='/ajaxtp.srf?x='+cr+'&y='+cs+'&z='+_SM_locationZ+'&tp=b';
}
cj(bi,1);
}
}
function bZ()
{
if(bG.readyState==4)
{
if(bG.status==200)
{
cB(bG.responseText);
}
}
}
function bY()
{
cB(bG.responseText);
}
function cB(cu){
{
if(by.length>0)
{
hL();
}
else
{
bB=false;
if(bL.length>0)
{
var bS;
for(bS=0;bS<bL.length;bS++)
{
if(bL[bS])
{
bL[bS](_SM_locationLX,_SM_locationLY,_SM_locationUX,_SM_locationUY,_SM_locationZ);
}
}
for(bS=0;bS<bL.length;bS++)
{
if(bL[bS])
{
bL.splice(bS,1);
}
}
}
}
if(cu.indexOf('@')!=-1)
{
var cC=cu.split('@');
var P;
P='<img src="'+_SM_urlBase+'/img.srf?image='+cC[2]+'&amp;loc2='+cC[1]+'" border="0" height="'+_SM_imageSize+'" width="'+_SM_imageSize+'" />';
var cD=_SM_getDivm(cC[0]);
if(cD)
{
try
{
cD.innerHTML=P;
}
catch(cE)
{
_SM_addDiag("Inner html failed");
}
}
else
{
_SM_addDiag("tile not found");
}
}
else
{
_SM_addDiag("bad tile");
}
}
}
function _SM_handleJsonResponseTile(Y)
{
co(Y);
var divname=(Y.divname?Y.divname:'');
var loc2=(Y.loc2?Y.loc2:'');
var cF=(Y.filename?Y.filename:'');
if(divname.length>0)
{
var P;
P="<IMG SRC=\""+cG+"/img.srf?image="+cF+"&amp;loc2="+loc2+"\" BORDER=\"0\" HEIGHT=\""+_SM_imageSize+"\" WIDTH=\""+_SM_imageSize+"\">";
var cD=_SM_getDivm(divname);
if(cD)
{
cD.innerHTML=P;
}
}
if(bz.length==0)
{
if(bL.length>0)
{
var bS;
for(bS=0;bS<bL.length;bS++)
{
if(bL[bS])
{
bL[bS](_SM_locationLX,_SM_locationLY,_SM_locationUX,_SM_locationUY,_SM_locationZ);
}
}
for(bS=0;bS<bL.length;bS++)
{
if(bL[bS])
{
bL.splice(bS,1);
}
}
}
}
Y=null;
}
var cH=new Array();
function cI()
{
if(cH.length&&cH.length>0)
{
cJ(cH);
cH.splice(0,cH.length);
}
}
function cK(cr,cs)
{
cH[cH.length]={_SM_x:cr,_SM_y:cs};
}
function cJ(cL)
{
if(cL.length>0)
{
var cM;
var cv=0;
while(cv<cL.length)
{
if(typeof cM!='undefined'&&cM.length!=0)
{
cM+='|';
}
else
{
cM='';
}
cM+=cL[cv]._SM_x.toString();
cM+='|';
cM+=cL[cv]._SM_y.toString();
cv++;
}
var bi;
var cN='';
if(bI&&!_SM_mercMode)
{
cN+='&bonly=1';
}
if(bH)
{
var id='MultiTileRequest';
if(_SM_mercMode)
{
bi='/ajaxtpm.srf?tl='+cM+'&z='+_SM_locationZ+'&tp=mb&json=1&jfn=_SM_handleJsonResponseMTile'+cN;
}
else
{
bi='/ajaxtpm.srf?tl='+cM+'&z='+_SM_locationZ+'&tp=b&json=1&jfn=_SM_handleJsonResponseMTile'+cN;
}
cn(bi,id);
}
else
{
if(_SM_mercMode)
{
bi='/ajaxtpm.srf?tl='+cM+'&z='+_SM_locationZ+'&tp=mb'+cN;
}
else
{
bi='/ajaxtpm.srf?tl='+cM+'&z='+_SM_locationZ+'&tp=b'+cN;
}
cj(bi,5);
}
}
}
function hK(){
if(bG.readyState==4)
{
if(bG.status==200)
{
cO(bG.responseText);
}
}
}
function cg(){
cO(bG.responseText);
}
function cO(cP){
{
var cM=cP.split('\r\n');
if(cM.length>0)
{
var cQ=0;
while(cQ<cM.length)
{
cu=cM[cQ];
if(cu.indexOf('@')!=-1)
{
var cC=cu.split('@');
var P;
P='<img src="'+_SM_urlBase+'/img.srf?image='+cC[2]+'&amp;loc2='+cC[1]+'" border="0" height="'+_SM_imageSize+'" width="'+_SM_imageSize+'" />';
var cD=_SM_getDivm(cC[0]);
if(cD)
{
try
{
cD.innerHTML=P;
}
catch(cE)
{
_SM_addDiag("Inner html failed");
}
}
else
{
_SM_addDiag("tile not found");
}
}
else
{
_SM_addDiag("bad tile");
}
cQ++;
}
}
if(by.length>0)
{
hL();
}
else
{
bB=false;
if(bL.length>0)
{
var bS;
for(bS=0;bS<bL.length;bS++)
{
if(bL[bS])
{
bL[bS](_SM_locationLX,_SM_locationLY,_SM_locationUX,_SM_locationUY,_SM_locationZ);
}
}
for(bS=0;bS<bL.length;bS++)
{
if(bL[bS])
{
bL.splice(bS,1);
}
}
}
}
}
}
function _SM_handleJsonResponseMTile(Y)
{
co(Y);
var cv=0;
for(cv=0;cv<Y.length;cv++)
{
var divname=(Y[cv].divname?Y[cv].divname:'');
var loc2=(Y[cv].loc2?Y[cv].loc2:'');
var cF=(Y[cv].filename?Y[cv].filename:'');
if(divname.length>0)
{
var P;
P="<IMG SRC=\""+_SM_urlBase+"/img.srf?image="+cF+"&amp;loc2="+loc2+"\" BORDER=\"0\" HEIGHT=\""+_SM_imageSize+"\" WIDTH=\""+_SM_imageSize+"\">";
var cD=_SM_getDivm(divname);
if(cD)
{
cD.innerHTML=P;
}
}
}
if(bz.length==0)
{
if(bL.length>0)
{
var bS;
for(bS=0;bS<bL.length;bS++)
{
if(bL[bS])
{
bL[bS](_SM_locationLX,_SM_locationLY,_SM_locationUX,_SM_locationUY,_SM_locationZ);
}
}
for(bS=0;bS<bL.length;bS++)
{
if(bL[bS])
{
bL.splice(bS,1);
}
}
}
}
Y=null;
cp('MultiTileRequest');
}
function cR(direction){
cI();
if(!bC)
{
bC=true;
var bi;
var cN='';
if(bI)
{
cN+='&bonly=1';
}
if(bH)
{
if(_SM_mercMode)
{
bi='/ajaxzp.srf?mx='+_SM_locationX+'&my='+_SM_locationY+'&z='+_SM_locationZ+'&tp=b&mode=zoom&dir='+direction+'&json=1&jfn=_SM_handleJsonResponseZoom&jid=SMZoomDir'+cN;
}
else
{
bi='/ajaxzp.srf?x='+_SM_locationX+'&y='+_SM_locationY+'&z='+_SM_locationZ+'&tp=b&mode=zoom&dir='+direction+'&json=1&jfn=_SM_handleJsonResponseZoom&jid=SMZoomDir'+cN;
}
cn(bi,'SMZoomDir');
}
else
{
if(_SM_mercMode)
{
bi='/ajaxzp.srf?mx='+_SM_locationX+'&my='+_SM_locationY+'&z='+_SM_locationZ+'&tp=b&mode=zoom&dir='+direction+cN;
}
else
{
bi='/ajaxzp.srf?x='+_SM_locationX+'&y='+_SM_locationY+'&z='+_SM_locationZ+'&tp=b&mode=zoom&dir='+direction+cN;
}
cj(bi,2);
}
}
}
function cS(cT){
cI();
if(!bC)
{
bC=true;
var bi;
var cN='';
if(bI)
{
cN+='&bonly=1';
}
if(bH)
{
if(_SM_mercMode)
{
bi='/ajaxzp.srf?mx='+_SM_locationX+'&my='+_SM_locationY+'&z='+cT+'&tp=b&mode=zoom&json=1&jfn=_SM_handleJsonResponseZoom&jid=SMZoomSpec'+cN;
}
else
{
bi='/ajaxzp.srf?x='+_SM_locationX+'&y='+_SM_locationY+'&z='+cT+'&tp=b&mode=zoom&json=1&jfn=_SM_handleJsonResponseZoom&jid=SMZoomSpec'+cN;
}
cn(bi,'SMZoomSpec');
}
else
{
if(_SM_mercMode)
{
bi='/ajaxzp.srf?mx='+_SM_locationX+'&my='+_SM_locationY+'&z='+cT+'&tp=b&mode=zoom'+cN;
}
else
{
bi='/ajaxzp.srf?x='+_SM_locationX+'&y='+_SM_locationY+'&z='+cT+'&tp=b&mode=zoom'+cN;
}
cj(bi,2);
}
}
}
var cU=false;
function cb(){
if(bG.readyState==4)
{
if(bG.status==200)
{
cV(bG.responseText);
}
}
}
function ca(){
cV(bG.responseText);
}
function cV(cu){
{
if(cu.indexOf('@')!=-1)
{
var cC=cu.split('@');
_SM_cpp=cC[0];
_SM_tileSize=parseInt(cC[1],10);
_SM_imageSize=parseInt(cC[2],10);
_SM_locationZ=parseInt(cC[3],10);
_SM_skipSize=parseInt(cC[4],10);
_SM_mapType=parseInt(cC[5],10);
var cW=_SM_cpp*_SM_mapWidth;
var ch=_SM_cpp*_SM_mapHeight;
_SM_locationLX=parseInt(_SM_locationX,10)-(cW/2);
_SM_locationLY=parseInt(_SM_locationY,10)-(ch/2);
_SM_locationUX=parseInt(_SM_locationX,10)+(cW/2);
_SM_locationUY=parseInt(_SM_locationY,10)+(ch/2);
cX(0,0);
cq(_SM_locationX,_SM_locationY);
_SM_scaleImage=null;
_SM_scaleImageSize=0;
_SM_scaleText=null;
if(cC.length>=7)
{
_SM_scaleImage=cC[6];
if(cC.length>=8)
{
_SM_scaleImageSize=cC[7];
if(cC.length>=9)
{
_SM_scaleText=cC[8];
}
}
}
}
else
{
window.status=cu;
}
ck();
bC=false;
var bS;
for(bS=0;bS<bP.length;bS++)
{
if(bP[bS])
{
bP[bS](_SM_locationZ);
}
}
}
}
function _SM_handleJsonResponseZoom(Y)
{
if(Y.cpp)_SM_cpp=Y.cpp;
if(Y.squaresize)_SM_tileSize=parseInt(Y.squaresize,10);
if(Y.imagesize)_SM_imageSize=parseInt(Y.imagesize,10);
if(Y.zoom)_SM_locationZ=parseInt(Y.zoom,10);
if(Y.skipsize)_SM_skipSize=parseInt(Y.skipsize,10);
if(Y.maptype)_SM_mapType=parseInt(Y.maptype,10);
var cW=_SM_cpp*_SM_mapWidth;
var ch=_SM_cpp*_SM_mapHeight;
_SM_locationLX=parseInt(_SM_locationX,10)-(cW/2);
_SM_locationLY=parseInt(_SM_locationY,10)-(ch/2);
_SM_locationUX=parseInt(_SM_locationX,10)+(cW/2);
_SM_locationUY=parseInt(_SM_locationY,10)+(ch/2);
cX(0,0);
cq(_SM_locationX,_SM_locationY);
_SM_scaleImage=null;
_SM_scaleImageSize=0;
_SM_scaleText=null;
if(Y.scaleimage)_SM_scaleImage=Y.scaleimage;
if(Y.scaleimagesize)_SM_scaleImageSize=Y.scaleimagesize;
if(Y.scaletext)_SM_scaleText=Y.scaletext;
co(Y);
bC=false;
var bS;
for(bS=0;bS<bP.length;bS++)
{
if(bP[bS])
{
bP[bS](_SM_locationZ);
}
}
}
function cY(cv)
{
var parent=_SM_getDivm('SMap');
var cD=document.createElement("div");
var P;
cD.id=cZ[cv]._SM_div_name;
cD.style.position='absolute';
cD.style.left=cZ[cv]._SM_mapCreateA+'px';
cD.style.top=cZ[cv]._SM_mapCreateB+'px';
cD.style.width=cZ[cv]._SM_mapCreateW+'px';
cD.style.height=cZ[cv]._SM_mapCreateH+'px';
P='<table border="1" width="'+_SM_imageSize+'" height="'+_SM_imageSize+'"><tr align="center"><td>'+cZ[cv]._SM_div_name+'</td></tr></table>';
parent.appendChild(cD);
cD.innerHTML=P;
cK(cZ[cv]._SM_mapCreateAx,cZ[cv]._SM_mapCreateAy);
return cD;
}
function da(_SM_div_name,_SM_mapCreateA,_SM_mapCreateB,_SM_mapCreateW,_SM_mapCreateH,_SM_mapCreateAx,_SM_mapCreateAy)
{
var parent=_SM_getDivm('SMap');
var cD=document.createElement("div");
var P;
cD.id=_SM_div_name;
cD.style.position='absolute';
cD.style.left=_SM_mapCreateA+'px';
cD.style.top=_SM_mapCreateB+'px';
cD.style.width=_SM_mapCreateW+'px';
cD.style.height=_SM_mapCreateH+'px';
P='<table border=0 cellpadding=0 cellspacing=0 width='+_SM_mapCreateW+' height='+_SM_mapCreateH+'><tr align="center"><td><img src="'+_SM_urlBase+'/dc/default/default'+_SM_mapCreateW+'x'+_SM_mapCreateH+'.gif"></td></tr></table>';
parent.appendChild(cD);
cD.innerHTML=P;
cK(_SM_mapCreateAx,_SM_mapCreateAy);
return cD;
}
var db=new Array();
var dc=0;
function cX(dd,de)
{
db[db.length]={_SM_cdx:dd,_SM_cdy:de};
if(dc==0)
{
dc=setTimeout(df,50);
}
}
function df()
{
var E;
var dg=0;
var dh=0;
var hN=db.length;
for(E=0;E<hN;E++)
{
dg+=db[E]._SM_cdx;
dh+=db[E]._SM_cdy;
}
db.splice(0,hN);
dj(dg,dh);
dc=0;
}
function dj(dg,dh)
{
var dk=new Date,dl;
_SM_PfnIconDisplayed=false;
var dm=_SM_locationLX;
var dn=_SM_locationLY;
var hO=_SM_locationUX;
var dp=_SM_locationUY;
var dq=dg*_SM_cpp;
var dr=dh*_SM_cpp;
var E;
_SM_locationX-=dq;
_SM_locationLX-=dq;
_SM_locationUX-=dq;
_SM_locationY+=dr;
_SM_locationLY+=dr;
_SM_locationUY+=dr;
var hN=_SM_mapVis.length;
if(hN>0)
{
for(E=0;E<hN;E++)
{
if(_SM_mapVis[E]._SM_mapFixed==0)
{
var hz=_SM_mapVis[E]._SM_adiv;
if(!hz)
{
hz=_SM_getDivm(_SM_mapVis[E]._SM_div_name);
}
if(hz)
{
hz.style.visibility='hidden';
}
}
}
_SM_mapVis.splice(0,hN);
}
var ds=_SM_locationLX;
var dt=_SM_locationLY;
var du=_SM_locationUX;
var dv=_SM_locationUY;
if(ds<0)
{
ds=ds+Math.abs(ds%_SM_tileSize)-_SM_tileSize;
}
else
{
ds=ds-Math.abs(ds%_SM_tileSize);
}
if(du<0)
{
du=du+Math.abs(du%_SM_tileSize);
}
else
{
du=du-Math.abs(du%_SM_tileSize)+_SM_tileSize;
}
if(dt<0)
{
dt=dt+Math.abs(dt%_SM_tileSize);
}
else
{
dt=dt-Math.abs(dt%_SM_tileSize);
}
if(dv<0)
{
dv=dv+Math.abs(dv%_SM_tileSize)+_SM_tileSize;
}
else
{
dv=dv-Math.abs(dv%_SM_tileSize)+_SM_tileSize;
}
var dw=(_SM_tileSize/2);
ds+=dw;
dt+=dw;
var hP;
var hQ;
for(hP=ds;hP<=du;hP+=_SM_tileSize)
{
for(hQ=dt;hQ<=dv;hQ+=_SM_tileSize)
{
var dz=_SM_locationZ+'_'+hP+'_'+hQ;
var dA=_SM_getDivm(dz);
var dB=((hP-dw)-_SM_locationLX)/_SM_cpp;
var dC=((hQ-dw)-_SM_locationLY)/_SM_cpp;
dC=_SM_mapHeight-_SM_imageSize-dC;
if(dA)
{
if(parseInt(dA.style.width,10)==_SM_imageSize&&parseInt(dA.style.height,10)==_SM_imageSize)
{
var hz=dA;
if(hz)
{
hz.style.left=parseInt(dB,10)+'px';
hz.style.top=parseInt(dC,10)+'px';
hz.style.visibility='visible';
}
_SM_mapVis[_SM_mapVis.length]={_SM_div_name:dA._SM_div_name,_SM_mapVis:1,_SM_mapFixed:'0',_SM_adiv:hz};
}
else
{
var parent=_SM_getDivm('SMap');
parent.removeChild(dA)
if(!cU)
{
var hz=da(dz,parseInt(dB,10),parseInt(dC,10),_SM_imageSize,_SM_imageSize,hP,hQ);
if(hz)
{
_SM_mapVis[_SM_mapVis.length]={_SM_div_name:dz,_SM_mapVis:1,_SM_mapFixed:'0',_SM_adiv:hz};
}
}
}
}
else
{
if(!cU)
{
var hz=da(dz,parseInt(dB,10),parseInt(dC,10),_SM_imageSize,_SM_imageSize,hP,hQ);
if(hz)
{
_SM_mapVis[_SM_mapVis.length]={_SM_div_name:dz,_SM_mapVis:1,_SM_mapFixed:'0',_SM_adiv:hz};
}
}
}
}
}
if(_SM_DIWM)
{
dD(false);
}
else
{
dD(bD);
}
cI();
if(bJ.length>0)
{
var bS;
for(bS=0;bS<bJ.length;bS++)
{
if(bJ[bS])
{
bJ[bS](dm,dn,hO,dp,_SM_locationLX,_SM_locationLY,_SM_locationUX,_SM_locationUY,_SM_locationZ);
}
}
}
}
function dD(dE)
{
var dw=(_SM_tileSize/2);
var dF=false;
if(typeof dE!='undefined'&&dE)
{
dF=true;
}
for(var E=0;E<_SM_mapFixed.length;E++)
{
if(_SM_mapFixed[E]._SM_mapCreateFixed==0)
{
var dG=false;
if(!dF||(typeof _SM_mapFixed[E]._SM_isArrow!='undefined'&&_SM_mapFixed[E]._SM_isArrow))
{
dG=true;
if(typeof _SM_mapFixed[E]._SM_minzoom!='undefined'&&_SM_mapFixed[E]._SM_minzoom!=null&&parseInt(_SM_mapFixed[E]._SM_minzoom,10)>0)
{
if(parseInt(_SM_mapFixed[E]._SM_minzoom,10)>_SM_locationZ)dG=false;
}
if(dG)
{
if(typeof _SM_mapFixed[E]._SM_maxzoom!='undefined'&&_SM_mapFixed[E]._SM_maxzoom!=null&&parseInt(_SM_mapFixed[E]._SM_maxzoom,10)>0)
{
if(parseInt(_SM_mapFixed[E]._SM_maxzoom,10)<_SM_locationZ)dG=false;
}
}
if(dG)
{
if(_SM_mapFixed[E]._SM_layer&&_SM_mapFixed[E]._SM_layer>=0&&_SM_al.length>_SM_mapFixed[E]._SM_layer)
{
if(_SM_al[_SM_mapFixed[E]._SM_layer]!=undefined)
{
dG=_SM_al[_SM_mapFixed[E]._SM_layer];
}
}
}
if(dG)
{
var dH=parseInt(_SM_mapFixed[E]._SM_mapCreateX,10);
var dI=parseInt(_SM_mapFixed[E]._SM_mapCreateY,10);
if(dH!=0||dI!=0)
{
if(dH>=_SM_locationLX-dw&&dH<=_SM_locationUX+dw&&dI>=_SM_locationLY-dw&&dI<=_SM_locationUY+dw)
{
var dB=(dH-_SM_locationLX)/_SM_cpp;
var dC=(dI-_SM_locationLY)/_SM_cpp;
if(typeof _SM_mapFixed[E]._SM_iconplacement!='undefined')
{
var dJ=parseInt(_SM_mapFixed[E]._SM_iconplacement,10);
if(dJ>=1&&dJ<=9)
{
switch(dJ)
{
case 1:
dC=_SM_mapHeight-dC;
break;
case 2:
dB-=(parseInt(_SM_mapFixed[E]._SM_mapCreateW,10)/2);
dC=_SM_mapHeight-dC;
break;
case 3:
dB-=parseInt(_SM_mapFixed[E]._SM_mapCreateW,10);
dC=_SM_mapHeight-dC;
break;
case 4:
dC=_SM_mapHeight-(parseInt(_SM_mapFixed[E]._SM_mapCreateH,10)/2)-dC;
break;
case 5:
dC=_SM_mapHeight-(parseInt(_SM_mapFixed[E]._SM_mapCreateH,10)/2)-dC;
dB-=(parseInt(_SM_mapFixed[E]._SM_mapCreateW,10)/2);
break;
case 6:
dC=_SM_mapHeight-(parseInt(_SM_mapFixed[E]._SM_mapCreateH,10)/2)-dC;
dB-=parseInt(_SM_mapFixed[E]._SM_mapCreateW,10);
break;
case 7:
dC=_SM_mapHeight-parseInt(_SM_mapFixed[E]._SM_mapCreateH,10)-dC;
break;
case 8:
dC=_SM_mapHeight-parseInt(_SM_mapFixed[E]._SM_mapCreateH,10)-dC;
dB-=(parseInt(_SM_mapFixed[E]._SM_mapCreateW,10)/2);
break;
case 9:
dC=_SM_mapHeight-parseInt(_SM_mapFixed[E]._SM_mapCreateH,10)-dC;
dB-=parseInt(_SM_mapFixed[E]._SM_mapCreateW,10);
break;
}
}
else
{
dC=_SM_mapHeight-parseInt(_SM_mapFixed[E]._SM_mapCreateH,10)-dC;
}
}
else
{
dC=_SM_mapHeight-parseInt(_SM_mapFixed[E]._SM_mapCreateH,10)-dC;
}
var hz=_SM_mapFixed[E]._SM_adiv;
if(!hz)
{
hz=_SM_getDivm(_SM_mapFixed[E]._SM_div_name);
}
if(hz)
{
hz.style.left=parseInt(dB,10)+'px';
hz.style.top=parseInt(dC,10)+'px';
if(hz.style.visibility!='visible')
{
hz.style.visibility='visible';
if(_SM_mapFixed[E]._SM_IsPfn&&_SM_mapFixed[E]._SM_IsPfn==1)
{
_SM_SetTooltip(hz,_SM_mapFixed[E]._SM_description,_SM_mapFixed[E]._SM_title,_SM_mapFixed[E]._SM_style,_SM_mapFixed[E]._SM_divwidth,_SM_mapFixed[E]._SM_divheight,_SM_mapFixed[E]._SM_contenturl);
_SM_mapFixed[E]._SM_TooltipSet=true;
}
}
}
if(_SM_mapFixed[E]._SM_IsPfn&&_SM_mapFixed[E]._SM_IsPfn==1)
{
_SM_PfnIconDisplayed=true;
}
}
else
{
dG=false;
}
}
}
}
if(!dG)
{
var hz=_SM_mapFixed[E]._SM_adiv;
if(!hz)
{
hz=_SM_getDivm(_SM_mapFixed[E]._SM_div_name);
}
if(hz)
{
if(hz.style.visibility=='visible')
{
if(_SM_mapFixed[E]._SM_IsPfn&&_SM_mapFixed[E]._SM_IsPfn==1&&_SM_mapFixed[E]._SM_TooltipSet==true)
{
_SM_ClearTooltip(hz);
_SM_mapFixed[E]._SM_TooltipSet=false;
}
}
hz.style.visibility='hidden';
}
if(_SM_mapFixed[E]._SM_IsPfn&&_SM_mapFixed[E]._SM_IsPfn==1)
{
var dH=parseInt(_SM_mapFixed[E]._SM_mapCreateX,10);
var dI=parseInt(_SM_mapFixed[E]._SM_mapCreateY,10);
if(dH!=0||dI!=0)
{
if(dH>=_SM_locationLX-dw&&dH<=_SM_locationUX+dw&&dI>=_SM_locationLY-dw&&dI<=_SM_locationUY+dw)
{
_SM_PfnIconDisplayed=true;
}
}
}
}
}
}
}
function dK(hB,bi)
{
var dg;
var dh;
var dq;
var dr;
var dL=1;
hB=(hB)?hB:event;
if(bD)
{
dg=0;
dh=0;
if(hB.pageX)
{
dg=(hB.pageX-bE);
dh=(hB.pageY-bF);
}
else if(hB.clientX)
{
dg=(hB.clientX-bE);
dh=(hB.clientY-bF);
}
if(_SM_mercMode)
{
var dM=20037508;
var dN=20037508;
var dO=-20037508;
var dP=-20037508;
var dq=dg*_SM_cpp;
var dr=dh*_SM_cpp;
dq=0-dq;
if(dq>0)
{
if(_SM_locationUX+dq>dM)
{
var dQ=parseInt((((_SM_locationUX+dq)-dM)/_SM_cpp)+0.5,10);
if(dQ>dg)
{
dg=0;
}
else
{
dg-=dQ;
}
}
}
else if(dq<0)
{
if(_SM_locationLX-dq<dO)
{
var dQ=parseInt((((_SM_locationLX-dq)-dO)/_SM_cpp)+0.5,10);
if(dQ>dg)
{
dg=0;
}
else
{
dg-=dQ;
}
}
}
}
cX(dg,dh);
}
{
if(hB.pageX)
{
bE=hB.pageX;
bF=hB.pageY;
}
else if(hB.clientX)
{
bE=hB.clientX;
bF=hB.clientY;
}
}
hB.cancelBubble=true;
return false;
}
function dR(hB)
{
hB=(hB)?hB:event;
var dS=true;
if(bO.length>0)
{
var parent=_SM_getDivm('SMap');
if(parent)
{
var coords=_SM_getPageEventCoords(hB);
var dT=_SM_getElementPosition('SMap');
var dU=coords.left-dT.left;
var dV=coords.top-dT.top;
var dW={_SM_pixx:dU,_SM_pixyy:dV,_SM_mapx:_SM_locationLX+(dU*_SM_cpp),_SM_mapy:_SM_locationUY-(dV*_SM_cpp)};
var dX=false;
if(bO.length>0)
{
var bS;
for(bS=bO.length-1;bS>=0&&!dX;bS--)
{
if(bO[bS])
{
dS=bO[bS](dW);
dX=true;
}
}
}
}
}
if(dS)
{
bD=true;
}
_SM_HideCallout('DivClickDownEvt2');
return false;
}
function dY(hB){
bD=false;
if(!_SM_DIWM)dD(false);
if(bK.length>0)
{
var bS;
for(bS=0;bS<bK.length;bS++)
{
if(bK[bS])
{
bK[bS](_SM_locationLX,_SM_locationLY,_SM_locationUX,_SM_locationUY,_SM_locationZ);
}
}
}
return false;
}
function _SM_Zoom(dZ){
if(dZ==120&&bI)dZ=118;
bD=false;
cI();
cS(dZ);
_SM_HideCallout('Zoom');
return false;
}
function _SM_ZoomIn(){
bD=false;
cI();
cR('in');
_SM_HideCallout('ZoomIn');
return false;
}
function _SM_ZoomOut(){
bD=false;
cI();
cR('out');
_SM_HideCallout('ZoomOut');
return false;
}
function ea(){
var parent=_SM_getDivm('SMap');
if(parent)
{
if(document.g){
parent.captureEvents(eb.ec|eb.ed|eb.ee);
return;
}
parent.onmousedown=dR;
parent.onmousemove=dK;
parent.onmouseup=dY;
}
return;
}
function ef(bi)
{
var dX=false;
if(bM.length>0)
{
var bS;
for(bS=0;bS<bM.length;bS++)
{
if(bM[bS])
{
bM[bS](bi);
dX=true;
}
}
}
if(!dX)
{
if(bi)
{
window.open(bi);
}
}
return;
}
function eg()
{
var parent=_SM_getDivm('SMap');
if(parent)
{
var eh;
eh=_SM_getDivm('Zoom_In');
if(eh)
{
parent.removeChild(eh);
}
eh=_SM_getDivm('Zoom_Out');
if(eh)
{
parent.removeChild(eh);
}
eh=_SM_getDivm('Zoom_Panel');
if(eh)
{
parent.removeChild(eh);
}
{
var cD=document.createElement("div");
cD.id="Zoom_Panel";
cD.style.position='absolute';
cD.style.left=(_SM_mapWidth-40)+'px';
cD.style.top=(_SM_mapHeight-27)+'px';
cD.style.width='40px';
cD.style.height='27px';
cD.style.background='white';
cD.style.zIndex=99;
cD.style.cursor='default';
parent.appendChild(cD);
}
{
var cD=document.createElement("div");
cD.id="Zoom_In";
cD.style.position='absolute';
cD.style.left=(_SM_mapWidth-35)+'px';
cD.style.top=(_SM_mapHeight-25)+'px';
cD.style.width='17px';
cD.style.height='25px';
var P='<IMG SRC="'+_SM_urlBase+'/dc/zoomin.gif" BORDER="0" HEIGHT="25" WIDTH="17" onClick="_SM_ZoomIn()">';
parent.appendChild(cD);
cD.innerHTML=P;
cD.style.zIndex=100;
cD.style.cursor='default';
}
{
var cD=document.createElement("div");
cD.id="Zoom_Out";
cD.style.position='absolute';
cD.style.left=(_SM_mapWidth-17)+'px';
cD.style.top=(_SM_mapHeight-25)+'px';
cD.style.width='17px';
cD.style.height='25px';
var P='<IMG SRC="'+_SM_urlBase+'/dc/zoomout.gif" BORDER="0" HEIGHT="25" WIDTH="17" onClick="_SM_ZoomOut()">';
parent.appendChild(cD);
cD.innerHTML=P;
cD.style.zIndex=100;
cD.style.cursor='default';
}
}
}
function ei(E)
{
var P;
if(_SM_mapFixed[E]._SM_mapCreateUrl)
{
P='<IMG SRC="'+_SM_urlBase+_SM_mapFixed[E]._SM_mapCreateF+'" BORDER="0" HEIGHT="'+_SM_mapFixed[E]._SM_mapCreateH+'" WIDTH="'+_SM_mapFixed[E]._SM_mapCreateW+'" onclick="clickedIcon('+"'"+_SM_mapFixed[E]._SM_mapCreateUrl+"'"+')" >';
}
else
{
P='<IMG SRC="'+_SM_urlBase+_SM_mapFixed[E]._SM_mapCreateF+'" BORDER="0" HEIGHT="'+_SM_mapFixed[E]._SM_mapCreateH+'" WIDTH="'+_SM_mapFixed[E]._SM_mapCreateW+'">';
}
return P;
}
function _SM_NextIconBuildCallback(cv,ej)
{
var dX=false;
var P='';
if(bN.length>0&&ej>0)
{
var bS;
for(bS=min(bN.length-1,ej-1);bS>=0&&!dX;bS--)
{
if(bN[bS])
{
P=bN[bS](E,bS);
dX=true;
}
}
}
if(!dX)
{
P=ei(cv);
}
return P;
}
function _SM_im()
{
var parent=_SM_getDivm('SMap');
if(parent)
{
if(_SM_al[0]==undefined)_SM_sal();
ea();
var E;
for(E=0;E<_SM_mapFixed.length;E++)
{
var cD=document.createElement("div");
var P='';
cD.id=_SM_mapFixed[E]._SM_div_name;
var ek='position:absolute;left:'+_SM_mapFixed[E]._SM_mapCreateA+'px;top:'+_SM_mapFixed[E]._SM_mapCreateB+'px;width:'+_SM_mapFixed[E]._SM_mapCreateW+'px;height:'+_SM_mapFixed[E]._SM_mapCreateH+'px';
cD.style.position='absolute';
cD.style.left=_SM_mapFixed[E]._SM_mapCreateA+'px';
cD.style.top=_SM_mapFixed[E]._SM_mapCreateB+'px';
cD.style.width=_SM_mapFixed[E]._SM_mapCreateW+'px';
cD.style.height=_SM_mapFixed[E]._SM_mapCreateH+'px';
var dX=false;
if(bN.length>0)
{
var bS;
for(bS=bN.length-1;bS>=0&&!dX;bS--)
{
if(bN[bS])
{
P=bN[bS](E,bS);
dX=true;
}
}
}
if(!dX)
{
P=ei(E);
}
parent.appendChild(cD);
cD.innerHTML=P;
if(_SM_mapFixed[E]._SM_mapCreateFixed==1)
{
cD.style.zIndex=100;
}
else
{
cD.style.zIndex=99;
}
}
cX(0,0);
}
}
function _SM_Redraw()
{
cX(0,0);
}
function _SM_MapDraw(el,em)
{
cX(el,em);
}
function _SM_ZoomWheel(hB)
{
hB=(hB)?hB:event;
{
var en=0;
if(hB.wheelDelta){
en=hB.wheelDelta/120;
}else if(hB.detail){
en=-hB.detail/3;
}
if(en>0)
{
{
_SM_ZoomIn();
}
}
else if(en<0)
{
{
_SM_ZoomOut();
}
}
}
hB.cancelBubble=true;
hB.returnValue=false;
if(hB.stopPropagation)
{
hB.stopPropagation();
}
if(hB.preventDefault)
{
hB.preventDefault();
}
}
function _SM_ShowLayer(eo,ep)
{
if(eo)
{
var eq=parseInt(eo,10);
if(eq>=0)
{
if(ep&&ep==1)
{
_SM_al[eq]=true;
}
else
{
_SM_al[eq]=false;
}
_SM_Redraw();
}
}
}
function _SM_ToggleLayer(eo)
{
if(eo>=0&&eo>=_SM_al.length)
{
_SM_al[eo]=false;
_SM_sal();
}
else if(eo>=0&&eo<_SM_al.length)
{
if(typeof _SM_al[eo]=='undefined')
{
_SM_al[eo]=false;
}
else
{
_SM_al[eo]=!_SM_al[eo];
}
}
_SM_Redraw();
}
function _SM_DisplayIconsWhenMoving(display)
{
if(typeof display!='undefined')
{
_SM_DIWM=display;
}
}
var _SM_dragActive=true;
var er=0;
var es=1;
var _SM_srfFile='map.srf';
var _SM_UpdateLinkPositionCallback=null;
var _SM_arrowx=0;
var _SM_arrowy=0;
function _SM_sf(){document.et.name.focus();}
function _SM_openO2CentredWindow()
{
var width=601;
var height=578;
var left=parseInt((screen.availWidth/2)-(width/2));
var top=parseInt((screen.availHeight/2)-(height/2));
var eu="width="+width+",height="+height+",status,resizeable,left="+left+",top="+top+",screenX="+left+",screenY="+top;
window.open("o2.htm","o2sm",eu);
}
function MM_preloadImages(){
var ev=document;if(ev.images){if(!ev.MM_p)ev.MM_p=new Array();
var E,ew=ev.MM_p.length,ex=MM_preloadImages.arguments;for(E=0;E<ex.length;E++)
if(ex[E].indexOf("#")!=0){ev.MM_p[ew]=new Image;ev.MM_p[ew++].src=ex[E];}}
}
function MM_swapImgRestore(){
var E,el,ex=document.MM_sr;for(E=0;ex&&E<ex.length&&(el=ex[E])&&el.ey;E++)el.src=el.ey;
}
function MM_findObj(ez,ev){
var eA,E,el;if(!ev)ev=document;if((eA=ez.indexOf("?"))>0&&parent.frames.length){
ev=parent.frames[ez.substring(eA+1)].document;ez=ez.substring(0,eA);}
if(!(el=ev[ez])&&ev.all)el=ev.all[ez];for(E=0;!el&&E<ev.forms.length;E++)el=ev.forms[E][ez];
for(E=0;!el&&ev.g&&E<ev.g.length;E++)el=MM_findObj(ez,ev.g[E].document);
if(!el&&ev.getElementById)el=ev.getElementById(ez);return el;
}
function MM_swapImage(){
var E,ew=0,el,ex=MM_swapImage.arguments;document.MM_sr=new Array;for(E=0;E<(ex.length-2);E+=3)
if((el=MM_findObj(ex[E]))!=null){document.MM_sr[ew++]=el;if(!el.ey)el.ey=el.src;el.src=ex[E+2];}
}
var _SM_AZ=new Array();
function eB()
{
var parent;
parent=_SM_getDivm('SM_AD_top_728x90');
if(parent)
{
cz(2,'SM_AD_top_728x90',728,90);
}
parent=_SM_getDivm('SM_AD_top_515x120');
if(parent)
{
cz(5,'SM_AD_top_515x120',515,120);
}
parent=_SM_getDivm('SM_AD_top_120x60T');
if(parent)
{
cz(19,'SM_AD_top_120x60T',120,60);
}
parent=_SM_getDivm('SM_AD_top_120x60B');
if(parent)
{
cz(22,'SM_AD_top_120x60B',120,60);
}
parent=_SM_getDivm('SM_AD_sky_120x600T');
if(parent)
{
cz(3,'SM_AD_sky_120x600T',120,600);
}
parent=_SM_getDivm('SM_AD_sky_120x600B');
if(parent)
{
cz(4,'SM_AD_sky_120x600B',120,600);
}
parent=_SM_getDivm('SM_AD_sky_120x60');
if(parent)
{
cz(23,'SM_AD_sky_120x60',120,60);
}
parent=_SM_getDivm('SM_AD_bottom_120x60');
if(parent)
{
cz(8,'SM_AD_bottom_120x60',120,60);
}
parent=_SM_getDivm('SM_AD_bottom_234x60');
if(parent)
{
cz(24,'SM_AD_bottom_234x60',234,60);
}
parent=_SM_getDivm('SM_AD_bottom_300x250');
if(parent)
{
cz(25,'SM_AD_bottom_300x250',300,250);
}
if(_SM_AZ.length>0)
{
var E;
for(E=0;E<_SM_AZ.length;E++)
{
if(_SM_AZ[E]._SM_dname)
{
parent=_SM_getDivm(_SM_AZ[E]._SM_dname);
if(parent)
{
cz(_SM_AZ[E]._SM_zone,_SM_AZ[E]._SM_dname,_SM_AZ[E]._SM_width,_SM_AZ[E]._SM_height);
}
}
}
}
}
function _SM_SetupAd(divname,cy,width,height)
{
var eC=false;
if(_SM_AZ.length>0)
{
var E;
for(E=0;E<_SM_AZ.length&&!eC;E++)
{
if(_SM_AZ[E]._SM_dname&&_SM_AZ[E]._SM_dname==divname)
{
_SM_AZ[E]._SM_zone=cy;
_SM_AZ[E]._SM_dname=divname;
_SM_AZ[E]._SM_width=width;
_SM_AZ[E]._SM_height=height;
eC=true;
}
}
}
if(!eC)
{
_SM_AZ[_SM_AZ.length]={_SM_zone:cy,_SM_dname:divname,_SM_width:width,_SM_height:height};
}
}
function _SM_RemoveAd(divname)
{
if(_SM_AZ.length>0)
{
var E;
for(E=0;E<_SM_AZ.length;E++)
{
if(_SM_AZ[E]._SM_dname&&_SM_AZ[E]._SM_dname==divname)
{
_SM_AZ.splice(E,1);
E--;
}
}
}
}
function eD(cy,code)
{
var parent=_SM_getDivm(cy);
if(parent)
{
parent.innerHTML=code;
}
}
function _SM_TimerComplete()
{
es=1;
}
function eE()
{
eB();
es=0;
er=setTimeout("_SM_TimerComplete();",6000);
}
function eF(eG)
{
if(eG.status||eG.checked)
{
_SM_dragActive=true;
}
else
{
_SM_dragActive=false;
}
}
function _SM_switchDrag2()
{
var parent;
var P;
if(_SM_dragActive)
{
_SM_dragActive=false;
parent=_SM_getDivm('drag');
if(parent)
{
parent.style.visibility='visible';
P='<table width="78" border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_double_left_down.gif" width="9" height="36"></td>	<td width="60" align="center" background="images/zoomscales/button_double_mid_down.gif" class="navon"><a href="#" class="scaleNorm" onclick="_SM_switchDrag2()"><img src="images/zoomscales/grab2.gif" width="50" height="16" border="0"></a><br><a href="#" class="scaleNorm" onclick="_SM_switchDrag2()"><span class="stylered">Move Arrow</span></a></td><td width="9"><img src="images/zoomscales/button_double_right_down.gif" width="9" height="36"></td></tr></table>';
parent.innerHTML=P;
}
parent=_SM_getDivm('controls_right_mov_arr');
if(parent)
{
_SM_SetCssBImage('controls_right_mov_arr','/assets/images/maps/bttn_controls_mov_arr_on.gif');
}
parent=_SM_getDivm('SMap');
if(parent)
{
parent.style.cursor='crosshair';
}
}
else
{
_SM_dragActive=true;
parent=_SM_getDivm('drag');
if(parent)
{
P='<table width="78" border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_double_left.gif" width="9" height="36"></td> <td width="60" align="center" background="images/zoomscales/button_double_mid.gif" class="navon"><a href="#" class="scaleNorm" onclick="_SM_switchDrag2()"><img src="images/zoomscales/grab2.gif" width="50" height="16" border="0"></a><br><a href="#" class="scaleNorm" onclick="_SM_switchDrag2()"><span class="style1">Move Arrow</span></a></td> <td width="9"><img src="images/zoomscales/button_double_right.gif" width="9" height="36"></td></tr></table>';
parent.innerHTML=P;
}
parent=_SM_getDivm('controls_right_mov_arr');
if(parent)
{
_SM_SetCssBImage('controls_right_mov_arr','/assets/images/maps/bttn_controls_mov_arr_off.gif');
}
parent=_SM_getDivm('SMap');
if(parent)
{
parent.style.cursor='move';
}
}
}
function _SM_NavButton(eH,eI)
{
var parent=_SM_getDivm(eH);
if(parent)
{
if(eI==1)
{
parent.style.color='#00cc00';
}
else
{
parent.style.color='#000066';
}
}
}
function eJ(eK)
{
var eL;
var P;
var eM='';
var eN='unknown.gif';
var eO=_SM_imageSize;
var eP='';
switch(_SM_locationZ)
{
case 106:
{
eL=_SM_getDivm('zoom_level_1');
if(eL)
{
_SM_SetCssBImage('zoom_level_1','/assets/images/zoom/zoom_l1_active.gif');
}
eL=_SM_getDivm('zoom_lvl_01');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_01','/assets/images/zoom/zoom_l1_active_v.gif');
}
eM='1:2500';
eP='500 meters';
if(_SM_imageSize==200)
{
eN='200_250m.gif';
}
else
{
eN='187_250m.gif';
}
}
break;
case 1:
case 2:
case 110:
{
eL=_SM_getDivm('zoomButton1');
if(eL)
{
P='<table border="0" cellspacing="0" cellpadding="0" width="88"><tr><td align="left"><table border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_red_left.gif" width="9" height="19"></td><td width="50" align="center" background="images/zoomscales/button_red_mid.gif" class="scaleActive">1:5000</td><td width="9"><img src="images/zoomscales/button_red_right.gif" width="9" height="19"></td></tr></table></td></tr></table>';
eL.innerHTML=P;
}
eL=_SM_getDivm('zoom_level_2');
if(eL)
{
_SM_SetCssBImage('zoom_level_2','/assets/images/zoom/zoom_l2_active.gif');
}
eL=_SM_getDivm('zoom_lvl_02');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_02','/assets/images/zoom/zoom_l2_active_v.gif');
}
eM='1:5000';
eP='500 meters';
if(_SM_imageSize==200)
{
eN='200_500m.gif';
}
else
{
eN='187_500m.gif';
}
}
break;
case 115:
{
eL=_SM_getDivm('zoom_level_3');
if(eL)
{
_SM_SetCssBImage('zoom_level_3','/assets/images/zoom/zoom_l3_active.gif');
}
eL=_SM_getDivm('zoom_lvl_03');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_03','/assets/images/zoom/zoom_l3_active_v.gif');
}
eM='1:25000';
eP='500 meters';
eN='200_500m.gif';
}
break;
case 117:
case 118:
{
eL=_SM_getDivm('zoomButton3');
if(eL)
{
P='<table border="0" cellspacing="0" cellpadding="0" width="88"><tr><td align="left"><table border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_red_left.gif" width="9" height="19"></td><td width="50" align="center" background="images/zoomscales/button_red_mid.gif" class="scaleActive">1:50,000</td><td width="9"><img src="images/zoomscales/button_red_right.gif" width="9" height="19"></td></tr></table></td></tr></table>';
eL.innerHTML=P;
}
eL=_SM_getDivm('zoom_level_4');
if(eL)
{
_SM_SetCssBImage('zoom_level_4','/assets/images/zoom/zoom_l4_active.gif');
}
eL=_SM_getDivm('zoom_lvl_04');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_04','/assets/images/zoom/zoom_l4_active_v.gif');
}
eM='1:50,000';
eP='1 kilometer';
eN='200_1km.gif';
}
break;
case 3:
case 4:
case 120:
{
eL=_SM_getDivm('zoomButton3');
if(eL)
{
P='<table border="0" cellspacing="0" cellpadding="0" width="88"><tr><td align="left"><table border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_red_left.gif" width="9" height="19"></td><td width="50" align="center" background="images/zoomscales/button_red_mid.gif" class="scaleActive">1:50,000</td><td width="9"><img src="images/zoomscales/button_red_right.gif" width="9" height="19"></td></tr></table></td></tr></table>';
eL.innerHTML=P;
}
eL=_SM_getDivm('zoom_level_4');
if(eL)
{
_SM_SetCssBImage('zoom_level_4','/assets/images/zoom/zoom_l4_active.gif');
}
eL=_SM_getDivm('zoom_lvl_04');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_04','/assets/images/zoom/zoom_l4_active_v.gif');
}
eM='1:50,000';
eP='1 kilometer';
eN='200_1km.gif';
}
break;
case 126:
eL=_SM_getDivm('zoom_level_5');
if(eL)
{
_SM_SetCssBImage('zoom_level_5','/assets/images/zoom/zoom_l5_active.gif');
}
eL=_SM_getDivm('zoom_lvl_05');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_05','/assets/images/zoom/zoom_l5_active_v.gif');
}
eM='1:100k';
eP='10 kilometers';
eN='250_5km.gif';
break;
case 5:
case 6:
case 130:
{
eL=_SM_getDivm('zoomButton5');
if(eL)
{
P='<table border="0" cellspacing="0" cellpadding="0" width="88"><tr><td align="left"><table border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_red_left.gif" width="9" height="19"></td><td width="50" align="center" background="images/zoomscales/button_red_mid.gif" class="scaleActive">1:250,000</td><td width="9"><img src="images/zoomscales/button_red_right.gif" width="9" height="19"></td></tr></table></td></tr></table>';
eL.innerHTML=P;
}
eL=_SM_getDivm('zoom_level_6');
if(eL)
{
_SM_SetCssBImage('zoom_level_6','/assets/images/zoom/zoom_l6_active.gif');
}
eL=_SM_getDivm('zoom_lvl_06');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_06','/assets/images/zoom/zoom_l6_active_v.gif');
}
eM='1:200k';
eP='10 kilometers';
eN='250_10km.gif';
}
break;
case 7:
case 8:
case 140:
{
eL=_SM_getDivm('zoomButton7');
if(eL)
{
P='<table border="0" cellspacing="0" cellpadding="0" width="88"><tr><td align="left"><table border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_red_left.gif" width="9" height="19"></td><td width="50" align="center" background="images/zoomscales/button_red_mid.gif" class="scaleActive">1:500,000</td><td width="9"><img src="images/zoomscales/button_red_right.gif" width="9" height="19"></td></tr></table></td></tr></table>';
eL.innerHTML=P;
}
eL=_SM_getDivm('zoom_level_7');
if(eL)
{
_SM_SetCssBImage('zoom_level_7','/assets/images/zoom/zoom_l7_active.gif');
}
eL=_SM_getDivm('zoom_lvl_07');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_07','/assets/images/zoom/zoom_l7_active_v.gif');
}
eM='1:500k';
eP='50 kilometers';
eN='200_50km.gif';
}
break;
case 9:
case 10:
case 150:
{
eL=_SM_getDivm('zoomButton9');
if(eL)
{
P='<table border="0" cellspacing="0" cellpadding="0" width="88"><tr><td align="left"><table border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_red_left.gif" width="9" height="19"></td><td width="50" align="center" background="images/zoomscales/button_red_mid.gif" class="scaleActive">1:1,000000</td><td width="9"><img src="images/zoomscales/button_red_right.gif" width="9" height="19"></td></tr></table></td></tr></table>';
eL.innerHTML=P;
}
eL=_SM_getDivm('zoom_level_8');
if(eL)
{
_SM_SetCssBImage('zoom_level_8','/assets/images/zoom/zoom_l8_active.gif');
}
eL=_SM_getDivm('zoom_lvl_08');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_08','/assets/images/zoom/zoom_l8_active_v.gif');
}
eM='1:1m';
eP='100 kilometers';
eN='200_100km.gif';
}
break;
}
eL=_SM_getDivm('controls_right_zoom_scale');
if(eL)
{
P=eM;
eL.innerHTML=P;
}
eL=_SM_getDivm('panel_561_scale');
if(eL)
{
var eQ=eO+'px';
eL.style.width=eQ;
eL.title='Each grid square is '+eP;
_SM_SetCssBImage('panel_561_scale','/assets/images/scales/'+eN);
}
if(_SM_locationZ!=106)
{
eL=_SM_getDivm('zoom_level_1');
if(eL)
{
_SM_SetCssBImage('zoom_level_1','/assets/images/zoom/zoom_l1_off.gif');
}
eL=_SM_getDivm('zoom_lvl_01');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_01','/assets/images/zoom/zoom_l1_off_v.gif');
}
}
if(_SM_locationZ!=1&&_SM_locationZ!=110)
{
eL=_SM_getDivm('zoomButton1');
if(eL)
{
P='<table border="0" cellspacing="0" cellpadding="0" width="88"><tr><td align="center"><table border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_wh_left.gif" width="9" height="19"></td><td width="50" align="center" background="images/zoomscales/button_wh_mid.gif" class="navon"><div id="Button10k" onClick="_SM_Zoom(1)" onMouseOver="_SM_NavButton(\'Button10k\',1)" OnMouseOut="_SM_NavButton(\'Button10k\',0)" class="scaleNorm">1:5000</div></td><td width="9"><img src="images/zoomscales/button_wh_right.gif" width="9" height="19"></td></tr></table></td></tr></table>';
eL.innerHTML=P;
}
eL=_SM_getDivm('zoom_level_2');
if(eL)
{
_SM_SetCssBImage('zoom_level_2','/assets/images/zoom/zoom_l2_off.gif');
}
eL=_SM_getDivm('zoom_lvl_02');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_02','/assets/images/zoom/zoom_l2_off_v.gif');
}
}
if(_SM_locationZ!=115)
{
eL=_SM_getDivm('zoom_level_3');
if(eL)
{
_SM_SetCssBImage('zoom_level_3','/assets/images/zoom/zoom_l3_off.gif');
}
eL=_SM_getDivm('zoom_lvl_03');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_03','/assets/images/zoom/zoom_l3_off_v.gif');
}
}
if(_SM_locationZ!=3&&_SM_locationZ!=120&&_SM_locationZ!=117&&_SM_locationZ!=118)
{
eL=_SM_getDivm('zoomButton3');
if(eL)
{
P='<table border="0" cellspacing="0" cellpadding="0" width="88"><tr><td align="center"><table border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_wh_left.gif" width="9" height="19"></td><td width="50" align="center" background="images/zoomscales/button_wh_mid.gif" class="navon"><div id="Button50k" onClick="_SM_Zoom(3)" onMouseOver="_SM_NavButton(\'Button50k\',1)" OnMouseOut="_SM_NavButton(\'Button50k\',0)" class="scaleNorm">1:50,000</div></td><td width="9"><img src="images/zoomscales/button_wh_right.gif" width="9" height="19"></td></tr></table></td></tr></table>';
eL.innerHTML=P;
}
eL=_SM_getDivm('zoom_level_4');
if(eL)
{
_SM_SetCssBImage('zoom_level_4','/assets/images/zoom/zoom_l4_off.gif');
}
eL=_SM_getDivm('zoom_lvl_04');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_04','/assets/images/zoom/zoom_l4_off_v.gif');
}
}
if(_SM_locationZ!=126)
{
eL=_SM_getDivm('zoom_level_5');
if(eL)
{
_SM_SetCssBImage('zoom_level_5','/assets/images/zoom/zoom_l5_off.gif');
}
eL=_SM_getDivm('zoom_lvl_05');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_05','/assets/images/zoom/zoom_l5_off_v.gif');
}
}
if(_SM_locationZ!=5&&_SM_locationZ!=130)
{
eL=_SM_getDivm('zoomButton5');
if(eL)
{
P='<table border="0" cellspacing="0" cellpadding="0" width="88"><tr><td align="center"><table border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_wh_left.gif" width="9" height="19"></td><td width="50" align="center" background="images/zoomscales/button_wh_mid.gif" class="navon"><div id="Button250k" onClick="_SM_Zoom(5)" onMouseOver="_SM_NavButton(\'Button250k\',1)" OnMouseOut="_SM_NavButton(\'Button250k\',0)" class="scaleNorm">1:250,000</div></td><td width="9"><img src="images/zoomscales/button_wh_right.gif" width="9" height="19"></td></tr></table></td></tr></table>';
eL.innerHTML=P;
}
eL=_SM_getDivm('zoom_level_6');
if(eL)
{
_SM_SetCssBImage('zoom_level_6','/assets/images/zoom/zoom_l6_off.gif');
}
eL=_SM_getDivm('zoom_lvl_06');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_06','/assets/images/zoom/zoom_l6_off_v.gif');
}
}
if(_SM_locationZ!=7&&_SM_locationZ!=140)
{
eL=_SM_getDivm('zoomButton7');
if(eL)
{
P='<table border="0" cellspacing="0" cellpadding="0" width="88"><tr><td align="center"><table border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_wh_left.gif" width="9" height="19"></td><td width="50" align="center" background="images/zoomscales/button_wh_mid.gif" class="navon"><div id="Button500k" onClick="_SM_Zoom(7)" onMouseOver="_SM_NavButton(\'Button500k\',1)" OnMouseOut="_SM_NavButton(\'Button500k\',0)" class="scaleNorm">1:500,000</div></td><td width="9"><img src="images/zoomscales/button_wh_right.gif" width="9" height="19"></td></tr></table></td></tr></table>';
eL.innerHTML=P;
}
eL=_SM_getDivm('zoom_level_7');
if(eL)
{
_SM_SetCssBImage('zoom_level_7','/assets/images/zoom/zoom_l7_off.gif');
}
eL=_SM_getDivm('zoom_lvl_07');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_07','/assets/images/zoom/zoom_l7_off_v.gif');
}
}
if(_SM_locationZ!=9&&_SM_locationZ!=150)
{
eL=_SM_getDivm('zoomButton9');
if(eL)
{
P='<table border="0" cellspacing="0" cellpadding="0" width="88"><tr><td align="center"><table border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_wh_left.gif" width="9" height="19"></td><td width="50" align="center" background="images/zoomscales/button_wh_mid.gif" class="navon"><div id="Button1M" onClick="_SM_Zoom(9)" onMouseOver="_SM_NavButton(\'Button1M\',1)" OnMouseOut="_SM_NavButton(\'Button1M\',0)" class="scaleNorm">1:1,000000</div></td><td width="9"><img src="images/zoomscales/button_wh_right.gif" width="9" height="19"></td></tr></table></td></tr></table>';
eL.innerHTML=P;
}
eL=_SM_getDivm('zoom_level_8');
if(eL)
{
_SM_SetCssBImage('zoom_level_8','/assets/images/zoom/zoom_l8_off.gif');
}
eL=_SM_getDivm('zoom_lvl_08');
if(eL)
{
_SM_SetCssBImage('zoom_lvl_08','/assets/images/zoom/zoom_l8_off_v.gif');
}
}
if(typeof eK=='undefined'||!eK)
{
{
eE();
}
eR();
eS();
}
}
function eR()
{
var eT='';
if(_SM_arrowx!=0&&_SM_arrowy!=0)
{
eT='&amp;ax='+_SM_arrowx+'&amp;ay='+_SM_arrowy;
}
if(_SM_UpdateLinkPositionCallback)_SM_UpdateLinkPositionCallback(_SM_srfFile,_SM_locationX,_SM_locationY,_SM_locationZ);
var eU=_SM_getDivm('LinkToText');
if(eU)
{
var P;
P='<a target="_blank" href="'+_SM_srfFile+'?X='+parseInt(_SM_locationX)+'&amp;Y='+parseInt(_SM_locationY)+'&amp;A=Y&amp;Z='+_SM_locationZ+eT+'">http://www.streetmap.co.uk/'+_SM_srfFile+'?X='+parseInt(_SM_locationX)+'&amp;Y='+parseInt(_SM_locationY)+'&amp;A=Y&amp;Z='+_SM_locationZ+eT+'</A><br>Click <a href="/s.srf?x='+parseInt(_SM_locationX)+'&y='+parseInt(_SM_locationY)+'&z='+_SM_locationZ+eT+'&searchp=s.srf&mapp=gc.srf&altdata=1" class="textnav">here</a> to convert/measure coordinates<br>';
eU.innerHTML=P;
}
eU=_SM_getDivm('LinkToTextSmall');
if(eU)
{
var P;
P='Link: <a target="_blank" href="'+_SM_srfFile+'?X='+parseInt(_SM_locationX)+'&amp;Y='+parseInt(_SM_locationY)+'&amp;A=Y&amp;Z='+_SM_locationZ+eT+'">http://www.streetmap.co.uk/'+_SM_srfFile+'?X='+parseInt(_SM_locationX)+'&amp;Y='+parseInt(_SM_locationY)+'&amp;A=Y&amp;Z='+_SM_locationZ+eT+'</A>';
eU.innerHTML=P;
}
}
function eV()
{
var P;
var eU=_SM_getDivm('badsearchquality');
if(eU)
{
P='';
eU.innerHTML=P;
}
eU=_SM_getDivm('resultfortext');
if(eU)
{
var P;
P='';
eU.innerHTML=P;
}
}
function eW(eX,eq,eY,eZ,dZ)
{
_SM_HideCallout('DivClickUpEvt2');
eR();
eV();
if(es)
{
eE();
}
_SM_PfnUpdate();
}
function _SM_Navigate(direction)
{
var fa=0;
var fb=0;
switch(direction)
{
case 1:
fa=fa-_SM_skipSize;
fb=fb+_SM_skipSize;
break;
case 2:
fa=fa;
fb=fb+_SM_skipSize;
break;
case 3:
fa=fa+_SM_skipSize;
fb=fb+_SM_skipSize;
break;
case 4:
fa=fa-_SM_skipSize;
fb=fb;
break;
case 5:
fa=fa+_SM_skipSize;
fb=fb;
break;
case 6:
fa=fa-_SM_skipSize;
fb=fb-_SM_skipSize;
break;
case 7:
fa=fa;
fb=fb-_SM_skipSize;
break;
case 8:
fa=fa+_SM_skipSize;
fb=fb-_SM_skipSize;
break;
}
fa=-(fa/_SM_cpp);
fb=(fb/_SM_cpp);
_SM_MapDraw(fa,fb);
}
function fc(eX,eq,eY,eZ,dZ)
{
}
function fd(dZ)
{
eJ();
}
function _SM_LoadPage()
{
MM_preloadImages('/images/mapborderparts/nw_over.gif','/images/mapborderparts/n_over.gif','/images/mapborderparts/ne_over.gif','/images/mapborderparts/w_over.gif','/images/mapborderparts/e_over.gif','/images/mapborderparts/sw_over.gif','/images/mapborderparts/s_over.gif','/images/mapborderparts/se_over.gif','/images/zoomscales/zoomup_over.gif');
if(window.focus)window.focus();
_SM_im();
_SM_AddMapLoadedCallback(fc);
_SM_AddMapMoveCallback(eW);
_SM_mzc=eJ;
_SM_AddMapZoomCallback(fd);
_SM_AddMapAdCallback(eD);
var parent;
parent=_SM_getDivm('drag');
if(parent)
{
P='<table width="68" border="0" cellspacing="0" cellpadding="0"><tr><td width="9"><img src="images/zoomscales/button_double_left.gif" width="9" height="36"></td> <td width="50" align="center" background="images/zoomscales/button_double_mid.gif" class="navon"><a href="#" class="scaleNorm" onclick="_SM_switchDrag2()"><img src="images/zoomscales/grab2.gif" width="50" height="16" border="0"></a><br><a href="#" class="scaleNorm" onclick="_SM_switchDrag2()"><span class="style1">Drag Map</span></a></td> <td width="9"><img src="images/zoomscales/button_double_right.gif" width="9" height="36"></td></tr></table>';
parent.innerHTML=P;
}
eJ();
if(_SM_dragActive)
{
_SM_dragActive=false;
_SM_switchDrag2();
}
eS();
}
function _SM_Resized()
{
var parent=_SM_getDivm('SMap');
if(parent)
{
_SM_mapWidth=parent.clientWidth;
_SM_mapHeight=parent.clientHeight;
_SM_locationLX=_SM_locationX-((_SM_mapWidth/2)*_SM_cpp);
_SM_locationLY=_SM_locationY-((_SM_mapHeight/2)*_SM_cpp);
_SM_locationUX=_SM_locationX+((_SM_mapWidth/2)*_SM_cpp);
_SM_locationUY=_SM_locationY+((_SM_mapHeight/2)*_SM_cpp);
}
_SM_Redraw();
}
function _SM_MaplLoadPage()
{
if(window.focus)window.focus();
var parent=_SM_getDivm('SMap');
if(parent)
{
_SM_mapWidth=parent.clientWidth;
_SM_mapHeight=parent.clientHeight;
_SM_locationLX=_SM_locationX-((_SM_mapWidth/2)*_SM_cpp);
_SM_locationLY=_SM_locationY-((_SM_mapHeight/2)*_SM_cpp);
_SM_locationUX=_SM_locationX+((_SM_mapWidth/2)*_SM_cpp);
_SM_locationUY=_SM_locationY+((_SM_mapHeight/2)*_SM_cpp);
}
_SM_LoadPage();
}
function _SM_PrfLoadPage()
{
var parent=_SM_getDivm('SMap');
if(parent)
{
_SM_mapWidth=parent.clientWidth;
_SM_mapHeight=parent.clientHeight;
_SM_locationLX=_SM_locationX-((_SM_mapWidth/2)*_SM_cpp);
_SM_locationLY=_SM_locationY-((_SM_mapHeight/2)*_SM_cpp);
_SM_locationUX=_SM_locationX+((_SM_mapWidth/2)*_SM_cpp);
_SM_locationUY=_SM_locationY+((_SM_mapHeight/2)*_SM_cpp);
}
_SM_LoadPage();
eg();
}
function _SM_PopupLoadPage(fe)
{
var parent=_SM_getDivm('SMap');
if(parent)
{
var ff=(document.body.offsetHeight-parent.offsetTop)-fe;
parent.style.height=ff+'px';;
_SM_mapWidth=parent.clientWidth;
_SM_mapHeight=parent.clientHeight;
_SM_locationLX=_SM_locationX-((_SM_mapWidth/2)*_SM_cpp);
_SM_locationLY=_SM_locationY-((_SM_mapHeight/2)*_SM_cpp);
_SM_locationUX=_SM_locationX+((_SM_mapWidth/2)*_SM_cpp);
_SM_locationUY=_SM_locationY+((_SM_mapHeight/2)*_SM_cpp);
}
_SM_LoadPage();
eg();
}
function _SM_PopupResize(fe)
{
var parent=_SM_getDivm('SMap');
if(parent)
{
var ff=(document.body.offsetHeight-parent.offsetTop)-fe;
parent.style.height=ff+'px';;
_SM_mapWidth=parent.clientWidth;
_SM_mapHeight=parent.clientHeight;
_SM_locationLX=_SM_locationX-((_SM_mapWidth/2)*_SM_cpp);
_SM_locationLY=_SM_locationY-((_SM_mapHeight/2)*_SM_cpp);
_SM_locationUX=_SM_locationX+((_SM_mapWidth/2)*_SM_cpp);
_SM_locationUY=_SM_locationY+((_SM_mapHeight/2)*_SM_cpp);
}
_SM_Redraw();
eg();
eS();
}
function eS()
{
var fg=_SM_getDivm('SW_Arrow');
if(fg)
{
var fh=_SM_getDivm('ScaleBar');
if(fh)
{
document.body.removeChild(fh);
}
if(_SM_scaleImage!=null)
{
fh=document.createElement("div");
fh.id="ScaleBar";
fh.style.position='absolute';
var dT=_SM_getElementPosition('SW_Arrow');
var fi=dT.left;
var fj=dT.top;
fi+=30;
fj-=20;
fh.style.left=fi+'px';
fh.style.top=fj+'px';
fh.style.width=_SM_scaleImageSize+'px';
fh.style.height='20px';
fh.style.zIndex=99;
var P='<IMG SRC="/'+_SM_scaleImage+'" BORDER="0" HEIGHT="20" WIDTH="'+_SM_scaleImageSize+'"';
if(_SM_scaleText!=null)
{
P+=' alt="'+_SM_scaleText+'" ';
}
P+='>';
document.body.appendChild(fh);
fh.innerHTML=P;
}
}
}
function _SM_ShowStatusMessage(id,Q,fk,show)
{
var parent=_SM_getDivm('SMap');
if(parent)
{
var fh=_SM_getDivm(id);
if(fh)
{
parent.removeChild(fh);
}
if(Q!=null)
{
fh=document.createElement("div");
fh.id=id;
fh.style.position='absolute';
var fi=0;
var fj=0;
fh.style.left=fi+'px';
fh.style.top=fj+'px';
fh.style.width=_SM_mapWidth+'px';
fh.style.height='30px';
fh.style.zIndex=99;
var P='<table width="100%" bgcolor="white" border="1"><tr valign="top"><td><span class="'+fk+'">'+Q+'</span></td></td></td>';
parent.appendChild(fh);
fh.innerHTML=P;
}
}
}
var _SM_ItemChanges=new Array();
function fl(fm,
hR,
fo,
fp,
fq,
fr)
{
this.name=fm;
this.ek=hR;
this.size=fo;
this.fs=fp;
this.ft=parseInt(fq,10);
this.fu=parseInt(fr,10);
if(typeof fl.fv=='undefined')
{
fl.prototype.fw=function(){if(this.ek=='width')return true;else return false;}
fl.prototype.fx=function(){if(this.ek=='height')return true;else return false;}
fl.prototype.fy=function(){if(this.ek=='margin_height')return true;else return false;}
fl.prototype.fz=function(){if(this.ek=='margin_width')return true;else return false;}
fl.prototype.fA=function(){if(this.ek=='margin_left_scale')return true;else return false;}
fl.prototype.fB=function(){if(this.ek=='mapwidth')return true;else return false;}
fl.prototype.fC=function(){if(this.ek=='mapheight')return true;else return false;}
fl.prototype.fD=function(){if(this.ek=='margin_height_map')return true;else return false;}
fl.prototype.fE=function(){if(this.ek=='margin_width_map')return true;else return false;}
fl.fv=true;
}
}
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('main_hold','width','387',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('content_container','width','259',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('content_wrapper','width','259',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('header','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('header_left','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('header_right','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('footer','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('footer_row01','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('func_bar_561','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('func_bar_561_left_end','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('func_bar_561_right_end','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('header_row02','width','241',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('footer_nav_top_container','width','-104',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('footer_row03','width','192',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_561_container','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_left_brd','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_right_brd','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_561_grad','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_561_container','mapheight','71',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_left_brd','mapheight','71',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_right_brd','mapheight','71',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_561_grad','mapheight','71',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_map_footer','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_561_left','mapheight','48',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_561_right','mapheight','48',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_561_up','mapwidth','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_561_down','mapwidth','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_561_map','mapwidth','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_561_map','mapheight','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_map_footer_info','mapwidth','32',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('arrow_561_right','margin_height_map','-45','2',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('arrow_561_left','margin_height_map','-45','2',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('spacer','height','-481',0,1,-1);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('spacerwithms','height','-561',0,1,-1);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('advert_561_01','margin_left_scale','-595','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('advert_561_04','margin_left_scale','-380','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('func_bar_link_to','width','-200',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('linkTo','width','-204',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('LinkToInput','width','-330',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('advert_561_04_container','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('advert_561_04_left_end','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('advert_561_04_right_end','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('arrow_561_right_down','margin_height_map','-45','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('arrow_561_left_down','margin_height_map','-45','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('arrow_561_down','margin_width_map','-35','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_container','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_grad','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_container','mapheight','79',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_grad','mapheight','71',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_left','mapheight','48',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_right','mapheight','48',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_up','mapwidth','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_down','mapwidth','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_map','mapwidth','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('panel_map','mapheight','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('arrow_right','margin_height_map','0','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('arrow_right_down','margin_height_map','-80','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('arrow_left','margin_height_map','0','2',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('arrow_left_down','margin_height_map','-80','2',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fl('controls_935_container','mapwidth','68',0,1,2);
function _SM_pageWidth(){return window.innerWidth!=null?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body!=null?document.body.clientWidth:null;}
function _SM_pageHeight(){return window.innerHeight!=null?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:null;}
function fF(name)
{
var fG=_SM_getDivm(name)
if(fG)
{
fG.style.position='absolute';
fG.style.left='0px';
fG.style.top='0px';
fG.style.width='1%';
fG.style.height='1%';
fG.style.marginLeft='0px';
fG.style.marginTop='0px';
fG.style.marginBottom='0px';
fG.style.marginRight='0px';
fG.style.visibility='hidden';
_SM_RemoveAd(name);
}
}
function fH(name,fi,fj,cy,width,height)
{
var fG=_SM_getDivm(name)
if(fG)
{
fG.style.position='absolute';
fG.style.left=parseInt(fi,10)+'px';
fG.style.top=parseInt(fj,10)+'px';
fG.style.width=parseInt(width,10)+'px';
fG.style.height=parseInt(height,10)+'px';
fG.style.marginLeft='0px';
fG.style.marginTop='0px';
fG.style.marginBottom='0px';
fG.style.marginRight='0px';
fG.style.visibility='visible';
_SM_SetupAd(name,cy,width,height);
}
}
function _SM_ResizeItems(fI,fJ,fK,fL)
{
if(B)
{
var fM=_SM_getDivm('SMap');
if(fM)
{
fM.style.width='500px';
fM.style.height='500px';
}
}
var fN=0;
var cv=0;
var fO=800;
var fP=600;
var fQ=800;
var fR=600;
var fS=1200;
var fT=1;
var fU=_SM_pageWidth();
if(typeof fJ!='undefined'&&fJ>0)
{
fO=fJ;
if(fO<600)fO=600;
if(typeof fI!='undefined')
{
if(fI&&fU>fS)
{
fT=2;
}
}
else if(fU>fS)
{
fT=2;
}
}
else
{
if(typeof fI!='undefined')
{
if(fI&&fU>fS)
{
fT=2;
}
}
else if(fU>fS)
{
}
fU-=134;
if(fT==2)
{
fU-=180;
}
fU-=200;
fU-=(35*2);
if(fU<600)fU=600;
fO=fU;
}
var fV=_SM_pageHeight();
if(typeof fK!='undefined'&&fK>0)
{
fP=fK;
if(fP<561)fP=561;
}
else
{
{
fV=_SM_pageHeight();
fV-=100;
fV-=(35*2);
fV-=20;
if(fT!=3)
{
fV-=110;
}
if(fV<600)fV=600;
fP=fV;
}
}
fQ=fO;
fR=fP;
if(typeof fL!='undefined'&&fL)
{
fO-=185;
}
while(cv<_SM_ItemChanges.length)
{
var name=_SM_ItemChanges[cv].name;
var S=_SM_getDivm(name);
if(S)
{
var size=_SM_ItemChanges[cv].size;
var fs=_SM_ItemChanges[cv].fs;
var ft=_SM_ItemChanges[cv].ft;
var fu=_SM_ItemChanges[cv].fu;
if(_SM_ItemChanges[cv].fw())
{
var fW=fO+parseInt(size,10);
if(fu!=0&&B)
{
fW-=fu;
}
if(fW<0)fW=0;
var eQ=fW+'px';
S.style.width=eQ;
}
else if(_SM_ItemChanges[cv].fB())
{
var fW=fQ+parseInt(size,10);
if(fu!=0&&B)
{
fW-=fu;
}
if(fW<0)fW=0;
var eQ=fW+'px';
S.style.width=eQ;
}
else if(_SM_ItemChanges[cv].fx())
{
var ff=fP+parseInt(size,10);
if(fu!=0&&B)
{
ff-=fu;
}
if(ff<0)ff=0;
var fX=ff+'px';
S.style.height=fX;
}
else if(_SM_ItemChanges[cv].fC())
{
var ff=fR+parseInt(size,10);
if(fu!=0&&B)
{
ff-=fu;
}
if(ff<0)ff=0;
var fX=ff+'px';
S.style.height=fX;
}
else if(_SM_ItemChanges[cv].fy())
{
var fY=fP+parseInt(size,10);
if(fu!=0&&B)
{
fY-=fu;
}
if(fY<0)fY=0;
var fZ=fY+'px';
S.style.marginTop=fZ;
fY=parseInt(fs,10);
fZ=fY+'px';
S.style.marginLeft=fZ;
}
else if(_SM_ItemChanges[cv].fz())
{
var fY=fO+parseInt(size,10);
if(fu!=0&&B)
{
fY-=fu;
}
if(fY<0)fY=0;
var fZ=fY+'px';
S.style.marginLeft=fZ;
}
else if(_SM_ItemChanges[cv].fD())
{
var fY=fR+parseInt(size,10);
fY=fY/ft;
if(fu!=0&&B)
{
fY-=fu;
}
if(fY<0)fY=0;
var fZ=fY+'px';
S.style.marginTop=fZ;
fY=parseInt(fs,10);
fZ=fY+'px';
S.style.marginLeft=fZ;
}
else if(_SM_ItemChanges[cv].fE())
{
var fY=fQ+parseInt(size,10);
fY=fY/ft;
if(fu!=0&&B)
{
fY-=fu;
}
if(fY<0)fY=0;
var fZ=fY+'px';
S.style.marginLeft=fZ;
}
else if(_SM_ItemChanges[cv].fA())
{
var fY=fO+parseInt(size,10);
fY=fY/ft;
if(fu!=0&&B)
{
fY-=fu;
}
if(fY<0)fY=0;
var fZ=fY+'px';
S.style.marginLeft=fZ;
}
else
{
var ga=gb;
}
}
cv++;
}
_SM_ResizeSmap();
if(fT==1)
{
fF('advert_561_08');
fF('advert_561_09');
fF('advert_561_10');
fF('advert_561_11');
fH('advert_561_05',3,3,3,120,600);
fH('advert_561_06',3,606,23,120,60);
fH('advert_561_07',3,669,4,120,600);
}
else if(fT==2)
{
if(fN)
{
fF('advert_561_06');
fF('advert_561_10');
fF('advert_561_11');
fH('advert_561_08',3,3,39,300,250);
fH('advert_561_05',20,256,3,120,600);
fH('advert_561_07',160,256,4,120,600);
fH('advert_561_09',3,859,40,300,250);
}
else
{
fF('advert_561_06');
fF('advert_561_05');
fF('advert_561_07');
fH('advert_561_08',3,3,39,300,250);
fH('advert_561_09',3,259,40,300,250);
fH('advert_561_10',3,515,41,300,250);
fH('advert_561_11',3,771,42,300,250);
}
}
_SM_PfnInit();
_SM_ShowPfnSwitch();
}
function _SM_ResizeSmap()
{
var parent=_SM_getDivm('panel_561_map');
if(!parent)var parent=_SM_getDivm('panel_map');
var fM=_SM_getDivm('SMap');
if(parent&&fM)
{
var fY=parseInt(parent.offsetWidth,10);
if(B)fY-=4;
_SM_mapWidth=fY;
fM.style.width=fY+'px';
fY=parseInt(parent.offsetHeight,10);
if(B)fY-=4;
_SM_mapHeight=fY;
fM.style.height=fY+'px';
}
}
function _SM_SetCssBImage(name,F)
{
var parent=_SM_getDivm(name);
if(parent)
{
parent.style.backgroundImage="url('"+F+"')";
}
}var gc=_SM_createRequestObject();
var gd=new Array();
var ge=false;
var _SM_PFNLoadedCallback=null;
var gf=false;
var gg=false;
var gh=new Array();
function _SM_AddPfnFilter(gi)
{
var bS;
var bT=false;
for(bS=0;bS<gh.length&&!bT;bS++)
{
if(gh[bS]==gi)
{
bU=true;
}
}
if(!bT)
{
gh[gh.length]=gi;
}
}
function _SM_RemovePfnFilter(gi)
{
var bS;
for(bS=0;bS<gh.length;bS++)
{
if(gh[bS]==gi)
{
gh.splice(bS,1);
}
}
}
function gj()
{
gc=_SM_createRequestObject();
var bW=gd.shift();
gc.open('get',bW.bi);
switch(bW.bX)
{
case 1:
if(b)
{
gc.onload=gk;
}
else
{
gc.onreadystatechange=gl;
}
break;
}
gc.send(null);
}
function gm()
{
if(gd.length>0)
{
setTimeout(gj,1);
}
else
{
ge=false;
}
}
function gn(bi,bX)
{
gd[gd.length]={bi:bi,bX:bX};
if(!ge)
{
ge=true;
gm();
}
}
function _SM_ShowPfnSwitch()
{
if(gf)
{
var parent=_SM_getDivm('SMap');
if(parent)
{
if(typeof _SM_al[3]=='undefined')_SM_al[3]=true;
var hS=_SM_getDivm('PFNSwitch');
if(hS)
{
hS.style.visibility='visible';
var fi=parent.clientWidth;
var fj=parent.clientHeight;
fi-=105;
fj=5;
hS.style.left=fi+'px';
hS.style.top=fj+'px';
var gp=_SM_getDivm('PFNSwitchImage');
if(gp)
{
if(_SM_al[3])
{
gp.src="/dc/pfn/icon_switch_onoff_v2b_on.png"
}
else
{
gp.src="/dc/pfn/icon_switch_onoff_v2b_off.png"
}
}
}
else
{
hS=document.createElement("div");
hS.id="PFNSwitch";
hS.style.position='absolute';
hS.style.cursor='auto';
var fi=parent.clientWidth;
var fj=parent.clientHeight;
fi-=105;
fj=5;
hS.style.left=fi+'px';
hS.style.top=fj+'px';
hS.style.width='137px';
hS.style.height='41px';
hS.style.zIndex=99;
var P;
if(_SM_al[3])
{
P='<IMG id="PFNSwitchImage" SRC="/dc/pfn/icon_switch_onoff_v2b_on.png" BORDER="0" HEIGHT="37" WIDTH="111"';
}
else
{
P='<IMG id="PFNSwitchImage" SRC="/dc/pfn/icon_switch_onoff_v2b_off.png" BORDER="0" HEIGHT="37" WIDTH="111"';
}
P+=' alt="Click here to toggle map adverts" ';
P+=' onclick="_SM_ToggleLayer(3);" >';
parent.appendChild(hS);
hS.innerHTML=P;
}
gg=true;
}
}
}
function _SM_HidePfnSwitch()
{
var hS=_SM_getDivm('PFNSwitch');
if(hS)
{
hS.style.visibility='hidden';
gg=false;
}
}
function _SM_PfnIconRedraw(gq)
{
if(gq&&!gg)
{
_SM_ShowPfnSwitch();
}
else if(!gq&&gg)
{
_SM_HidePfnSwitch();
}
}
function _SM_PfnIconRedrawCallback(dm,dn,hO,dp,eX,eq,eY,eZ)
{
_SM_PfnIconRedraw(_SM_PfnIconDisplayed);
}
function gr()
{
if(gd.length>0)
{
gm();
}
else
{
ge=false;
if(_SM_PFNLoadedCallback)_SM_PFNLoadedCallback();
}
_SM_ShowPfnSwitch();
}
function gs(gt,
gu,
gv,
gw,
gx,
gy,
gz,
gA,
gB,
gC,
gD,
gE,
gF,
gG,
gH,
gI,
gJ,
gK,
gL,
gM,
gN,
gO,
gP,
gQ,
bj,
bk,
gR,
gS,
gT,
gU,
gi)
{
this._SM_div_name=gt;
this._SM_mapCreateA=gu;
this._SM_mapCreateB=gv;
this._SM_mapCreateW=gw;
this._SM_mapCreateH=gx;
this._SM_mapCreateExt=gy;
this._SM_mapCreateF=gz;
this._SM_mapCreateLoc2=gA;
this._SM_mapCreateAx=gB;
this._SM_mapCreateAy=gC;
this._SM_mapCreateFixed=gD;
this._SM_mapCreateX=gE;
this._SM_mapCreateY=gF;
this._SM_mapCreateUrl=gG;
this._SM_adiv=gH;
this._SM_layer=gI;
this._SM_zindex=gJ;
this._SM_desturl=gK;
this._SM_description=gL;
this._SM_isdiv=gM;
this._SM_divname=gN;
this._SM_divwidth=gO;
this._SM_divheight=gP;
this._SM_divnoborder=gQ;
this._SM_title=bj;
this._SM_style=bk;
this._SM_contenturl=gR;
this._SM_minzoom=gS;
this._SM_maxzoom=gT;
this._SM_IsPfn=1;
this._SM_TooltipSet=false;
this._SM_iconplacement=5;
if(typeof gU!='undefined'&&parseInt(gU,10)>0)
{
this._SM_iconplacement=parseInt(gU,10);
}
if(typeof gi!='undefined')
{
this._SM_customer=gi;
}
if(typeof gs.fv=='undefined')
{
gs.prototype.gV=function(){if(this._SM_mapCreateFixed)return true;else return false;}
gs.fv=true;
}
}
function _SM_ShowPfnMapDiv(hB,cv)
{
if(_SM_mapFixed[cv]._SM_isdiv&&_SM_mapFixed[cv]._SM_description&&_SM_mapFixed[cv]._SM_divname)
{
_SM_ShowCalloutTextOffset(hB,_SM_mapFixed[cv]._SM_description,_SM_mapFixed[cv]._SM_mapCreateW,_SM_mapFixed[cv]._SM_mapCreateH,_SM_mapFixed[cv]._SM_divnoborder);
}
}
function gW(item)
{
var parent=_SM_getDivm('SMap');
if(parent)
{
E=_SM_mapFixed.length;
_SM_mapFixed[E]=item;
var cD=document.createElement("div");
var P;
cD.id=_SM_mapFixed[E]._SM_div_name;
cD.style.position='absolute';
cD.style.left=_SM_mapFixed[E]._SM_mapCreateA+'px';
cD.style.top=_SM_mapFixed[E]._SM_mapCreateB+'px';
cD.style.width=_SM_mapFixed[E]._SM_mapCreateW+'px';
cD.style.height=_SM_mapFixed[E]._SM_mapCreateH+'px';
cD.style.marginLeft='0px';
cD.style.marginTop='0px';
cD.style.marginBottom='0px';
cD.style.marginRight='0px';
cD.style.border='0px';
var dX=false;
if(bN.length>0)
{
var bS;
for(bS=bN.length-1;bS>=0&&!dX;bS--)
{
if(bN[bS])
{
P=bN[bS](E,bS);
dX=true;
}
}
}
if(!dX)
{
P="<IMG SRC=\""+_SM_mapFixed[E]._SM_mapCreateF+"\" BORDER=\"0\" HEIGHT=\""+_SM_mapFixed[E]._SM_mapCreateH+"\" WIDTH=\""+_SM_mapFixed[E]._SM_mapCreateW+"\"";
if(_SM_mapFixed[E]._SM_mapCreateUrl)
{
P+=" onclick=\"clickedIcon('"+_SM_mapFixed[E]._SM_mapCreateUrl+"')\"";
}
if(_SM_mapFixed[E]._SM_description)
{
if(_SM_mapFixed[E]._SM_isdiv)
{
if(_SM_mapFixed[E]._SM_divname)
{
}
}
else
{
}
}
P+=">";
}
if(_SM_mapFixed[E]._SM_desturl)
{
P="<A HREF=\""+_SM_mapFixed[E]._SM_desturl+"\" TARGET=\"_BLANK\">"+P;
P+="</A>";
}
parent.appendChild(cD);
cD.innerHTML=P;
if(_SM_mapFixed[E]._SM_mapCreateFixed==1)
{
cD.style.zIndex=100;
}
else
{
cD.style.zIndex=_SM_mapFixed[E]._SM_zindex;
}
if(_SM_mapFixed[E]._SM_description||_SM_mapFixed[E]._SM_contenturl)
{
}
}
}
function gX(name)
{
var status=false;
var parent=_SM_getDivm('SMap');
if(parent)
{
var gY=_SM_getDivm(name);
if(gY)
{
parent.removeChild(gY);
}
gY=null;
}
var E;
for(E=0;E<_SM_mapFixed.length;E++)
{
if(_SM_mapFixed[E]._SM_div_name==name)
{
_SM_mapFixed[E]=null;
_SM_mapFixed.splice(E,1);
status=true;
break;
}
}
return status;
}
function _SM_AddItemUkCoords(fi,fj)
{
}
function _SM_AddLayerItem(gY)
{
if(gY)
{
gX(gY._SM_div_name);
gZ(gY);
}
}
function _SM_AddPfnIconUkCoords(eo,ha,id,fi,fj,width,height,hb,hc,description,hd,divname,he,hf,hg,title,style,hh,hi,hj,gU,gi)
{
gX(id);
var show=false;
if(gh.length==0)
{
show=true;
}
else if(typeof gi!='undefined')
{
var cv;
for(cv=0;cv<gh.length;cv++)
{
if(gh[cv]==gi)
{
show=true;
break;
}
}
}
if(show)
{
var hk=new gs(
id,
-height,
-width,
width,
height,
'Y',
hb,
'05',
0,
0,
0,
fi,
fj,
null,
null,
eo,
ha,
hc,
description,
hd,
divname,
he,
hf,
hg,
title,
style,
hh,
hi,
hj,
gU,
gi
);
gW(hk);
hk=null;
}
}
function _SM_ChangedLayerCheckbox(hl,hm)
{
var parent=_SM_getDivm(hm);
if(parent)
{
if(parent.checked)
{
_SM_ShowLayer(hl,1);
}
else
{
_SM_ShowLayer(hl,0);
}
}
}
function _SM_PfnUpdate()
{
var bi;
var ev=new Date();
var hn;
hn=ev.getFullYear().toString()+ev.getMonth().toString()+ev.getDate().toString()+ev.getHours().toString()+ev.getMinutes().toString()+ev.getSeconds().toString();
var dw=(_SM_tileSize/2);
bi='/pfn.srf?di='+hn+'&lx='+(_SM_locationLX-dw)+'&ly='+(_SM_locationLY-dw)+'&ux='+(_SM_locationUX+dw)+'&uy='+(_SM_locationUY+dw)+'&z='+_SM_locationZ;
gn(bi,1);
}
function gl()
{
if(gc.readyState==4)
{
if(gc.status==200)
{
ho(gc.responseText);
}
}
}
function gk()
{
ho(gc.responseText);
}
function ho(cu)
{
{
var hp=cu.split('\r\n');
if(hp.length>0)
{
var cv=0;
var hq=0;
var hr=0;
var hs=hp[cv].split('|');
if(hs.length==2&&hs[0]=='ItemCount')
{
hr=parseInt(hs[1],10);
if(hr>0)
{
cv++;
var hT=false;
var eo,ha,id,fi,fj,width,height,hb,hc,description,hu,hd,divname,he,hf,hg,title,style,hh,hi,hj,gi,hv;
eo=0;
ha=50;
width=20;
height=20;
hu=false;
hd=false;
he=0;
hf=0;
hg=false;
description='';
title='';
style='';
hh='';
hi=0;
hj=120;
gi='';
hv=0;
while(cv<hp.length&&hq<hr)
{
if(hp[cv].length>0)
{
if(hp[cv]=='--S')
{
hT=true;
}
else if(hp[cv]=='--E')
{
if(hT)
{
gf=true;
if(!hd&&description&&description.length>0&&hc&&hc.length>0)
{
}
var hw=_SM_getDivm(id);
if(!hw)
{
_SM_AddPfnIconUkCoords(eo,ha,id,fi,fj,width,height,hb,hc,description,hd,divname,he,hf,hg,title,style,hh,hi,hj,hv,gi);
}
if(hu)
{
_SM_al[eo]=false;
}
}
hT=false;
id=null;
fi=null;
fj=null;
width=20;
height=20;
hb=null;
hc=null;
description='';
eo=0;
hu=false;
hd=false;
divname=null;
he=0;
hf=0;
hg=false;
title='';
style='';
hh='';
hi=0;
hj=120;
gi='';
hv=0;
hq++;
}
else if(hT)
{
hs=hp[cv].split('|');
if(hs.length==2)
{
if(hs[0]=='Sequence')
{
id='pfn_'+hs[1];
}
else if(!_SM_mercMode&&hs[0]=='LocationX')
{
fi=parseInt(hs[1],10);
}
else if(!_SM_mercMode&&hs[0]=='LocationY')
{
fj=parseInt(hs[1],10);
}
else if(_SM_mercMode&&hs[0]=='LocationMX')
{
fi=parseInt(hs[1],10);
}
else if(_SM_mercMode&&hs[0]=='LocationMY')
{
fj=parseInt(hs[1],10);
}
else if(hs[0]=='Title')
{
title=hs[1];
}
else if(hs[0]=='DestURL')
{
hc=hs[1];
}
else if(hs[0]=='Icon')
{
hb=hs[1];
}
else if(hs[0]=='Layer')
{
eo=parseInt(hs[1],10);
}
else if(hs[0]=='MinZoom')
{
hi=parseInt(hs[1],10);
}
else if(hs[0]=='MaxZoom')
{
hj=parseInt(hs[1],10);
}
else if(hs[0]=='DivWidth')
{
if(parseInt(hs[1],10)>0)
{
he=parseInt(hs[1],10);
}
}
else if(hs[0]=='DivHeight')
{
if(parseInt(hs[1],10)>0)
{
hf=parseInt(hs[1],10);
}
}
else if(hs[0]=='LayerOff')
{
if(parseInt(hs[1],10)==1)
{
hu=true;
}
}
else if(hs[0]=='Type')
{
}
else if(hs[0]=='IcoWidth')
{
width=parseInt(hs[1],10);
}
else if(hs[0]=='IcoHeight')
{
height=parseInt(hs[1],10);
}
else if(hs[0]=='Description')
{
description=hs[1];
}
else if(hs[0]=='SourceURL')
{
hh=hs[1];
}
else if(hs[0]=='DisplayStyle')
{
style=hs[1];
}
else if(hs[0]=='Customer')
{
gi=hs[1];
}
else if(hs[0]=='IcoHook')
{
hv=parseInt(hs[1],10);
}
}
}
}
cv++;
}
}
}
}
gr();
_SM_Redraw();
}
}
function _SM_PfnInit()
{
_SM_AddMapRedrawCallback(_SM_PfnIconRedrawCallback);
}