// Dropdown menu
    $(document).ready(function(){
								   
		$('.nav ul ul').css("display", "none");
	
		$('.nav ul li').hover(function(){
			$(this).stop().find('ul:first').slideToggle({duration:100, easing: 'easeInQuart'});
		},
		function(){
			$(this).find('ul:first').slideToggle({easing: 'easeOutQuart'});
		});
     });


// Dropdown menu
    $(document).ready(function(){
								   
		$('.formin').css("display", "none");
	
		$('#showform').click(function(){
			$(".formin").toggle(350);
		},
		function(){
			$(".formin").toggle(350);
		});
     });
	
	

$(document).ready(function(){
	$(".block_middle li a").wrapInner('<span></span>');
});

$(document).ready(function(){
	$(".block_middle li a").hover(function(){
		$(this).find('span').stop().animate({marginLeft:'10px'},{queue:false, duration:100, easing: 'easeInBack'})
	},function(){
		$(this).find('span').stop().animate({marginLeft:'0px'},{queue:false, duration:300, easing: 'easeOutQuart'})
	});
 
});


$(document).ready(function(){
	$(".testimonial").hover(function(){
		$(this).find('p').stop().css({"color":"#222"},{queue:false, duration:1500, easing: 'easeInQuart'})
	},function(){
		$(this).find('p').stop().css({"color":"#999"},{queue:false, duration:1500, easing: 'easeOutQuart'})
	});
 
});
$(function () {
	$('#main img').hide();//hide all the images on the page
});

var i = 0;//initialize
var int=0;//Internet Explorer Fix
$(document).ready(function() {//The load event will only fire if the entire page or document is fully loaded
	var int = setInterval("doThis(i)",150);//500 is the fade in speed in milliseconds
});

function doThis() {
		var images = $('img').length;//count the number of images on the page
		if (i >= images) {// Loop the images
			clearInterval(int);//When it reaches the last image the loop ends
		}
		$('#main img:hidden').eq(0).fadeIn(350);//fades in the hidden images one by one	
		i++;//add 1 to the count
}


