 		function goPop(i,l)
 		{
 			switch(parseFloat(i)) {
 				case 1:
 					if (l =="english") {
 						var ttl		="Autopilot (Steering)";
						var ttls	="1.";
 						var txt		="S"+ String.fromCharCode(233) +"bastien Josse, skipper of the BT Open 60 explains the Automatic pilot \n \"This is my auto pilot B&G. It helps me to drive the boat when I have other things to do onboard like sleeping, cooking or changing sails.\"";
 						var vidttl	="Autopilot (Steering)";
 						var vid		="1911706";
 						}
 						else
 						{
 						var ttl		="Pilote Automatique";
						var ttls	="1.";
 						var txt		="S"+ String.fromCharCode(233) +"bastien Josse, skipper de l'Open 60 BT nous pr"+String.fromCharCode(233)+" son Pilote Automatique \"Ceci est mon pilote automatique B&G, il me permet de diriger le bateau pendant que je suis en train de dormir, me faire a manger ou de faire des changements de voile.\"";
 						var vidttl	="Pilote Automatique";
 						var vid		="1911747";
 						}
 				break;
 				case 2:
 					if (l =="english")
 						{
 						var ttl		="Bunk (Sleeping)";
						var ttls	="2.";
 						var txt		="S"+ String.fromCharCode(233) +"bastien Josse, skipper of the BT Open 60 explains the sleeping arrangements. \n \"Here you are in my bedroom, especially in my bed, and you can see that it’s not a very comfortable bed! It’s just a bunk and the only thing I can do is to move the angle of the bunk to be sure that if the boat heels at 20 degrees, I can still be flat. The second thing to know is that I always sleep with my weather gear on all the time with my feet facing forward because if the boat stops suddenly in a big wave, I’m sure that I’m not going to break my neck against the wall.\"";
 						var vidttl	="Bunk (Sleeping)";
 						var vid		="1911792";
 						}
 						else
 						{
 						var ttl		="Couchette (Sommeil)";
						var ttls	="2.";
 						var txt		="S"+ String.fromCharCode(233)+"bastien Josse, skipper de l'Open 60 BT nous pr" + String.fromCharCode(233) + "sente sa couchette. \n \"Alors ici nous nous trouvons sur mon lit, comme vous pouvez le voir ce n’est pas un lit tres confortable. C’est un cadre en aluminium sur lequel il y a une toile tendue. J’ai un petit gadget qui me permet de regler l’angle de la bannette selon l’angle du bateau. De plus, on dort toujours en cire, de facon a etre toujours pret a sortir a l’exterieur et aussi toujours les pieds en avant, au cas ou le bateau plante dans une vague, on est sur de ne pas se blesser au coup ou a la tete dans la cloison avant.\"";
 						var vidttl	="Couchette (Sommeil)";
 						var vid		="1911906";
 						}
 				break;
 				case 3:
 					if (l=="english")
 						{
 						var ttl		="Satellite Comms (Communications)";
						var ttls	="3.";
 						var txt		="S"+ String.fromCharCode(233) +"bastien Josse, skipper of the BT Open 60 explains the satellite communications. \n \"Here is the nav station area for communications. The Fleet 77 (the big antenna on the deck) allows us to connect to the internet to get weather files and maps, and also to send our onboard photos and video. The second phone, the Iridium is only for audio calls as it's a much slower connection and is a back-up in case the Fleet 77 is not working. It is also an emergency phone in case I’m in trouble or injured.\"";
 						var vidttl	="Satellite Comms (Communications)";
 						var vid		="1912311";
 						}
 						else
 						{
 						var ttl		="Communication Satellite";
						var ttls	="3.";
 						var txt		="S"+ String.fromCharCode(233) +"bastien Josse, skipper de l'Open 60 BT nous pr"+String.fromCharCode(233)+"sente sa communication satellite. \n \"Nous sommes toujours sur la table a carte du bateau mais plus particulierement dans la partie communication. Nous avons deux systemes de telephone: un fleet 77 qui nous permet de se connecter a Internet et relever les informations meteos et egalement nous permet d’envoyer des photos et videos qui ont ete enregistre a bord, vers l’exterieur. Ensuite, le second telephone, l’iridium sert principalement a faire de la phonie et est egalement en secours au cas ou le fleet 77 ne fonctionne plus.\"";
 						var vidttl	="Communication Satellite";
 						var vid		="1912260";
 						}
 				break;
 				case 4:
 					if (l =="english")
 						{
 						var ttl		="Engines (Power)";
						var ttls	="4.";
 						var txt		="S"+ String.fromCharCode(233) + "bastien Josse, skipper of the BT Open 60 explains the engine. \n \"Onboard we have two engines to make electricity because we need electricity in order to run the autopilot, the laptop, all the electronics onboard, the water maker and to run the keel! This is the maim engine, we run it one hour in every 24 hours during race. To help the engine and to save diesel, we have a wind generator outside.";
 						var vidttl	="Engines (Power)";
 						var vid		="1912346";
 						}
 						else
 						{
 						var ttl		="Moteur (Energie)";
						var ttls	="4.";
 						var txt		="S"+ String.fromCharCode(233) +"bastien Josse, skipper de l'Open 60 BT nous pr"+String.fromCharCode(233)+"sente son moteur. \n \"Ici nous sommes a l’interieur du bateau, a cote du moteur principal. Il nous permet de creer l’energie a bord et nous le faisons tourner une heure par jour pendant la course. Cette energie nous permet de faire fonctionner le pilote automatique, l’ordinateur, tout l’electronique a bord, le systeme de quille et egalement le dessalinisateur qui permet d’avoir de l’eau fraiche. Un outil primordial! Ensuite, nous avons un systeme additionnel a l’exterieur, qui est l’eolienne. Elle nous permet d’economiser l’energie et donc d’embarquer moins de gasoil. Dans un souci de performance, ceci nous fait gagner du poids! \"";
 						var vidttl	="Moteur (Energie)";
 						var vid		="1912387";
 						}
 				break;
 				case 5:
 					if (l =="english")
 						{
 						var ttl		="Galley (Cooking)";
						var ttls	="5.";
 						var txt		="S"+ String.fromCharCode(233) + "bastien Josse, skipper of the BT Open 60 explains the galley. \n \"I really want to show you my kitchen, probably one of the smallest in the world! You can see here the fresh water, I pump the water directly into my kettle then I turn on the gas in order to boil the water. I then put the boiled water in my blue food container in order to rehydrate my food! I close the box for 15 minutes and then I’m ready to eat!";
 						var vidttl	="Galley (Cooking)";
 						var vid		="1912417";
 						}
 						else
 						{
 						var ttl		="Cuisine (Alimentation)";
						var ttls	="5.";
 						var txt		="S"+ String.fromCharCode(233) +"bastien Josse, skipper de l'Open 60 BT nous pr"+String.fromCharCode(233)+"sente sa cuisine. \n \"Je vais vous presenter ma cuisine, certainement l’une des plus petites au monde. Alors nous avons ici, l’eau courante, la bouilloire et le gaz. Une fois que l’eau boue, je la verse dans ma boite bleue, ce qui me permet de rehydrater mes repas lyophilises. Je referme et 15 minutes apres mon repas est pres. \"";
 						var vidttl	="Galley (Cuisine)";
 						var vid		="1912476";
 						}
 				break;
 				case 6:
 					if (l =="english")
 						{
 						var ttl		="Keel";
						var ttls	="6.";
 						var txt		="S"+ String.fromCharCode(233) + "bastien Josse, skipper of the BT Open 60 explains the keel. \n \" Why the boat is so powerful is because we have a swing keel [which provides the ballast to allow the boat to sail with a greater sail area which equals more speed). Here you have the panel with all buttons to hydraulically control the keel. If I push the red button, the keel goes to the port side and if I push the green button the keel swings to starboard. It’s doing exactly the same as if I have 40 crew onboard and ask them to move to one side of the boat or the other! \"";
 						var vidttl	="Keel";
 						var vid		="1912509";
 						}
 						else
 						{
 						var ttl		="Quille";
						var ttls	="6.";
 						var txt		="S"+ String.fromCharCode(233) +"bastien Josse, skipper de l'Open 60 BT nous pr"+String.fromCharCode(233)+"sente sa quille. \n \"Nous avons ici, un panneau avec differents boutons qui nous permets de controler la quille. Quand j’appuie sur le bouton rouge la quille passe a babord et quand j’appuie sur le bouton vert la quille passe a tribord. C’est l’equivalent d’une quarantaine de personnes que nous mettrions au rappel sur le bateau et a qui l’on demanderait de passer de l’autre cote. \"";
 						var vidttl	="Quille";
 						var vid		="1912574";
 						} 				
 				break;
 				case 7:
 					if (l =="english")
 						{
 						var ttl		="Nav Station (Navigating)";
						var ttls	="7.";
 						var txt		="S"+ String.fromCharCode(233) + "bastien Josse, skipper of the BT Open 60. \n \"Here we are in the nav station, it’s one of the most important parts of the boat. We can see the position of the others competitors, check the weather forecast, make the routing, control the energy onboard, use the phone to call to shore and send emails. This electronic system is really the brain of the boat and everything is concentrated at the nav station.\"";
 						var vidttl	="Nav Station (Navigating)";
 						var vid		="1912637";
 						}
 						else
 						{
 						var ttl		="Table " + String.fromCharCode(224) +  " cartes";
						var ttls	="7.";
 						var txt		="S"+ String.fromCharCode(233) +"bastien Josse, skipper de l'Open 60 BT nous pr"+String.fromCharCode(233)+"sente sa table "+String.fromCharCode(224)+" cartes. \n \"Ici on se trouve a la table a carte du bateau, tous les elements electroniques sont concentres a cet endroit. C’est ici que je recupere les informations meteos, que je fais le routage et le suivie des concurrents et egalement c’est ce systeme qui me permet de communiquer par email, telephoner… C’est vraiment un des points nevralgiques du bateau. Si ca tombe en panne, on ne fonctionne plus qu’avec le feeling. \"";
 						var vidttl	="Table " + String.fromCharCode(224) +  " cartes";
 						var vid		="1912674";
 						} 				
 				break;
 			}
 		$('div#itemDescription h2').text(ttl);
		$('div#itemDescription em').text(ttls);
 		$('div#itemDescription p').text(txt);
 		$('div#itemVideo').html('<h2 class="moduleTitle">'+vidttl+'</h2><object width="280" height="158"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id='+vid+'&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=35526B&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id='+vid+'&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=35526B&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="280" height="158"></embed></object>');
		
		if (parseFloat(i)==1) {var maxNo=3}
		if (parseFloat(i)==2) {var maxNo=3}
		if (parseFloat(i)==3) {var maxNo=4}
		if (parseFloat(i)==4) {var maxNo=2}
		if (parseFloat(i)==5) {var maxNo=4}
		if (parseFloat(i)==6) {var maxNo=1}
		if (parseFloat(i)==7) {var maxNo=4}
			
		document.getElementById('thumb1').style.display='block';
		document.getElementById('thumb2').style.display='block';
		document.getElementById('thumb3').style.display='block';
		document.getElementById('thumb4').style.display='block';
		
 			for (x=1;x<=maxNo;x++) {
				if (document.getElementById('itemImages')) {
 					document.images['img'+x].src = '/images/boattour/'+i+'/image'+x+'_thumb.jpg';
 					document.getElementById('url'+x).href = '/images/boattour/'+i+'/image'+x+'.jpg';
				}
 			}
			if (maxNo==1) {
				document.getElementById('thumb2').style.display='none';
				document.getElementById('thumb3').style.display='none';
				document.getElementById('thumb4').style.display='none';
			}
			if (maxNo==2) {
				document.getElementById('thumb3').style.display='none';
				document.getElementById('thumb4').style.display='none';
			}
			if (maxNo==3) {
				document.getElementById('thumb4').style.display='none';
			}
 		}