jQuery(document).ready(function() {

	jQuery("#menu-nav-menu li a,h3.widget-title").each(function () {
		jQuery(this).html(jQuery(this).html().replace('&amp;','<span class="lightBlue">&amp;</span>'));
	});   
	   
	jQuery('ul li:first-child').addClass( 'first' );
	jQuery('ul li:last-child').addClass( 'last' );  
	
	jQuery('#sidebar .author-list .user:last').addClass( 'last' );
	
	jQuery('#comments ol.commentlist li:odd').addClass( 'odd' );
	jQuery('#comments ol.commentlist li:last').addClass( 'last' );
	
	
	jQuery("table").each(function () {
		jQuery(this).find('tr:odd').addClass( 'odd' );
		jQuery(this).find('tr:even').addClass( 'even' )
		jQuery(this).find('tr td:first-child').addClass( 'first' )
		jQuery(this).find('tr td:last-child').addClass( 'last' );
	});   
   
   	jQuery('.Tweet_This_Widget_display_callback').addClass('tweet_this_widget');
   
	jQuery('#content .post:first').addClass( 'first' );

    inputText(".search #s","Search...");
    
    inputText("#enterEmail","Enter Your Email Address");

});

function inputText(fieldSelect,text) {
	jQuery(fieldSelect).attr("value", text);

	jQuery(fieldSelect).focus(function() {
		jQuery(this).addClass("active");
		if(jQuery(this).attr("value") == text) jQuery(this).attr("value", "");
	});

	jQuery(fieldSelect).blur(function() {
		jQuery(this).removeClass("active");
		if(jQuery(this).attr("value") == "") jQuery(this).attr("value", text);
	});
    
}
