//fcc.events.cart.postprocess.add( function(e){ } );

function showOptionImg( obj ){
	oType = jQuery('form#product_form select#type option:selected');
	if( oType.length ){
		option_price = oType.text().split('$');
		option_price = option_price[1].replace(',','')*parseInt(jQuery('form#product_form select#quantity option:selected').text());
		jQuery('#product_price').html( parseFloat( option_price ).toFixed(2) );
	}
}

jQuery(document).ready(function($){
    // rounded corners plugin
    //$('#header_menu div.links').corner("bottom 5px");
    //$('#header #nav li.active a').corner("top 5px");

	$('#logo img').click(function(){
		window.location = '/';
	}).css({'cursor':'pointer'});

    cType = $('form#product_form select#type');
    cType.bind('change keyup', function(){
      showOptionImg( this );
    });
    qType = $('form#product_form select#quantity');
    qType.bind('change keyup', function(){
      showOptionImg( this );
    });
    showOptionImg( cType );    
});

