/*global $ */
function SPECIALEDITION() {
	
	function attachEvents() {	
	
		$('.productThumbnails img').click(function () {		
			var thisSRC = this.src;
			thisSRC = thisSRC.replace("icon", "large");
			$(".mainProductImage").attr("src", thisSRC);
			$(".highlightImage").css("left", $(this).position().left + 49 + "px");
		});
		
		$('.btnPurchase').click(function () {	return false;
			$('#productArea').css("display", "none");
			$('#modelSelection').css("display", "block");
			$('.btnPurchase').css("display", "none");
		});
		
		$('.backToProduct').click(function () {	return false;
			$('#modelSelection').css("display", "none");
			$('#productArea').css("display", "block");
			$('.btnPurchase').css("display", "block");
		});
		
		$("#staticNav a").click(function () {
			$("#dsLowerSection").removeClass().addClass("show" + this.title);
			return false;
		});
		
		$(".modelHolder button").click(function () {	return false;
			$('#AddToCartForm').submit();		
		});	
		
	}
	
	function setupProduct(){
		$("#cwPFPContent").load("/products/stealth-macbook-pro/features.html", null, function () {
			attachEvents();
			var myCWCOMMON = new CWCOMMON();
			myCWCOMMON.setupProductVideo();
		});	
	}
	setupProduct();


}

$(document).ready(function () {
	SPECIALEDITION();
});


