$(function () {
 	var myLayout;
	$(function () {
		myLayout = $('body').layout({
			 applyDefaultStyles: true
			,north__togglerLength_open:0
			,south__togglerLength_open:0
			,east__togglerLength_open:0
			,west__showOverflowOnHover: true
	
	});	
});	
	$( ".cui_homeAccordion" ).accordion({
			autoHeight: false,
			navigation: true
});
});
function cui_leftNav()
{
	$(".cui_leftNav a").mouseover(function(){	
            $(this).addClass("cui_navHover")          
});
	$(".cui_leftNav a").mouseout(function(){	
            $(this).removeClass("cui_navHover");         
});
	$(".cui_leftNav a").click(function(){	
            $(this).addClass("cui_navSelected").siblings().removeClass("cui_navSelected");         
    })	
}

;
(function($) {
    $.fn.extend({
         cuiLoad:function(url,func){
            if(typeof url =='undefined')return;
            $("#loadingmsk").fadeIn("fast");
            this.load(url,function(){
                   $("#loadingmsk").fadeOut("fast");
            })
        }
    });
})(jQuery);

function cuiLoad(url){
   $("#rcontent").cuiLoad(url);
}



function indexLoad(){
 cuiLoad(); 
 cui_leftNav();
}
