function City(
    id,
    selectedItemID
) {
    this.id = id;
    this.selectedItemID = selectedItemID;
    this.elements = new Array(
        new Element("city_select"),
        new Element("city_pad"),
        new Element("city")
    );
    this.preview = new Element("show_pic");
    this.image = new Element("big_image");
    City.prototype.switchDisplay = function() {
        for (var i = 0; i < this.elements.length; i++) {
            this.elements[i].switchDisplay(this.id);
        }
        return false;
    }
    City.prototype.setSelected = function(
        id,
        image
    ) {
        this.preview.switchClassName(this.selectedItemID);
        this.image.setImage(
            image,
            this.id
        );
        this.preview.switchClassName(this.selectedItemID = id);
        return false;
    }
}
var cities = new Array();
