$j(document).ready(function(){
	
	$j('input#s').focus(
		function(){;
			if(this.value)
				this.value = '';
		}
	);
	
	$j('input#s').blur(
		function(){;
			if(this.value == '')
				this.value = 'What are you looking for?';
		}
	);
	
	$j('input#aldbu-aldbu').focus(
		function(){;
			if(this.value)
				this.value = '';
		}
	);
	
	$j('input#aldbu-aldbu').blur(
		function(){;
			if(this.value == '')
				this.value = 'Your e-mail address';
		}
	);
	
	$j('.right_col input.name, .right_col input.email, .right_col input.phone').focus(
		function(){;
			if(this.value)
				this.value = '';
		}
	);
	
	$j('.right_col input.name').blur(
		function(){;
			if(this.value == '')
				this.value = 'Full name';
		}
	);
	
	$j('.right_col input.email').blur(
		function(){;
			if(this.value == '')
				this.value = 'E-mail address';
		}
	);
	
	$j('.right_col input.phone').blur(
		function(){;
			if(this.value == '')
				this.value = 'Phone number';
		}
	);
	
	$j('.right_col textarea').focus(
		function(){;
			if(this.innerHTML)
				this.innerHTML = '';
		}
	);
	
	$j('.right_col textarea').blur(
		function(){;
			if(this.innerHTML == '')
				this.innerHTML = 'Additional comments';
		}
	);
	
	$j('.extras select').change( function() {    
		if(this.value){
			window.location.href = this.value;
		}
	});
	
	$j('.index_bottom .events .entry:odd').addClass('odd');
	
	$j("ul.sitemap > li").css('margin-bottom','10px');	
	$j("ul.sitemap > li > a").addClass('topLevel');	
	
	$j('table.data tr:odd').addClass('odd');
	$j('table.data tr td:first-child').css('padding-left', '20px');
	$j('table.data tr td:last-child').css('padding-right', '20px');
	$j('table.data td *:last-child').css('margin-bottom', '0');
	
	$j('table.tabular tr:odd').addClass('odd');
	$j('table.tabular td *:last-child').css('margin-bottom', '0');
	
	/** cross-browser first and last children css **/
	$j('#header .utility_nav li:last-child').css('margin-right', '0');
	$j('#navigation .links li:first-child').addClass('first');	
	$j('#hero .content table tr td:first-child').css('padding-right', '10px');
	$j('#content #main blockquote *:last-child').css('margin-bottom', '0');
	$j('#content #main h2 .page_nav a:last-child').css('border-right', '0');
	$j('#index_bottom .areas_of_excellence ul:last-child').css('margin-right', '0');
	$j('#footer .sitemap .col_container .col:last-child').css('margin-right', '0');
	$j('body.blog #content .sidebar .box li:last-child').css('border-bottom', '0');
	$j('body.blog #content .sidebar .box *:last-child').css('margin-bottom', '0');
	$j('#content #main table.dividers tr:last-child td').css('background', 'none', 'padding-bottom','0');
	$j('#content #main table.dividers td *:last-child').css('margin-bottom', '0', 'padding-bottom','0');
	$j('body.subpage #content #main .two_col .right_col .box ul.links li:first-child').css('border-top', 'none');
	$j('body.subpage #content #main .two_col .right_col .box ul.links li:last-child').css('border-bottom', 'none');
	
	
	if($j.trim($j('.comments_nav .links').text()) == "") {
	  $j('.comments_nav').remove();
	}
	
	$j('p').filter(function() {
        return $j.trim($(this).html()) === ''
    }).remove();
	
	$j('.wpcf7 br').remove();
	
	
});
