$(document).ready(function(){

	// if IE6
	if(!window.XMLHttpRequest) {
	
		// Get source of logo image
		var source = $("img#logo").attr("src");
		var newSource = source.substr(0, source.length-3) + "gif";
		$("img#logo").attr("src", newSource);
		
	}

});


/**
 * Custom functions for Google map
 *
 * Because the header is included, we have to check
 * if the map is on the page. If it is, then run 
 * the Google map functions
 *
 */
function mapLoad() {
	if(document.getElementById("map")) {
		load();
	}
}

function mapGUnload() {
	if(document.getElementById("map")) {
		GUnload();
	}
}