//  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 hV=false;
var b=false;
function _SM_createRequestObject()
{
var c;
if(hV&&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(hW)
{
c=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return c;
}
function _SM_IsUsingXDomainRequest()
{
return b;
}
var e=0;
function _SM_getDivm(_SM_div_name)
{
var hX;
if(e==0)
{
if(document.getElementById)
{
e=3;
}
else if(document.g)
{
e=1;
}
else if(document.all)
{
e=2;
}
}
if(e==1)
{
hX=document.g[_SM_div_name];
}
else if(e==2)
{
hX=document.all(_SM_div_name);
}
else if(e==3)
{
hX=document.getElementById(_SM_div_name);
}
return hX;
}
function hY(hZ)
{
var ia=(hZ.target)?hZ.target:hZ.srcElement;
var coords={left:0,top:0};
if(hZ.k){
var l={left:parseInt(m("progressBar",
"borderLeftWidth","border-left-width")),
top:parseInt(m("progressBar",
"borderTopWidth","border-top-width"))};
coords.left=hZ.k-l.left;
coords.top=hZ.ib-l.top;
}else if(hZ.offsetX){
coords.left=hZ.offsetX;
coords.top=hZ.offsetY;
}
return coords;
}
function _SM_getPageEventCoords(hZ)
{
var coords={left:0,top:0};
if(hZ.pageX){
coords.left=hZ.pageX;
coords.top=hZ.pageY;
}else if(hZ.clientX){
coords.left=
hZ.clientX+document.body.scrollLeft-document.body.clientLeft;
coords.top=
hZ.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(ic)
{
var q=_SM_getDivm(ic);
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 ie=r.indexOf("Opera")>-1;
var u=r.indexOf("compatible")>-1
&&r.indexOf("MSIE")>-1
&&!ie;
var v=ig=ih=ii=ij=A=isIE6OrEarlier=false;
if(u){
var B=new RegExp("MSIE (\\d+\\.\\d+);");
B.test(r);
var C=parseFloat(RegExp["$1"]);
v=C>=4;
ig=C>=5;
ih=C>=5.5;
ii=C>=6.0;
ij=C>=7.0;
A=C>=8.0;
isIE6OrEarlier=C<7.0;
}
function _SM_CorrectIE6PNGs()
{
if(isIE6OrEarlier&&(document.body.filters))
{
for(var D=0;D<document.images.length;D++)
{
var E=document.images[D]
var F=E.src.toUpperCase()
if(F.substring(F.length-3,F.length)=="PNG")
{
var G=(E.id)?"id='"+E.id+"' ":""
var H=(E.className)?"class='"+E.className+"' ":""
var I=(E.title)?"title='"+E.title+"' ":"title='"+E.alt+"' "
var J="display:inline-block;"+E.style.cssText
if(E.align=="left")J="float:left;"+J
if(E.align=="right")J="float:right;"+J
if(E.parentElement.href)J="cursor:hand;"+J
var K="<span "+G+H+I
+" style=\""+"width:"+E.width+"px; height:"+E.height+"px;"+J+";"
+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+"(src=\'"+E.src+"\', sizingMethod='scale');\"></span>"
E.outerHTML=K
D=D-1
}
}
}
}
var L=new Array();
function M()
{
var N=_SM_getDivm('diagDisplay');
if(N)
{
var O='<code>';
var D=0;
for(D=0;D<L.length;D++)
{
O+=L[D].P+'<br>';
}
O+='</code>';
N.innerHTML=O;
}
}
function _SM_addDiag(P)
{
L[L.length]={P:P};
while(L.length>200)
{
L.shift();
}
M();
}
function _SM_clearDiag()
{
L.splice(0,L.length);
M();
}
var Q=new Array();
function _SM_HideCallout(reason)
{
if(typeof Tip!='undefined')
{
Tips.hideAll();
}
}
function _SM_HideNamedCallout(R,reason)
{
if(typeof Tip!='undefined')
{
var S=_SM_getDivm(R);
if(S)
{
if(typeof S.T!='undefined'&&S.T)
{
S.T.hide();
}
}
}
}
function _SM_ShowNamedCallout(R,reason)
{
if(typeof Tip!='undefined')
{
var S=_SM_getDivm(R);
if(S)
{
if(typeof S.T!='undefined'&&S.T)
{
S.T.show();
}
}
}
}
function U()
{
if(typeof Tip!='undefined')
{
Tips.hideAll();
}
}
function V(R)
{
if(typeof Tip!='undefined')
{
Tips.hideAll();
}
}
function _SM_ClearTooltip(W)
{
if(typeof Tip!='undefined')
{
Tips.remove(W);
}
}
function _SM_SetTooltipFromObject(W,X)
{
var Y;
if(typeof Tip!='undefined')
{
var Z='protosmap';
var ba='rightMiddle';
var bb='leftMiddle';
var bc='leftMiddle';
var bd=true;
var be=3;
var bf=false;
var bg='auto';
var title;
var text;
var height;
if(typeof X.text!='undefined'&&X.text!=null&&X.text.length>0)
{
text=X.text;
}
if(typeof X.style=='undefined'||X.style==null||X.style.length==0)
{
X.style=Z;
}
if(typeof X.hook=='undefined'||X.hook==null)
{
X.hook={target:ba,tip:bb};
}
else
{
if(typeof X.hook.target=='undefined'||X.hook.target==null||X.hook.target.length==0)
{
X.hook.target=ba;
}
if(typeof X.hook.tip=='undefined'||X.hook.tip==null||X.hook.tip.length==0)
{
X.hook.tip=bb;
}
}
if(typeof X.stem=='undefined'||X.stem==null||X.stem.length==0)
{
X.stem=bc;
}
if(typeof X.fixed=='undefined')
{
X.fixed=bd;
}
if(typeof X.hideAfter=='undefined')
{
X.hideAfter=be;
}
if(typeof X.hideOn=='undefined')
{
X.hideOn=bf;
}
if(typeof X.url!='undefined'&&X.url!=null&&X.url.length>0)
{
width=300;
height=250;
if(typeof X.width=='undefined'||X.width==null)
{
X.width=width;
}
if(typeof X.height=='undefined'||X.height==null)
{
X.height=height;
}
text='<iframe src="'+X.url+'" width="'+X.width+'" height="'+X.height+'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true"></iframe>';
}
if(typeof X.width=='undefined'||X.width==null)
{
X.width=bg;
}
Y=new Tip(W,text,X);
}
return Y;
}
function _SM_SetTooltip(W,text,bh,bi,bj,bk,url)
{
return _SM_SetTooltipFromObject(W,{text:text,title:bh,style:bi,width:bj,height:bk,url:url});
}
function _SM_DisplayCallout(bl,bm,bn,bo)
{
}
function _SM_DisplayCalloutDiv(bl,bm,R,bo)
{
}
function _SM_ShowCalloutText(hZ,bn,bo)
{
var coords=_SM_getPageEventCoords(hZ);
_SM_DisplayCallout(coords.left+10,coords.top-10,bn,bo);
}
function _SM_ShowCalloutTextOffset(hZ,bn,bp,bq,bo)
{
var coords=_SM_getPageEventCoords(hZ);
_SM_DisplayCallout(coords.left+bp,coords.top-bq,bn,bo);
}
function _SM_ShowCalloutDivOffset(hZ,R,bp,bq,bo)
{
var coords=_SM_getPageEventCoords(hZ);
_SM_DisplayCalloutDiv(coords.left+bp,coords.top-bq,R,bo);
}
function _SM_getCookie(br)
{
if(document.cookie.length>0)
{
var bs=document.cookie.indexOf(br+"=");
if(bs!=-1)
{
bs+=br.length+1;
var bt=document.cookie.indexOf(";",bs);
if(bt==-1)bt=document.cookie.length;
return unescape(document.cookie.substring(bs,bt));
}
}
return null;
}
function _SM_setCookie(br,value,bu)
{
var bv=new Date();
bv.setTime(bv.getTime()+(bu*24*3600*1000));
document.cookie=br+"="+escape(value)+((bu==null)?"":"; expires="+bv.toGMTString());
}
function _SM_setAllCookie(br,value,bu)
{
var bv=new Date();
bv.setTime(bv.getTime()+(bu*24*3600*1000));
document.cookie=br+"="+escape(value)+((bu==null)?"":"; expires="+bv.toGMTString());
document.cookie=br+"="+escape(value)+((bu==null)?"":"; domain=streetmap.co.uk; expires="+bv.toGMTString());
document.cookie=br+"="+escape(value)+((bu==null)?"":"; domain=www.streetmap.co.uk; expires="+bv.toGMTString());
}
var _SM_mapVis=new Array();
var _SM_mapFixed=new Array();
var bw=new Array();
var bx=new Array();
var by='unset';
var bz=false;
var bA=false;
var bB=false;
var bC=0;
var bD=0;
var bE=_SM_createRequestObject();
var bF=false;
var bG=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_ClipLocation=false;
var _SM_ClipLocationLX=0;
var _SM_ClipLocationLY=0;
var _SM_ClipLocationUX=0;
var _SM_ClipLocationUY=0;
var _SM_mapOverlay=new Array();
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 bH=false;
var bI=null;
var bJ=null;
var bK=null;
var bL=1;
var bM=2;
var bN=new Array();
var bO=new Array();
var bP=new Array();
var bQ=new Array();
var bR=new Array();
var bS=new Array();
var bT=new Array();
var bU=new Array();
function _SM_AddMapRedrawCallback(bV)
{
var bW;
var bX=false;
for(bW=0;bW<bN.length&&!bX;bW++)
{
if(bN[bW]==bV)
{
bY=true;
}
}
if(!bX)
{
bN[bN.length]=bV;
}
}
function _SM_RemoveMapRedrawCallback(bV)
{
var bW;
for(bW=0;bW<bN.length;bW++)
{
if(bN[bW]==bV)
{
bN.splice(bW,1);
}
}
}
function _SM_AddMapMoveCallback(bV)
{
var bW;
var bX=false;
for(bW=0;bW<bO.length&&!bX;bW++)
{
if(bO[bW]==bV)
{
bY=true;
}
}
if(!bX)
{
bO[bO.length]=bV;
}
}
function _SM_RemoveMapMoveCallback(bV)
{
var bW;
for(bW=0;bW<bO.length;bW++)
{
if(bO[bW]==bV)
{
bO.splice(bW,1);
}
}
}
function _SM_AddMapLoadedCallback(bV)
{
var bW;
var bX=false;
for(bW=0;bW<bP.length&&!bX;bW++)
{
if(bP[bW]==bV)
{
bY=true;
}
}
if(!bX)
{
bP[bP.length]=bV;
}
}
function _SM_RemoveMapLoadedCallback(bV)
{
var bW;
for(bW=0;bW<bP.length;bW++)
{
if(bP[bW]==bV)
{
bP.splice(bW,1);
}
}
}
function _SM_AddIconClickedCallback(bV)
{
var bW;
var bX=false;
for(bW=0;bW<bQ.length&&!bX;bW++)
{
if(bQ[bW]==bV)
{
bY=true;
}
}
if(!bX)
{
bQ[bQ.length]=bV;
}
}
function _SM_RemoveIconClickedCallback(bV)
{
var bW;
for(bW=0;bW<bQ.length;bW++)
{
if(bQ[bW]==bV)
{
bQ.splice(bW,1);
}
}
}
function _SM_AddIconBuiltCallback(bV)
{
var bW;
var bX=false;
for(bW=0;bW<bR.length&&!bX;bW++)
{
if(bR[bW]==bV)
{
bY=true;
}
}
if(!bX)
{
bR[bR.length]=bV;
}
}
function _SM_RemoveIconBuiltCallback(bV)
{
var bW;
for(bW=0;bW<bR.length;bW++)
{
if(bR[bW]==bV)
{
bR.splice(bW,1);
}
}
}
function _SM_AddMapClickedCallback(bV)
{
var bW;
var bX=false;
for(bW=0;bW<bS.length&&!bX;bW++)
{
if(bS[bW]==bV)
{
bY=true;
}
}
if(!bX)
{
bS[bS.length]=bV;
}
}
function _SM_RemoveMapClickedCallback(bV)
{
var bW;
for(bW=0;bW<bS.length;bW++)
{
if(bS[bW]==bV)
{
bS.splice(bW,1);
}
}
}
function _SM_AddMapZoomCallback(bV)
{
var bW;
var bX=false;
for(bW=0;bW<bT.length&&!bX;bW++)
{
if(bT[bW]==bV)
{
bY=true;
}
}
if(!bX)
{
bT[bT.length]=bV;
}
}
function _SM_RemoveMapZoomCallback(bV)
{
var bW;
for(bW=0;bW<bT.length;bW++)
{
if(bT[bW]==bV)
{
bT.splice(bW,1);
}
}
}
function _SM_AddMapAdCallback(bV)
{
var bW;
var bX=false;
for(bW=0;bW<bU.length&&!bX;bW++)
{
if(bU[bW]==bV)
{
bY=true;
}
}
if(!bX)
{
bU[bU.length]=bV;
}
}
function _SM_RemoveMapAdCallback(bV)
{
var bW;
for(bW=0;bW<bU.length;bW++)
{
if(bU[bW]==bV)
{
bU.splice(bW,1);
}
}
}
function _SM_sal()
{
for(D=0;D<_SM_al.length;D++)
{
if(typeof _SM_al[D]=='undefined')
{
_SM_al[D]=true;
}
else
{
}
}
}
function bZ()
{
if(bw.length>0)
{
bE=_SM_createRequestObject();
var ca=bw.shift();
switch(ca.cb)
{
case 1:
if(b)
{
bE.onload=cc;
}
else
{
bE.onreadystatechange=cd;
}
break;
case 2:
if(b)
{
bE.onload=ce;
}
else
{
bE.onreadystatechange=cf;
}
break;
case 3:
if(b)
{
bE.onload=cg;
}
else
{
bE.onreadystatechange=ik;
}
break;
case 4:
if(b)
{
bE.onload=il;
}
else
{
bE.onreadystatechange=cj;
}
break;
case 5:
if(b)
{
bE.onload=ck;
}
else
{
bE.onreadystatechange=cl;
}
break;
}
bE.open('GET',_SM_urlBase+ca.url);
bE.send(null);
}
}
function cm()
{
if(bw.length>0)
{
setTimeout(bZ,1);
}
else
{
bz=false;
}
}
function cn(url,cb)
{
bw[bw.length]={url:url,cb:cb};
if(!bz)
{
bz=true;
cm();
}
}
function co()
{
if(bw.length>0)
{
cm();
}
else
{
bz=false;
}
}
function cp()
{
var ca=bx.shift();
var cq=document.createElement('script');
if(ca.cr==1)
{
cq.src=ca.url;
}
else
{
cq.src=_SM_urlBase+ca.url;
}
if(ca.id)cq.id=ca.id;
document.getElementsByTagName('head')[0].appendChild(cq);
}
function cs(url,id)
{
bx[bx.length]={url:url,id:id,cr:0};
if(!bz)
{
bz=true;
cp();
}
}
function ct(url,id)
{
bx[bx.length]={url:url,id:id,cr:1};
if(!bz)
{
bz=true;
cp();
}
}
function cu(X)
{
if(bx.length>0)
{
cp();
}
else
{
bz=false;
}
if(X.id)
{
var parent=_SM_getDivm(X.id);
if(parent)
{
if(!u||ij)
{
document.getElementsByTagName('head')[0].removeChild(parent);
}
}
}
}
function cv(id)
{
if(bx.length>0)
{
cp();
}
else
{
bz=false;
}
if(id)
{
var parent=_SM_getDivm(id);
if(parent)
{
if(!u||ij)
{
document.getElementsByTagName('head')[0].removeChild(parent);
}
}
}
}
function im(cx,cy)
{
}
function cj(){
if(bE.readyState==4)
{
if(bE.status==200)
{
cz(bE.responseText);
}
}
}
function il(){
cz(bE.responseText);
}
function cz(cA){
{
co();
var cB=cA.indexOf('\r');
if(cB>0)
{
var bW;
for(bW=0;bW<bU.length;bW++)
{
if(bU[bW])
{
bU[bW](cA.slice(0,cB),cA.slice(cB));
}
}
}
}
}
function ik(){
if(bE.readyState==4)
{
if(bE.status==200)
{
cC(bE.responseText);
}
}
}
function cg(){
cC(bE.responseText);
}
function cC(cA)
{
{
co();
}
}
function cD(cE,R,width,height)
{
var parent=_SM_getDivm(R);
if(parent)
{
if(_SM_mercMode)
{
parent.innerHTML='<iframe src="/adi.srf?adzone='+cE+'&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='+cE+'&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 cF(cE,R,width,height)
{
cD(cE,R,width,height);
}
function cG(cx,cy)
{
if(bH&&bJ!=null)
{
var cH={_SM_TileX:cx,
_SM_TileY:cy,
_SM_CurrentZoom:_SM_locationZ,
_SM_Overlay:-1
};
bJ(cH);
}
else
{
var url;
if(bF)
{
var id=cx+'_'+cy;
if(_SM_mercMode)
{
url='/ajaxtp.srf?mx='+cx+'&my='+cy+'&z='+_SM_locationZ+'&tp=mb&json=1&jfn=_SM_handleJsonResponseTile&jid='+id;
}
else
{
url='/ajaxtp.srf?x='+cx+'&y='+cy+'&z='+_SM_locationZ+'&tp=b&json=1&jfn=_SM_handleJsonResponseTile&jid='+id;
}
cs(url,id);
}
else
{
if(_SM_mercMode)
{
url='/ajaxtp.srf?mx='+cx+'&my='+cy+'&z='+_SM_locationZ+'&tp=mb';
}
else
{
url='/ajaxtp.srf?x='+cx+'&y='+cy+'&z='+_SM_locationZ+'&tp=b';
}
cn(url,1);
}
}
}
function cd()
{
if(bE.readyState==4)
{
if(bE.status==200)
{
cI(bE.responseText);
}
}
}
function cc()
{
cI(bE.responseText);
}
function _SM_CustomTile(cH)
{
if(bP.length>0)
{
var bW;
for(bW=0;bW<bP.length;bW++)
{
if(bP[bW])
{
bP[bW](_SM_locationLX,_SM_locationLY,_SM_locationUX,_SM_locationUY,_SM_locationZ);
}
}
for(bW=0;bW<bP.length;bW++)
{
if(bP[bW])
{
bP.splice(bW,1);
}
}
}
if(typeof cH!='undefined'&&typeof cH._SM_div!='undefined'&&typeof cH._SM_img!='undefined')
{
var O;
if(typeof bK!='undefined'&&bK!=null)
{
var cJ=bK(cH);
if(typeof cJ!='undefined')
{
O=cJ;
}
}
else
{
if(typeof cH._SM_width!='undefined'&&typeof cH._SM_height!='undefined')
{
O='<img src="'+cH._SM_img+'" border="0" height="'+cH._SM_height+'" width="'+cH._SM_width+'" />';
}
else
{
O='<img src="'+cH._SM_img+'" border="0" height="'+_SM_imageSize+'" width="'+_SM_imageSize+'" />';
}
}
var cK=_SM_getDivm(cH._SM_div);
if(cK)
{
try
{
cK.innerHTML=O;
}
catch(cL)
{
_SM_addDiag("Inner html failed");
}
}
}
}
function cI(cA){
{
if(bw.length>0)
{
cm();
}
else
{
bz=false;
if(bP.length>0)
{
var bW;
for(bW=0;bW<bP.length;bW++)
{
if(bP[bW])
{
bP[bW](_SM_locationLX,_SM_locationLY,_SM_locationUX,_SM_locationUY,_SM_locationZ);
}
}
for(bW=0;bW<bP.length;bW++)
{
if(bP[bW])
{
bP.splice(bW,1);
}
}
}
}
if(cA.indexOf('@')!=-1)
{
var cM=cA.split('@');
var O;
O='<img src="'+_SM_urlBase+'/img.srf?image='+cM[2]+'&amp;loc2='+cM[1]+'" border="0" height="'+_SM_imageSize+'" width="'+_SM_imageSize+'" />';
var cK=_SM_getDivm(cM[0]);
if(cK)
{
try
{
cK.innerHTML=O;
}
catch(cL)
{
_SM_addDiag("Inner html failed");
}
}
else
{
_SM_addDiag("tile not found");
}
}
else
{
_SM_addDiag("bad tile");
}
}
}
function _SM_handleJsonResponseTile(X)
{
cu(X);
var divname=(X.divname?X.divname:'');
var loc2=(X.loc2?X.loc2:'');
var cN=(X.filename?X.filename:'');
if(divname.length>0)
{
var O;
O="<IMG SRC=\""+cO+"/img.srf?image="+cN+"&amp;loc2="+loc2+"\" BORDER=\"0\" HEIGHT=\""+_SM_imageSize+"\" WIDTH=\""+_SM_imageSize+"\">";
var cK=_SM_getDivm(divname);
if(cK)
{
cK.innerHTML=O;
}
}
if(bx.length==0)
{
if(bP.length>0)
{
var bW;
for(bW=0;bW<bP.length;bW++)
{
if(bP[bW])
{
bP[bW](_SM_locationLX,_SM_locationLY,_SM_locationUX,_SM_locationUY,_SM_locationZ);
}
}
for(bW=0;bW<bP.length;bW++)
{
if(bP[bW])
{
bP.splice(bW,1);
}
}
}
}
X=null;
}
var cP=new Array();
function cQ()
{
if(cP.length&&cP.length>0)
{
cR(cP);
cP.splice(0,cP.length);
}
}
function cS(cx,cy,cT)
{
cP[cP.length]={_SM_x:cx,_SM_y:cy,_SM_Overlay:cT};
}
function cR(cU)
{
if(cU.length>0)
{
if(bH&&bJ!=null)
{
var cB=0;
while(cB<cU.length)
{
var cH={_SM_TileX:cU[cB]._SM_x,
_SM_TileY:cU[cB]._SM_y,
_SM_CurrentZoom:_SM_locationZ,
_SM_Overlay:cU[cB]._SM_Overlay
};
bJ(cH);
cB++;
}
}
else
{
var cV;
var cB=0;
while(cB<cU.length)
{
if(typeof cU[cB]._SM_Overlay=='undefined'||cU[cB]._SM_Overlay<0)
{
if(typeof cV!='undefined'&&cV.length!=0)
{
cV+='|';
}
else
{
cV='';
}
cV+=cU[cB]._SM_x.toString();
cV+='|';
cV+=cU[cB]._SM_y.toString();
}
cB++;
}
var url;
var cW='';
if(bG&&!_SM_mercMode)
{
cW+='&bonly=1';
}
if(bF)
{
var id='MultiTileRequest';
if(_SM_mercMode)
{
url='/ajaxtpm.srf?tl='+cV+'&z='+_SM_locationZ+'&tp=mb&json=1&jfn=_SM_handleJsonResponseMTile'+cW;
}
else
{
url='/ajaxtpm.srf?tl='+cV+'&z='+_SM_locationZ+'&tp=b&json=1&jfn=_SM_handleJsonResponseMTile'+cW;
}
cs(url,id);
}
else
{
if(_SM_mercMode)
{
url='/ajaxtpm.srf?tl='+cV+'&z='+_SM_locationZ+'&tp=mb'+cW;
}
else
{
url='/ajaxtpm.srf?tl='+cV+'&z='+_SM_locationZ+'&tp=b'+cW;
}
cn(url,5);
}
}
}
}
function cl(){
if(bE.readyState==4)
{
if(bE.status==200)
{
cX(bE.responseText);
}
}
}
function ck(){
cX(bE.responseText);
}
function cX(cY){
{
var cV=cY.split('\r\n');
if(cV.length>0)
{
var cZ=0;
while(cZ<cV.length)
{
cA=cV[cZ];
if(cA.indexOf('@')!=-1)
{
var cM=cA.split('@');
var O;
O='<img src="'+_SM_urlBase+'/img.srf?image='+cM[2]+'&amp;loc2='+cM[1]+'" border="0" height="'+_SM_imageSize+'" width="'+_SM_imageSize+'" />';
var cK=_SM_getDivm(cM[0]);
if(cK)
{
try
{
cK.innerHTML=O;
}
catch(cL)
{
_SM_addDiag("Inner html failed");
}
}
else
{
_SM_addDiag("tile not found");
}
}
else
{
_SM_addDiag("bad tile");
}
cZ++;
}
}
if(bw.length>0)
{
cm();
}
else
{
bz=false;
if(bP.length>0)
{
var bW;
for(bW=0;bW<bP.length;bW++)
{
if(bP[bW])
{
bP[bW](_SM_locationLX,_SM_locationLY,_SM_locationUX,_SM_locationUY,_SM_locationZ);
}
}
for(bW=0;bW<bP.length;bW++)
{
if(bP[bW])
{
bP.splice(bW,1);
}
}
}
}
}
}
function _SM_handleJsonResponseMTile(X)
{
cu(X);
var cB=0;
for(cB=0;cB<X.length;cB++)
{
var divname=(X[cB].divname?X[cB].divname:'');
var loc2=(X[cB].loc2?X[cB].loc2:'');
var cN=(X[cB].filename?X[cB].filename:'');
if(divname.length>0)
{
var O;
O="<IMG SRC=\""+_SM_urlBase+"/img.srf?image="+cN+"&amp;loc2="+loc2+"\" BORDER=\"0\" HEIGHT=\""+_SM_imageSize+"\" WIDTH=\""+_SM_imageSize+"\">";
var cK=_SM_getDivm(divname);
if(cK)
{
cK.innerHTML=O;
}
}
}
if(bx.length==0)
{
if(bP.length>0)
{
var bW;
for(bW=0;bW<bP.length;bW++)
{
if(bP[bW])
{
bP[bW](_SM_locationLX,_SM_locationLY,_SM_locationUX,_SM_locationUY,_SM_locationZ);
}
}
for(bW=0;bW<bP.length;bW++)
{
if(bP[bW])
{
bP.splice(bW,1);
}
}
}
}
X=null;
cv('MultiTileRequest');
}
function _SM_CreateMapOverlay(da,db,cpp,dc,imagesize,dd,de,df,dg,bp,bq)
{
var dh=_SM_mapOverlay.length;
_SM_mapOverlay[dh]=
{
_SM_locationX:da,
_SM_locationY:db,
_SM_cpp:cpp,
_SM_tileSize:dc,
_SM_imageSize:imagesize,
_SM_limitLx:dd,
_SM_limitLy:de,
_SM_limitUx:df,
_SM_limitUy:dg,
_SM_offsetX:bp,
_SM_offsetY:bq
};
_SM_mapOverlay[dh]._SM_mapTile=new Array();
_SM_mapOverlay[dh]._SM_mapVis=new Array();
var io=cpp*_SM_mapWidth;
var ch=cpp*_SM_mapHeight;
_SM_mapOverlay[dh]._SM_locationLX=parseInt(da,10)-(io/2);
_SM_mapOverlay[dh]._SM_locationLY=parseInt(db,10)-(ch/2);
_SM_mapOverlay[dh]._SM_locationUX=parseInt(da,10)+(io/2);
_SM_mapOverlay[dh]._SM_locationUY=parseInt(db,10)+(ch/2);
}
function _SM_RemoveMapOverlay(cB)
{
if(cB<_SM_mapOverlay.length)
{
var parent=_SM_getDivm('SMap');
if(typeof _SM_mapOverlay[cB]._SM_mapTile!='undefined'&&_SM_mapOverlay[cB]._SM_mapTile.length>0)
{
var cZ;
for(cZ=0;cZ<_SM_mapOverlay[cB]._SM_mapTile.length;cZ++)
{
var hX=_SM_mapOverlay[cB]._SM_mapTile[cZ]._SM_adiv;
if(!hX&&typeof _SM_mapOverlay[cB]._SM_mapTile[cZ]._SM_div_name!='undefined')
{
hX=_SM_getDivm(_SM_mapOverlay[cB]._SM_mapTile[cZ]._SM_div_name);
}
if(hX)
{
var dj=parent.removeChild(hX);
if(dj==null)
{
_SM_addDiag('Overlay remove failed');
}
}
else
{
_SM_addDiag('Failed to remove overlay div');
}
}
_SM_mapOverlay[cB]._SM_mapTile.splice(0,_SM_mapOverlay[cB]._SM_mapTile.length);
_SM_mapOverlay[cB]._SM_mapVis.splice(0,_SM_mapOverlay[cB]._SM_mapVis.length);
}
_SM_mapOverlay.splice(cB,1);
}
}
function _SM_RemoveAllMapOverlays()
{
while(_SM_mapOverlay.length>0)
{
_SM_RemoveMapOverlay(0);
}
}
function _SM_SetCustomZoomScales(dk,dl,dm)
{
if(typeof dk!='undefined'&&dk!=null&&typeof dl!='undefined'&&dl!=null)
{
bH=true;
bI=dk;
bJ=dl;
if(typeof dm!='undefined'&&dm!=null)
{
bK=dm;
}
else
{
bK=null;
}
}
else
{
bH=false;
bI=null;
bJ=null;
bK=null;
}
}
function dn(direction){
cQ();
if(!bA)
{
bA=true;
if(bH&&bI!=null)
{
var cH={_SM_Operation:bL,
_SM_Direction:direction,
_SM_CurrentZoom:_SM_locationZ
};
bI(cH);
}
else
{
var url;
var cW='';
if(bG)
{
cW+='&bonly=1';
}
if(bF)
{
if(_SM_mercMode)
{
url='/ajaxzp.srf?mx='+_SM_locationX+'&my='+_SM_locationY+'&z='+_SM_locationZ+'&tp=b&mode=zoom&dir='+direction+'&json=1&jfn=_SM_handleJsonResponseZoom&jid=SMZoomDir'+cW;
}
else
{
url='/ajaxzp.srf?x='+_SM_locationX+'&y='+_SM_locationY+'&z='+_SM_locationZ+'&tp=b&mode=zoom&dir='+direction+'&json=1&jfn=_SM_handleJsonResponseZoom&jid=SMZoomDir'+cW;
}
cs(url,'SMZoomDir');
}
else
{
if(_SM_mercMode)
{
url='/ajaxzp.srf?mx='+_SM_locationX+'&my='+_SM_locationY+'&z='+_SM_locationZ+'&tp=b&mode=zoom&dir='+direction+cW;
}
else
{
url='/ajaxzp.srf?x='+_SM_locationX+'&y='+_SM_locationY+'&z='+_SM_locationZ+'&tp=b&mode=zoom&dir='+direction+cW;
}
cn(url,2);
}
}
}
}
function iq(dp){
cQ();
if(!bA)
{
bA=true;
if(bH&&bI!=null)
{
var cH={_SM_Operation:bM,
_SM_Level:dp,
_SM_CurrentZoom:_SM_locationZ
};
bI(cH);
}
else
{
var url;
var cW='';
if(bG)
{
cW+='&bonly=1';
}
if(bF)
{
if(_SM_mercMode)
{
url='/ajaxzp.srf?mx='+_SM_locationX+'&my='+_SM_locationY+'&z='+dp+'&tp=b&mode=zoom&json=1&jfn=_SM_handleJsonResponseZoom&jid=SMZoomSpec'+cW;
}
else
{
url='/ajaxzp.srf?x='+_SM_locationX+'&y='+_SM_locationY+'&z='+dp+'&tp=b&mode=zoom&json=1&jfn=_SM_handleJsonResponseZoom&jid=SMZoomSpec'+cW;
}
cs(url,'SMZoomSpec');
}
else
{
if(_SM_mercMode)
{
url='/ajaxzp.srf?mx='+_SM_locationX+'&my='+_SM_locationY+'&z='+dp+'&tp=b&mode=zoom'+cW;
}
else
{
url='/ajaxzp.srf?x='+_SM_locationX+'&y='+_SM_locationY+'&z='+dp+'&tp=b&mode=zoom'+cW;
}
cn(url,2);
}
}
}
}
var dq=false;
function cf(){
if(bE.readyState==4)
{
if(bE.status==200)
{
dr(bE.responseText);
}
}
}
function ce(){
dr(bE.responseText);
}
function _SM_ZoomToSettings(cpp,dc,imagesize,zoom,skipsize,maptype)
{
_SM_cpp=cpp;
_SM_tileSize=dc;
_SM_imageSize=imagesize;
_SM_locationZ=zoom;
_SM_skipSize=skipsize;
_SM_mapType=maptype;
var io=_SM_cpp*_SM_mapWidth;
var ch=_SM_cpp*_SM_mapHeight;
_SM_locationLX=parseInt(_SM_locationX,10)-(io/2);
_SM_locationLY=parseInt(_SM_locationY,10)-(ch/2);
_SM_locationUX=parseInt(_SM_locationX,10)+(io/2);
_SM_locationUY=parseInt(_SM_locationY,10)+(ch/2);
ds(0,0);
im(_SM_locationX,_SM_locationY);
bA=false;
}
function dr(cA){
{
if(cA.indexOf('@')!=-1)
{
var cM=cA.split('@');
_SM_cpp=cM[0];
_SM_tileSize=parseInt(cM[1],10);
_SM_imageSize=parseInt(cM[2],10);
_SM_locationZ=parseInt(cM[3],10);
_SM_skipSize=parseInt(cM[4],10);
_SM_mapType=parseInt(cM[5],10);
var io=_SM_cpp*_SM_mapWidth;
var ch=_SM_cpp*_SM_mapHeight;
_SM_locationLX=parseInt(_SM_locationX,10)-(io/2);
_SM_locationLY=parseInt(_SM_locationY,10)-(ch/2);
_SM_locationUX=parseInt(_SM_locationX,10)+(io/2);
_SM_locationUY=parseInt(_SM_locationY,10)+(ch/2);
ds(0,0);
im(_SM_locationX,_SM_locationY);
_SM_scaleImage=null;
_SM_scaleImageSize=0;
_SM_scaleText=null;
if(cM.length>=7)
{
_SM_scaleImage=cM[6];
if(cM.length>=8)
{
_SM_scaleImageSize=cM[7];
if(cM.length>=9)
{
_SM_scaleText=cM[8];
}
}
}
}
else
{
window.status=cA;
}
co();
bA=false;
var bW;
for(bW=0;bW<bT.length;bW++)
{
if(bT[bW])
{
bT[bW](_SM_locationZ);
}
}
}
}
function _SM_handleJsonResponseZoom(X)
{
if(X.cpp)_SM_cpp=X.cpp;
if(X.squaresize)_SM_tileSize=parseInt(X.squaresize,10);
if(X.imagesize)_SM_imageSize=parseInt(X.imagesize,10);
if(X.zoom)_SM_locationZ=parseInt(X.zoom,10);
if(X.skipsize)_SM_skipSize=parseInt(X.skipsize,10);
if(X.maptype)_SM_mapType=parseInt(X.maptype,10);
var io=_SM_cpp*_SM_mapWidth;
var ch=_SM_cpp*_SM_mapHeight;
_SM_locationLX=parseInt(_SM_locationX,10)-(io/2);
_SM_locationLY=parseInt(_SM_locationY,10)-(ch/2);
_SM_locationUX=parseInt(_SM_locationX,10)+(io/2);
_SM_locationUY=parseInt(_SM_locationY,10)+(ch/2);
ds(0,0);
im(_SM_locationX,_SM_locationY);
_SM_scaleImage=null;
_SM_scaleImageSize=0;
_SM_scaleText=null;
if(X.scaleimage)_SM_scaleImage=X.scaleimage;
if(X.scaleimagesize)_SM_scaleImageSize=X.scaleimagesize;
if(X.scaletext)_SM_scaleText=X.scaletext;
cu(X);
bA=false;
var bW;
for(bW=0;bW<bT.length;bW++)
{
if(bT[bW])
{
bT[bW](_SM_locationZ);
}
}
}
function dt(cB)
{
var parent=_SM_getDivm('SMap');
var cK=document.createElement("div");
var O;
cK.id=du[cB]._SM_div_name;
cK.style.position='absolute';
cK.style.left=du[cB]._SM_mapCreateA+'px';
cK.style.top=du[cB]._SM_mapCreateB+'px';
cK.style.width=du[cB]._SM_mapCreateW+'px';
cK.style.height=du[cB]._SM_mapCreateH+'px';
O='<table border="1" width="'+_SM_imageSize+'" height="'+_SM_imageSize+'"><tr align="center"><td>'+du[cB]._SM_div_name+'</td></tr></table>';
parent.appendChild(cK);
cK.innerHTML=O;
cS(du[cB]._SM_mapCreateAx,du[cB]._SM_mapCreateAy);
return cK;
}
function dv(_SM_div_name,_SM_mapCreateA,_SM_mapCreateB,_SM_mapCreateW,_SM_mapCreateH,_SM_mapCreateAx,_SM_mapCreateAy,_SM_Overlay)
{
var parent=_SM_getDivm('SMap');
var cK=document.createElement("div");
var O;
cK.id=_SM_div_name;
cK.style.position='absolute';
cK.style.left=_SM_mapCreateA+'px';
cK.style.top=_SM_mapCreateB+'px';
cK.style.width=_SM_mapCreateW+'px';
cK.style.height=_SM_mapCreateH+'px';
if(_SM_Overlay>=0)
{
O='<table border=0 cellpadding=0 cellspacing=0 width='+_SM_mapCreateW+' height='+_SM_mapCreateH+'><tr align="center"><td></td></tr></table>';
}
else
{
O='<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(cK);
cK.innerHTML=O;
cS(_SM_mapCreateAx,_SM_mapCreateAy,_SM_Overlay);
return cK;
}
var dw=new Array();
var ir=0;
function ds(is,dz)
{
dw[dw.length]={_SM_cdx:is,_SM_cdy:dz};
if(ir==0)
{
ir=setTimeout(dA,50);
}
}
function dA()
{
var D;
var dB=0;
var dC=0;
var dD=dw.length;
for(D=0;D<dD;D++)
{
dB+=dw[D]._SM_cdx;
dC+=dw[D]._SM_cdy;
}
dw.splice(0,dD);
dE(dB,dC);
ir=0;
}
function dE(dB,dC)
{
var dF=new Date,dG;
_SM_PfnIconDisplayed=false;
var dH=_SM_locationLX;
var dI=_SM_locationLY;
var dJ=_SM_locationUX;
var dK=_SM_locationUY;
var dL=dB*_SM_cpp;
var dM=dC*_SM_cpp;
var D;
_SM_locationX-=dL;
_SM_locationLX-=dL;
_SM_locationUX-=dL;
_SM_locationY+=dM;
_SM_locationLY+=dM;
_SM_locationUY+=dM;
if(_SM_ClipLocation)
{
if(_SM_locationX<_SM_ClipLocationLX||
_SM_locationY<_SM_ClipLocationLY||
_SM_locationX>_SM_ClipLocationUX||
_SM_locationY>_SM_ClipLocationUY)
{
if(_SM_locationX<_SM_ClipLocationLX)
{
_SM_locationX=_SM_ClipLocationLX;
}
else if(_SM_locationX>_SM_ClipLocationUX)
{
_SM_locationX=_SM_ClipLocationUX;
}
if(_SM_locationY<_SM_ClipLocationLY)
{
_SM_locationY=_SM_ClipLocationLY;
}
else if(_SM_locationY>_SM_ClipLocationUY)
{
_SM_locationY=_SM_ClipLocationUY;
}
var dN=(_SM_locationUX-_SM_locationLX)/2.0;
var dO=(_SM_locationUY-_SM_locationLY)/2.0;
_SM_locationLX=_SM_locationX-dN;
_SM_locationUX=_SM_locationX+dN;
_SM_locationLY=_SM_locationY-dN;
_SM_locationUY=_SM_locationY+dN;
}
}
var dD=_SM_mapVis.length;
if(dD>0)
{
for(D=0;D<dD;D++)
{
if(_SM_mapVis[D]._SM_mapFixed==0)
{
var hX=_SM_mapVis[D]._SM_adiv;
if(!hX)
{
hX=_SM_getDivm(_SM_mapVis[D]._SM_div_name);
}
if(hX)
{
hX.style.visibility='hidden';
}
}
}
_SM_mapVis.splice(0,dD);
}
var dP=_SM_locationLX;
var dQ=_SM_locationLY;
var dR=_SM_locationUX;
var dS=_SM_locationUY;
if(dP<0)
{
dP=dP+Math.abs(dP%_SM_tileSize)-_SM_tileSize;
}
else
{
dP=dP-Math.abs(dP%_SM_tileSize);
}
if(dR<0)
{
dR=dR+Math.abs(dR%_SM_tileSize);
}
else
{
dR=dR-Math.abs(dR%_SM_tileSize)+_SM_tileSize;
}
if(dQ<0)
{
dQ=dQ+Math.abs(dQ%_SM_tileSize)-_SM_tileSize;
}
else
{
dQ=dQ-Math.abs(dQ%_SM_tileSize);
}
if(dS<0)
{
dS=dS+Math.abs(dS%_SM_tileSize)+_SM_tileSize;
}
else
{
dS=dS-Math.abs(dS%_SM_tileSize)+_SM_tileSize;
}
var dT=(_SM_tileSize/2);
dP+=dT;
dQ+=dT;
var dU=parseInt(_SM_imageSize);
var dV;
var dW;
for(dV=dP;dV<=dR;dV+=_SM_tileSize)
{
for(dW=dQ;dW<=dS;dW+=_SM_tileSize)
{
var dX=_SM_locationZ+'_'+parseInt(dV,10)+'_'+parseInt(dW,10);
var dY=_SM_getDivm(dX);
var dZ=((dV-dT)-_SM_locationLX)/_SM_cpp;
var ea=((dW-dT)-_SM_locationLY)/_SM_cpp;
ea=_SM_mapHeight-dU-ea;
if(dY)
{
if(parseInt(dY.style.width,10)==dU&&parseInt(dY.style.height,10)==dU)
{
var hX=dY;
if(hX)
{
hX.style.left=parseInt(dZ,10)+'px';
hX.style.top=parseInt(ea,10)+'px';
hX.style.visibility='visible';
}
_SM_mapVis[_SM_mapVis.length]={_SM_div_name:dY._SM_div_name,_SM_mapVis:1,_SM_mapFixed:'0',_SM_adiv:hX};
}
else
{
var parent=_SM_getDivm('SMap');
parent.removeChild(dY)
if(!dq)
{
var hX=dv(dX,parseInt(dZ,10),parseInt(ea,10),dU,dU,parseInt(dV,10),parseInt(dW,10),-1);
if(hX)
{
_SM_mapVis[_SM_mapVis.length]={_SM_div_name:dX,_SM_mapVis:1,_SM_mapFixed:'0',_SM_adiv:hX};
}
}
}
}
else
{
if(!dq)
{
var hX=dv(dX,parseInt(dZ,10),parseInt(ea,10),dU,dU,parseInt(dV,10),parseInt(dW,10),-1);
if(hX)
{
_SM_mapVis[_SM_mapVis.length]={_SM_div_name:dX,_SM_mapVis:1,_SM_mapFixed:'0',_SM_adiv:hX};
}
}
}
}
}
if(_SM_mapOverlay.length>0)
{
eb(dB,dC);
}
if(_SM_DIWM)
{
ec(false);
}
else
{
ec(bB);
}
cQ();
if(bN.length>0)
{
var bW;
for(bW=0;bW<bN.length;bW++)
{
if(bN[bW])
{
bN[bW](dH,dI,dJ,dK,_SM_locationLX,_SM_locationLY,_SM_locationUX,_SM_locationUY,_SM_locationZ);
}
}
}
}
function eb(dB,dC)
{
if(_SM_mapOverlay.length>0)
{
var cB=0;
for(cB=0;cB<_SM_mapOverlay.length;cB++)
{
var dH=_SM_mapOverlay[cB]._SM_locationLX;
var dI=_SM_mapOverlay[cB]._SM_locationLY;
var dJ=_SM_mapOverlay[cB]._SM_locationUX;
var dK=_SM_mapOverlay[cB]._SM_locationUY;
var dL=dB*_SM_mapOverlay[cB]._SM_cpp;
var dM=dC*_SM_mapOverlay[cB]._SM_cpp;
var D;
_SM_mapOverlay[cB]._SM_locationX-=dL;
_SM_mapOverlay[cB]._SM_locationLX-=dL;
_SM_mapOverlay[cB]._SM_locationUX-=dL;
_SM_mapOverlay[cB]._SM_locationY+=dM;
_SM_mapOverlay[cB]._SM_locationLY+=dM;
_SM_mapOverlay[cB]._SM_locationUY+=dM;
if(_SM_ClipLocation)
{
if(_SM_mapOverlay[cB]._SM_locationX<_SM_ClipLocationLX||
_SM_mapOverlay[cB]._SM_locationY<_SM_ClipLocationLY||
_SM_mapOverlay[cB]._SM_locationX>_SM_ClipLocationUX||
_SM_mapOverlay[cB]._SM_locationY>_SM_ClipLocationUY)
{
if(_SM_mapOverlay[cB]._SM_locationX<_SM_ClipLocationLX)
{
_SM_mapOverlay[cB]._SM_locationX=_SM_ClipLocationLX;
}
else if(_SM_mapOverlay[cB]._SM_locationX>_SM_ClipLocationUX)
{
_SM_mapOverlay[cB]._SM_locationX=_SM_ClipLocationUX;
}
if(_SM_mapOverlay[cB]._SM_locationY<_SM_ClipLocationLY)
{
_SM_mapOverlay[cB]._SM_locationY=_SM_ClipLocationLY;
}
else if(_SM_mapOverlay[cB]._SM_locationY>_SM_ClipLocationUY)
{
_SM_mapOverlay[cB]._SM_locationY=_SM_ClipLocationUY;
}
var dN=(_SM_mapOverlay[cB]._SM_locationUX-_SM_mapOverlay[cB]._SM_locationLX)/2.0;
var dO=(_SM_mapOverlay[cB]._SM_locationUY-_SM_mapOverlay[cB]._SM_locationLY)/2.0;
_SM_mapOverlay[cB]._SM_locationLX=_SM_mapOverlay[cB]._SM_locationX-dN;
_SM_mapOverlay[cB]._SM_locationUX=_SM_mapOverlay[cB]._SM_locationX+dN;
_SM_mapOverlay[cB]._SM_locationLY=_SM_mapOverlay[cB]._SM_locationY-dN;
_SM_mapOverlay[cB]._SM_locationUY=_SM_mapOverlay[cB]._SM_locationY+dN;
}
}
var dD=_SM_mapOverlay[cB]._SM_mapVis.length;
if(dD>0)
{
for(D=0;D<dD;D++)
{
if(_SM_mapOverlay[cB]._SM_mapVis[D]._SM_mapFixed==0)
{
var hX=_SM_mapOverlay[cB]._SM_mapVis[D]._SM_adiv;
if(!hX)
{
hX=_SM_getDivm(_SM_mapOverlay[cB]._SM_mapVis[D]._SM_div_name);
_SM_mapOverlay[cB]._SM_mapVis[D]._SM_adiv=R;
}
if(hX)
{
hX.style.visibility='hidden';
}
}
}
_SM_mapOverlay[cB]._SM_mapVis.splice(0,dD);
}
var dP=_SM_mapOverlay[cB]._SM_locationLX;
var dQ=_SM_mapOverlay[cB]._SM_locationLY;
var dR=_SM_mapOverlay[cB]._SM_locationUX;
var dS=_SM_mapOverlay[cB]._SM_locationUY;
var bp=_SM_mapOverlay[cB]._SM_offsetX;
var bq=_SM_mapOverlay[cB]._SM_offsetY;
dP=dP-((dP-_SM_mapOverlay[cB]._SM_limitLx)%_SM_mapOverlay[cB]._SM_tileSize)-_SM_mapOverlay[cB]._SM_tileSize;
dQ=dQ-((dQ-_SM_mapOverlay[cB]._SM_limitLy)%_SM_mapOverlay[cB]._SM_tileSize)-_SM_mapOverlay[cB]._SM_tileSize;
dR=dR-((dR-_SM_mapOverlay[cB]._SM_limitLx)%_SM_mapOverlay[cB]._SM_tileSize)+_SM_mapOverlay[cB]._SM_tileSize;
dS=dS-((dS-_SM_mapOverlay[cB]._SM_limitLy)%_SM_mapOverlay[cB]._SM_tileSize)+_SM_mapOverlay[cB]._SM_tileSize;
var dU=parseInt(_SM_mapOverlay[cB]._SM_imageSize,10);
var dT=(_SM_mapOverlay[cB]._SM_tileSize/2);
dP+=dT;
dQ+=dT;
var dV;
var dW;
var ed=(dR-dP)/_SM_mapOverlay[cB]._SM_tileSize;
var ee=(dS-dQ)/_SM_mapOverlay[cB]._SM_tileSize;
for(dV=dP;dV<=dR;dV+=_SM_mapOverlay[cB]._SM_tileSize)
{
for(dW=dQ;dW<=dS;dW+=_SM_mapOverlay[cB]._SM_tileSize)
{
var dX='O'+cB+'_'+_SM_locationZ+'_'+parseInt(dV,10)+'_'+parseInt(dW,10);
var dY=_SM_getDivm(dX);
var dZ=((dV-dT)-_SM_mapOverlay[cB]._SM_locationLX)/_SM_mapOverlay[cB]._SM_cpp;
var ea=((dW-dT)-_SM_mapOverlay[cB]._SM_locationLY)/_SM_mapOverlay[cB]._SM_cpp;
ea=_SM_mapHeight-_SM_mapOverlay[cB]._SM_imageSize-ea;
if(dY)
{
if(parseInt(dY.style.width,10)==dU&&parseInt(dY.style.height,10)==dU)
{
var hX=dY;
if(hX)
{
hX.style.left=parseInt(dZ,10)+'px';
hX.style.top=parseInt(ea,10)+'px';
hX.style.visibility='visible';
}
_SM_mapOverlay[cB]._SM_mapVis[_SM_mapOverlay[cB]._SM_mapVis.length]={_SM_div_name:dY._SM_div_name,_SM_mapVis:1,_SM_mapFixed:'0',_SM_adiv:hX};
}
else
{
var parent=_SM_getDivm('SMap');
parent.removeChild(dY)
if(!dq)
{
var hX=dv(dX,parseInt(dZ,10),parseInt(ea,10),dU,dU,parseInt(dV,10),parseInt(dW,10),cB);
if(hX)
{
hX.style.zIndex=9;
hX.style.visibility='visible';
_SM_mapOverlay[cB]._SM_mapVis[_SM_mapOverlay[cB]._SM_mapVis.length]={_SM_div_name:dX,_SM_mapVis:1,_SM_mapFixed:'0',_SM_adiv:hX};
_SM_mapOverlay[cB]._SM_mapTile[_SM_mapOverlay[cB]._SM_mapTile.length]={_SM_div_name:dY._SM_div_name,_SM_mapVis:1,_SM_mapFixed:'0',_SM_adiv:hX};
}
}
}
}
else
{
if(!dq)
{
var hX=dv(dX,parseInt(dZ,10),parseInt(ea,10),dU,dU,parseInt(dV,10),parseInt(dW,10),cB);
if(hX)
{
hX.style.zIndex=9;
hX.style.visibility='visible';
_SM_mapOverlay[cB]._SM_mapVis[_SM_mapOverlay[cB]._SM_mapVis.length]={_SM_div_name:dX,_SM_mapVis:1,_SM_mapFixed:'0',_SM_adiv:hX};
_SM_mapOverlay[cB]._SM_mapTile[_SM_mapOverlay[cB]._SM_mapTile.length]={_SM_div_name:dX,_SM_mapVis:1,_SM_mapFixed:'0',_SM_adiv:hX};
}
}
}
}
}
}
}
}
function ec(ef)
{
var dT=(_SM_tileSize/2);
var eg=false;
if(typeof ef!='undefined'&&ef)
{
eg=true;
}
for(var D=0;D<_SM_mapFixed.length;D++)
{
if(_SM_mapFixed[D]._SM_mapCreateFixed==0)
{
var eh=false;
if(!eg||(typeof _SM_mapFixed[D]._SM_isArrow!='undefined'&&_SM_mapFixed[D]._SM_isArrow))
{
eh=true;
if(typeof _SM_mapFixed[D]._SM_minzoom!='undefined'&&_SM_mapFixed[D]._SM_minzoom!=null&&parseInt(_SM_mapFixed[D]._SM_minzoom,10)>0)
{
if(parseInt(_SM_mapFixed[D]._SM_minzoom,10)>_SM_locationZ)eh=false;
}
if(eh)
{
if(typeof _SM_mapFixed[D]._SM_maxzoom!='undefined'&&_SM_mapFixed[D]._SM_maxzoom!=null&&parseInt(_SM_mapFixed[D]._SM_maxzoom,10)>0)
{
if(parseInt(_SM_mapFixed[D]._SM_maxzoom,10)<_SM_locationZ)eh=false;
}
}
if(eh)
{
if(_SM_mapFixed[D]._SM_layer&&_SM_mapFixed[D]._SM_layer>=0&&_SM_al.length>_SM_mapFixed[D]._SM_layer)
{
if(_SM_al[_SM_mapFixed[D]._SM_layer]!=undefined)
{
eh=_SM_al[_SM_mapFixed[D]._SM_layer];
}
}
}
if(eh)
{
var ei=parseInt(_SM_mapFixed[D]._SM_mapCreateX,10);
var ej=parseInt(_SM_mapFixed[D]._SM_mapCreateY,10);
if(ei!=0||ej!=0)
{
if(ei>=_SM_locationLX-dT&&ei<=_SM_locationUX+dT&&ej>=_SM_locationLY-dT&&ej<=_SM_locationUY+dT)
{
var dZ=(ei-_SM_locationLX)/_SM_cpp;
var ea=(ej-_SM_locationLY)/_SM_cpp;
if(typeof _SM_mapFixed[D]._SM_iconplacement!='undefined')
{
var ek=parseInt(_SM_mapFixed[D]._SM_iconplacement,10);
if(ek>=1&&ek<=9)
{
switch(ek)
{
case 1:
ea=_SM_mapHeight-ea;
break;
case 2:
dZ-=(parseInt(_SM_mapFixed[D]._SM_mapCreateW,10)/2);
ea=_SM_mapHeight-ea;
break;
case 3:
dZ-=parseInt(_SM_mapFixed[D]._SM_mapCreateW,10);
ea=_SM_mapHeight-ea;
break;
case 4:
ea=_SM_mapHeight-(parseInt(_SM_mapFixed[D]._SM_mapCreateH,10)/2)-ea;
break;
case 5:
ea=_SM_mapHeight-(parseInt(_SM_mapFixed[D]._SM_mapCreateH,10)/2)-ea;
dZ-=(parseInt(_SM_mapFixed[D]._SM_mapCreateW,10)/2);
break;
case 6:
ea=_SM_mapHeight-(parseInt(_SM_mapFixed[D]._SM_mapCreateH,10)/2)-ea;
dZ-=parseInt(_SM_mapFixed[D]._SM_mapCreateW,10);
break;
case 7:
ea=_SM_mapHeight-parseInt(_SM_mapFixed[D]._SM_mapCreateH,10)-ea;
break;
case 8:
ea=_SM_mapHeight-parseInt(_SM_mapFixed[D]._SM_mapCreateH,10)-ea;
dZ-=(parseInt(_SM_mapFixed[D]._SM_mapCreateW,10)/2);
break;
case 9:
ea=_SM_mapHeight-parseInt(_SM_mapFixed[D]._SM_mapCreateH,10)-ea;
dZ-=parseInt(_SM_mapFixed[D]._SM_mapCreateW,10);
break;
}
}
else
{
ea=_SM_mapHeight-parseInt(_SM_mapFixed[D]._SM_mapCreateH,10)-ea;
}
}
else
{
ea=_SM_mapHeight-parseInt(_SM_mapFixed[D]._SM_mapCreateH,10)-ea;
}
var hX=_SM_mapFixed[D]._SM_adiv;
if(!hX)
{
hX=_SM_getDivm(_SM_mapFixed[D]._SM_div_name);
}
if(hX)
{
hX.style.left=parseInt(dZ,10)+'px';
hX.style.top=parseInt(ea,10)+'px';
if(hX.style.visibility!='visible')
{
hX.style.visibility='visible';
if(_SM_mapFixed[D]._SM_IsPfn&&_SM_mapFixed[D]._SM_IsPfn==1)
{
_SM_SetTooltip(hX,_SM_mapFixed[D]._SM_description,_SM_mapFixed[D]._SM_title,_SM_mapFixed[D]._SM_style,_SM_mapFixed[D]._SM_divwidth,_SM_mapFixed[D]._SM_divheight,_SM_mapFixed[D]._SM_contenturl);
_SM_mapFixed[D]._SM_TooltipSet=true;
}
}
}
if(_SM_mapFixed[D]._SM_IsPfn&&_SM_mapFixed[D]._SM_IsPfn==1)
{
_SM_PfnIconDisplayed=true;
}
}
else
{
eh=false;
}
}
}
}
if(!eh)
{
var hX=_SM_mapFixed[D]._SM_adiv;
if(!hX)
{
hX=_SM_getDivm(_SM_mapFixed[D]._SM_div_name);
}
if(hX)
{
if(hX.style.visibility=='visible')
{
if(_SM_mapFixed[D]._SM_IsPfn&&_SM_mapFixed[D]._SM_IsPfn==1&&_SM_mapFixed[D]._SM_TooltipSet==true)
{
_SM_ClearTooltip(hX);
_SM_mapFixed[D]._SM_TooltipSet=false;
}
}
hX.style.visibility='hidden';
}
if(_SM_mapFixed[D]._SM_IsPfn&&_SM_mapFixed[D]._SM_IsPfn==1)
{
var ei=parseInt(_SM_mapFixed[D]._SM_mapCreateX,10);
var ej=parseInt(_SM_mapFixed[D]._SM_mapCreateY,10);
if(ei!=0||ej!=0)
{
if(ei>=_SM_locationLX-dT&&ei<=_SM_locationUX+dT&&ej>=_SM_locationLY-dT&&ej<=_SM_locationUY+dT)
{
_SM_PfnIconDisplayed=true;
}
}
}
}
}
}
}
function el(hZ,url)
{
var dB;
var dC;
var dL;
var dM;
var em=1;
hZ=(hZ)?hZ:event;
if(bB)
{
dB=0;
dC=0;
if(hZ.pageX)
{
dB=(hZ.pageX-bC);
dC=(hZ.pageY-bD);
}
else if(hZ.clientX)
{
dB=(hZ.clientX-bC);
dC=(hZ.clientY-bD);
}
if(_SM_mercMode)
{
var en=20037508;
var eo=20037508;
var ep=-20037508;
var eq=-20037508;
var dL=dB*_SM_cpp;
var dM=dC*_SM_cpp;
dL=0-dL;
if(dL>0)
{
if(_SM_locationUX+dL>en)
{
var er=parseInt((((_SM_locationUX+dL)-en)/_SM_cpp)+0.5,10);
if(er>dB)
{
dB=0;
}
else
{
dB-=er;
}
}
}
else if(dL<0)
{
if(_SM_locationLX-dL<ep)
{
var er=parseInt((((_SM_locationLX-dL)-ep)/_SM_cpp)+0.5,10);
if(er>dB)
{
dB=0;
}
else
{
dB-=er;
}
}
}
}
ds(dB,dC);
}
{
if(hZ.pageX)
{
bC=hZ.pageX;
bD=hZ.pageY;
}
else if(hZ.clientX)
{
bC=hZ.clientX;
bD=hZ.clientY;
}
}
hZ.cancelBubble=true;
return false;
}
function es(hZ)
{
hZ=(hZ)?hZ:event;
var et=true;
if(bS.length>0)
{
var parent=_SM_getDivm('SMap');
if(parent)
{
var coords=_SM_getPageEventCoords(hZ);
var eu=_SM_getElementPosition('SMap');
var ev=coords.left-eu.left;
var ew=coords.top-eu.top;
var ex={_SM_pixx:ev,_SM_pixyy:ew,_SM_mapx:_SM_locationLX+(ev*_SM_cpp),_SM_mapy:_SM_locationUY-(ew*_SM_cpp)};
var ey=false;
if(bS.length>0)
{
var bW;
for(bW=bS.length-1;bW>=0&&!ey;bW--)
{
if(bS[bW])
{
et=bS[bW](ex);
ey=true;
}
}
}
}
}
if(et)
{
bB=true;
}
_SM_HideCallout('DivClickDownEvt2');
return false;
}
function ez(hZ){
bB=false;
if(!_SM_DIWM)ec(false);
if(bO.length>0)
{
var bW;
for(bW=0;bW<bO.length;bW++)
{
if(bO[bW])
{
bO[bW](_SM_locationLX,_SM_locationLY,_SM_locationUX,_SM_locationUY,_SM_locationZ);
}
}
}
return false;
}
function _SM_Zoom(eA){
if(eA==120&&bG)eA=118;
bB=false;
cQ();
iq(eA);
_SM_HideCallout('Zoom');
return false;
}
function _SM_ZoomIn(){
bB=false;
cQ();
dn('in');
_SM_HideCallout('ZoomIn');
return false;
}
function _SM_ZoomOut(){
bB=false;
cQ();
dn('out');
_SM_HideCallout('ZoomOut');
return false;
}
function eB(){
var parent=_SM_getDivm('SMap');
if(parent)
{
if(document.g){
parent.captureEvents(eC.eD|eC.eE|eC.eF);
return;
}
parent.onmousedown=es;
parent.onmousemove=el;
parent.onmouseup=ez;
}
return;
}
function eG(url)
{
var ey=false;
if(bQ.length>0)
{
var bW;
for(bW=0;bW<bQ.length;bW++)
{
if(bQ[bW])
{
bQ[bW](url);
ey=true;
}
}
}
if(!ey)
{
if(url)
{
window.open(url);
}
}
return;
}
function eH()
{
var parent=_SM_getDivm('SMap');
if(parent)
{
var eI;
eI=_SM_getDivm('Zoom_In');
if(eI)
{
parent.removeChild(eI);
}
eI=_SM_getDivm('Zoom_Out');
if(eI)
{
parent.removeChild(eI);
}
eI=_SM_getDivm('Zoom_Panel');
if(eI)
{
parent.removeChild(eI);
}
{
var cK=document.createElement("div");
cK.id="Zoom_Panel";
cK.style.position='absolute';
cK.style.left=(_SM_mapWidth-40)+'px';
cK.style.top=(_SM_mapHeight-27)+'px';
cK.style.width='40px';
cK.style.height='27px';
cK.style.background='white';
cK.style.zIndex=99;
cK.style.cursor='default';
parent.appendChild(cK);
}
{
var cK=document.createElement("div");
cK.id="Zoom_In";
cK.style.position='absolute';
cK.style.left=(_SM_mapWidth-35)+'px';
cK.style.top=(_SM_mapHeight-25)+'px';
cK.style.width='17px';
cK.style.height='25px';
var O='<IMG SRC="'+_SM_urlBase+'/dc/zoomin.gif" BORDER="0" HEIGHT="25" WIDTH="17" onClick="_SM_ZoomIn()">';
parent.appendChild(cK);
cK.innerHTML=O;
cK.style.zIndex=100;
cK.style.cursor='default';
}
{
var cK=document.createElement("div");
cK.id="Zoom_Out";
cK.style.position='absolute';
cK.style.left=(_SM_mapWidth-17)+'px';
cK.style.top=(_SM_mapHeight-25)+'px';
cK.style.width='17px';
cK.style.height='25px';
var O='<IMG SRC="'+_SM_urlBase+'/dc/zoomout.gif" BORDER="0" HEIGHT="25" WIDTH="17" onClick="_SM_ZoomOut()">';
parent.appendChild(cK);
cK.innerHTML=O;
cK.style.zIndex=100;
cK.style.cursor='default';
}
}
}
function eJ(D)
{
var O;
if(_SM_mapFixed[D]._SM_mapCreateUrl)
{
O='<IMG SRC="'+_SM_urlBase+_SM_mapFixed[D]._SM_mapCreateF+'" BORDER="0" HEIGHT="'+_SM_mapFixed[D]._SM_mapCreateH+'" WIDTH="'+_SM_mapFixed[D]._SM_mapCreateW+'" onclick="clickedIcon('+"'"+_SM_mapFixed[D]._SM_mapCreateUrl+"'"+')" >';
}
else
{
O='<IMG SRC="'+_SM_urlBase+_SM_mapFixed[D]._SM_mapCreateF+'" BORDER="0" HEIGHT="'+_SM_mapFixed[D]._SM_mapCreateH+'" WIDTH="'+_SM_mapFixed[D]._SM_mapCreateW+'">';
}
return O;
}
function _SM_NextIconBuildCallback(cB,eK)
{
var ey=false;
var O='';
if(bR.length>0&&eK>0)
{
var bW;
for(bW=min(bR.length-1,eK-1);bW>=0&&!ey;bW--)
{
if(bR[bW])
{
O=bR[bW](D,bW);
ey=true;
}
}
}
if(!ey)
{
O=eJ(cB);
}
return O;
}
function _SM_im()
{
var parent=_SM_getDivm('SMap');
if(parent)
{
if(_SM_al[0]==undefined)_SM_sal();
eB();
var D;
for(D=0;D<_SM_mapFixed.length;D++)
{
var cK=document.createElement("div");
var O='';
cK.id=_SM_mapFixed[D]._SM_div_name;
var eL='position:absolute;left:'+_SM_mapFixed[D]._SM_mapCreateA+'px;top:'+_SM_mapFixed[D]._SM_mapCreateB+'px;width:'+_SM_mapFixed[D]._SM_mapCreateW+'px;height:'+_SM_mapFixed[D]._SM_mapCreateH+'px';
cK.style.position='absolute';
cK.style.left=_SM_mapFixed[D]._SM_mapCreateA+'px';
cK.style.top=_SM_mapFixed[D]._SM_mapCreateB+'px';
cK.style.width=_SM_mapFixed[D]._SM_mapCreateW+'px';
cK.style.height=_SM_mapFixed[D]._SM_mapCreateH+'px';
var ey=false;
if(bR.length>0)
{
var bW;
for(bW=bR.length-1;bW>=0&&!ey;bW--)
{
if(bR[bW])
{
O=bR[bW](D,bW);
ey=true;
}
}
}
if(!ey)
{
O=eJ(D);
}
parent.appendChild(cK);
cK.innerHTML=O;
if(_SM_mapFixed[D]._SM_mapCreateFixed==1)
{
cK.style.zIndex=100;
}
else
{
cK.style.zIndex=99;
}
}
ds(0,0);
}
}
function _SM_EnableMouseZoom(eM)
{
if(eM)
{
var parent=_SM_getDivm('SMap');
if(parent)
{
parent.onmousewheel=_SM_ZoomWheel;
if(parent.addEventListener)parent.addEventListener('DOMMouseScroll',_SM_ZoomWheel,false);
}
}
else
{
var parent=_SM_getDivm('SMap');
if(parent)
{
parent.onmousewheel=null;
if(parent.addEventListener)parent.removeEventListener('DOMMouseScroll',_SM_ZoomWheel,false);
}
}
}
function _SM_Redraw()
{
ds(0,0);
}
function _SM_MapDraw(eN,eO)
{
ds(eN,eO);
}
function _SM_ZoomWheel(hZ)
{
hZ=(hZ)?hZ:event;
{
var eP=0;
if(hZ.wheelDelta){
eP=hZ.wheelDelta/120;
}else if(hZ.detail){
eP=-hZ.detail/3;
}
if(eP>0)
{
{
_SM_ZoomIn();
}
}
else if(eP<0)
{
{
_SM_ZoomOut();
}
}
}
hZ.cancelBubble=true;
hZ.returnValue=false;
if(hZ.stopPropagation)
{
hZ.stopPropagation();
}
if(hZ.preventDefault)
{
hZ.preventDefault();
}
}
function _SM_ShowLayer(eQ,eR)
{
if(eQ)
{
var eS=parseInt(eQ,10);
if(eS>=0)
{
if(eR&&eR==1)
{
_SM_al[eS]=true;
}
else
{
_SM_al[eS]=false;
}
_SM_Redraw();
}
}
}
function _SM_ToggleLayer(eQ)
{
if(eQ>=0&&eQ>=_SM_al.length)
{
_SM_al[eQ]=false;
_SM_sal();
}
else if(eQ>=0&&eQ<_SM_al.length)
{
if(typeof _SM_al[eQ]=='undefined')
{
_SM_al[eQ]=false;
}
else
{
_SM_al[eQ]=!_SM_al[eQ];
}
}
_SM_Redraw();
}
function _SM_DisplayIconsWhenMoving(display)
{
if(typeof display!='undefined')
{
_SM_DIWM=display;
}
}
var _SM_dragActive=true;
var eT=0;
var eU=1;
var _SM_srfFile='map.srf';
var _SM_UpdateLinkPositionCallback=null;
var _SM_arrowx=0;
var _SM_arrowy=0;
function _SM_sf(){document.eV.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 eW="width="+width+",height="+height+",status,resizeable,left="+left+",top="+top+",screenX="+left+",screenY="+top;
window.open("o2.htm","o2sm",eW);
}
function MM_preloadImages(){
var eX=document;if(eX.images){if(!eX.MM_p)eX.MM_p=new Array();
var D,eY=eX.MM_p.length,eZ=MM_preloadImages.arguments;for(D=0;D<eZ.length;D++)
if(eZ[D].indexOf("#")!=0){eX.MM_p[eY]=new Image;eX.MM_p[eY++].src=eZ[D];}}
}
function MM_swapImgRestore(){
var D,eN,eZ=document.MM_sr;for(D=0;eZ&&D<eZ.length&&(eN=eZ[D])&&eN.fa;D++)eN.src=eN.fa;
}
function MM_findObj(fb,eX){
var fc,D,eN;if(!eX)eX=document;if((fc=fb.indexOf("?"))>0&&parent.frames.length){
eX=parent.frames[fb.substring(fc+1)].document;fb=fb.substring(0,fc);}
if(!(eN=eX[fb])&&eX.all)eN=eX.all[fb];for(D=0;!eN&&D<eX.forms.length;D++)eN=eX.forms[D][fb];
for(D=0;!eN&&eX.g&&D<eX.g.length;D++)eN=MM_findObj(fb,eX.g[D].document);
if(!eN&&eX.getElementById)eN=eX.getElementById(fb);return eN;
}
function MM_swapImage(){
var D,eY=0,eN,eZ=MM_swapImage.arguments;document.MM_sr=new Array;for(D=0;D<(eZ.length-2);D+=3)
if((eN=MM_findObj(eZ[D]))!=null){document.MM_sr[eY++]=eN;if(!eN.fa)eN.fa=eN.src;eN.src=eZ[D+2];}
}
var _SM_AZ=new Array();
function fd()
{
var parent;
parent=_SM_getDivm('SM_AD_top_728x90');
if(parent)
{
cF(2,'SM_AD_top_728x90',728,90);
}
parent=_SM_getDivm('SM_AD_top_515x120');
if(parent)
{
cF(5,'SM_AD_top_515x120',515,120);
}
parent=_SM_getDivm('SM_AD_top_120x60T');
if(parent)
{
cF(19,'SM_AD_top_120x60T',120,60);
}
parent=_SM_getDivm('SM_AD_top_120x60B');
if(parent)
{
cF(22,'SM_AD_top_120x60B',120,60);
}
parent=_SM_getDivm('SM_AD_sky_120x600T');
if(parent)
{
cF(3,'SM_AD_sky_120x600T',160,600);
}
parent=_SM_getDivm('SM_AD_sky_120x600B');
if(parent)
{
cF(4,'SM_AD_sky_120x600B',160,600);
}
parent=_SM_getDivm('SM_AD_sky_120x60');
if(parent)
{
cF(23,'SM_AD_sky_120x60',120,60);
}
parent=_SM_getDivm('SM_AD_bottom_120x60');
if(parent)
{
cF(8,'SM_AD_bottom_120x60',120,60);
}
parent=_SM_getDivm('SM_AD_bottom_234x60');
if(parent)
{
cF(24,'SM_AD_bottom_234x60',234,60);
}
parent=_SM_getDivm('SM_AD_bottom_300x250');
if(parent)
{
cF(25,'SM_AD_bottom_300x250',300,250);
}
if(_SM_AZ.length>0)
{
var D;
for(D=0;D<_SM_AZ.length;D++)
{
if(_SM_AZ[D]._SM_dname)
{
parent=_SM_getDivm(_SM_AZ[D]._SM_dname);
if(parent)
{
cF(_SM_AZ[D]._SM_zone,_SM_AZ[D]._SM_dname,_SM_AZ[D]._SM_width,_SM_AZ[D]._SM_height);
}
}
}
}
}
function _SM_SetupAd(divname,cE,width,height)
{
var fe=false;
if(_SM_AZ.length>0)
{
var D;
for(D=0;D<_SM_AZ.length&&!fe;D++)
{
if(_SM_AZ[D]._SM_dname&&_SM_AZ[D]._SM_dname==divname)
{
_SM_AZ[D]._SM_zone=cE;
_SM_AZ[D]._SM_dname=divname;
_SM_AZ[D]._SM_width=width;
_SM_AZ[D]._SM_height=height;
fe=true;
}
}
}
if(!fe)
{
_SM_AZ[_SM_AZ.length]={_SM_zone:cE,_SM_dname:divname,_SM_width:width,_SM_height:height};
}
}
function _SM_RemoveAd(divname)
{
if(_SM_AZ.length>0)
{
var D;
for(D=0;D<_SM_AZ.length;D++)
{
if(_SM_AZ[D]._SM_dname&&_SM_AZ[D]._SM_dname==divname)
{
_SM_AZ.splice(D,1);
D--;
}
}
}
}
function ff(cE,code)
{
var parent=_SM_getDivm(cE);
if(parent)
{
parent.innerHTML=code;
}
}
function _SM_TimerComplete()
{
eU=1;
}
function fg()
{
fd();
eU=0;
eT=setTimeout("_SM_TimerComplete();",6000);
}
function fh(fi)
{
if(fi.status||fi.checked)
{
_SM_dragActive=true;
}
else
{
_SM_dragActive=false;
}
}
function _SM_switchDrag2()
{
var parent;
var O;
if(_SM_dragActive)
{
_SM_dragActive=false;
parent=_SM_getDivm('drag');
if(parent)
{
parent.style.visibility='visible';
O='<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=O;
}
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)
{
O='<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=O;
}
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(fj,fk)
{
var parent=_SM_getDivm(fj);
if(parent)
{
if(fk==1)
{
parent.style.color='#00cc00';
}
else
{
parent.style.color='#000066';
}
}
}
function fl(fm)
{
var it;
var O;
var fo='';
var fp='unknown.gif';
var fq=_SM_imageSize;
var fr='';
switch(_SM_locationZ)
{
case 106:
{
it=_SM_getDivm('zoom_level_1');
if(it)
{
_SM_SetCssBImage('zoom_level_1','/assets/images/zoom/zoom_l1_active.gif');
}
it=_SM_getDivm('zoom_lvl_01');
if(it)
{
_SM_SetCssBImage('zoom_lvl_01','/assets/images/zoom/zoom_l1_active_v.gif');
}
fo='1:2500';
fr='500 meters';
if(_SM_imageSize==200)
{
fp='200_250m.gif';
}
else
{
fp='187_250m.gif';
}
}
break;
case 1:
case 2:
case 110:
{
it=_SM_getDivm('zoomButton1');
if(it)
{
O='<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>';
it.innerHTML=O;
}
it=_SM_getDivm('zoom_level_2');
if(it)
{
_SM_SetCssBImage('zoom_level_2','/assets/images/zoom/zoom_l2_active.gif');
}
it=_SM_getDivm('zoom_lvl_02');
if(it)
{
_SM_SetCssBImage('zoom_lvl_02','/assets/images/zoom/zoom_l2_active_v.gif');
}
fo='1:5000';
fr='500 meters';
if(_SM_imageSize==200)
{
fp='200_500m.gif';
}
else
{
fp='187_500m.gif';
}
}
break;
case 115:
{
it=_SM_getDivm('zoom_level_3');
if(it)
{
_SM_SetCssBImage('zoom_level_3','/assets/images/zoom/zoom_l3_active.gif');
}
it=_SM_getDivm('zoom_lvl_03');
if(it)
{
_SM_SetCssBImage('zoom_lvl_03','/assets/images/zoom/zoom_l3_active_v.gif');
}
fo='1:25000';
fr='500 meters';
fp='200_500m.gif';
}
break;
case 117:
case 118:
{
it=_SM_getDivm('zoomButton3');
if(it)
{
O='<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>';
it.innerHTML=O;
}
it=_SM_getDivm('zoom_level_4');
if(it)
{
_SM_SetCssBImage('zoom_level_4','/assets/images/zoom/zoom_l4_active.gif');
}
it=_SM_getDivm('zoom_lvl_04');
if(it)
{
_SM_SetCssBImage('zoom_lvl_04','/assets/images/zoom/zoom_l4_active_v.gif');
}
fo='1:50,000';
fr='1 kilometer';
fp='200_1km.gif';
}
break;
case 3:
case 4:
case 120:
{
it=_SM_getDivm('zoomButton3');
if(it)
{
O='<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>';
it.innerHTML=O;
}
it=_SM_getDivm('zoom_level_4');
if(it)
{
_SM_SetCssBImage('zoom_level_4','/assets/images/zoom/zoom_l4_active.gif');
}
it=_SM_getDivm('zoom_lvl_04');
if(it)
{
_SM_SetCssBImage('zoom_lvl_04','/assets/images/zoom/zoom_l4_active_v.gif');
}
fo='1:50,000';
fr='1 kilometer';
fp='200_1km.gif';
}
break;
case 126:
it=_SM_getDivm('zoom_level_5');
if(it)
{
_SM_SetCssBImage('zoom_level_5','/assets/images/zoom/zoom_l5_active.gif');
}
it=_SM_getDivm('zoom_lvl_05');
if(it)
{
_SM_SetCssBImage('zoom_lvl_05','/assets/images/zoom/zoom_l5_active_v.gif');
}
fo='1:100k';
fr='10 kilometers';
fp='250_5km.gif';
break;
case 5:
case 6:
case 130:
{
it=_SM_getDivm('zoomButton5');
if(it)
{
O='<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>';
it.innerHTML=O;
}
it=_SM_getDivm('zoom_level_6');
if(it)
{
_SM_SetCssBImage('zoom_level_6','/assets/images/zoom/zoom_l6_active.gif');
}
it=_SM_getDivm('zoom_lvl_06');
if(it)
{
_SM_SetCssBImage('zoom_lvl_06','/assets/images/zoom/zoom_l6_active_v.gif');
}
fo='1:200k';
fr='10 kilometers';
fp='250_10km.gif';
}
break;
case 7:
case 8:
case 140:
{
it=_SM_getDivm('zoomButton7');
if(it)
{
O='<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>';
it.innerHTML=O;
}
it=_SM_getDivm('zoom_level_7');
if(it)
{
_SM_SetCssBImage('zoom_level_7','/assets/images/zoom/zoom_l7_active.gif');
}
it=_SM_getDivm('zoom_lvl_07');
if(it)
{
_SM_SetCssBImage('zoom_lvl_07','/assets/images/zoom/zoom_l7_active_v.gif');
}
fo='1:500k';
fr='50 kilometers';
fp='200_50km.gif';
}
break;
case 9:
case 10:
case 150:
{
it=_SM_getDivm('zoomButton9');
if(it)
{
O='<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>';
it.innerHTML=O;
}
it=_SM_getDivm('zoom_level_8');
if(it)
{
_SM_SetCssBImage('zoom_level_8','/assets/images/zoom/zoom_l8_active.gif');
}
it=_SM_getDivm('zoom_lvl_08');
if(it)
{
_SM_SetCssBImage('zoom_lvl_08','/assets/images/zoom/zoom_l8_active_v.gif');
}
fo='1:1m';
fr='100 kilometers';
fp='200_100km.gif';
}
break;
}
it=_SM_getDivm('controls_right_zoom_scale');
if(it)
{
O=fo;
it.innerHTML=O;
}
it=_SM_getDivm('panel_561_scale');
if(it)
{
var fs=fq+'px';
it.style.width=fs;
it.title='Each grid square is '+fr;
_SM_SetCssBImage('panel_561_scale','/assets/images/scales/'+fp);
}
if(_SM_locationZ!=106)
{
it=_SM_getDivm('zoom_level_1');
if(it)
{
_SM_SetCssBImage('zoom_level_1','/assets/images/zoom/zoom_l1_off.gif');
}
it=_SM_getDivm('zoom_lvl_01');
if(it)
{
_SM_SetCssBImage('zoom_lvl_01','/assets/images/zoom/zoom_l1_off_v.gif');
}
}
if(_SM_locationZ!=1&&_SM_locationZ!=110)
{
it=_SM_getDivm('zoomButton1');
if(it)
{
O='<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>';
it.innerHTML=O;
}
it=_SM_getDivm('zoom_level_2');
if(it)
{
_SM_SetCssBImage('zoom_level_2','/assets/images/zoom/zoom_l2_off.gif');
}
it=_SM_getDivm('zoom_lvl_02');
if(it)
{
_SM_SetCssBImage('zoom_lvl_02','/assets/images/zoom/zoom_l2_off_v.gif');
}
}
if(_SM_locationZ!=115)
{
it=_SM_getDivm('zoom_level_3');
if(it)
{
_SM_SetCssBImage('zoom_level_3','/assets/images/zoom/zoom_l3_off.gif');
}
it=_SM_getDivm('zoom_lvl_03');
if(it)
{
_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)
{
it=_SM_getDivm('zoomButton3');
if(it)
{
O='<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>';
it.innerHTML=O;
}
it=_SM_getDivm('zoom_level_4');
if(it)
{
_SM_SetCssBImage('zoom_level_4','/assets/images/zoom/zoom_l4_off.gif');
}
it=_SM_getDivm('zoom_lvl_04');
if(it)
{
_SM_SetCssBImage('zoom_lvl_04','/assets/images/zoom/zoom_l4_off_v.gif');
}
}
if(_SM_locationZ!=126)
{
it=_SM_getDivm('zoom_level_5');
if(it)
{
_SM_SetCssBImage('zoom_level_5','/assets/images/zoom/zoom_l5_off.gif');
}
it=_SM_getDivm('zoom_lvl_05');
if(it)
{
_SM_SetCssBImage('zoom_lvl_05','/assets/images/zoom/zoom_l5_off_v.gif');
}
}
if(_SM_locationZ!=5&&_SM_locationZ!=130)
{
it=_SM_getDivm('zoomButton5');
if(it)
{
O='<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>';
it.innerHTML=O;
}
it=_SM_getDivm('zoom_level_6');
if(it)
{
_SM_SetCssBImage('zoom_level_6','/assets/images/zoom/zoom_l6_off.gif');
}
it=_SM_getDivm('zoom_lvl_06');
if(it)
{
_SM_SetCssBImage('zoom_lvl_06','/assets/images/zoom/zoom_l6_off_v.gif');
}
}
if(_SM_locationZ!=7&&_SM_locationZ!=140)
{
it=_SM_getDivm('zoomButton7');
if(it)
{
O='<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>';
it.innerHTML=O;
}
it=_SM_getDivm('zoom_level_7');
if(it)
{
_SM_SetCssBImage('zoom_level_7','/assets/images/zoom/zoom_l7_off.gif');
}
it=_SM_getDivm('zoom_lvl_07');
if(it)
{
_SM_SetCssBImage('zoom_lvl_07','/assets/images/zoom/zoom_l7_off_v.gif');
}
}
if(_SM_locationZ!=9&&_SM_locationZ!=150)
{
it=_SM_getDivm('zoomButton9');
if(it)
{
O='<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>';
it.innerHTML=O;
}
it=_SM_getDivm('zoom_level_8');
if(it)
{
_SM_SetCssBImage('zoom_level_8','/assets/images/zoom/zoom_l8_off.gif');
}
it=_SM_getDivm('zoom_lvl_08');
if(it)
{
_SM_SetCssBImage('zoom_lvl_08','/assets/images/zoom/zoom_l8_off_v.gif');
}
}
if(typeof fm=='undefined'||!fm)
{
{
fg();
}
ft();
fu();
}
}
function ft()
{
var fv='';
if(_SM_arrowx!=0&&_SM_arrowy!=0)
{
fv='&amp;ax='+_SM_arrowx+'&amp;ay='+_SM_arrowy;
}
if(_SM_UpdateLinkPositionCallback)_SM_UpdateLinkPositionCallback(_SM_srfFile,_SM_locationX,_SM_locationY,_SM_locationZ);
var fw=_SM_getDivm('LinkToText');
if(fw)
{
var O;
O='<a target="_blank" href="'+_SM_srfFile+'?X='+parseInt(_SM_locationX)+'&amp;Y='+parseInt(_SM_locationY)+'&amp;A=Y&amp;Z='+_SM_locationZ+fv+'">http://www.streetmap.co.uk/'+_SM_srfFile+'?X='+parseInt(_SM_locationX)+'&amp;Y='+parseInt(_SM_locationY)+'&amp;A=Y&amp;Z='+_SM_locationZ+fv+'</A><br>Click <a href="/s.srf?x='+parseInt(_SM_locationX)+'&y='+parseInt(_SM_locationY)+'&z='+_SM_locationZ+fv+'&searchp=s.srf&mapp=gc.srf&altdata=1" class="textnav">here</a> to convert/measure coordinates<br>';
fw.innerHTML=O;
}
fw=_SM_getDivm('LinkToTextSmall');
if(fw)
{
var O;
O='Link: <a target="_blank" href="'+_SM_srfFile+'?X='+parseInt(_SM_locationX)+'&amp;Y='+parseInt(_SM_locationY)+'&amp;A=Y&amp;Z='+_SM_locationZ+fv+'">http://www.streetmap.co.uk/'+_SM_srfFile+'?X='+parseInt(_SM_locationX)+'&amp;Y='+parseInt(_SM_locationY)+'&amp;A=Y&amp;Z='+_SM_locationZ+fv+'</A>';
fw.innerHTML=O;
}
}
function fx()
{
var O;
var fw=_SM_getDivm('badsearchquality');
if(fw)
{
O='';
fw.innerHTML=O;
}
fw=_SM_getDivm('resultfortext');
if(fw)
{
var O;
O='';
fw.innerHTML=O;
}
}
function fy(fz,eS,fA,fB,eA)
{
_SM_HideCallout('DivClickUpEvt2');
ft();
fx();
if(eU)
{
fg();
}
_SM_PfnUpdate();
}
function _SM_Navigate(direction)
{
var dN=0;
var dO=0;
switch(direction)
{
case 1:
dN=dN-_SM_skipSize;
dO=dO+_SM_skipSize;
break;
case 2:
dN=dN;
dO=dO+_SM_skipSize;
break;
case 3:
dN=dN+_SM_skipSize;
dO=dO+_SM_skipSize;
break;
case 4:
dN=dN-_SM_skipSize;
dO=dO;
break;
case 5:
dN=dN+_SM_skipSize;
dO=dO;
break;
case 6:
dN=dN-_SM_skipSize;
dO=dO-_SM_skipSize;
break;
case 7:
dN=dN;
dO=dO-_SM_skipSize;
break;
case 8:
dN=dN+_SM_skipSize;
dO=dO-_SM_skipSize;
break;
}
dN=-(dN/_SM_cpp);
dO=(dO/_SM_cpp);
_SM_MapDraw(dN,dO);
}
function fC(fz,eS,fA,fB,eA)
{
}
function fD(eA)
{
fl();
}
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(fy);
_SM_mzc=fl;
_SM_AddMapZoomCallback(fD);
_SM_AddMapAdCallback(ff);
var parent;
parent=_SM_getDivm('drag');
if(parent)
{
O='<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=O;
}
fl();
if(_SM_dragActive)
{
_SM_dragActive=false;
_SM_switchDrag2();
}
fu();
}
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();
eH();
}
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();
eH();
}
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();
eH();
fu();
}
function fu()
{
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 eu=_SM_getElementPosition('SW_Arrow');
var da=eu.left;
var db=eu.top;
da+=30;
db-=20;
fH.style.left=da+'px';
fH.style.top=db+'px';
fH.style.width=_SM_scaleImageSize+'px';
fH.style.height='20px';
fH.style.zIndex=99;
var O='<IMG SRC="/'+_SM_scaleImage+'" BORDER="0" HEIGHT="20" WIDTH="'+_SM_scaleImageSize+'"';
if(_SM_scaleText!=null)
{
O+=' alt="'+_SM_scaleText+'" ';
}
O+='>';
document.body.appendChild(fH);
fH.innerHTML=O;
}
}
}
function _SM_ShowStatusMessage(id,P,fI,show)
{
var parent=_SM_getDivm('SMap');
if(parent)
{
var fH=_SM_getDivm(id);
if(fH)
{
parent.removeChild(fH);
}
if(P!=null)
{
fH=document.createElement("div");
fH.id=id;
fH.style.position='absolute';
var da=0;
var db=0;
fH.style.left=da+'px';
fH.style.top=db+'px';
fH.style.width=_SM_mapWidth+'px';
fH.style.height='30px';
fH.style.zIndex=99;
var O='<table width="100%" bgcolor="white" border="1"><tr valign="top"><td><span class="'+fI+'">'+P+'</span></td></td></td>';
parent.appendChild(fH);
fH.innerHTML=O;
}
}
}
var _SM_ItemChanges=new Array();
function fJ(fK,
fL,
fM,
fN,
fO,
fP)
{
this.name=fK;
this.eL=fL;
this.size=fM;
this.fQ=fN;
this.fR=parseInt(fO,10);
this.fS=parseInt(fP,10);
if(typeof fJ.fT=='undefined')
{
fJ.prototype.fU=function(){if(this.eL=='width')return true;else return false;}
fJ.prototype.fV=function(){if(this.eL=='height')return true;else return false;}
fJ.prototype.fW=function(){if(this.eL=='margin_height')return true;else return false;}
fJ.prototype.fX=function(){if(this.eL=='margin_width')return true;else return false;}
fJ.prototype.fY=function(){if(this.eL=='margin_left_scale')return true;else return false;}
fJ.prototype.fZ=function(){if(this.eL=='mapwidth')return true;else return false;}
fJ.prototype.ga=function(){if(this.eL=='mapheight')return true;else return false;}
fJ.prototype.gb=function(){if(this.eL=='margin_height_map')return true;else return false;}
fJ.prototype.gc=function(){if(this.eL=='margin_width_map')return true;else return false;}
fJ.fT=true;
}
}
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('main_hold','width','387',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('content_container','width','259',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('content_wrapper','width','259',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('header','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('header_left','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('header_right','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('footer','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('footer_row01','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('func_bar_561','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('func_bar_561_left_end','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('func_bar_561_right_end','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('header_row02','width','241',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('footer_nav_top_container','width','-104',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('footer_row03','width','192',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_561_container','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_left_brd','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_right_brd','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_561_grad','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_561_container','mapheight','71',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_left_brd','mapheight','71',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_right_brd','mapheight','71',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_561_grad','mapheight','71',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_map_footer','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_561_left','mapheight','48',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_561_right','mapheight','48',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_561_up','mapwidth','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_561_down','mapwidth','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_561_map','mapwidth','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_561_map','mapheight','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_map_footer_info','mapwidth','32',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('arrow_561_right','margin_height_map','-45','2',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('arrow_561_left','margin_height_map','-45','2',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('spacer','height','-481',0,1,-1);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('spacerwithms','height','-561',0,1,-1);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('advert_561_01','margin_left_scale','-595','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('advert_561_04','margin_left_scale','-380','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('func_bar_link_to','width','-200',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('linkTo','width','-204',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('LinkToInput','width','-330',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('advert_561_04_container','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('advert_561_04_left_end','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('advert_561_04_right_end','width','254',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('arrow_561_right_down','margin_height_map','-45','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('arrow_561_left_down','margin_height_map','-45','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('arrow_561_down','margin_width_map','-35','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_container','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_grad','mapwidth','68',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_container','mapheight','79',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_grad','mapheight','71',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_left','mapheight','48',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_right','mapheight','48',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_up','mapwidth','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_down','mapwidth','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_map','mapwidth','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('panel_map','mapheight','0',0,1,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('arrow_right','margin_height_map','0','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('arrow_right_down','margin_height_map','-80','0',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('arrow_left','margin_height_map','0','2',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('arrow_left_down','margin_height_map','-80','2',2,0);
_SM_ItemChanges[_SM_ItemChanges.length]=new fJ('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 gd(name)
{
var ge=_SM_getDivm(name)
if(ge)
{
ge.style.position='absolute';
ge.style.left='0px';
ge.style.top='0px';
ge.style.width='1%';
ge.style.height='1%';
ge.style.marginLeft='0px';
ge.style.marginTop='0px';
ge.style.marginBottom='0px';
ge.style.marginRight='0px';
ge.style.visibility='hidden';
_SM_RemoveAd(name);
}
}
function gf(name,da,db,cE,width,height)
{
var ge=_SM_getDivm(name)
if(ge)
{
ge.style.position='absolute';
ge.style.left=parseInt(da,10)+'px';
ge.style.top=parseInt(db,10)+'px';
ge.style.width=parseInt(width,10)+'px';
ge.style.height=parseInt(height,10)+'px';
ge.style.marginLeft='0px';
ge.style.marginTop='0px';
ge.style.marginBottom='0px';
ge.style.marginRight='0px';
ge.style.visibility='visible';
_SM_SetupAd(name,cE,width,height);
}
}
function _SM_ResizeItems(gg,gh,gi,gj)
{
if(isIE6OrEarlier)
{
var gk=_SM_getDivm('SMap');
if(gk)
{
gk.style.width='500px';
gk.style.height='500px';
}
}
var gl=0;
var cB=0;
var gm=800;
var gn=600;
var iu=800;
var gp=600;
var gq=1200;
var gr=1;
var gs=_SM_pageWidth();
if(typeof gh!='undefined'&&gh>0)
{
gm=gh;
if(gm<600)gm=600;
if(typeof gg!='undefined')
{
if(gg&&gs>gq)
{
gr=2;
}
}
else if(gs>gq)
{
gr=2;
}
}
else
{
if(typeof gg!='undefined')
{
if(gg&&gs>gq)
{
gr=2;
}
}
else if(gs>gq)
{
}
gs-=174;
if(gr==2)
{
gs-=180;
}
gs-=200;
gs-=(35*2);
if(gs<600)gs=600;
gm=gs;
}
var gt=_SM_pageHeight();
if(typeof gi!='undefined'&&gi>0)
{
gn=gi;
if(gn<561)gn=561;
}
else
{
{
gt=_SM_pageHeight();
gt-=100;
gt-=(35*2);
gt-=20;
if(gr!=3)
{
gt-=110;
}
if(gt<600)gt=600;
gn=gt;
}
}
iu=gm;
gp=gn;
if(typeof gj!='undefined'&&gj)
{
gm-=185;
}
while(cB<_SM_ItemChanges.length)
{
var name=_SM_ItemChanges[cB].name;
var R=_SM_getDivm(name);
if(R)
{
var size=_SM_ItemChanges[cB].size;
var fQ=_SM_ItemChanges[cB].fQ;
var fR=_SM_ItemChanges[cB].fR;
var fS=_SM_ItemChanges[cB].fS;
if(_SM_ItemChanges[cB].fU())
{
var gu=gm+parseInt(size,10);
if(fS!=0&&isIE6OrEarlier)
{
gu-=fS;
}
if(gu<0)gu=0;
var fs=gu+'px';
R.style.width=fs;
}
else if(_SM_ItemChanges[cB].fZ())
{
var gu=iu+parseInt(size,10);
if(fS!=0&&isIE6OrEarlier)
{
gu-=fS;
}
if(gu<0)gu=0;
var fs=gu+'px';
R.style.width=fs;
}
else if(_SM_ItemChanges[cB].fV())
{
var fF=gn+parseInt(size,10);
if(fS!=0&&isIE6OrEarlier)
{
fF-=fS;
}
if(fF<0)fF=0;
var gv=fF+'px';
R.style.height=gv;
}
else if(_SM_ItemChanges[cB].ga())
{
var fF=gp+parseInt(size,10);
if(fS!=0&&isIE6OrEarlier)
{
fF-=fS;
}
if(fF<0)fF=0;
var gv=fF+'px';
R.style.height=gv;
}
else if(_SM_ItemChanges[cB].fW())
{
var gw=gn+parseInt(size,10);
if(fS!=0&&isIE6OrEarlier)
{
gw-=fS;
}
if(gw<0)gw=0;
var gx=gw+'px';
R.style.marginTop=gx;
gw=parseInt(fQ,10);
gx=gw+'px';
R.style.marginLeft=gx;
}
else if(_SM_ItemChanges[cB].fX())
{
var gw=gm+parseInt(size,10);
if(fS!=0&&isIE6OrEarlier)
{
gw-=fS;
}
if(gw<0)gw=0;
var gx=gw+'px';
R.style.marginLeft=gx;
}
else if(_SM_ItemChanges[cB].gb())
{
var gw=gp+parseInt(size,10);
gw=gw/fR;
if(fS!=0&&isIE6OrEarlier)
{
gw-=fS;
}
if(gw<0)gw=0;
var gx=gw+'px';
R.style.marginTop=gx;
gw=parseInt(fQ,10);
gx=gw+'px';
R.style.marginLeft=gx;
}
else if(_SM_ItemChanges[cB].gc())
{
var gw=iu+parseInt(size,10);
gw=gw/fR;
if(fS!=0&&isIE6OrEarlier)
{
gw-=fS;
}
if(gw<0)gw=0;
var gx=gw+'px';
R.style.marginLeft=gx;
}
else if(_SM_ItemChanges[cB].fY())
{
var gw=gm+parseInt(size,10);
gw=gw/fR;
if(fS!=0&&isIE6OrEarlier)
{
gw-=fS;
}
if(gw<0)gw=0;
var gx=gw+'px';
R.style.marginLeft=gx;
}
else
{
var gy=gz;
}
}
cB++;
}
_SM_ResizeSmap();
if(gr==1)
{
gd('advert_561_08');
gd('advert_561_09');
gd('advert_561_10');
gd('advert_561_11');
gf('advert_561_05',3,3,3,160,600);
gf('advert_561_06',3,606,23,160,60);
gf('advert_561_07',3,669,4,160,600);
}
else if(gr==2)
{
if(gl)
{
gd('advert_561_06');
gd('advert_561_10');
gd('advert_561_11');
gf('advert_561_08',3,3,39,300,250);
gf('advert_561_05',20,256,3,120,600);
gf('advert_561_07',160,256,4,120,600);
gf('advert_561_09',3,859,40,300,250);
}
else
{
gd('advert_561_06');
gd('advert_561_05');
gd('advert_561_07');
gf('advert_561_08',3,3,39,300,250);
gf('advert_561_09',3,259,40,300,250);
gf('advert_561_10',3,515,41,300,250);
gf('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 gk=_SM_getDivm('SMap');
if(parent&&gk)
{
var gw=parseInt(parent.offsetWidth,10);
if(isIE6OrEarlier)gw-=4;
_SM_mapWidth=gw;
gk.style.width=gw+'px';
gw=parseInt(parent.offsetHeight,10);
if(isIE6OrEarlier)gw-=4;
_SM_mapHeight=gw;
gk.style.height=gw+'px';
}
}
function _SM_SetCssBImage(name,E)
{
var parent=_SM_getDivm(name);
if(parent)
{
parent.style.backgroundImage="url('"+E+"')";
}
}var gA=_SM_createRequestObject();
var gB=new Array();
var gC=false;
var _SM_PFNLoadedCallback=null;
var gD=false;
var gE=false;
var gF=new Array();
function _SM_AddPfnFilter(gG)
{
var bW;
var bX=false;
for(bW=0;bW<gF.length&&!bX;bW++)
{
if(gF[bW]==gG)
{
bY=true;
}
}
if(!bX)
{
gF[gF.length]=gG;
}
}
function _SM_RemovePfnFilter(gG)
{
var bW;
for(bW=0;bW<gF.length;bW++)
{
if(gF[bW]==gG)
{
gF.splice(bW,1);
}
}
}
function gH()
{
gA=_SM_createRequestObject();
var ca=gB.shift();
gA.open('get',ca.url);
switch(ca.cb)
{
case 1:
if(b)
{
gA.onload=gI;
}
else
{
gA.onreadystatechange=gJ;
}
break;
}
gA.send(null);
}
function gK()
{
if(gB.length>0)
{
setTimeout(gH,1);
}
else
{
gC=false;
}
}
function gL(url,cb)
{
gB[gB.length]={url:url,cb:cb};
if(!gC)
{
gC=true;
gK();
}
}
function _SM_ShowPfnSwitch()
{
if(gD)
{
var parent=_SM_getDivm('SMap');
if(parent)
{
if(typeof _SM_al[3]=='undefined')_SM_al[3]=true;
var gM=_SM_getDivm('PFNSwitch');
if(gM)
{
gM.style.visibility='visible';
var da=parent.clientWidth;
var db=parent.clientHeight;
da-=105;
db=5;
gM.style.left=da+'px';
gM.style.top=db+'px';
var gN=_SM_getDivm('PFNSwitchImage');
if(gN)
{
if(_SM_al[3])
{
gN.src="/dc/pfn/icon_switch_onoff_v2b_on.png"
}
else
{
gN.src="/dc/pfn/icon_switch_onoff_v2b_off.png"
}
}
}
else
{
gM=document.createElement("div");
gM.id="PFNSwitch";
gM.style.position='absolute';
gM.style.cursor='auto';
var da=parent.clientWidth;
var db=parent.clientHeight;
da-=105;
db=5;
gM.style.left=da+'px';
gM.style.top=db+'px';
gM.style.width='137px';
gM.style.height='41px';
gM.style.zIndex=99;
var O;
if(_SM_al[3])
{
O='<IMG id="PFNSwitchImage" SRC="/dc/pfn/icon_switch_onoff_v2b_on.png" BORDER="0" HEIGHT="37" WIDTH="111"';
}
else
{
O='<IMG id="PFNSwitchImage" SRC="/dc/pfn/icon_switch_onoff_v2b_off.png" BORDER="0" HEIGHT="37" WIDTH="111"';
}
O+=' alt="Click here to toggle map adverts" ';
O+=' onclick="_SM_ToggleLayer(3);" >';
parent.appendChild(gM);
gM.innerHTML=O;
}
gE=true;
}
}
}
function _SM_HidePfnSwitch()
{
var gM=_SM_getDivm('PFNSwitch');
if(gM)
{
gM.style.visibility='hidden';
gE=false;
}
}
function _SM_PfnIconRedraw(gO)
{
if(gO&&!gE)
{
_SM_ShowPfnSwitch();
}
else if(!gO&&gE)
{
_SM_HidePfnSwitch();
}
}
function _SM_PfnIconRedrawCallback(dH,dI,dJ,dK,fz,eS,fA,fB)
{
_SM_PfnIconRedraw(_SM_PfnIconDisplayed);
}
function gP()
{
if(gB.length>0)
{
gK();
}
else
{
gC=false;
if(_SM_PFNLoadedCallback)_SM_PFNLoadedCallback();
}
_SM_ShowPfnSwitch();
}
function gQ(gR,
gS,
gT,
gU,
gV,
gW,
gX,
gY,
gZ,
ha,
hb,
hc,
hd,
he,
hf,
hg,
hh,
hi,
hj,
hk,
hl,
hm,
hn,
ho,
bh,
bi,
hp,
hq,
hr,
hs,
gG)
{
this._SM_div_name=gR;
this._SM_mapCreateA=gS;
this._SM_mapCreateB=gT;
this._SM_mapCreateW=gU;
this._SM_mapCreateH=gV;
this._SM_mapCreateExt=gW;
this._SM_mapCreateF=gX;
this._SM_mapCreateLoc2=gY;
this._SM_mapCreateAx=gZ;
this._SM_mapCreateAy=ha;
this._SM_mapCreateFixed=hb;
this._SM_mapCreateX=hc;
this._SM_mapCreateY=hd;
this._SM_mapCreateUrl=he;
this._SM_adiv=hf;
this._SM_layer=hg;
this._SM_zindex=hh;
this._SM_desturl=hi;
this._SM_description=hj;
this._SM_isdiv=hk;
this._SM_divname=hl;
this._SM_divwidth=hm;
this._SM_divheight=hn;
this._SM_divnoborder=ho;
this._SM_title=bh;
this._SM_style=bi;
this._SM_contenturl=hp;
this._SM_minzoom=hq;
this._SM_maxzoom=hr;
this._SM_IsPfn=1;
this._SM_TooltipSet=false;
this._SM_iconplacement=5;
if(typeof hs!='undefined'&&parseInt(hs,10)>0)
{
this._SM_iconplacement=parseInt(hs,10);
}
if(typeof gG!='undefined')
{
this._SM_customer=gG;
}
if(typeof gQ.fT=='undefined')
{
gQ.prototype.iv=function(){if(this._SM_mapCreateFixed)return true;else return false;}
gQ.fT=true;
}
}
function _SM_ShowPfnMapDiv(hZ,cB)
{
if(_SM_mapFixed[cB]._SM_isdiv&&_SM_mapFixed[cB]._SM_description&&_SM_mapFixed[cB]._SM_divname)
{
_SM_ShowCalloutTextOffset(hZ,_SM_mapFixed[cB]._SM_description,_SM_mapFixed[cB]._SM_mapCreateW,_SM_mapFixed[cB]._SM_mapCreateH,_SM_mapFixed[cB]._SM_divnoborder);
}
}
function hu(item)
{
var parent=_SM_getDivm('SMap');
if(parent)
{
D=_SM_mapFixed.length;
_SM_mapFixed[D]=item;
var cK=document.createElement("div");
var O;
cK.id=_SM_mapFixed[D]._SM_div_name;
cK.style.position='absolute';
cK.style.left=_SM_mapFixed[D]._SM_mapCreateA+'px';
cK.style.top=_SM_mapFixed[D]._SM_mapCreateB+'px';
cK.style.width=_SM_mapFixed[D]._SM_mapCreateW+'px';
cK.style.height=_SM_mapFixed[D]._SM_mapCreateH+'px';
cK.style.marginLeft='0px';
cK.style.marginTop='0px';
cK.style.marginBottom='0px';
cK.style.marginRight='0px';
cK.style.border='0px';
var ey=false;
if(bR.length>0)
{
var bW;
for(bW=bR.length-1;bW>=0&&!ey;bW--)
{
if(bR[bW])
{
O=bR[bW](D,bW);
ey=true;
}
}
}
if(!ey)
{
O="<IMG SRC=\""+_SM_mapFixed[D]._SM_mapCreateF+"\" BORDER=\"0\" HEIGHT=\""+_SM_mapFixed[D]._SM_mapCreateH+"\" WIDTH=\""+_SM_mapFixed[D]._SM_mapCreateW+"\"";
if(_SM_mapFixed[D]._SM_mapCreateUrl)
{
O+=" onclick=\"clickedIcon('"+_SM_mapFixed[D]._SM_mapCreateUrl+"')\"";
}
if(_SM_mapFixed[D]._SM_description)
{
if(_SM_mapFixed[D]._SM_isdiv)
{
if(_SM_mapFixed[D]._SM_divname)
{
}
}
else
{
}
}
O+=">";
}
if(_SM_mapFixed[D]._SM_desturl)
{
O="<A HREF=\""+_SM_mapFixed[D]._SM_desturl+"\" TARGET=\"_BLANK\">"+O;
O+="</A>";
}
parent.appendChild(cK);
cK.innerHTML=O;
if(_SM_mapFixed[D]._SM_mapCreateFixed==1)
{
cK.style.zIndex=100;
}
else
{
cK.style.zIndex=_SM_mapFixed[D]._SM_zindex;
}
if(_SM_mapFixed[D]._SM_description||_SM_mapFixed[D]._SM_contenturl)
{
}
}
}
function hv(name)
{
var status=false;
var parent=_SM_getDivm('SMap');
if(parent)
{
var hw=_SM_getDivm(name);
if(hw)
{
parent.removeChild(hw);
}
hw=null;
}
var D;
for(D=0;D<_SM_mapFixed.length;D++)
{
if(_SM_mapFixed[D]._SM_div_name==name)
{
_SM_mapFixed[D]=null;
_SM_mapFixed.splice(D,1);
status=true;
break;
}
}
return status;
}
function _SM_AddItemUkCoords(da,db)
{
}
function _SM_AddLayerItem(hw)
{
if(hw)
{
hv(hw._SM_div_name);
hx(hw);
}
}
function _SM_AddPfnIconUkCoords(eQ,hy,id,da,db,width,height,hz,hA,description,hB,divname,hC,hD,hE,title,style,hF,hG,hH,hs,gG)
{
hv(id);
var show=false;
if(gF.length==0)
{
show=true;
}
else if(typeof gG!='undefined')
{
var cB;
for(cB=0;cB<gF.length;cB++)
{
if(gF[cB]==gG)
{
show=true;
break;
}
}
}
if(show)
{
var hI=new gQ(
id,
-height,
-width,
width,
height,
'Y',
hz,
'05',
0,
0,
0,
da,
db,
null,
null,
eQ,
hy,
hA,
description,
hB,
divname,
hC,
hD,
hE,
title,
style,
hF,
hG,
hH,
hs,
gG
);
hu(hI);
hI=null;
}
}
function _SM_ChangedLayerCheckbox(hJ,hK)
{
var parent=_SM_getDivm(hK);
if(parent)
{
if(parent.checked)
{
_SM_ShowLayer(hJ,1);
}
else
{
_SM_ShowLayer(hJ,0);
}
}
}
function _SM_PfnUpdate()
{
var url;
var eX=new Date();
var hL;
hL=eX.getFullYear().toString()+eX.getMonth().toString()+eX.getDate().toString()+eX.getHours().toString()+eX.getMinutes().toString()+eX.getSeconds().toString();
var dT=(_SM_tileSize/2);
url='/pfn.srf?di='+hL+'&lx='+(_SM_locationLX-dT)+'&ly='+(_SM_locationLY-dT)+'&ux='+(_SM_locationUX+dT)+'&uy='+(_SM_locationUY+dT)+'&z='+_SM_locationZ;
gL(url,1);
}
function gJ()
{
if(gA.readyState==4)
{
if(gA.status==200)
{
hM(gA.responseText);
}
}
}
function gI()
{
hM(gA.responseText);
}
function hM(cA)
{
{
var hN=cA.split('\r\n');
if(hN.length>0)
{
var cB=0;
var hO=0;
var hP=0;
var hQ=hN[cB].split('|');
if(hQ.length==2&&hQ[0]=='ItemCount')
{
hP=parseInt(hQ[1],10);
if(hP>0)
{
cB++;
var hR=false;
var eQ,hy,id,da,db,width,height,hz,hA,description,hS,hB,divname,hC,hD,hE,title,style,hF,hG,hH,gG,hT;
eQ=0;
hy=50;
width=20;
height=20;
hS=false;
hB=false;
hC=0;
hD=0;
hE=false;
description='';
title='';
style='';
hF='';
hG=0;
hH=120;
gG='';
hT=0;
while(cB<hN.length&&hO<hP)
{
if(hN[cB].length>0)
{
if(hN[cB]=='--S')
{
hR=true;
}
else if(hN[cB]=='--E')
{
if(hR)
{
gD=true;
if(!hB&&description&&description.length>0&&hA&&hA.length>0)
{
}
var hU=_SM_getDivm(id);
if(!hU)
{
_SM_AddPfnIconUkCoords(eQ,hy,id,da,db,width,height,hz,hA,description,hB,divname,hC,hD,hE,title,style,hF,hG,hH,hT,gG);
}
if(hS)
{
_SM_al[eQ]=false;
}
}
hR=false;
id=null;
da=null;
db=null;
width=20;
height=20;
hz=null;
hA=null;
description='';
eQ=0;
hS=false;
hB=false;
divname=null;
hC=0;
hD=0;
hE=false;
title='';
style='';
hF='';
hG=0;
hH=120;
gG='';
hT=0;
hO++;
}
else if(hR)
{
hQ=hN[cB].split('|');
if(hQ.length==2)
{
if(hQ[0]=='Sequence')
{
id='pfn_'+hQ[1];
}
else if(!_SM_mercMode&&hQ[0]=='LocationX')
{
da=parseInt(hQ[1],10);
}
else if(!_SM_mercMode&&hQ[0]=='LocationY')
{
db=parseInt(hQ[1],10);
}
else if(_SM_mercMode&&hQ[0]=='LocationMX')
{
da=parseInt(hQ[1],10);
}
else if(_SM_mercMode&&hQ[0]=='LocationMY')
{
db=parseInt(hQ[1],10);
}
else if(hQ[0]=='Title')
{
title=hQ[1];
}
else if(hQ[0]=='DestURL')
{
hA=hQ[1];
}
else if(hQ[0]=='Icon')
{
hz=hQ[1];
}
else if(hQ[0]=='Layer')
{
eQ=parseInt(hQ[1],10);
}
else if(hQ[0]=='MinZoom')
{
hG=parseInt(hQ[1],10);
}
else if(hQ[0]=='MaxZoom')
{
hH=parseInt(hQ[1],10);
}
else if(hQ[0]=='DivWidth')
{
if(parseInt(hQ[1],10)>0)
{
hC=parseInt(hQ[1],10);
}
}
else if(hQ[0]=='DivHeight')
{
if(parseInt(hQ[1],10)>0)
{
hD=parseInt(hQ[1],10);
}
}
else if(hQ[0]=='LayerOff')
{
if(parseInt(hQ[1],10)==1)
{
hS=true;
}
}
else if(hQ[0]=='Type')
{
}
else if(hQ[0]=='IcoWidth')
{
width=parseInt(hQ[1],10);
}
else if(hQ[0]=='IcoHeight')
{
height=parseInt(hQ[1],10);
}
else if(hQ[0]=='Description')
{
description=hQ[1];
}
else if(hQ[0]=='SourceURL')
{
hF=hQ[1];
}
else if(hQ[0]=='DisplayStyle')
{
style=hQ[1];
}
else if(hQ[0]=='Customer')
{
gG=hQ[1];
}
else if(hQ[0]=='IcoHook')
{
hT=parseInt(hQ[1],10);
}
}
}
}
cB++;
}
}
}
}
gP();
_SM_Redraw();
}
}
function _SM_PfnInit()
{
_SM_AddMapRedrawCallback(_SM_PfnIconRedrawCallback);
}
