$('#add-to-cart table tr.attribute select').change(function() {
	var options = [];
	$(this).parents("form").find("select[name^='attributevalue_']").each(function() { 
		options.push( $(this).val() || 'All' ); 
	});
	for ( var i in attributes ) {
		var update = false;
		for( var j in attributes[i].attributes ) {
			update = ( attributes[i].attributes[j] == "All" ) ? true : ( attributes[i].attributes[j] == options[j] ) ? true : false ;
			if ( !update ) { break; }
		}
		if ( update ) {				
			$('#add-to-cart table #our td span').css('display', 'none').text(attributes[i].showPrice).fadeIn('slow');
			$('#add-to-cart table #sku td span').css('display', 'none').text(attributes[i].sku).fadeIn('slow');
			if( !isNaN(attributes[i].isbn) ) {
				var save = ( attributes[i].isbn - attributes[i].price );
				$('#add-to-cart table #retail td span').css('display', 'none').text('$' + attributes[i].isbn).fadeIn('slow');
				$('#add-to-cart table #save td span').css('display', 'none').text('$' + save.toFixed(2)).fadeIn('slow');
			}
			break; 
		}
	}
});