$(document).ready(function(){
	
	/*
	$('.stroka_inner').wrapInner('<div class="str"></div>')
	var str = $('.str')
	var w_str = $('.str').width()
	var w_wrap = $('.stroka_inner').width()
	function(){
		str.animate({left:w_str})
	}
	*/
	
	$('.menu_top a:first').addClass('mt_first')
	
	//tables style
	$(".table1 tr").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");});
	$(".table1 tr:even").addClass("alt");
	
	//photo Gallery
	$('.img_link').hover(function(){$(this).find('img').animate({opacity:'0.5'},100).animate({opacity:'1'},300)},function(){})

	// img style
	$('.content>img,.content>p>img').addClass('cont_img')

	//background anim
	$('.but_1')
		.css({backgroundPosition: "0 50%"})
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0 -150%)"},{duration:100})})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0 50%)"}, {duration:100, complete:function(){
				$(this).css({backgroundPosition: "0 50%"})
			}})
		})
	$('.top_menu_bg a.cur').css({backgroundPosition: "0 50%"}).mouseout(function(){$(this).stop()})
	
	/*-----------------------*/
	$(window).load(function(){
		$('.coll_h').height('auto')
		var h1 = $('#coll_1').height();
		var h2 = $('#coll_2').height();
		var h3 = $('#coll_3').height();
		var h = h1
		if(h < h2){h = h2}
		if(h < h3){h = h3}
		$('.coll_h').animate({height:h})
	})
	
	
	$('#slide_bg').innerfade({
		animationtype: 'fade',
		speed: 1000,
		timeout: 10000,
		type: 'sequence',
		containerheight: '126px'
	});
});
