$(function() {
	
	//start accordion, close all option by default
	if($("#accordion").length > 0) {	
    	$( "#accordion" ).accordion({active:false});
    } 
	
	//add class to style submit buttons on order forms.
	if ($(".bestel-form").length > 0) {
		$('input:not([type=submit])').addClass('input-field');
		$('input[type=submit]').addClass('submit-btn');
		
		$('.bestel-form table').css('width','454');
		
		$('.bestel-form tr').each(function(index) {
			$(this).find('td:eq(0)').css('width','112');	
			$(this).find('td:eq(1)').css('width','313').attr('valign','top');				
			$(this).find('td:eq(2)').css('width','15');		
			
/*			$('.bestel-form td:eq(0)').css('width','112');
			$('.bestel-form td:eq(1)').css('width','313').attr('valign','top');
			$('.bestel-form td:eq(2)').css('width','15');*/
		});
		
/*		$('.bestel-form td:eq(0)').css('width','112');
		$('.bestel-form td:eq(1)').css('width','313').attr('valign','top');
		$('.bestel-form td:eq(2)').css('width','15');*/
		
		
		
	}
	
});
