$(function() {

	var sPath = String(window.location);
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	var mPage = sPage.substring(0, sPage.lastIndexOf('?'));
		
	var j = 0;
	var l = 0;
	
	if (sPage.indexOf('&')>-1)
	{sPage = sPage.substring(0, sPage.indexOf('&'));}
	
	
	while($(".contentMenu a[href*="+ mPage +"]").eq(j).hasClass("ignore"))
 	{j++;}
	
	
	while($(".contentMenu a[href*="+ sPage +"]").eq(l).hasClass("ignore"))
 	{l++;}	
	
	if (mPage != '') {
		$(".contentMenu a[href*=" + mPage + "]").eq(j).addClass("active");
	}
	if (sPage != '') {
		$(".contentMenu a[href*=" + sPage + "]").eq(l).addClass("active");
	}
});