$(function() {
	if ($.browser.opera) {
		$('.input_ > span.input_rt, .input_ > span.input_rb').css('right', '-2px');
	}

	if ($.browser.opera || $.browser.msie) {
		$('#user_box > ul > li.active')
			.css('background', 'url("/img/bg_user_menu_active_l.png") left top no-repeat')
			.children('a').css('background', 'transparent url("/img/bg_user_menu_active_r.png") right top no-repeat');
		}

/*
	$('#head_box > nav > ul > li > a, #user_box > ul > li > a').click(function() {
		$(this).parent()
			.siblings().removeClass('active').end()
			.addClass('active');
		return false;
	});*/
	
	$('.default')
		.focus(function() {
			if(this.value == this.defaultValue) {
				this.value = '';
			}
		})
		.blur(function() {
			if(!this.value.length) {
				this.value = this.defaultValue;
			}
		});

	$('textarea#message').autogrow();
});

