jQuery.noConflict();
jQuery(document).ready(function($){
	$('#checkout').hover(securityDisplay, securityHide);
	$('#securityPopUp').hover(securityPopUpDisplay, securityPopUpHide);	
	$('#forgottenPass span').click(function() {$('#forgottenPass').hide();});
	$('#secureInformation span').click(function() {$('#secureInformation').hide();});
	
	$('#close1').click(function() {
		$('#popUpOne').removeClass('show');
		$('#popUp1').removeClass('active');
	}); 
	
	$('#close2').click(function() {
		$('#popUpTwo').removeClass('show');
		$('#popUp2').removeClass('active');
	}); 
	
	$('#close3').click(function() {
		$('#popUpThree').removeClass('show');
		$('#popUp3').removeClass('active');
	}); 
	
	$('#close4').click(function() {
		$('#popUpFour').removeClass('show');
		$('#popUp4').removeClass('active');
	}); 
	$('#close5').click(function() {
		$('#popUpFive').removeClass('show');
		$('#popUp5').removeClass('active');
	}); 
	
	$('#close6').click(function() {
		$('#popUpSix').removeClass('show');
		$('#popUp6').removeClass('active');
	}); 
	
	$('#close7').click(function() {
		$('#popUpSeven').removeClass('show');
		$('#popUp7').removeClass('active');
	}); 
	
	$('#close8').click(function() {
		$('#popUpEight').removeClass('show');
		$('#popUp8').removeClass('active');
	}); 
	
	$('#close10').click(function() {
		$('#photoPop').removeClass('show');
		//var backgroundimage = "background-image: url(" + $('.img-list a.first').attr('href') + ");";
		//$('#image-background').attr("style", backgroundimage);
	});
	
	$('.img-list a').hover(function() { 
		$('.img-list a').removeClass('active');
		$(this).addClass('active');
		//var backgroundimage = "background-image: url(" + $(this).attr('href')+");";
		//$('#image-background').attr("style", backgroundimage);
	}); 
	
	$('.MagicZoomPlus').click(function(){
		popUp(10);
		return false;
	})
})

var $jq = jQuery.noConflict();

function securityDisplay() {
	$jq('#secureShoppingGuarantee').show();	
}

function securityHide() {
	$jq('#secureShoppingGuarantee').hide();	
}

function securityPopUpDisplay() {
	$jq('#safeAndSecure').show();
}

function securityPopUpHide() {
	$jq('#safeAndSecure').hide();
}

function popUp(key) {
	if (key == 0) {
		$jq('#popUpOne').addClass('show').vCenter();
		$jq('#popUp1').addClass('active');	
	}
	if (key == 1) {
		$jq('#popUpTwo').addClass('show').vCenter();
		$jq('#popUp2').addClass('active');	
	}
	if (key == 2) {
		$jq('#popUpThree').addClass('show').vCenter();
		$jq('#popUp3').addClass('active');	
	}
	if (key == 3) {
		$jq('#popUpFour').addClass('show').vCenter();
		$jq('#popUp4').addClass('active');	
	}
	if (key == 4) {
		$jq('#popUpFive').addClass('show').vCenter();
		$jq('#popUp5').addClass('active');	
	}
	if (key == 5) {
		$jq('#popUpSix').addClass('show').vCenter();
		$jq('#popUp6').addClass('active');	
	}
	if (key == 6) {
		$jq('#popUpSeven').addClass('show').vCenter();
		$jq('#popUp7').addClass('active');	
	}
	if (key == 7) {
		$jq('#popUpEight').addClass('show').vCenter();
		$jq('#popUp8').addClass('active');	
	}
	if(key == 8) $jq('#forgottenPass').show().vCenter();
	if(key == 9) $jq('#secureInformation').show().vCenter();
	if(key == 10) $jq('#photoPop').vCenterPhoto().addClass('show');
}
