﻿function Region(ident,sname,slongitude,slatitude,szoomlevel,sstaticmap,saltimage,saltimagetext,sisspecialregion)
{
    this.identity = ident;
    this.name = sname;
    this.longitude = slongitude;
    this.latitude = slatitude;
    this.zoomlevel = szoomlevel;
    this.staticmap = sstaticmap;
    this.altimage = saltimage;
    this.alttext = saltimagetext;
    this.isSpecialRegion = sisspecialregion;
} 

function findregionById(id) {
    for (var i=0;i<regionArray.length;i++) {
        if (regionArray[i].identity == id) {
            return regionArray[i];
        }
    }
}