var prices = new Array();

function go_back(){
history.go(-1);
}

function put_price(sel,disc){
	
	ind = (sel.options.selectedIndex);
	id = (sel.options[ind].value); 
	
	betal = document.getElementById('my_betaalmethode');
	ind1 = (betal.options.selectedIndex);
	id1 = (betal.options[ind1].value);
	if(id1==2){
		id = 0;
	}
	
	sub_total = (document.getElementById('subtotal_price').innerHTML.substr(7));
	sub_total = sub_total.replace(",","");
	sub_total = parseFloat(sub_total).toFixed(2);
	document.getElementById('transport_cost').innerHTML = '&euro;&nbsp;'+prices[id].toFixed(2);
	if(disc==-1){
	total_price1 = (parseFloat(sub_total)*(1.19)+parseFloat(prices[id])).toFixed(2);
	
	}else{
	discount = parseFloat(prices[id])-parseFloat(disc);
	if(discount<0)
		discount=0;
	document.getElementById('transport_discount').innerHTML = '-&nbsp;&euro;&nbsp;'+discount.toFixed(2);
	total_price1 = (parseFloat(sub_total)*(1.19)+parseFloat(prices[id])).toFixed(2)-parseFloat(discount).toFixed(2);
	}
	//total_price1 = Math.round(parseFloat(total_price1)).toFixed(2);
	total_price1 = parseFloat(total_price1).toFixed(2);
	document.getElementById('total_price').innerHTML = '&euro;&nbsp;'+total_price1;
	
}
jQuery(document).ready(function(){
		var imgSrc = "url(/images/footer_back_active.jpg)"; 
		var imgSrc2 = "url(/images/footer_back.jpg)"; 
		jQuery('div#prod_list').pngFix();
		jQuery("div.footer_div").hover(function () {
      	jQuery(this).css({'height' : '30px','background-image' : imgSrc});
	    }, function () {
     	var cssObj = {
        'height' : '21px',
        'background-image' : imgSrc2
        }
	    jQuery(this).css(cssObj);
   	 	});
   	 	jQuery(function() {
			jQuery('.prod_left a').lightBox();
		});
		
	});
