 var sPath = window.location.pathname;
//var sPage = sPath.substring(sPath.lastIndexOf('\\') + 1);
var sPage = sPath.substring(sPath.lastIndexOf('/') +1);
var sFile = sPage.substring(0,sPage.length -4);
//alert(sPage);


$(document).ready(function () {


	$("div.trigger_recipe").each(function(){
	     $(this).mouseover(function () {
	     	var section = $(this).attr("id").replace("thumb_","");
	     	showTip(section);
	     });
	});

	$("div.trigger_recipe").each(function(){
	     $(this).mouseout(function () {
	     	var section = $(this).attr("id").replace("thumb_","");
	     	hideTip(section);
	     });
	});


});


function showTip(section){
     $('#tip_content_'+section).fadeIn(150);
}

function hideTip(section){
     $('#tip_content_'+section).fadeOut(70);
}


function showSelected(section){
     $('#selected_'+section).fadeIn(10);
}
