function getFileName() {
	//this gets the full url
	var url = document.location.href;
	//this removes the anchor at the end, if there is one
	url = url.substring(0, (url.indexOf("#") == -1) ? url.length : url.indexOf("#"));
	//this removes the query after the file name, if there is one
	url = url.substring(0, (url.indexOf("?") == -1) ? url.length : url.indexOf("?"));
	//this removes everything before the last slash in the path
	url = url.substring(url.lastIndexOf("/") + 1, url.length);
	//return
	return url;
}


function getSiteNameBanner()
{
	var fname=getFileName();
        var f='';
	switch(fname)
	{
		case 'guest_list.htm':
		case 'bottle_menu.htm':
		case 'reservations.htm':
                        f='images/Reservations';
			break;
		case 'contact.htm':
                        f='images/Bookings';
			break;
		case 'friday.htm':
                        f='images/Fridays';
			break;
		case 'gallery.htm':
                        f='images/Gallery';
			break;
		case 'saturday.htm':
                        f='images/Saturdays';
			break;
		case 'sunday.htm':
                        f='images/Sundays';
			break;
		case 'thursday.htm':
                        f='images/Thursdays';
			break;
		case 'venue_gallery.htm':
                        f='images/CorpGallery';
			break;
	}
	
	return f;
}
