$(document).ready(function(){
 $("#body-background").ezBgResize();


	/* This code is executed after the DOM has been completely loaded */

	/* Changing thedefault easing effect - will affect the slideUp/slideDown methods: */
	$.easing.def = "easeOutBounce";

	/* Binding a click event handler to the links: */
	$('li.button a').click(function(e){
	
		/* Finding the drop down list that corresponds to the current section: */
		var dropDown = $(this).parent().next();
		
		/* Closing all other drop down sections, except the current one */
		$('ul.dropdown').not(dropDown).slideUp('slow');
		dropDown.slideToggle('slow');
		
		/* Preventing the default event (which would be to navigate the browser to the link's address) */
		e.preventDefault();
	})
	
	
	
	
	
	$('.menuitem img').animate({width: 50}, 0); //Set all menu items to smaller size
	$('.menuitem').mouseenter(function(){ //When mouse over menu item  
	 gridimage = $(this).find('img'); //Define target as a variable 
	  gridimage.effect("bounce", { times:1 }, 500); //Animate image expanding to original size
	  }).mouseout(function(){ //When mouse no longer over menu item  
	  
	     });  
$('.tester img').animate({width: 80}, 0); //Set all menu items to smaller size
$('.tester').effect( 'bounce', 
          {times:3}, 300 );

$(".panell").toggle("fast");
		$(this).toggleClass("active");
		return false;





});



$(function() {
  $("#logobounce").one('load', function () {
    $(this).show("slide", { direction: "up" }, 3000);
  }).each(function() {
    if(this.complete) $(this).load();
  });
});


