$(document).ready(function(){
	//tables style
	$(".table1 tr").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");});
	$(".table1 tr:even").addClass("alt");
	
	//photo Gallery
	$('.thumbnails .img_link').hover(function(){$(this).find('img').animate({opacity:'0.5'},100).animate({opacity:'1'},300)},function(){})
	$('.thumbnails2 .img_link').bind('mouseenter',function(){$(this).animate({opacity:'0.5'},100).animate({opacity:'1'},300)},function(){})

	// img style
	$('.content>img,.content>p>img').addClass('cont_img')

	//background anim
	$('.top_menu_bg a')
		.css({backgroundPosition: "50% -40px"})
		.mouseover(function(){$(this).stop().animate({backgroundPosition:"(50% 0)"},{duration:300})})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(50% -40px)"}, {duration:200, complete:function(){
				$(this).css({backgroundPosition: "50% -40px"})
			}})
		})
	$('.top_menu_bg a.cur').css({backgroundPosition: "0 -10px"}).mouseout(function(){$(this).stop()})
	
	/*-----------------------*/
	$(window).load(function(){
		//code	
	})
	
	$(".gallery a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
});
