window.addEvent('domready', function() {
	var status = {
		'true': 'open',
		'false': 'close'
	};
	
	//-vertical

	
	$('andalucia').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia1').setStyle('display', 'block');
			$('provincia1').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '190px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia1').set('tween', {}).tween('height', '0px');
			$('provincia1').setStyle('display', 'none');

		}
	});


	
	$('aragon').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia2').setStyle('display', 'block');
			$('provincia2').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '90px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia2').set('tween', {}).tween('height', '0px');
			$('provincia2').setStyle('display', 'none');

		}
	});


	
	$('canarias').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia3').setStyle('display', 'block');
			$('provincia3').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '80px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia3').set('tween', {}).tween('height', '0px');
			$('provincia3').setStyle('display', 'none');

		}
	});


	
	$('cantabria').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia4').setStyle('display', 'block');
			$('provincia4').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '60px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia4').set('tween', {}).tween('height', '0px');
			$('provincia4').setStyle('display', 'none');

		}
	});


	
	$('castilla_la_mancha').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia5').setStyle('display', 'block');
			$('provincia5').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '140px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia5').set('tween', {}).tween('height', '0px');
			$('provincia5').setStyle('display', 'none');

		}
	});


	
	$('castilla_y_leon').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia6').setStyle('display', 'block');
			$('provincia6').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '220px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia6').set('tween', {}).tween('height', '0px');
			$('provincia6').setStyle('display', 'none');

		}
	});


	
	$('cataluna').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia7').setStyle('display', 'block');
			$('provincia7').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '120px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia7').set('tween', {}).tween('height', '0px');
			$('provincia7').setStyle('display', 'none');

		}
	});


	
	$('ceuta').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia8').setStyle('display', 'block');
			$('provincia8').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '60px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia8').set('tween', {}).tween('height', '0px');
			$('provincia8').setStyle('display', 'none');

		}
	});


	
	$('comunidad_de_madrid').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia9').setStyle('display', 'block');
			$('provincia9').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '60px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia9').set('tween', {}).tween('height', '0px');
			$('provincia9').setStyle('display', 'none');

		}
	});


	
	$('comunidad_foral_de_navarra').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia10').setStyle('display', 'block');
			$('provincia10').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '60px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia10').set('tween', {}).tween('height', '0px');
			$('provincia10').setStyle('display', 'none');

		}
	});


	
	$('comunidad_valenciana').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia11').setStyle('display', 'block');
			$('provincia11').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '100px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia11').set('tween', {}).tween('height', '0px');
			$('provincia11').setStyle('display', 'none');

		}
	});


	
	$('extremadura').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia12').setStyle('display', 'block');
			$('provincia12').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '90px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia12').set('tween', {}).tween('height', '0px');
			$('provincia12').setStyle('display', 'none');

		}
	});


	
	$('galicia').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia13').setStyle('display', 'block');
			$('provincia13').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '120px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia13').set('tween', {}).tween('height', '0px');
			$('provincia13').setStyle('display', 'none');

		}
	});


	
	$('islas_baleares').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia14').setStyle('display', 'block');
			$('provincia14').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '60px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia14').set('tween', {}).tween('height', '0px');
			$('provincia14').setStyle('display', 'none');

		}
	});


	
	$('la_rioja').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia15').setStyle('display', 'block');
			$('provincia15').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '60px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia15').set('tween', {}).tween('height', '0px');
			$('provincia15').setStyle('display', 'none');

		}
	});


	
	$('melilla').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia16').setStyle('display', 'block');
			$('provincia16').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '60px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia16').set('tween', {}).tween('height', '0px');
			$('provincia16').setStyle('display', 'none');

		}
	});


	
	$('pais_vasco').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia17').setStyle('display', 'block');
			$('provincia17').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '100px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia17').set('tween', {}).tween('height', '0px');
			$('provincia17').setStyle('display', 'none');

		}
	});


	
	$('principado_de_asturias').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia18').setStyle('display', 'block');
			$('provincia18').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '60px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia18').set('tween', {}).tween('height', '0px');
			$('provincia18').setStyle('display', 'none');

		}
	});


	
	$('region_de_murcia').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			$('provincia19').setStyle('display', 'block');
			$('provincia19').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '60px');

	},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('provincia19').set('tween', {}).tween('height', '0px');
			$('provincia19').setStyle('display', 'none');

		}
	});

});