
$(function(){
	$('.blink')
		.focus(function(){
			if( $(this).val() == $(this).attr('title') ) {
				$(this).val('');
			}
		})
		.blur(function(){
			if( $(this).val() == '' ) {
				$(this).val( $(this).attr('title') );
			}
		});
		
	$('#navigation > ul > li').hover(function() {
		$(this).css({ 'z-index' : 100 });
		$(this).find('> ul').show();
		$(this).find('a:eq(0)').addClass('hover');
	}, function() {
		$(this).css({ 'z-index' : 1 });
		$(this).find('> ul').hide();
		$(this).find('a:eq(0)').removeClass('hover');
	});
	
	$('.search').hover(function () {
		$(this).find('.button').addClass('button-h');
		$('.search-nav').show();
	}, function () {
		$(this).find('.button').removeClass('button-h');
		$('.search-nav').hide();
	});
	
	$('.search-nav a').click(function () {
		$('.search-nav a').removeClass('active');
		$(this).addClass('active');
		return false;
	});
	
	$('.plan .radio').change(function () {
		$('.plan').removeClass('plan-h');
		$(this).parents('.plan').addClass('plan-h');
	});
});
