// 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:/Biodel/site/content/")+25);
if (dirname == "index.htm") {
//	document.home.src = "./images/btn_home_on.gif";
}
else if (dirname.search("about") != -1) {
		//alert(dirname);
		$(function(){
		$('#navigation ul li.about 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("technology") != -1) {
		$(function(){
		$('#navigation ul li.technology 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("investors") != -1) {
		$(function(){
		$('#navigation ul li.investors 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
	});
}



