$(document).ready(function(){
						   
var pageURL = window.location.href;
var fmpsitelistexact = [
"http://physicianupdate.mayoclinic.org/"
];
var fmpurlinurl = [	
"http://www.mayoclinic.org/medicalprofs/",
"http://dotorgdev.mayo.edu/medicalprofs/",
"http://www.mayoclinic.org/medicalprofs-sct/",
"http://dotorgdev.mayo.edu/medicalprofs-sct/",
"http://www.mayoclinic.org/medicalprofs-jax/",
"http://dotorgdev.mayo.edu/medicalprofs-jax/",
"http://www.mayoclinic.org/medicalprofs-rst/",
"http://dotorgdev.mayo.edu/medicalprofs-rst/",
"http://www.mayoclinic.org/grand-rounds/",
"http://dotorgdev.mayo.edu/grand-rounds/",
"http://www.mayoclinic.org/medicalprofs/updates.html",
"http://dotorgdev.mayo.edu/medicalprofs/updates.html",
"http://www.mayoclinic.org/publications-md/",
"http://dotorgdev.mayo.edu/publications-md/",
"http://www.mayoclinic.org/clinical-update/",
"http://dotorgdev.mayo.edu/clinical-update/",
"http://www.mayoclinic.org/cardionews-rst/",
"http://dotorgdev.mayo.edu/cardionews-rst/",
"http://www.mayoclinic.org/endocrinology-update/",
"http://dotorgdev.mayo.edu/endocrinology-update/",
"http://www.mayoclinic.org/neurosciences-update/",
"http://dotorgdev.mayo.edu/neurosciences-update/",
"http://www.mayoclinic.org/orthopedic-update/",
"http://dotorgdev.mayo.edu/orthopedic-update/",
"http://www.mayoclinic.org/psychiatry-update/",
"http://dotorgdev.mayo.edu/psychiatry-update/",
"https://www.mayoclinic.org/_portal/html/C/physicians.html?URL=%2Fwps%2Fmyportal%2F&HOSTNAME=onlineservices.mayoclinic.org&PROTOCOL=http&ERROR_TEXT=&ERROR_CODE=0x00000000",
"https://dotorgdev.mayo.edu/_portal/html/C/physicians.html?URL=%2Fwps%2Fmyportal%2F&HOSTNAME=onlineservices.mayoclinic.org&PROTOCOL=http&ERROR_TEXT=&ERROR_CODE=0x00000000",
"https://www.mayoclinic.org/_portal/html/C/contact-information.html?URL=%2Fwps%2Fmyportal%2F&HOSTNAME=onlineservices.mayoclinic.org&PROTOCOL=http&ERROR_TEXT=&ERROR_CODE=0x00000000",
"https://dotorgdev.mayo.edu/_portal/html/C/contact-information.html?URL=%2Fwps%2Fmyportal%2F&HOSTNAME=onlineservices.mayoclinic.org&PROTOCOL=http&ERROR_TEXT=&ERROR_CODE=0x00000000",
"https://www.mayoclinic.org/_portal/html/C/practice-sign-up.html?URL=%2Fwps%2Fmyportal%2F&HOSTNAME=onlineservices.mayoclinic.org&PROTOCOL=http&ERROR_TEXT=&ERROR_CODE=0x00000000",
"https://dotorgdev.mayo.edu/_portal/html/C/practice-sign-up.html?URL=%2Fwps%2Fmyportal%2F&HOSTNAME=onlineservices.mayoclinic.org&PROTOCOL=http&ERROR_TEXT=&ERROR_CODE=0x00000000"
];

for (var i = 0; i < fmpsitelistexact.length; i++){
	if(fmpsitelistexact[i] == pageURL){
		$('#l_patientcare').removeClass('on');
		$('#l_medprofessionals').addClass('on');
		break;
	}
	if(fmpsitelistexact.length == i+1){
		checkurlinurl();	
	}
}

function checkurlinurl(){
	for (var x = 0; x < fmpurlinurl.length; x++){
		if(pageURL.indexOf(fmpurlinurl[x]) != -1){
			$('#l_patientcare').removeClass('on');
			$('#l_medprofessionals').addClass('on');
			break;			
		}		
	}	
}

});
