// JavaScript Document

$(document).ready(function(){

$('.nav_title,.nav_abta,.pngfix,').ifixpng(); 

$('.boxgrid.caption').hover(function(){
 		//$('.cover', this).stop().animate({top:'135px'},{queue:false,duration:160}).fadeTo(160, 1).animate( { backgroundColor: '#f0f0f0' }, 200);
		$('.cover', this).stop().animate({top:'135px'},{queue:false,duration:160}).animate( { backgroundColor: '#ffffff' }, 200);

	}, function() {
		$(".cover", this).stop().animate({top:'155px'},{queue:false,duration:160});
		//$('.cover', this).fadeTo(160, 0.85);
		$(".cover", this).animate( { backgroundColor: '#f0f0f0' }, 500);			
		
	});

$('.boxgrid1.caption1').hover(function(){
		$('.cover1', this).stop().animate({top:'0px'},{queue:false,duration:'slow',easing:'easeOutExpo'});
		$('.cover2', this).stop().animate({top:'-50px'},{queue:false,duration:'slow',easing:'easeOutExpo'});//THIS ONE IS USED ON V2

	}, function() {
		$(".cover1", this).stop().animate({top:'-550px'},{queue:false,duration:'slow',easing:'easeInExpo'});
		$(".cover2", this).stop().animate({top:'400px'},{queue:false,duration:2000,easing:'easeInExpo'}); //THIS ONE IS USED ON V2
		//$(".cover1", this).animate( { backgroundColor: '#f0f0f0' }, 500);			
		
	});

$('#ad_frame').hover(function(){
		$('#ad_content').fadeOut('slow');	

	}, function() {
		$('#ad_content').fadeIn('slow');			
	});



});
