$(document).ready(function(){	
	///////////////////// gallery
	$('.thumbnails li.thumb div').css({backgroundImage: 'url('+$(this).find('img').attr('src')+')'});
	$('.thumbnails li.thumb div').hover(function(){
		$(this).find('span').animate({right: "0"});
		$(this).find('a.zoom').animate({opacity: "toggle"}, 'normal');
		$(this).find('a.info').animate({opacity: "toggle"}, 'normal');
	}, function(){
		$(this).find('span').animate({right: "180px"});
		$(this).find('a.zoom').animate({opacity: "toggle"}, 'normal');
		$(this).find('a.info').animate({opacity: "toggle"}, 'normal');
	});
	$('.thumbnails li.thumb div a.info').click(function(){ return false; });
	$('.thumbnails li.thumb div span').css({opacity: "0.7"});
	///////////////////// messages
	$('.message').click(function(){
		$(this).animate({ height: "toggle" }, 'normal');
	});
	///////////////////// main menu animation
	$('.main-menu li a').hover(function(){
		$(this).animate({ backgroundColor: "#81ba17"}, 'normal');
	});
	//////////////////// language selection
	$('.selected-language').hover(function(){
		$(this).find('#avb-lang').animate({ height: "toggle" }, 'normal');
	});
	/////////////////// login panel
	$('.login-link a').click(function(){
		$('#login-panel').animate({ height: "toggle" }, 'normal');
		return false;
	});
	////////////////// toggle
	$('.toggle').click(function(){
		$(this).next().animate({ height: "toggle" }, {duration: 800, easing: 'easeOutBounce'});
	});
	///////////////// tool Tips
	$('.thumbnails li.thumb div a.info').easyTooltip()
})

Cufon.replace('.main-container h1, .main-container h2, .main-container h3, .main-container h4, .logo-container h2, .box h2');