function searchTopZone(){}

searchTopZone.prototype.id = 0;
searchTopZone.prototype.idQuarter = 0;
searchTopZone.prototype.obj = 0;
searchTopZone.prototype.name = '';
searchTopZone.prototype.selected = false;

searchTopZone.prototype.init = function(Obj){
    var thiss = this;
    this.obj = Obj;
    var rel = Obj.attr('rel');
    var ex = rel.split('-');
    this.id = ex[0];
    this.name = Obj.html();
    this.idQuarter = ex[1];
    this.obj.mouseover(function(){
       thiss.over();
    });
    this.obj.mouseout(function(){
       thiss.out();
    });
    this.obj.click(function(){
       thiss.clickk();
    });
}

searchTopZone.prototype.over = function(){

}
searchTopZone.prototype.out = function(){

}
searchTopZone.prototype.clickk = function(){
    if(this.selected){
        this.deselect();
    }else{
        this.select();
    }
}

searchTopZone.prototype.showw = function(){
    this.obj.removeClass('hide');
}
searchTopZone.prototype.hidee = function(){
    this.obj.addClass('hide');
}

searchTopZone.prototype.setSelected = function(){
    this.obj.removeClass('notselected');
    this.obj.addClass('selected');
}

searchTopZone.prototype.setNotSelected = function(){
    this.obj.addClass('notselected');
    this.obj.removeClass('selected');
}

searchTopZone.prototype.select = function(){
    this.selected = true;
    this.setSelected();
    searchTopReloadSelected();
}

searchTopZone.prototype.deselect = function(){
    this.selected = false;
    this.setNotSelected();
    searchTopReloadSelected();
}
