window.onload = function() {
	$(document).ready(function(){});
		 if(document.getElementById('center_banner')){
			setInterval('gogo()', 5000) ;
			$(document).ready(function(){
					$('#center_banner').hover(function(){
					document.getElementById('center_banner').className='ban_off';
				}, function() {
					document.getElementById('center_banner').className='ban_on';
					});
		});
		}
}
function turn_pic(pic){
	if (pic==14){pic=0}
	 $(document).ready(function(){
								var pos_pic=-(pic*315);
	  $('#cbanner_4 ul').stop().animate({left: pos_pic+"px"},{queue:false,duration:2000});
	  $(".cbanner_act").removeClass ('cbanner_act');
	  $(document.getElementById('cbanner_1').getElementsByTagName('a')[pic]).toggleClass ('cbanner_act');
	   document.getElementById('cbanner_1').className='banner_pos_'+pic;
	    });
}
function gogo(){
	if(document.getElementById('center_banner').className=='ban_on'){
	$(document).ready(function(){
					var ul_pos=document.getElementById('cbanner_1').className;
					ul_pos=ul_pos.replace(/banner_pos_/, "");
					ul_pos=ul_pos-0;
					ul_pos=ul_pos+1;
					turn_pic(ul_pos);
				});
	 }
	
}
  $(document).ready(function(){ 
    // ÐÀÑÊÐÛÂÀËÊÀ ÑÒÀÒÅÉ
    var page = $('.right_side');    
    var expanderTitle = '';
    $('.expander', page).click( function() {
        var rel = $(this).attr('rel');
        $('.expander.expanderE', page).each(function(){
            if ($(this).attr('rel') == rel)
                return;

            $(this).removeClass('expanderE').find('span').show();
            var par = $(this).parent().parent();            
            par.find('.contBody, h2 .expander').hide();
        });       
        
        if ( !$(this).hasClass('expanderE') ){
            $('.expander[rel=' + rel + ']').addClass('expanderE')/*.find('span').hide()*/;
            $(this).parent().parent().find('.contBody').show();
            $('h2 .expander[rel=' + rel + ']').show();            
        } else {
            $('.expander[rel=' + rel + ']').removeClass('expanderE')/*.find('span').show()*/;
            $(this).parent().parent().find('.contBody').hide();            
            $('h2 .expander[rel=' + rel + ']').hide();                       
        }
        

    }) 
});    
