jQuery.noConflict();
jQuery(document).ready(function(){
	jQuery('#slide').cycle({ 
    prev:   '#prev', 
    next:   '#next',
		pausa:  '#pause',
    timeout: 4000
	});
	
	jQuery('#poli').cycle();
	
	jQuery("ul.thumb li").hover(function() {
	jQuery(this).css({'z-index' : '10'}); /*Add a higher z-index value so this image stays on top*/ 
	jQuery(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
		.animate({
			marginTop: '-15px', /* The next 4 lines will vertically align this image */ 
			marginLeft: '0px',
			top: '10px',
			left: '0px',
			width: '118px', /* Set new width */
			height: '95px', /* Set new height */
			padding: '0px'
		}, 200); /* this value of "200" is the speed of how fast/slow this hover animates */

	} , function() {
	jQuery(this).css({'z-index' : '0'}); /* Set z-index back to 0 */
	jQuery(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
		.animate({
			marginTop: '0', /* Set alignment back to default */
			marginLeft: '0',
			top: '0',
			left: '0',
			width: '98px', /* Set width back to default */
			height: '85px', /* Set height back to default */
			padding: '0px'
		}, 400);
});
});
jQuery(function() {
	Cufon.replace('.reemplazar',{hover:true});
	Cufon.replace('.titulo h1',{textShadow: '#fff 0px -1px'});
	Cufon.replace('div.panel-accesos ul li a',{textShadow: '#fff 0px -1px', hover:true});
	//Cufon.replace('p.fecha',{textShadow: '#fff 0px -1px'});
	Cufon.replace('p.noticia-titulo',{textShadow: '#fff 0px -1px', hover:true});
	Cufon.replace('p.noticia-desc',{fontFamily: 'Gotham Book', textShadow: '#fff 0px -1px', fontWeight: 'normal'});
	Cufon.replace('p.noticia-leermas',{textShadow: '#fff 0px -1px', hover:true});
	Cufon.replace('div.panel-noticias a.ver-todos',{textShadow: '#fff 0px -1px', hover:true});
	Cufon.replace('p.paneltop-desc',{fontFamily: 'Gotham Book',textShadow: '#fff 0px -1px', hover:true});
	Cufon.replace('#interna-right h1',{textShadow: '#56732a 1px 1px', hover:true});
	Cufon.replace('#interna-right h2',{fontFamily: 'Gotham Book', hover:true});
	Cufon.replace('#interna-b h1',{textShadow: '#56732a 1px 1px', hover:true});
	Cufon.replace('#interna-b h2',{fontFamily: 'Gotham Book', hover:true});
	Cufon.replace('.ttitle',{fontFamily: 'Gotham Book', hover:true});
	Cufon.replace('.gn',{fontFamily: 'Gotham Book', hover:true});
	Cufon.replace('.gb',{hover:true});
	Cufon.replace('.txtn',{fontFamily: 'Gotham Book', hover:true});
	if(jQuery.fn.lightBox){
		jQuery('a[rel="lightbox"]').lightBox({fixedNavigation:true});}
});

