jQuery.noConflict();
jQuery(document).ready(function($){

	$('a[rel="external"]').click(function(event) {
		event.preventDefault()
		window.open( $(this).attr('href') );
	});

	$('#nav li').hover(function() {
		$(this).addClass('hover');
	}, function() {
		$(this).removeClass('hover');
	});
	
	$("#nav").superfish({
		hoverClass:	 'hover', 
		delay:		  0,
		speed:		  'fast',
		animation:	  {opacity:'show',height:'show'},
		autoArrows:	 false,
		dropShadows: false
	});
	
	$(".jump").change(function() {
		var val = $(this).val();
		if (val != '') location.href = val;
	});
	
	$("a[class*='prettyPhoto']").prettyPhoto({
		animationSpeed: 'fast',
		theme: 'dark_square',
		showTitle: false
	});
	
	$('#iagree').change(function() {
		if ( $(this).is(':checked') ) {
			$('#checkout-button').removeAttr('disabled');
		} else {
			$('#checkout-button').attr('disabled', 'disabled');
		}
	})
	
	// $('#checkout').submit(function() {
	// 	if ( !$('#iagree').is(':checked') ) {
	// 		alert('You must agree to our Terms & Policies');
	// 		return false;
	// 	}
	// });
});