$(document).ready(function(){
	$("#donate-to-wamp-button").click(function(){
		$("#donate-to-wamp-form").submit();		
	});
	
	$("#membership-to-wamp-button").click(function(){
		$("#membership-to-wamp-form").submit();		
	});
	
	/*

   $('.image-fade-rotator').innerfade({
         animationtype: 'slide',
         speed: 4000,
         type: 'random'
   });
 */
   $('.news').show();

/*   $('.news').innerfade({
         animationtype: 'fade',
         speed: 1000,
         timeout: 15000,
         type: 'random'
   });  */

	$('.image-fade-sponsor-rotator').cycle({
		fx: 'fade'
	});
	
	$('.innerfade.news').cycle({
		fx: 'fade',
		timeout: 6000
	});
	

   $('#footer .sponsors').show();

  /* $('.image-fade-sponsor-rotator').innerfade({
         animationtype: 'fade',
         speed: 2000,
         timeout: 4000,
         type: 'random_start',
         containerheight: '100px'
   }); */
                  
   $("#jquerytabs").tabs();
   
	$("#accordion").accordion({
		collapsible: true, 
		autoHeight: false, 
		active: false 
	});
	 
	$("ul.sf-menu").superfish({
		autoArrows: false
	});   
	Cufon.replace('h1, p.head, ul.sf-menu > li > a, #left-sidebar h3', {  fontFamily: 'Ubuntu' });  /*IE has display bug if the sub menus get rendered */
	
	$('.newsletter input[type=submit]').css('width','90px');

	$('input[type=submit], a.button, #forum-search a, .forum-buttons a, #login  a').button();
	
});

	
	
	
