//
// NHLS Javascript
// Based on Mootools library framework
// $Id$
//
var NHLSCore = new Class(
{
Implements: [Options,Events],
options:
{
base_url: "",
current_tab: "",
display_mode: "",
action_dispatch: "",
ajaxResponse: "",
ajaxResponseXML: "",
fixedActionDispatch: "",
moduleObject: "",
displayMode: "min",
subDisplayMode: "list",
suppressDisplay: "false"
},
/**
* Initialize the core, sets the options
* @param
Set of options defined in the header
*/
initialize: function( options )
{
this.setOptions( options );
},
/**
* Initializes the Helper() system for writing
* help text bubbles next to input items
*/
initHelperSys: function()
{
//
// Called from the module class, only as needed
var openForHelpers = $$('div.helperText');
if( openForHelpers && openForHelpers.length > 0 )
{
var languageObj = new Language();
openForHelpers.each( function(el)
{
//
// Need to inject the helper image
if( Browser.Engine.trident && Browser.Engine.version == 4 )
{
var helperElement = new Element( 'img',
{
'src': 'resources/images/forms/help.gif',
'class' : 'helperImage',
'title' : languageObj.getString(el.id)
});
}
else
{
var helperElement = new Element( 'img',
{
'src': 'resources/images/forms/help.png',
'class' : 'helperImage',
'title' : languageObj.getString(el.id)
});
}
//
// Inject at the end of the DIV
helperElement.inject(el);
//delete helperElement;
});
var helperImages = $$('img.helperImage');
if( helperImages && helperImages.length > 0 )
{
var myTips;
if( Browser.Engine.trident )
{
myTips = new Tips(helperImages, {
className: 'helperImageText',
offsets: {'x':-9, 'y':-52},
onShow: function(tip)
{
tip.setStyle('opacity','0.9')
}
});
}
else
{
myTips = new Tips(helperImages, {
className: 'helperImageText',
offsets: {'x':-8, 'y':-42},
onShow: function(tip)
{
tip.setStyle('opacity','0.9')
}
});
}
}
}
},
/**
* Initializes the Module object
* @param