var Redirect1Comparator = {
	
	domain: "http://www.lexus.com/",
	primaryIFrame: { id: "primaryIFrame", path: "comparator/compare.html?mode=dealer&modelCode=[#modelName#]#domain=[#baseHref#]" },
	overlayIFrame: { id: "overlayIFrame", path: "comparator/compare_overlay.html" },
	
	regexp: { 
		modelName: { token: "[#modelName#]", replace: function(string, value) { return string.replace(this.token, value); }},
		zipCode: { token: "[#zipCode#]", replace: function(string, value) { return string.replace(this.token, value); }},
		dealerCode: { token: "[#dealerCode#]", replace: function(string, value) { return string.replace(this.token, value); }},
		baseHref: { token: "[#baseHref#]", replace: function(string, value) { return string.replace(this.token, value); }}
	},
	
	trims: {		
		ls:"ls", gs:"gs", es:"es", is:"is", isc:"isc",
		isf:"isf", sc:"sc", lx:"lx", gx:"gx", rx:"rx",
		hshybrid:"hsh", lshybrid:"lsh", gshybrid:"gsh", rxhybrid:"rxh"
	},
	
	/*--- Helper Methods ---*/
	show: function() {
		window.parent.parent.document.getElementById(this.overlayIFrame.id).style.display = 'block';
	},
	
	hide: function() {
		window.parent.parent.document.getElementById(this.overlayIFrame.id).style.display = 'none';
	},
	
	insert: function() {
		var overlay = window.parent.parent.document.createElement('iframe');
		overlay.id = this.overlayIFrame.id;
		overlay.name = this.overlayIFrame.id;
		overlay.allowTransparency = "true";
		overlay.style.display = "none";		
		overlay.style.width = window.parent.parent.document.body.scrollWidth + "px";
		overlay.style.height = window.parent.parent.document.body.scrollHeight + "px";			
		overlay.frameBorder = "0";
		overlay.src = this.domain + this.overlayIFrame.path;
		window.parent.parent.document.getElementsByTagName('body')[0].appendChild(overlay);
	}
	
};