if (typeof Cobalt == "undefined") { var Cobalt = {}; };
if (typeof Cobalt.partners == "undefined") { Cobalt.partners = {}; };
if (typeof Cobalt.partners.Lexus == "undefined") { Cobalt.partners.Lexus = {}; };

Cobalt.partners.Lexus.MediaGallery = {
	
	MODEL_MAPPING: {
		ls: "LS", es: "ES", gs: "GS", is: "IS",
		isf: "ISF", lfa: "LFA", isc: "ISC", rx: "RX", 
		gx: "GX", lx: "LX", sc: "SC",
		lshybrid: "LSh", gshybrid: "GSh", rxhybrid: "RXh", hshybrid: "HSh"
	}
	
	,SRC: "http://www.lexus.com/lexus-share/gallery/popup.html?launchGallery=true&model=%mappedname%"
	
	,regexp: { 
		mappedname: /%mappedname%/ig
	}
	
	,getSrc: function(model) {
		viewPhotosSrc = this.SRC.replace(this.regexp.mappedname, this.MODEL_MAPPING[model]);
		return viewPhotosSrc;
	}
	
};