$(document).ready(function(){
	
	$('.radius.all').css({'border-radius':'7px'});
	$('.radius.bottom').css({'border-radius':'0 0 7px 7px'});
	$('.radius.top').css({'border-radius':'7px 7px 0 0'});
	
	$('.noticias .item').hover(
		function(){$(this).css('background','#F3F7FC');},
		function(){$(this).css('background','transparent');}
	);
	
    if( $(".noticias .item").length > 4 ){
        $(".noticias").fadeTransition({
            pauseTime: 4000,
            transitionTime: 1000,
            delayStart: 0,
            pauseOnMouseOver: true,
            createNavButtons: false
        });  
    }
    
     
     $("input[type=file]").each(function(){ 
		
        var w = $(this).attr('width');
        w = parseInt(w);
        if( w < 1){ w = 300 }
	    $(this).filestyle({ 
			 image: SITE_URL+"images/upload.png",
			 imageheight : 28,
			 imagewidth : 100,
			 width : w
		});
	 });
     
     
     
     $('.sidebar a[href="javascript:;"]').click(function(){
         $(this).toggleClass('current');
         $(this).next('.submenu').slideToggle(500);
     });
	
});


