$(function() {
	$("#search input[type='text'], #subscribe input[type='text']").focus(function() {
		notice = this.getAttribute('notice');

		if($(this).val() == notice) {
			$(this).val('');
		}

	}).blur(function() {
		notice = this.getAttribute('notice');

		if($(this).val() == '') {
			$(this).val(notice);
		}
	});
});


// Меню
$(function() {
	$("#head li:not(.active)").hover(function() {
		this.className = 'hover';
	}, function() {
		this.className = '';
	});
});

function popupReport(obj) {
	var href = obj.href ? obj.href : null;
	window.open(href,'report','toolbar=no,status=no,location=no,menubar=no,resizable=yes,scrollbars=yes,width='+screen.width+',height=600')
}

$(function(){
	$("a.report").click(function(){
		popupReport(this);
		return false;
	});
	
	$("form.report input[type='submit']").click(function(){
		popupReport(this);
	});
});
