$(document).ready(function() { 	
	$('#banner-images').cycle({timeout:5000, fx:'fade'});
	$('#container .link-box-wrapper').hover(function(){  
		$(".cover", this).stop().animate({height:'170px'},{queue:false,duration:300});  
	}, function() {  
		$(".cover", this).stop().animate({height:'40px'},{queue:false,duration:300});  
	}); 
	$('#menu-primary-navigation li#menu-item-26').hover(function(){  
		$("ul", this).stop().animate({height:'200px'},{queue:false,duration:300}).fadeTo("slow", 1);  
		$("li", this).fadeTo("slow", 1);  
	}, function() {  
		$("ul", this).stop().animate({height:'0'},{queue:false,duration:200}).fadeTo("fast", 0); 
		$("li", this).fadeTo("fast", 0);  
	}); 
	$('#menu-primary-navigation li ul#menu-item-26').click(function(){  
		$(this).stop().animate({height:'0'},{queue:false,duration:200}).fadeTo("fast", 0);   
		$("li", this).fadeTo("fast", 0);  	
	}); 
	var w = 50;	
	$('ul#children-of-current li').each(function(){
   		w += $(this).width();
  	});
	$('ul#children-of-current ').css('width',w);
	$('.thanks').hide();
	$('.contactform input[type=submit]').click(function() {
		$('.contactform').fadeOut();
		$('.thanks').fadeIn();		
	});
});
