function flipec(ctx)
{
    $(ctx).toggleClass('cls')
    $(ctx).toggleClass('exp')
    $('.xhidden', $(ctx)).toggle()
}

$(document).ready(function(){
    $('#mindex .xhidden').toggle() // close down all the menus
    $('#mindex .exp').click(function(){
        flipec(this)
        if (!$.browser.msie)
        {
            $('#indinner').shadowDestroy()
            $('#indinner').shadow()
        }
        return false
    })
    $('.libox').click(function(){
        window.location.href = $(this).children().attr('href')
	return false;
    })

    $('#mindex .dest').click(function() {
        window.location.href = $(this).attr('href')
	return false;
    })
    if (openitem)
    {
        flipec(openitem)
    }
})
