window.addEvent('domready', function(){
									 



/*efectos con las subsecciones*/

var list = $$('h2.subsecciones a');

				list.each(function(el) {

					var fx = new Fx.Morph(el, {duration:300, wait:false,transition: Fx.Transitions.Quad.easeOut});

				 

					el.addEvents({

						'mouseenter': function(){

							fx.start({

								'padding-top': 120, 'background-color':'#007a81', 'color':'#FFFFFF'


							});

						},

						'mouseleave': function(){

							fx.start({

								'padding-top': 10, 'background-color':'#ffab52', 'color':'#FFFFFF'

							});

						}



					});



				});


var list = $$('#menusecundario a');

				list.each(function(el) {

					var fx = new Fx.Morph(el, {duration:300, wait:false,transition: Fx.Transitions.Quad.easeOut});

				 

					el.addEvents({

						'mouseenter': function(){

							fx.start({

								'padding-left': 20, 'font-size':14, 'background-color':'#007a81', 'color':'#FFFFFF'


							});

						},

						'mouseleave': function(){

							fx.start({

								'padding-left': 15, 'font-size':10, 'background-color':'#5e8328', 'color':'#FFFFFF'

							});

						}



					});



				});


var list = $$('#cadenacad a');

				list.each(function(el) {

					var fx = new Fx.Morph(el, {duration:300, wait:false,transition: Fx.Transitions.Quad.easeOut});

				 

					el.addEvents({

						'mouseenter': function(){

							fx.start({

								'background-color':'#a6a6a6', 'color':'#F0F0F0'


							});

						},

						'mouseleave': function(){

							fx.start({

								'background-color':'#FFFFFF', 'color':'#676767'

							});

						}



					});



				});



/* Efectos con el docmodulo */

				 


if ($('noticiasportada')) {

		// PESTAŅAS PRINCIPALES

			var Noticias = new noobSlide({
				mode: 'vertical',

				box: $('noticiascontenido'),

				items: $$('#noticiascontenido div.noticiasbloque'),

				size: 300,

				handles: $$('#opcionesnoticias li'),

				onWalk: function(currentItem,currentHandle){

				//	$('info4').set('html',currentItem.getFirst().innerHTML);

					this.handles.removeClass('noticiasopactiva');

					currentHandle.addClass('noticiasopactiva');
					return false;

				}

			});

		}



if ($('agendaportada')) {

		// PESTAŅAS PRINCIPALES

			var Agenda = new noobSlide({
									   
				mode: 'horizontal',

				box: $('agendacontenido'),

				items: $$('#agendacontenido div.agendabloque'),

				size: 200,

				handles: $$('#opcionesagenda li'),

				onWalk: function(currentItem,currentHandle){

				//	$('info4').set('html',currentItem.getFirst().innerHTML);

					this.handles.removeClass('agendaopactiva');

					currentHandle.addClass('agendaopactiva');

				}

			});

		}






var customTipsB = $$('.tooltip');
var toolTipsB = new Tips(customTipsB, {
    className: 'bocata'
});





});


