var Canon_Class = function() {

	this.init();

}

Canon_Class.prototype.init = function() {
	this._addNavigation();	
	
	if (isGallery && isGallery != null) {
		this._loadGallery();	
	}
}

Canon_Class.prototype._addNavigation = function() {
	this.homeBanner = document.getElementById("header");
	
	this.about = document.getElementById("about");
	this.info = document.getElementById("info");
	this.commercial = document.getElementById("commercial");
	this.residential = document.getElementById("residential");
	this.contact = document.getElementById("contact");	
	
	this.homeBanner.onclick = function() {
		location.href = "index.html";	
	}
	
	this.about.onclick = function() {
		location.href = "about.html";	
	}
	
	this.info.onclick = function() {
		location.href = "info.html";	
	}
	
	this.commercial.onclick = function() {
		location.href = "commercial.html";	
	}
	
	this.residential.onclick = function() {
		location.href = "residential.html";	
	}
	
	this.contact.onclick = function() {
		location.href = "contact.html";
	}
	
}

Canon_Class.prototype._loadGallery = function() {

	if (sGalleryType && sGalleryType == "residential") {
		// load thumbnails, load navigation, load first image, load image desc
		this.gallery = new Gallery_Class("residential");
	} else if (sGalleryType && sGalleryType == "commercial") {
		this.gallery = new Gallery_Class("commercial");
	}
}

var canon = new Canon_Class();