var harIcon = new GIcon();
harIcon.image = "images/radiotower_medium.png";
harIcon.iconSize = new GSize(24,24);
harIcon.iconAnchor = new GPoint(9, 9);
harIcon.infoWindowAnchor = new GPoint(9, 9);

var harIconMed = new GIcon();
harIconMed.image = "images/radiotower36x36.png";
harIconMed.iconSize = new GSize(36,36);
harIconMed.iconAnchor = new GPoint(12,12);
harIconMed.infoWindowAnchor = new GPoint(12,12);

var harIconLarge = new GIcon();
harIconLarge.image = "images/radiotower48x48.png";
harIconLarge.iconSize = new GSize(48,48);
harIconLarge.iconAnchor = new GPoint(15,15);
harIconLarge.infoWindowAnchor = new GPoint(15,15);

var harImport = 10;

var harIconClass = Class.create(mapIconClass,{
    iconSmall: harIcon,
    iconMedium: harIconMed,
    iconLarge: harIconLarge,
    prefix: "<div style='height: 150px; overflow:auto;padding-right:10px;'><b>Message: </b>",
    suffix: "</div>",
    zIndex: harImport,
    initialize: function ($super, obj){
       Object.extend(this,obj); 
       this.title = "HAR: " + this.route + " @ " + this.xstreet;
       $super(this);
    },
    update: function ($super,newObj){
       if(this.advisoryText != newObj.advisoryText){
           this.advisoryText = newObj.advisoryText;
       } else {
          newObj.title = "HAR: " + newObj.route + " @ " + newObj.xstreet;
       }
       $super(newObj);
    }, 
    getMarkerText: function (marker){
       return unescape(this.prefix + " " + this.advisoryText + " " + this.suffix);
    }
});


