/**
 * Navigator Multimedia Scripts.
 * @author Chris Satterthwaite <chris@navigatormm.com.com>
 * @version 2.0
 * @copyright Copyright (c) 2008, Navigator Multimedia Inc
 */

var SiteFolder='adventurevalley/'; //Comment out when site is live//

/**
 * Sets On States for Main Navigation and Sub nav
 */ 
$(function(){SetDefault();});
function SetDefault(){
    var path = location.pathname.substring(1).replace(/adventurevalley\//,'');
    if ( !path ) return false;
	$('a[@href$="' + path + '"]').addClass('selected').parents().each(function(){$(this).children('a').addClass('selected');});
}; 

/**
 * Lightbox 4.0
 * 
 */
$(function() {
  $('#gallery a').lightBox({
  	overlayBgColor: '#000000',
	overlayOpacity: 0.8,
	imageLoading: 'http://badger/1-web-standard/images/lightbox/lightbox-ico-loading.gif',
	imageBtnClose: 'http://badger/1-web-standard/images/lightbox/lightbox-btn-close.gif',
	imageBtnPrev: 'http://badger/1-web-standard/images/lightbox/lightbox-btn-prev.gif',
	imageBtnNext: 'http://badger/1-web-standard/images/lightbox/lightbox-btn-next.gif',
	imageBlank:'http://badger/1-web-standard/images/lightbox/lightbox-blank.gif',
	containerResizeSpeed: 400,
	txtImage: 'Photo',
	txtOf: 'of',
	keyToClose: 'c',
	keyToPrev: 'p',
	keyToNext: 'n'
   });
});
