// Main Nav init
var listMenu = new FSMenu('listMenu', true, 'display', 'block', 'none');
listMenu.animations[listMenu.animations.length] = FSMenu.animFade;
listMenu.animations[listMenu.animations.length] = FSMenu.animSwipeDown;
var arrow = null;
if (document.createElement && document.documentElement)
{
 arrow = document.createElement('span');
 arrow.appendChild(document.createTextNode('>'));
 arrow.className = 'subind';
}
addEvent(window, 'load', new Function('listMenu.activateMenu("listMenuRoot")'));


// Side Nav init
jQuery().ready(function() {
    jQuery('#menu_side').accordion({
        header: '.msg_head',
        active: false,
        alwaysOpen: false,
        animated: 'easeslide',
        autoheight: false
    });

    // If the accordion only contains 1 item, display it, and lock the accordion
    if ($('.msg_head').length == 1) {
        $('#menu_side').accordion('activate', 0);
        //$('#menu_side').accordion('disable');
    }
});

//lightbox init
$(document).ready(function() {

	$('code').each(function(){
		$(this).html($.trim($(this).html()));
	});
	
	$('.lightbox').lightbox({
		fileLoadingImage: '/images/loading.gif',
		fileBottomNavCloseImage: '/images/closelabel.gif'
	});
	
});







	


