function activaGaleriaNews(num){
$('div.navigation').css({'width' : '862px', 'float' : 'left'});
//$('div.slideshow img').css({'position' : 'absolute', 'top' : '0px','left' : '0px'});
$('div.content').css('display', 'block');

var onMouseOutOpacity = 0.4;

num=1;
$('#thumbs ul.thumbs li').opacityrollover({
	mouseOutOpacity:   onMouseOutOpacity,
	mouseOverOpacity:  1.0,
	fadeSpeed:         'fast',
	exemptionSelector: '.selected'
});
 $('#thumbs').galleriffic({
	delay:                     5000,
	numThumbs:                 12,
	preloadAhead:              8,
	enableTopPager:            false,
	enableBottomPager:         false,
	maxPagesToShow:            7,
	imageContainerSel:         '#slideshow',
	controlsContainerSel:      '#controls', 
	captionContainerSel:       '',
	loadingContainerSel:       '#loading',
	renderSSControls:          false,
	renderNavControls:         true,
	playLinkText:              '',
	pauseLinkText:             '',
	prevLinkText:              '&lt; Prev ',
	nextLinkText:              ' Next &gt;',
	nextPageLinkText:          '',
	prevPageLinkText:          '',
	enableHistory:             false,
	autoStart:                 false,
	syncTransitions:           true,
	defaultTransitionDuration: 600,
	onSlideChange:             function(prevIndex, nextIndex) {
		this.find('ul.thumbs').children()
			.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
			.eq(nextIndex).fadeTo('fast', 1.0);
	},
	onPageTransitionOut:       function(callback) {
		this.fadeTo('fast', 0.0, callback);
	},
	onPageTransitionIn:        function() {
		this.fadeTo('fast', 1.0);
	}
});
}


/*------------------------UTILS------------------------------------------*/

jQuery.fn.fadeIn = function(speed, callback) { 
    return this.animate({opacity: 'show'}, speed, function() { 
        if (jQuery.browser.msie)  
            this.style.removeAttribute('filter');  
        if (jQuery.isFunction(callback)) 
            callback();  
    }); 
}; 
 
jQuery.fn.fadeOut = function(speed, callback) { 
    return this.animate({opacity: 'hide'}, speed, function() { 
        if (jQuery.browser.msie)  
            this.style.removeAttribute('filter');  
        if (jQuery.isFunction(callback)) 
            callback();  
    }); 
}; 
 
jQuery.fn.fadeTo = function(speed,to,callback) { 
    return this.animate({opacity: to}, speed, function() { 
        if (to == 1 && jQuery.browser.msie)  
            this.style.removeAttribute('filter');  
        if (jQuery.isFunction(callback)) 
            callback();  
    }); 
}; 

function trataCaracteresEspeciales(palabra){
	str=palabra.replace(/&AGRAVE;/g,"À");
	str=str.replace(/&MIDDOT;/g,"·");
	return str

}

/*------------------------------------------------------------------*/
