// check what page we're in
var dirname = document.URL;

//the number in the following line should be the # of characters of the url minus 2
//dirname = dirname.substring(dirname.lastIndexOf("E:/Glycovaxyn/site/content/")+25);
if (dirname == "index.htm") {
//	document.home.src = "./images/btn_home_on.gif";
}
else if (dirname.search("company") != -1) {
		//alert(dirname);
		$(function(){
		$('#navigation ul li.company a')
		.css({backgroundPosition: '0px 0px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (dirname.search("leadership") != -1) {
		$(function(){
		$('#navigation ul li.leadership a')
		.css({backgroundPosition: '0px 0px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (dirname.search("pipeline") != -1) {
		$(function(){
		$('#navigation ul li.pipeline a')
		.css({backgroundPosition: '0px 0px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (dirname.search("partnering") != -1) {
		$(function(){
		$('#navigation ul li.partnering a')
		.css({backgroundPosition: '0px 0px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (dirname.search("news") != -1) {
		$(function(){
		$('#navigation ul li.news a')
		.css({backgroundPosition: '0px 0px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (dirname.search("contact") != -1) {
		$(function(){
		$('#navigation ul li.contact a')
		.css({backgroundPosition: '0px 0px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}


