$(document ).ready(function () {
    $('.dropdown li' ).hover(function () {
        $('ul', this ).stop(true, true).slideDown(500); }
    , function () {
        $('ul', this ).stop(true, true).slideUp(500); }
    ); }
);


$(document ).ready(function () {
    $('.menu2 li' ).hover(function () {
        $('ul', this ).stop(true, true).slideDown(500); }
    , function () {
        $('ul', this ).stop(true, true).slideUp(500); }
    ); }
);

/// Hack JS para acertar o BUG do zIndex no IE7
$( function () {
    if ( $.browser.msie == true && parseInt( $.browser.version ) < 8 ) {
        var zIndexNumber = 1000; $( 'div' ).each( function () {
            $( this ).css( 'zIndex', zIndexNumber ); zIndexNumber -= 10; }
        ); 
		$( "#menuHome" ).css( 'zIndex', 10000000 );
		//alert('< 8');
	}
		
		
}
);



(function($) {
    $(function() { //on DOM ready
        $("#scroller").simplyScroll({
            speed: 3,
            frameRate: 30,
			horizontal: 'true'
        });
    });
})(jQuery);


function formatText(index, panel) {
          return index + "";
        }
        $(function () {
            $('#sliderHome').anythingSlider({
                easing: "easeInOutExpo",        
                autoPlay: true,                 
                delay: 3000,                    
                startStopped: false,            
                animationTime: 700,             
                hashTags: false,                 
                buildNavigation: true,          
                pauseOnHover: true,             
                startText: "Continuar",          
                stopText: "Parar",               
                navigationFormatter: formatText       
            });
            
            $("#slide-jump").click(function(){
                $('.anythingSlider').anythingSlider(6);
            });
        });
		




$(document).ready(function(){
   ////
   						   
$("a[rel=lytebox]").fancybox({
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'titlePosition' 	: 'outside',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});


})



$(document).ready(function(){
/////////////////////////////////

$("#formNews").validate();
 
 
//////////////
});


