// JavaScript Document
//Date: 20100118
//Author: JD
//Description: JS file for settings classes for nav tabs automatically
var loc = window.location.pathname.toLowerCase();

element = document.getElementById('pageHome');
if (element == null) {
    element = document.getElementById('pageRooms');
}

if (String(loc).indexOf('wedding') > -1)
	element.className = 'sectionWeddings pageTertiary';
if (String(loc).indexOf('meeting') > -1)
	element.className = 'sectionMeetings pageTertiary';
if (String(loc).indexOf('bedrooms') > -1)
	element.className = 'sectionServices pageTertiary';
if (String(loc).indexOf('building') > -1)
	element.className = 'sectionBuilding pageTertiary';
if (String(loc).indexOf('team.htm') > -1 || String(loc).indexOf('team.aspx') > -1)
	element.className = 'sectionTeam pageTertiary';
if (String(loc).indexOf('contact-us') > -1)
	element.className = 'sectionContact pageTertiary';
if (String(loc).indexOf('special') > -1)
    element.className = 'sectionSpecial pageTertiary';
if (String(loc).indexOf('news') > -1)
    element.className = 'sectionNews pageTertiary';

/**
* scrolls to the top of the page
*/
function scrollToTop() {
    $('html, body').animate({ scrollTop: 0 }, 'slow');
    return false;
}

/**
* setup jquery lightbox galleries
*/
$(function() {
    $("#galleryList a").lightBox();
});
