// JavaScript Document
  
//Carousel de imagens 
 function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
		scroll: 2,
		vertical: true,
        auto: 3,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
});


//Ultimos trabalhos
$(function() {  
   $('#pai').show(); //exibe a div pai  
   $('#pai').cycle({  
	   fx:     'fade',  
	   timeout: 14000,  
	   speed: 500,  
	   next:   '.next',  
	   prev:   '.previous'  
   });  
 });  
 
 function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
setInterval("MM_showHideLayers('apDiv1','','hide')", 20000);


DD_belatedPNG.fix('.png_bg');


