/* Declare a namespace for the site */
var Site = window.Site || {};

/* Create a closure to maintain scope of the '$'
   and remain compatible with other frameworks.  */
(function($) {
	
	//same as $(document).ready();
	$(function() {
		
		

	});


	$(window).bind("load", function() { 
						
						
				$('#slider').tabs({ fx: { opacity: 'toggle', selected: 1 } });
				    
				
		    
		    
		    if ($('.purchaseoption').length != 0) { 
	
				$('.purchaseoption label input').change(function() {
				
					//reset everything
					$('.purchaseoption-selected').addClass('purchaseoption');
					$('.purchaseoption').removeClass('purchaseoption-selected');
					
					
					if ($(this).is(':checked')) {
						
							$(this).parent().parent().removeClass('purchaseoption');						
							$(this).parent().parent().addClass('purchaseoption-selected');

					
					}
					else {	
							
							$(this).parent().parent().removeClass('purchaseoption-selected');						
							$(this).parent().parent().addClass('purchaseoption');
					
					}

				
				});
			
			  }			
							
	});
	
	
	
})(jQuery);
