/*  $Id$
 *  
 *  This file is part of the Jamiedia Toolkit.
 *  Copyright 2007/2009, Jamiedia Ltd., http://www.jamiedia.co.uk
 *  
 *  This file may not be used or (re)distributed for any other
 *  purposes than a commercial deployment by Jamiedia of a system
 *  based on the Jamiedia Toolkit. No modifications may be made to
 *  this file by anyone, except for individuals working for Jamiedia Ltd.
 *
 *  File description:
 */

(function($) {
    $(document).ready(function() {
        // Setup navigation accordion
//        $('#navigation').accordion({
//           autoHeight: false,
//            header: 'li a:not(li ul a)',
//            navigation: true,
//            collapsible: true
//        });
        
        // Bind top level items of accordion to add and remove active class
        $('#navigation li a:not(li ul a)').click(function() {
            $('#navigation li').removeClass('active');
            $(this).parent().addClass('active');
            
            if (this.blur)
                this.blur();
        });
        
        $('#navigation li a.ui-state-active').parent().addClass('active');
        
        $.ifixpng('resources/jquery/ui/images/pixel.gif');
        $('img.transparent').ifixpng();
        //$('#front-img-box img[src$=.png]').ifixpng();
    });
})(jQuery);
