var homeFY;
var homeY;
var intHome=0;
function cHome (ini,donde) {
	clearInterval(intHome);
	homeFY=donde;
	homeY=ini;
	intHome=setInterval("__cHome()",2);
}
function __cHome () {
	var capa=document.getElementById("home");
	homeY+=(homeFY-homeY)/3;
	capa.style.backgroundPosition="0px "+homeY+"px";
	if (Math.round(homeY)==homeFY){
		capa.style.backgroundPosition="0px "+homeFY+"px";
		clearInterval(intHome);
	} else {
		capa.style.backgroundPosition="0px "+homeY+"px";
	}
}
//
var clubsFY;
var clubsY;
var intClubs=0;
function cClubs (ini,donde) {
	clearInterval(intClubs);
	clubsFY=donde;
	clubsY=ini;
	intClubs=setInterval("__cClubs()",2);
}
function __cClubs () {
	var capa=document.getElementById("clubs");
	clubsY+=(clubsFY-clubsY)/3;
	capa.style.backgroundPosition="0px "+clubsY+"px";
	if (Math.round(clubsY)==clubsFY){
		capa.style.backgroundPosition="0px "+clubsFY+"px";
		clearInterval(intClubs);
	} else {
		capa.style.backgroundPosition="0px "+clubsY+"px";
	}
}
//
var picturesFY;
var picturesY;
var intPictures=0;
function cPictures (ini,donde) {
	clearInterval(intPictures);
	picturesFY=donde;
	picturesY=ini;
	intPictures=setInterval("__cPictures()",2);
}
function __cPictures () {
	var capa=document.getElementById("pictures");
	picturesY+=(picturesFY-picturesY)/3;
	capa.style.backgroundPosition="0px "+picturesY+"px";
	if (Math.round(picturesY)==picturesFY){
		capa.style.backgroundPosition="0px "+picturesFY+"px";
		clearInterval(intPictures);
	} else {
		capa.style.backgroundPosition="0px "+picturesY+"px";
	}
}
//
var bartimeFY;
var bartimeY;
var intBartime=0;
function cBartime (ini,donde) {
	clearInterval(intBartime);
	bartimeFY=donde;
	bartimeY=ini;
	intBartime=setInterval("__cBartime()",2);
}
function __cBartime () {
	var capa=document.getElementById("bartime");
	bartimeY+=(bartimeFY-bartimeY)/3;
	capa.style.backgroundPosition="0px "+bartimeY+"px";
	if (Math.round(bartimeY)==bartimeFY){
		capa.style.backgroundPosition="0px "+bartimeFY+"px";
		clearInterval(intBartime);
	} else {
		capa.style.backgroundPosition="0px "+bartimeY+"px";
	}
}
//
var hotelsFY;
var hotelsY;
var intHotels=0;
function cHotels (ini,donde) {
	clearInterval(intHotels);
	hotelsFY=donde;
	hotelsY=ini;
	intHotels=setInterval("__cHotels()",2);
}
function __cHotels () {
	var capa=document.getElementById("hotels");
	hotelsY+=(hotelsFY-hotelsY)/3;
	capa.style.backgroundPosition="0px "+hotelsY+"px";
	if (Math.round(hotelsY)==hotelsFY){
		capa.style.backgroundPosition="0px "+hotelsFY+"px";
		clearInterval(intHotels);
	} else {
		capa.style.backgroundPosition="0px "+hotelsY+"px";
	}
}
//
var beachesFY;
var beachesY;
var intBeaches=0;
function cBeaches (ini,donde) {
	clearInterval(intBeaches);
	beachesFY=donde;
	beachesY=ini;
	intBeaches=setInterval("__cBeaches()",2);
}
function __cBeaches () {
	var capa=document.getElementById("beaches");
	beachesY+=(beachesFY-beachesY)/3;
	capa.style.backgroundPosition="0px "+beachesY+"px";
	if (Math.round(beachesY)==beachesFY){
		capa.style.backgroundPosition="0px "+beachesFY+"px";
		clearInterval(intBeaches);
	} else {
		capa.style.backgroundPosition="0px "+beachesY+"px";
	}
}
//
var restaurantsFY;
var restaurantsY;
var intRestaurants=0;
function cRestaurants (ini,donde) {
	clearInterval(intRestaurants);
	restaurantsFY=donde;
	restaurantsY=ini;
	intRestaurants=setInterval("__cRestaurants()",2);
}
function __cRestaurants () {
	var capa=document.getElementById("restaurants");
	restaurantsY+=(restaurantsFY-restaurantsY)/3;
	capa.style.backgroundPosition="0px "+restaurantsY+"px";
	if (Math.round(restaurantsY)==restaurantsFY){
		capa.style.backgroundPosition="0px "+restaurantsFY+"px";
		clearInterval(intRestaurants);
	} else {
		capa.style.backgroundPosition="0px "+restaurantsY+"px";
	}
}
//
//
var contactFY;
var contactY;
var intContact=0;
function cContact (ini,donde) {
	clearInterval(intContact);
	contactFY=donde;
	contactY=ini;
	intContact=setInterval("__cContact()",2);
}
function __cContact () {
	var capa=document.getElementById("contact");
	contactY+=(contactFY-contactY)/3;
	capa.style.backgroundPosition="0px "+contactY+"px";
	if (Math.round(contactY)==contactFY){
		capa.style.backgroundPosition="0px "+contactFY+"px";
		clearInterval(intContact);
	} else {
		capa.style.backgroundPosition="0px "+contactY+"px";
	}
}
//
function abreVentana (pagina, nombreVentana, ancho, alto) {
	var derecha=0;
	var arriba=0;
	var param="toolbar=no, location=no, menubar=no, scrollbars=yes, resizable=no";
	param +=",width="+ancho;
	param +=",height="+alto;
	param +=",left="+derecha;
	param +=",top="+arriba;
	window.open(pagina, nombreVentana, param);
}