// JavaScript Document

//Luxe Spa Effects Handler
//Requires: mooTools 1.1 or later.

//Declare luxeScroller.
var luxeScroller;
var initialized = false;

//This function initiates the luxeScroller object when the page is fully loaded.
//It also sets "initialized" to true.
function initLuxeFx(){
	luxeScroller = new Fx.Scroll(window);
	initialized = true;
}

//This function scrolls the window to the target element, which can nearly anything.
// ..div tags, id, etc.

function scrollLuxe(targetElement){
	
	//Make sure the scroller is initialized so the browser doesn't complain.
	//If not initialized, do nothing and return. (Innocuous)
	if(initialized){
		//Scroll to the target element.
		luxeScroller.toElement(targetElement);
	}
	else return;
}
