var SiteFLIR = {
	start: function(){
		FLIR.init( { path: webroot + '/js/common/libraries/facelift/' } );
		FLIR.replace( 'h3', new FLIRStyle({ cFont:'CoconBoldCondensed', mode:'fancyfonts', ff_Wrap:true }) );
		FLIR.replace( 'h4', new FLIRStyle({ cFont:'CoconBoldCondensed', mode:'fancyfonts', ff_Wrap:true }) );
	}
}

var MooTip = {
	start: function(){
		var customTips = $$('#navi a');

		customTips.each(function(e) {  
			var content = e.getParent();
			content = content.getChildren('span');
			e.store('tip:text', content[0]);  
		});  

		var toolTips = new Tips(customTips, {
									className: 'mooTip', 
									fixed: 'true', 
									showDelay: 500, hideDelay: 500,
									offsets: { x: -70, y: -50 },

									onShow: function(toolTipElement){
											toolTipElement.fade(1);
									},

									onHide: function(toolTipElement){
											toolTipElement.fade(0);
									}
		});
	}
};


var Site = {
	start: function(){
		SiteFLIR.start();
		MooTip.start();
	}
}

window.addEvent('domready', Site.start);
