
jQuery(document).ready(function() {
								
$(".roll").hover(
function()
{
this.src = this.src.replace(".gif","-on.gif");
},
function()
{
this.src = this.src.replace("-on.gif",".gif");
}
);

var url = document.URL;
var pathname = url.substring(url.lastIndexOf('/')+1);

		switch(pathname)
		{
		case 'index.html':
		  $('#nav1').attr({src : "images/home-on.gif"});
		  $('#nav1').unbind();
		  break;
		case 'port-douglas-queensland.html':
		  $("#nav2").attr({src : "images/location-on.gif"});
		  $('#nav2').unbind();
		  break;
		case 'port-douglas-accommodation.html':
		  $('#nav3').attr({src : "images/apartments-on.gif"});
		  $('#nav3').unbind();
		  break;
		case 'port-douglas-accommodation-facilities.html':
		$('#nav4').attr({src : "images/facilities-on.gif"});	 
		$('#nav4').unbind();
		  break;
		case 'port-douglas-accommodation-specials.html':
		  $('#nav5').attr({src : "images/specials-on.gif"});
		 $('#nav5').unbind();
		  break;
		  case 'contact-the-white-house-port-douglas.html':
		  $('#nav6').attr({src : "images/contactus.gif"});
		 $('#nav6').unbind();
		  break;		
		}
});


