// Cambio de fotos 

function CambioFotos(id,imag)
{
	document.getElementById(id).src=imag;}
	
// Ampliacion de las fotos

function Ampliar(id,nombre)
{

	
	imagen  = document.getElementById(id).src;
	imagen  =	imagen.replace("_M","_G");
	destino = "Foto.asp?imagen=" + imagen + "&nombre=" + nombre;
	 window.open(destino,'FotoAmpliada','width=700,height=479,left=100,top=100');

}

function AmpliarPolaris()
{

	
	//imagen  = document.getElementById(id).src;
	//imagen  =	imagen.replace("_M","_G");
	destino = "http://www.polarisworld.com/01/www/mp_02/index.html";
	window.open(destino,'FotoAmpliada','width=800,height=479,left=100,top=100');

}

function AmpliarPolarisRiquelme()
{

	
	//imagen  = document.getElementById(id).src;
	//imagen  =	imagen.replace("_M","_G");
	destino = "http://www.polarisworld.com/01/www/mp_04/index.html";
	window.open(destino,'FotoAmpliada','width=800,height=479,left=100,top=100');

}

function AmpliarPolarisTorre()
{

	
	//imagen  = document.getElementById(id).src;
	//imagen  =	imagen.replace("_M","_G");
	destino = "http://www.polarisworld.com/01/www/mp_03/index.html";
	window.open(destino,'FotoAmpliada','width=800,height=479,left=100,top=100');

}

function AmpliarPolarisLoma()
{

	
	//imagen  = document.getElementById(id).src;
	//imagen  =	imagen.replace("_M","_G");
	destino = "http://www.polarisworld.com/excelsio/01/www/laloma/homelaloma.htm";
	window.open(destino,'FotoAmpliada','width=800,height=479,left=100,top=100');

}




function AmpliarFoto(nombre)
{

	
	//imagen  = document.getElementById(id).src;
	//imagen  =	imagen.replace("_M","_G");
	if (nombre == 1)	//baron
		destino = "http://www.polarisworld.com/01/www/vr_01/index.html"
	if (nombre == 2)	//rondella
		destino = "http://www.polarisworld.com/01/www/vr_02/index.html"
	if (nombre == 3)	//perdiguera
		destino = "http://www.polarisworld.com/01/www/vr_03/index.html"
		
	window.open(destino,'FotoAmpliada','width=800,height=479,left=100,top=100');

}