// JavaScript Document
/***************************\
 * Services Descriptions  *              *
\***************************/
/* Stric Format 
	title + objectIndex = some title
	image + objectIndex = the src favoryte image for the service
	golink + objectIndex = href link rute
	show + objectIndex = the link text
	text + objectIndex = put here your description about the service.
*/
// For example,the same text on index.html page, we need write this:
//(objectIndex = 0)
title0 = "Welcome to Space";
image0 = "images/bienvenido.jpg";
golink0 = "en/home.php";
showlink0 = "About us..";
text0 = "<b>SPACE</b> means &quot;San Pedro de Atacama Celestial Explorations&quot;. It started in September in 2003, and has kept progressing. Our main activity is our star tours, which have already received more than 25000 participants. We now offer a complete solution for people who just want an introduction  to the night sky, to the professional institution who wants us to take care of their research telescope.";

// Star Tour
title1 = "Star Tour";
image1 = "images/terasse.jpg";
golink1 = "en/tour.php";
showlink1 = "read more...";
text1 = "We offer a general star tours each clear night, apart from a possible small period around the full moon. We can also offer specialized star tours and other offers for travel agencies.";

// Atacama Lodges
title2 = "Atacama Lodge";
image2 = "images/atacamalodge/entrada4-r.jpg";
golink2 = "en/lodge.php";
showlink2 = "read more...";
text2 = "Atacama Lodge is located a few kilometers south of San Pedro de Atacama, in the chilean Andes, very close to the triple custom point between Chile, Argentina and Bolivia. It is the ideal place to enjoy the Atacama desert, far from the noise of San Pedro";

// Telescope Rental
title3 = "Telescope Rental";
image3 = "images/abritaka.jpg";
golink3 = "en/telerent.php";
showlink3 = "read more...";
text3 = "We can rent both visual and photographic telescopes to the knowledgeable amateur astronomer. Photographic telescopes are polar aligned and ready to use. We provide a checkin on the telescopes, telling you how they work, mainly for the photographic telescopes.";

// Telescope Hosting
title4 = "Telescope Hosting";
image4 = "images/C14.jpg";
golink4 = "en/telehost.php";
showlink4 = "read more...";
text4 = "We already host 3 telescopes from different groups. More will come in 2009";

// Telescope Rental Time
title5 = "Telescope Time Rental";
image5 = "images/n1365_filtered.jpg";
golink5 = "teletime/teletime.php?lang=en";
showlink5 = "read more...";
text5 = "Very soon, we will be able to rent telescope time through internet. Pages in construction";

/*******************************************************\
 *  Funcion que escribe el objeto                      *
\*******************************************************/
function writeObject(title,image,text,golink,showlink)
{
	var htm2 = "<h2>" + title + "</h2>";
	htm2+= "<img src=\"" + image + "\"/>";
	htm2+= "<p>" + text + "</p>";
	htm2+= "<a href=\"" + golink + "\" Style='float:right;'\">" + showlink + "</a>";
	document.getElementById("obj").innerHTML = htm2;
}
/*******************************************************\
 *  Function: show(ObjectIndex)                        *
\*******************************************************/
function show(num)
{
	switch(num)
	{
		case "0":
			writeObject(title0,image0,text0,golink0,showlink0);
			break;
		case "1":
			writeObject(title1,image1,text1,golink1,showlink1);
			break;
		case "2":
			writeObject(title2,image2,text2,golink2,showlink2);
			break;
		case "3":
			writeObject(title3,image3,text3,golink3,showlink3);
			break;
		case "4":
			writeObject(title4,image4,text4,golink4,showlink4);
			break;
		case "5":
			writeObject(title5,image5,text5,golink5,showlink5);
			break;
	}
}

