$(document).ready(function(){
var IE='\v'=='v';
if(IE) {
	alert('Ваш браузер INTERNET EXPLORER не поддерживает требуемых стандартов для полноценного просмотра нашего сайта. Воспользуйтесь любым из Chrome, Safari, Mozilla(FireFox), Opera браузером.')

     
$("div.contentimg,div#leftside img").live('mouseenter',function(){$(this).stop(true,true).animate({'opacity':0},150).animate({'opacity':0.8},900);return false;});
$("div.contentimg,div#leftside img").live('mouseleave',function(){$(this).stop(true,true).animate({'opacity':0},150).animate({'opacity':1},500);return false;});


}else{
var b2 = document.getElementById('b2'),
    b = document.getElementById('b'),
    hit = document.getElementById('hit'),
    fon = document.getElementById('fon');

        $('a.ajaxy').click(function() {
                hit.currentTime = 0;hit.play();
                return false;
            });
        $("div.play").click(function(){
                    fon.play();
                    $(this).hide();  
                    $('div.pause').show(); 
        });
        $("div.pause").click(function(){
                    fon.pause();
                    $(this).hide();  
                    $('div.play').show(); 
        });
	$('ul#menu li span').bind('mouseenter',function() { b2.currentTime = 0;b2.play();
                $(this).animate({'marginLeft':'15','opacity':0.5},100,'easeOutBack').animate({'marginLeft':'5','opacity':1},100,'easeOutBack');
	}).bind('mouseleave',function() {
                $(this).animate({'marginLeft':'1','opacity':0.5},100,'easeOutBack').animate({'marginLeft':'5','opacity':1},100,'easeOutBack');
	});
	$('div.barmenulist,div.barmenulistl,div.barmenulistr').live('mouseenter',function() { b2.currentTime = 0;b2.play();
                $(this).animate({'marginLeft':'15','opacity':0.5},100,'easeOutBack').animate({'marginLeft':'5','opacity':1},100,'easeOutBack');
	});
	$('div.barmenulist,div.barmenulistl,div.barmenulistr').live('mouseleave',function() {
                $(this).animate({'marginLeft':'1','opacity':0.5},100,'easeOutBack').animate({'marginLeft':'5','opacity':1},100,'easeOutBack');
	});
	$('div.barmenulistr').live('mouseenter',function() { b2.currentTime = 0;b2.play();
                $(this).animate({'marginRight':'15','opacity':0.5},100,'easeOutBack').animate({'marginRight':'5','opacity':1},100,'easeOutBack');
	});
	$('div.barmenulistr').live('mouseleave',function() {
                $(this).animate({'marginRight':'1','opacity':0.5},100,'easeOutBack').animate({'marginRight':'5','opacity':1},100,'easeOutBack');
	});
        $('div.allitem').live('mouseenter',function(){
                var $item = $(this);b2.currentTime = 0;b2.play();
                $item.find('div').animate({'marginTop':'0','opacity':0.9},300,'easeOutBack');
                });
        $('div.allitem').live('mouseleave',function(){
                var $item = $(this);
                $item.find('div').animate({'marginTop':'-200','opacity':0},300,'easeOutBack');
                });
	$('#menu li').bind('mouseenter',function(){
		var $el = $(this); b.currentTime = 0;b.play();
                $el.find('a.mainmenu').animate({height:40},{duration: 200, easing: 'easeInBack'}).animate({height:25},{duration: 100, easing: 'easeOutBack'});
                $el.find('#menubara').show().animate({'top':'7'},200,'easeOutBack');
                $el.find('#japanmenu').show().animate({'top':'7'},300,'easeOutBack');
                $el.find('#kartabara').show().animate({'top':'7'},400,'easeOutBack');
                $el.find('#upcomingevents').show().animate({'top':'7'},200,'easeOutBack');
                $el.find('#pastevents').show().animate({'top':'7'},300,'easeOutBack');
                $(this).css({'height':'120px'});
	}).bind('mouseleave',function(){
		var $el = $(this);
		$el.find('a.mainmenu').animate({height:10},{duration: 100, easing: 'easeInBack'}).animate({height:20},{duration: 100, easing: 'easeInBack'});
                $el.find('#menubara').animate({'top':'0'},200).hide();
                $el.find('#japanmenu').animate({'top':'0'},300).hide();
                $el.find('#kartabara').animate({'top':'0'},400).hide();
                $el.find('#upcomingevents').animate({top:'0'},300).hide();
                $el.find('#pastevents').animate({top:'0'},400).hide();
                $(this).css({'height':'30px'});$(".example5").colorbox();
	});	
        $("a[rel='example1']").colorbox();
        $("div#utro").colorbox({inline:true, href:"div#utrodiv"});
        $(".wellcome").colorbox({iframe:true,innerWidth:360,innerHeight:250});
$("div.contentimg,div#leftside img").live('mouseenter',function(){$(this).stop(true,true).animate({'opacity':0},150).animate({'opacity':0.8},900);return false;});
$("div.contentimg,div#leftside img").live('mouseleave',function(){$(this).stop(true,true).animate({'opacity':0},150).animate({'opacity':1},500);return false;});

}

});

