
/*
==================== jQuery скрипты =====================*/  
var $j = jQuery.noConflict();



/* добавка стиля к ссылке картинки
------------------------------------------------------- */
$j(document).ready(function() {  
        $j('div.text a img').parent().addClass('shutterset');
});

/* зебра */	
$j(document).ready(function() {  
		$j('table.zebra').find('tr:even').addClass('tr3');
});




/* всплывающее меню
------------------------------------------ */
$j(document).ready(function(){
    $j('ul.topmenu li').hover(
        function() {
            $j(this).addClass("active");
            $j(this).find('ul').css({opacity: 0}).hide();
            $j(this).find('ul').animate({opacity: 1}, 400).show();
        },
        function() {
            $j(this).removeClass("active"); 
            $j(this).find('ul').css({opacity: 0}).hide();
        }
    );
});



/* всплывающее меню Туры
------------------------------------------ */
$j(document).ready(function(){
    $j('ul.tour li').hover(
        function() {
            $j(this).addClass("active");
            $j(this).find('ul').css({opacity: 0}).hide();
            $j(this).find('ul').animate({opacity: 1}, 400).show();
        },
        function() {
            $j(this).removeClass("active"); 
            $j(this).find('ul').css({opacity: 0}).hide();
        }
    );
});

$j(document).ready(function(){
    $j('ul.mainmenu li').hover(
        function() {
            $j(this).addClass("active");
            $j(this).find('ul').css({opacity: 0}).hide();
            $j(this).find('ul').animate({opacity: 1}, 400).show();
        },
        function() {
            $j(this).removeClass("active"); 
            $j(this).find('ul').css({opacity: 0}).hide();
        }
    );
});


/* appear_menu 2 Админка
---------------------------------------------- */
$j(document).ready(function(){
    $j('div.t-admin').hover(
        function() {
            $j(this).find('ul').css({opacity: 0}).hide();
            $j(this).find('ul').animate({opacity: 1}, 300).show();
        },
        function() {
            $j(this).find('ul').css({opacity: 0}).hide();
        }
    );
});



/* === Show/Hide on Click === */
$j(document).ready(function(){

	$j('a:attr[class=b1]').toggle(
		function() {
			$j('div#' + $j(this).attr('class').slice(0,2)).animate({height: 'show'}, 200);
		},
		function() {
			$j('div#' + $j(this).attr('class').slice(0,2)).animate({height: 'hide'}, 200);
		});
});




	
/* табы
------------------------------------- */
$j(document).ready(function(){

	$j('#' + $j('span.tab-current').attr('class').slice(0,3)).removeClass('hidden');

	$j('span:attr[alt=t]').click(function(){ 
		$j('#tabs-divs > div').css({opacity: 0}).hide();
		$j('#' + $j(this).attr('class').slice(0,3)).animate({opacity: 1}, 1000).show(); 
		$j('span:attr[alt=t]').removeClass('tab-current');
		$j(this).addClass('tab-current');	  
	});
	
});


