(function($) {

	$.gwf = {
	
            // settings
	    version: 1,
	    settings: {},
		
            // loader
	    load: function() {
	    	// add events
	    	this.addEvents();
	    	// jquery ui accordion
	    	$('.accordion').accordion({autoHeight:false});
	    	$('.accordion .recursive-accordion').accordion({
	    		fillSpace:true
    		});
	    	// jcarousel
	    	$('#jcarousel').jcarousel({
	            // Configuration goes here
                    scroll: 1 // prevents double-scroll
	        });
	    },
		
            // event loader
            addEvents: function() {
                    // resize recursive accordions on accordion change of the parent accordion
                    $('.accordion').bind('accordionchange', function(event, ui) {
                            $('.accordion .recursive-accordion').accordion('resize');
                    });
            }
		
	}; // end gwf
})(jQuery);

