jQuery.noConflict();
jQuery(document).ready(function($) {    
  /* News Scrollable Startseite */
  $("div.scrollable").scrollable({         
    size: 3,         
    items: 'div#thumbs',           
    hoverClass: 'hover',
    loop: true,
    speed: 2000
  }).autoscroll({interval: 6000,autoplay: true}).circular(); 
  
	$('input[type=checkbox],input[type=radio]').prettyCheckboxes({
		checkboxWidth: 17, // The width of your custom checkbox
		checkboxHeight: 17, // The height of your custom checkbox
		className : 'prettyCheckbox', // The classname of your custom checkbox
		display: 'list' // The style you want it to be display (inline or list)
	}); 
	

  
  function calculateoptions() 
  {    
    var total = 0;
    
    jQuery('select').each(function () 
    {
      if(total == 0)
      {
        total = parseInt(total) + parseInt($(this).val());
      }
      else
      {
        total = parseInt(total) * parseInt($(this).val());
      }
    });
    
    $('#sum').html(total);
    $('#summe1').val(total);   
  }
  
  $('select').change
  (function () 
    {
      calculateoptions();
    }
  );
  
  calculateoptions();
  
  $(document).pngFix(); 
});