<!--
$(document).ready(
    function() {
		if ($('#menu').height()>446)
			$('#right_col_in').css('margin-top',$('#menu').height()+5+'px');
		((!-[1,])&&(jQuery.browser.version == 6)) ? ie6 = true : ie6 = false;
		if (ie6) {
			$('div.energy img').each(function(){
				$(this).attr('src',$(this).attr('src').replace('ball','ball_ie'));
			});
			DD_belatedPNG.fix('div.energy img');
		} else {
			menuBtn = $('div.energy');
			menuBtnTop = new Array();
			menuBtnLeft = new Array();
			for(i=0;i<$(menuBtn).length;i++) {
				menuBtnTop[i] = $(menuBtn).eq(i).position().top;
				menuBtnLeft[i] = $(menuBtn).eq(i).position().left;
			}
			$(menuBtn).mouseenter(function(){
				if($(this).width()==125) {
					$(this).animate({
						width: '158px',
						height: '153px',
						top: $(this).position().top-17+'px',
						left: $(this).position().left-17+'px',
						fontSize: '15px'
					}, 200);
				}
			});
			$(menuBtn).mouseleave(function(){
				$(menuBtn).each(function() {
					$(this).animate({
						width: '125px',
						height: '121px',
						top: menuBtnTop[$(menuBtn).index(this)]+'px',
						left: menuBtnLeft[$(menuBtn).index(this)]+'px',
						fontSize: '13px'
					}, 200);
				});
			});
		}
		
		$('#login_pwd_text').focus(function(){
			$(this).hide();
			$('#login_pwd input').focus();
		})
		
		$('#login_pwd input').blur(function(){
			if ($(this).val()=='') $('#login_pwd_text').show()
		})
		
		$('#login_login input').focus(function(){
			if ($(this).val()=='Логин') $(this).val('');
		});
		
		$('#login_login input').blur(function(){
			if (!/[\wа-яА-Я]/.test($(this).val())) $(this).val('Логин');
		});
		
		/*$('#help input').focus(function(){
			if ($(this).val()=='Задайте ваш вопрос') $(this).val('');
		});
		$('#help input').blur(function(){
			if (!/[\wа-яА-Я]/.test($(this).val())) $(this).val('Задайте ваш вопрос');
		});*/
		
		$('area[href="#"]').click(function(){
			window.print();
			return false
		})
        
		$('a.lightbox').lightbox();
		
	}
);
// -->
