/**
 *  Global Calls
 */
(function()
{
    /**
     *  Fix IE background image flicker
     *  http://www.mister-pixel.com/
     */
    try
    {
	    document.execCommand('BackgroundImageCache', false, true);
    }
    catch(e) {}
})();

/**
 *  SunGard Initialization
 */
var SunGard = {
    init: function()
    {
        new SunGard.SIFR();
    }
};

/**
 *  sIFR implementation
 */
SunGard.SIFR = Class.create({
    // Constructor
    initialize: function()
    {
        if (typeof sIFR == 'function')
		{
		    sIFR.replaceElement('#logo-segment', named({sFlashSrc: themePath + 'flash/avenir-55-roman.swf', sColor: '#FFFFFF', sWmode: 'transparent', sCase: 'upper'}));
		    sIFR.replaceElement('#content h1', named({sFlashSrc: themePath + 'flash/avenir-65-medium.swf', sColor: '#3A3A3A', sWmode: 'transparent', sCase: 'upper', nPaddingBottom: '12'}));
		}
    }
});

document.observe('dom:loaded', SunGard.init.bind(SunGard));