function GButtonShowTrack(a){
    this.div=document.createElement("div");
    with(this.div){
       unselectable="on";
       onselectstart=function(){
          return false;
       }
       with(style){
         MozUserSelect="none";
         cursor="pointer";
         zIndex=1;
         position="absolute";
         fontSize="13px";
         padding="3px";
         margin=0;
         border="solid 1px black";
         width="75px";
         backgroundColor="white";
         align="center";
       }
    }
    this.div.appendChild(document.createTextNode("显示赛事路线图 "));
}
GButtonShowTrack.prototype = new GControl(true,false);

GButtonShowTrack.prototype.initialize = function(a)
{
    a.getContainer().appendChild(this.div);
    GEvent.bindDom(this.div,"click",this,this.onClick);
    return this.div;
}

GButtonShowTrack.prototype.onClick=function(){
   getSDTrack();
}

GButtonShowTrack.prototype.setWidth=function(width){
   this.div.style.width=width;
}

GButtonShowTrack.prototype.remove=function(){
   this.div.style.display="none";
}

GButtonShowTrack.prototype.show=function(){
   this.div.style.display="block";
}


