// 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')
		.css({backgroundPosition: '0px 28px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (dirname.search("practice") != -1) {
		$(function(){
		$('#navigation ul li#thepractice')
		.css({backgroundPosition: '0px 28px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (dirname.search("medical") != -1) {
		$(function(){
		$('#navigation ul li#medicalprocedures')
		.css({backgroundPosition: '0px 28px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (dirname.search("cosmetic") != -1) {
		$(function(){
		$('#navigation ul li#cosmeticprocedures')
		.css({backgroundPosition: '0px 28px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (dirname.search("gallery") != -1) {
		$(function(){
		$('#navigation ul li#gallery')
		.css({backgroundPosition: '0px 28px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (dirname.search("media") != -1) {
		$(function(){
		$('#navigation ul li#media')
		.css({backgroundPosition: '0px 28px'}) //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')
		.css({backgroundPosition: '0px 28px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}



