// check what page we're in
var file = document.URL;
//file = file.substring(file.lastIndexOf("/content")+57);
file = file.substring(file.lastIndexOf("http://192.168.1.106:97/content/")+30);
if (file == "index.htm") {
//	document.home.src = "./images/btn_home_on.gif";
}
else if (file.search("commercial") != -1) {
		//alert(file);
		$(function(){
		$('#navigation ul li.commercial a')
		.css({backgroundPosition: '0px -40px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (file.search("residential") != -1) {
		$(function(){
		$('#navigation ul li.residential a')
		.css({backgroundPosition: '0px -40px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (file.search("whysolar") != -1) {
		$(function(){
		$('#navigation ul li.whysolar a')
		.css({backgroundPosition: '0px -40px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (file.search("recentprojects") != -1) {
		$(function(){
		$('#navigation ul li.recentprojects a')
		.css({backgroundPosition: '0px -40px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (file.search("about") != -1) {
		$(function(){
		$('#navigation ul li.about a')
		.css({backgroundPosition: '0px -40px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (file.search("newsroom") != -1) {
		$(function(){
		$('#navigation ul li.newsroom a')
		.css({backgroundPosition: '0px -40px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (file.search("contact") != -1) {
		$(function(){
		$('#navigation ul li.contact a')
		.css({backgroundPosition: '0px -40px'}) //resets the current button to the original position
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
