var specData = {
	spec1: "<ul><li>The best of the best vehicles</li><li>Current model year &amp; previous 6 years</li><li>Less than 70,000 miles</li></ul>",
	spec2: "<ul><li>Provides a background check</li><li>Identifies potential problems</li></ul>",
	spec3: "<ul><li>Performed by a Lexus-trained technician</li><li>Comprehensive 161-point checklist</li></ul>",
	spec4: "<ul><li>Reconditioned to like-new condition</li><li>Repairs and replacements made to Lexus standards</li></ul>",
	spec5: "Achieves a like-new appearance through:<ul><li>Paint &amp; surface repairs</li><li>Thorough cleaning & detailing</li></ul>",
	spec6: "<ul><li>3-year, 100,000 total vehicle mile limited warranty</li><li>Manufacturer backed</li><li>Fully included in the purchase price</li></ul>",
	spec7: "<ul><li>Special financing for qualified purchasers</li><li>Certification eliminates risk typically associated with a used car</li></ul>",
	spec8: "Includes complimentary:<ul><li>24-hour Roadside Assistance</li><li>Trip Interruption Coverage</li><li>Concierge Service</li><li>Car Washes</li><li>First Certified Service</li><li>Loaner Vehicles for qualified repairs</li></ul>"
};

var iframe = '<iframe style="position: absolute; display: block; z-index: -1; width: 100%; height: 100%; filter: mask(); background-color: #ffffff;"></iframe>';

jQuery("#specItems li").click( function(e) {	
	var index = this.id.replace("spec", "");
	var div = jQuery("#specSheet").show();
	if (document.all && (navigator.userAgent.toLowerCase().indexOf("msie 6.") != -1)) { // Fix to correct z-index behavior with select controls in IE6 
		jQuery('#specSheet').append(iframe);
	}
	div.css("top", e.pageY - 15 + "px").css("left", e.pageX - div.width() + 15 + "px");	
	jQuery("#specSheetHeadImage")[0].setAttribute("src", cobalt_paths.LAYOUT_PATH + "/images/specTitle" + index + ".gif");
	jQuery("#specSheetImage")[0].setAttribute("src", cobalt_paths.LAYOUT_PATH + "/images/specImage" + index + ".gif");
	jQuery("#specSheetData").html(specData[this.id]);	
});

jQuery("#specSheetHead button.closeButton").click( function() {
	jQuery('#specSheet iframe').remove();
	jQuery("#specSheet").hide();
	jQuery("#specSheetImage")[0].setAttribute("src","");
});