// JavaScript Document
function movePop(k)
{
	var pos=0;
	var href="";
	var width,height=0;
	var pag;
	switch (k)
	{
		case 1:
			pos=15;
			href='attivita/bambini.html';
			pag="<p><div class=\"titoloPop\">CORSO ACQUABABY</div></p><p><div class=\"testoattivita\">(0-3 anni con accompagnatore)<br />LUN-MER-VEN 10.30/11.00<br />MAR-GIOV 15.50/16.20<br />SAB 10.00/10.30<br /><br />Abbonamento 8 ingressi &euro; 40.00<br />Valido tutta la stagione in corso</div></p>";
break;
		case 2:
			pos=110;
			pag="<p><div class='titoloPop'>ACQUAFITNESS</div></p><p><div class='testoattivita'>Bisettimanale o Trisettimanale da scegliere in abbinamento LU|ME|VE(inserimenti continui)<br /> Mattina 8.50/9.40<br />Pomeriggio 20.00/20.50<br /><br /> <b>CORSI</b><br><br />1&deg; Trisett. dal 14/09 al 13/11 27 Lez. &euro; 148.50<br />Biset. lu/me | me/ve | lu/ve 18 Lez. &euro; 99.00<br />2&deg; Trisett. dal 16/11 al 29/01 28 Lez. &euro; 154.00<br />Bisett. lu/me | lu/ve 19 Lez. &euro; 104.50<br />Bisett. me/ve 18 Lez. &euro; 99.00<br />3&deg; Trisett. dal 01/02 al 02/04 27 Lez. &euro; 148.50<br />Bisett. lu/me | lu/ve | me/ve 18 Lez. &euro; 99.00<br />4&deg; Trisett. dal 08/04 al 04/06 25 Lez. &euro; 137.50<br />Bisett. lu/ve | me/ve 17 Lez. &euro; 93.50<br />Bisett. lu/me 16 Lez. &euro; 88.00<br />Bisettimanale MAR|GIOV (a tutti i livelli)<br />13.50/14.40 | 19.10/20.00<br />1&deg; Dal 15/09 al 12/11 18 Lez. &euro; 99.00<br />2&deg; Dal 17/11 al 28/01 18 Lez. &euro; 99.00<br />3&deg; Dal 02/02 al 01/04 18 Lez. &euro; 99.00<br />4&deg; Dal 06/04 al 03/06 18 Lez. &euro; 99.00</div></p>";
			break;
		case 3:
			pos=200;
			pag="<p><div class=\"titoloPop\">CORSO NUOTO ADULTI</div></p><p><div class=\"testoattivita\">Bisettimanale o Trisettimanale da scegliere in abbinamento LU|ME|VE (inserimenti continui)<br />Mattina 8.50/9.40<br />Pomeriggio 20.00/20.50<br /><br />CORSI<br />1&deg; Trisett. dal 14/09 al 13/11 27 Lez. &euro; 148.50<br />Biset. lu/me | me/ve | lu/ve 18 Lez. &euro; 99.00<br />2&deg; Trisett. dal 16/11 al 29/01 28 Lez. &euro; 154.00<br />Bisett. lu/me | lu/ve 19 Lez. &euro; 104.50<br />Bisett. me/ve 18 Lez. &euro; 99.00<br />3&deg; Trisett. dal 01/02 al 02/04 27 Lez. &euro; 148.50<br />Bisett. lu/me | lu/ve | me/ve 18 Lez. &euro; 99.00<br />4&deg; Trisett. dal 08/04 al 04/06 25 Lez. &euro; 137.50<br />Bisett. lu/ve | me/ve 17 Lez. &euro; 93.50<br />Bisett. lu/me 16 Lez. &euro; 88.00<br />Bisettimanale MAR|GIOV (a tutti i livelli)<br />13.50/14.40 | 19.10/20.00<br />1&deg; Dal 15/09 al 12/11 18 Lez. &euro; 99.00<br />2&deg; Dal 17/11 al 28/01 18 Lez. &euro; 99.00<br />3&deg; Dal 02/02 al 01/04 18 Lez. &euro; 99.00<br />4&deg; Dal 06/04 al 03/06 18 Lez. &euro; 99.00</div></p>";
			break;
		case 4:
			pos=280;
			pag="<p><div class=\"titoloPop\">NUOTO LIBERO</div></p><p><div class=\"testoattivita\">Valido dal <b>14/09 al 05/06/2010</b><br><br />Lunedi': 7.30/15.30 | 18.20/22.00<br />Martedi': 7.30/15.00 | 19.20/21.00<br />Mercoledi': 7.30/15.30 | 18.20/22.00<br />Giovedi': 7.30/15.00 | 19.20/21.00<br />Venerdi': 7.30/15.00 | 19.20/22.00<br />Sabato: 9.00/15.00 | 17.40/19.30<br />Domenica: 9.00/12.30<br />Tariffe<br />Ingresso singolo &euro; 6.00<br /><br>Abbonamento 10 ingressi &euro; 40.00<br />Abbonamento 30 ingressi &euro; 100.00</div></p>";
			break;
		case 5:
			pag = "<p><div class='titoloPop'>CORSO ACQUABABY </div></p><p><div class='testoattivita'>(0-3 anni con accompagnatore)<br /> LUN-MER-VEN 10.30/11.00<br />MAR-GIOV 15.50/16.20<br />SAB 10.00/10.30<br /><br /> Abbonamento 8 ingressi € 40.00<br />Valido tutta la stagione in corso</div></p>";
			pos=340;
			break;
		case 6:
			pos=350;
			pag="<p><div class=\"titoloPop\">CORSO PER GESTANTI</div></p><p><div class=\"testoattivita\">(prenotazione obbligatoria)<br />LUN-MER-VEN 15.20/16.10<br />MAR-GIOV 11.20/12.10<br />Abbonamento 8 Lezioni € 64.00</div></p>";
			break;
	}
	var posarrow=0;
	switch (k)
	{
		case 1:
			posarrow=100;
			break;
		case 2:
			posarrow=185;
			break;
		case 3:
			posarrow=275;
			break;
		case 4:
			posarrow=365;
			break;
		case 5:
			posarrow=435;
			break;
		case 6:
			posarrow=515;
			break;
	}
	document.getElementById('arrow').style.top=posarrow+"px";
	document.getElementById('popUp').style.top=pos+"px";
	//alert(href.href);
  //var boxdiv = document.getElementById('popUp');
 
 /* boxdiv = document.getElementById('popUp');
  boxdiv.setAttribute('id', href);
  boxdiv.style.display = 'block';
  boxdiv.style.position = 'absolute';
  boxdiv.style.width = width + 'px';
  boxdiv.style.height = height + 'px';
  boxdiv.style.border = borderStyle;
  boxdiv.style.backgroundColor = '#0066FF';
  boxdiv.style.left = 400 + 'px';
  

  var contents = document.createElement('iframe');
  contents.scrolling = 'si';
  contents.frameBorder = '1';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.src =href;

  boxdiv.appendChild(contents);
  document.body.appendChild(boxdiv);


var contents='';
 // document.getElementById('popUp').removeChild(contents);
  contents = document.createElement('iframe');
  contents.scrolling = 'si';
  contents.frameBorder = '1';
  contents.style.width = width + 'px';
  contents.style.height = height + 'px';
  contents.src = href;
  */

 document.getElementById('text').innerHTML=pag;
 
 // boxdiv.style.top=-50+'px';
	//"attivita/bambini.html" "attivita/fitness.html" "attivita/adulti2.html" "attivita/adulti.html" "attivita/acquababy.html""attivita/gestanti.html"
	
	
}
function closePop()
{
	document.getElementById('popUp').style.top=-700+"px";
	document.getElementById('arrow').style.top=-700+"px";
	
}
function move(k)
{
	var pos=0;
	switch (k)
	{
		case 1:
			pos=95;
			break;
		case 2:
			pos=180;
			break;
		case 3:
			pos=260;
			break;
		case 4:
			pos=350;
			break;
		case 5:
			pos=430;
			break;
		case 6:
			pos=520;
			break;
	}
	document.getElementById('mark').style.top=pos+"px";
	
}
function over(k)
{
	var p=0;
	switch (k)
	{
		case 1:
			p=52;
			//setInterval("animate(62)",10);
			break;
		case 2:
			p=148;
			//setInterval("animate(180)",10);
			break;
		case 3:
			p=255;
			//setInterval("animate(305)",10);
			break;
		case 4:
			p=365;
			//setInterval("animate(445)",10);
			break;
		case 5:
			p=492;
			//setInterval("animate(602)",10);
			break;
		case 6:
			p=630;
			//setInterval("animate(602)",10);
			break;
	}
	document.getElementById('over').style.left=p+"px";
	//home 62px
	//società 180
	//galleria  305
	//regolamento 445
	//programma 602
}


function animate(p) {
	if( p >  document.getElementById('over').style.left )
		document.getElementById('over').style.left = parseInt(document.getElementById('over').style.left)+1+"px" ;
	
}
