var $j = jQuery.noConflict();
$j(document).ready(function(){

//h1 alignment with side-menu

// Single Blog/News Post Effects
	
	$j(".info_content_top div, .info_content_bottom div, #comment_holder").fadeTo(0,0.3);
	
	$j(".info_content_top div, .info_content_bottom div, #comment_holder").bind("mouseenter", function(){
		$j(this).stop().fadeTo('normal', 1);
	}).bind("mouseleave", function () {
		$j(this).stop().fadeTo('fast', 0.3);
	});


// search bar text
	$j(".widget_search input[type=text]").fadeTo(0,0.3).val("Search + Enter").focus(function(){
		$j(this).val("");
		$j(this).unbind("mouseleave");
	}).blur(function(){
		$j(this).val("Search + Enter");
		$j(this).stop().fadeTo(300,0.3);
		bindSearch($j(this));
	});
	bindSearch($j(".widget_search input[type=text]"));
	
	function bindSearch(el){
		el.bind("mouseenter", function(){
			$j(this).stop().fadeTo(300,1);
		}).bind("mouseleave", function(){
			$j(this).stop().fadeTo(300,0.3);
		});
	}


// set homepage ribbon opacity
	var ribbon = $j(".frontpage-1row").css("opacity");
	ribbon = parseFloat(ribbon);
	$j(".frontpage-1row, .frontpage-2row, .frontpage-3row").fadeTo(0,ribbon);

});
