jQuery(document).ready(function(){
		$("#menu_grad_grey_content_acordion").accordion({header: "h3" ,
			autoHeight: false,
			alwaysOpen: false});

           var aCycels = $(".cycle");
           if(aCycels !=null && aCycels.length >0){
            if(aCycels.length > 1){ 
                   var currentCycle = 1;
                   aCycels.hide();
                   var iCycle = 0                                     
                   showboxDemo(iCycle,aCycels);
                 }
           }
});


function showboxDemo(iCycle,aCycle) {    
    if(iCycle <= aCycle.length ){
        var iNext = iCycle+1;  
        if(aCycle[iNext] == null ){ iNext = 0; }        
        $(".cycle").eq(iCycle).hide();
        $(".cycle").eq(iNext).fadeIn(2000).animate({foo: 1}, 10000,function(){  showboxDemo(iNext,aCycle); });
        //$(".cycle").eq(iNext).fadeIn(6000, function(){  showboxDemo(iNext,aCycle); });
        //$(".cycle").eq(iNext).fadeIn(1000, function(){  setTimeout("showboxDemo("+iNext+","+aCycle+")",500); });
    }
}

