﻿var hL={};eT.prototype=new GControl();var bR=null;function eT(wH,JF,GT,Np,MN,ML,uO,JG,EU,HT,DT,KS,KJ){var eH="";if(uO.length>0){eH="<img src='"+uO+"' border='0' /> &nbsp;";}this.AP=wH;this.BV=JF;this.xK=GT;this.DD=Np;this.IV=MN;this.IS=ML;this.dQ=uO;this.JR=eH+JG;this.FF=EU;this.HO=eH+HT;this.DM=DT;this.DW=KS;this.EH=KJ;this.bL=null;this.cL={cursor:"pointer",border:"1px solid black",paddingLeft:"6px",paddingRight:"6px",paddingTop:"2px",paddingBottom:"2px",zIndex:"200"};this.AD=false;bR=this;};eT.prototype.lM=function(sO){this.bL=document.createElement('div');this.bL.id='ss-control';hL.cL([this.bL],this.cL);sO.appendChild(this.bL);this.vQ();this.bL.style.display="block";return this.bL;};eT.prototype.vQ=function(){var bB=this.bL;if(bB){if(this.AP){bB.style.backgroundColor=this.DW;bB.style.color=this.EH;bB.innerHTML=this.HO;bB.title=this.DM;}else{bB.style.backgroundColor=this.EH;bB.style.color=this.DW;bB.innerHTML=this.JR;bB.title=this.FF;}}if(this.AP&& !this.AD){mc_showIndex();var IW=e("adcontainer");if(IW){IW.innerHTML="";}if(dF==null||dF.aN.isHidden()){dF=bH[0];}if(dF){dF.aM();if(this.xK>0){map.setCenter(dF.aL);}}this.AD=true;setTimeout("ssCycle()",dF?this.BV:50);}};eT.prototype.initialize=function(map){var G=this.globals;var hI=this;var bY=map.getContainer();var bB=this.lM(bY);GEvent.addDomListener(bB,'click',function(a){hI.qX(a);});return bB;};eT.prototype.qX=function(){this.AP= !this.AP;this.vQ();};function ssCycle(){if(bR.AP){if(dF){mc_nextPlace();}else{dF=bH[0];}if(dF){if(bR.xK>0){map.setCenter(dF.aL);}}setTimeout("ssCycle()",dF?bR.BV:50);}else{bR.AD=false;}};eT.prototype.getDefaultPosition=function(){var hM=G_ANCHOR_TOP_LEFT;switch(this.DD){case 1:hM=G_ANCHOR_TOP_RIGHT;break;case 2:hM=G_ANCHOR_BOTTOM_LEFT;break;case 3:hM=G_ANCHOR_BOTTOM_RIGHT;break;}return new GControlPosition(hM,new GSize(this.IV,this.IS));};hL.cL=function(cW,lH){if(typeof(cW)=='string'){cW=hL.zE(cW);}for(var i=0;i<cW.length;i++){for(var s in lH){cW[i].style[s]=lH[s];}}};hL.e=function(iP){return document.getElementById(iP);};hL.zE=function(mK){var jC=mK.split(',');var gB=[];for(var i=0;i<jC.length;i++){gB[gB.length]=hL.e(jC[i])};return gB;};
