// check what page we're in
var file = document.URL;
//the number in the following line should be the # of characters of the url minus 2
file = file.substring(file.lastIndexOf("http://www.versartis.com/test/content")+35);
if (file == "index.htm") {
//	document.home.src = "./images/btn_home_on.gif";
}
else if (file.search("aboutus") != -1) {
		//alert(file);
		$(function(){
		$('#navigation ul li.about a')
		.css({opacity:1,backgroundPosition: '0px -35px'}) //fixes the current button at full opacity
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (file.search("team") != -1) {
		$(function(){
		$('#navigation ul li.team a')
		.css({opacity:1,backgroundPosition: '0px -35px'}) //fixes the current button at full opacity
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (file.search("approach") != -1) {
		$(function(){
		$('#navigation ul li.approach a')
		.css({opacity:1,backgroundPosition: '0px -35px'}) //fixes the current button at full opacity
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (file.search("portfolio") != -1) {
		$(function(){
		$('#navigation ul li.portfolio a')
		.css({opacity:1,backgroundPosition: '0px -35px'}) //fixes the current button at full opacity
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (file.search("news") != -1) {
		$(function(){
		$('#navigation ul li.news a')
		.css({opacity:1,backgroundPosition: '0px -35px'}) //fixes the current button at full opacity
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}
else if (file.search("contact") != -1) {
		$(function(){
		$('#navigation ul li.contact a')
		.css({opacity:1,backgroundPosition: '0px -35px'}) //fixes the current button at full opacity
		.animate('disabled', 'disabled'); //disables the animation on the current button
	});
}


