/*
window.onload = function() {
    var curStr = document.getElementById("breadCrumbNav").innerHTML;
    var newStr = '<\strong>{module_pagename}<\/strong>'	
    updStr = curStr.replace(/{module_pagename}/,newStr);	
    document.getElementById("breadCrumbNav").innerHTML = updStr;
}
*/
$(function() {
	//these two line adds the color to each different row
	$("#nutritionTable tr:even").addClass("eventr");;
	$("#nutritionTable tr:odd").addClass("oddtr");;
	//handle the mouseover , mouseout and click event
	//$("#mytable tr").mouseover(function() {$(this).addClass("trover");}).mouseout(function() {$(this).removeClass("trover");}).click(function() {$(this).toggleClass("trclick");}); 

	$("#sidebar_content").find("a").each(function(){
		if( location.href.indexOf(this.href) != -1) {
			$(this).addClass("selected");
			//handling left menu child
			$(this).parents("li").addClass("selected");
		}
	});
	
	$("#expertImg").find("a").each(function(){
		if( location.href.indexOf(this.href) != -1) {
			$(this).addClass("selected");
		}
	});	
	
	$("#expertArrow").find("a").each(function(){
		if( location.href.indexOf(this.href) != -1) {
			$(this).addClass("selected");
			document.getElementById('subNav4a').setAttribute("class", "subNav4a selected");
		}

	});	
	
});
