// aerotech js

$(document).ready(function(){

	$('a.footerimagelink').live('mouseover mouseout',function(event){
		if(event.type == 'mouseout'){
			// scale down
			$(this).find('img').stop().animate({
				width: '120px',
				height: '90px',
				left: '6px',
				top: '5px'
			},200);
		} else {
			// scale up
			$(this).find('img').stop().animate({
				width: '132px',
				height: '100px',
				left: '0px',
				top: '0px'
			},200);
		}
	});

	c = 0;
	max = $('.footerimage_outer').length;
	doFade(c,max);
});


function doFade(c,max){
	$div = $('#footerdiv_'+c);
	$div.fadeIn(1000).delay(5000).fadeOut(1000,function(){
		c++;
		if(c==max){ c=0; }
		doFade(c,max);
	});
}


