// JavaScript Document 
function cambia_central(origen)
  {
	switch(origen){
		case "Welcome":
			strHtml=cnv(' ',7)+"Welcome"+cnv(' ',7);
			document.getElementById('Welcome').innerHTML=strHtml;
			strHtml="<h2>Welcome</h2>"
			strHtml=strHtml +" <a href='http://www.ugr.es/~globe' target='_blank'>The Granada Lab of Behavioral Economics(GLOBE)</a>"
			strHtml=strHtml +" and the <a href='http://www.ugr.es/~teoriahe' target='_blank'>Department of Economics at the University of Granada</a>,"
			strHtml=strHtml + " <a href='http://www.uv.es/lineex' target='_blank'> the Laboratory for Research in Experimental Economics (LINEEX)</a> at the University of Valencia and"
			strHtml=strHtml + " <a href='http://www.demo.uab.cat/asr' target='_blank'>the Research Chair Antoni Serra Ramoneda  (UAB &ndash; Caixa Catalunya)</a>"
			strHtml=strHtml + " jointly sponsor the Fifth International Meeting on Experimental and Behavioral Economics (IMEBE), organized by Jordi Brandts (UAB),"
			strHtml=strHtml + " Pablo Bra&ntilde;as-Garza (GlobE-UGR), Enrique Fat&aacute;s (LINEEX -UV), Nikolaos Georgantz&iacute;s (GlobE-UGR),"
			strHtml=strHtml + " Francisco Lagos (GlobE-UGR) and Giovanni Ponti (Universidad of Alicante). The conference dates are April 2-4 2009."
			strHtml=strHtml + " This IMEBE 2009 will take place in Granada. The IMEBE 2009 includes a limited number of special sessions by key researchers on the topic."
			strHtml=strHtml + " <br><br>The invited speakers are <a href='http://economics.huji.ac.il/facultye/winter/winter.html' target='_blank'> Professor Eyal Winter (Hebrew University)</a>,"
			strHtml=strHtml + " <a href='http://www.hss.caltech.edu/people/faculty/pbs@rioja.caltech.edu' target='_blank'>Prof.Peter Bossaerts (Caltech)</a>,"
			strHtml=strHtml + "	<a href='http://people.virginia.edu/~cah2k' target='_blank'> Prof.Charles Holt (Virginia U)</a>, "
			strHtml=strHtml + " <a href='http://www.stanford.edu/~niederle' target='_blank'>Prof. Muriel Niederle (Stanford U.)</a>, "
			strHtml=strHtml + " <a href='http://www.econ.umn.edu/~arust' target='_blank'>Prof. Aldo Rustichini (Cambridge U. and Minnesota)</a>.<br><br>"
			strHtml=strHtml + "<table width='100%' border='0'><tr><td width='50%' colspan='2'>Important dates:<br>Deadline for submissions (extended abstract or full paper): January 20th 2009<br>Notification of acceptance: January 31st 2009<br>Along these pages you will find the most relevant information. See you in Granada.<br><br></td>"
			strHtml=strHtml + "<td align='center' colspan='2'></td></tr>"
			strHtml=strHtml + "<tr><td align='center' width='20%'>SPONSORED BY</td>"
			strHtml=strHtml + "<td width='20%' align='center'><a href='http://www.ugr.es' target='_blank'><img src='images/logo_ugr.jpg' /></td>"
			strHtml=strHtml + "<td width='20%' align='center'><a href='http://www.juntadeandalucia.es/innovacioncienciayempresa' target='_blank'><img src='images/logo_junta.jpg' /></td>"
			strHtml=strHtml + "<td width='20%' align='center'><a href='http://www.ugr.es/~fccee' target='_blank'><img src='images/logo_facultad.jpg' /></td>"			
			strHtml=strHtml + "<td width='20%' align='center'><a href='http://www.fundacionemasagra.es' target='_blank'><img src='images/emasagra.jpg' /></td></tr></table>"			
		break;

		case "Information":
			strHtml="<br><h2>Local Information</h2>"
			strHtml= strHtml + "<p><a href='http://www.ugr.es/~teoriahe' target='_blank'>The University of Granada Department of Economics</a><br><br><a href='http://www.ugr.es/~globe' target='_blank'>Granada Lab of Behavioral Economics GLOBE</a></p>"
		break;

		case "Tourism":
			strHtml="<br><h2>Tourism</h2>"
			strHtml= strHtml + "<p>If you want more information about Granada, there are some link very completely:"
			strHtml= strHtml + "<br><br><a href='http://www.turgranada.es/?id_idioma=2' target='_blank'>Granada area </a>"
			strHtml= strHtml + "<br><br><a href='http://www.granadatur.com/en' target='_blank'>Granada city</a>"
			strHtml= strHtml + "<br><br><a href='http://www.andalucia.org/index_en.html' target='_blank'>Discover Andalusia</a></p>"
		break;

		case "Paper":
			strHtml="<h2>Program</h2>"
/*			strHtml= strHtml + "The Granada Lab of Behavioral Economics (GLOBE) and the Department of Economics at the University of Granada, "
			strHtml= strHtml + "the Laboratory for Research in Experimental Economics (LINEEX) at the University of Valencia and the "
			strHtml= strHtml + "Research Chair Antoni Serra Ramoneda (UAB – Caixa Catalunya)  jointly sponsor the Fifth International Meeting on Experimental and Behavioral Economics (IMEBE), "
			strHtml= strHtml + "organized by Jordi Brandts (UAB), Pablo Brañas-Garza (GlobE-UGR), Enrique Fatás (LINEEX - UV), Nikolaos Georgantzís (GlobE-UGR), Francisco Lagos (GlobE-UGR) "
			strHtml= strHtml + "and Giovanni Ponti (Universidad of Alicante). The conference dates are April 2-4 2009. This IMEBE 2009 will take place in Granada."
			strHtml= strHtml + "<br><br>The meeting intends to bring together researchers in behavioral and experimental economics, "
			strHtml= strHtml + "as well as in related areas. A combination of invited and contributed papers will be chosen for the final program. "
			strHtml= strHtml + "There will also be a number of paralell sessions."
			strHtml= strHtml + "<br>The invited speakers are:<br><br>"
			strHtml= strHtml + "Prof. Alberto Bisin (NYU)<br>"
			strHtml= strHtml + "Prof. Peter Bossaerts (Caltech)<br>"
			strHtml= strHtml + "Prof. Charles Holt (Virginia U)<br>"
			strHtml= strHtml + "Prof. Muriel Niederle  (Stanford U.)<br>"
			strHtml= strHtml + "Prof. Aldo Rustichini (Cambridge U. and Minnesota U.)<br><br>"
			strHtml= strHtml + "Proposals for contributed papers should be sent, in the form of an extended abstract or a full paper, "
			strHtml= strHtml + "to the organizers through the registration form at <a href='http://www.imebe2009.com' target='_blank'>IMEBE-website</a> "
			strHtml= strHtml + "Both theoretical and empirical papers on the topics of experimental and behavioral economics are encouraged. "
			strHtml= strHtml + "Interdisciplinary papers involving economics and psychology or sociology are also welcome. The deadline is January 20th. "
			strHtml= strHtml + "Authors will receive notification of acceptance by January 31st."
			strHtml= strHtml + "<br><br>The local organizing committee includes Juan A. Lacomba (head), Ramón Cobo-Reyes, Natalia Jiménez and Fernanda Rivas."
			strHtml= strHtml + "<br><br>See you in Granada! "
*/
			strHtml=strHtml + "<iframe src='imebe_program.pdf' id='ventana' name='ventana' frameborder='0' scrolling='auto' style='height:380px; width:900px;'>";
			strHtml=strHtml + "Si ves este texto es porque tu navegador no permite iframe.<a href='imebe_program.pdf' target='_blank'>Pincha aqu&iacute</a></iframe>";

		break;

		case "Lodging":
			strHtml="<br><h2>Lodging & Venue</h2>"
			strHtml= strHtml + "<p>Our conference will be held at a beautiful newly-built  <a href='http://www.abades.com/index.php/hotel/1/Abades-Nevada-Palace/imagenes' target='_blank'>Abades Nevada Palace ****S hotel</a>, "
			strHtml= strHtml + "located in the south part of the city with frontal views to Sierra Nevada.<br>There are a limited number of rooms with a substantial discount for earlier registers. "
			strHtml= strHtml + "Single room fare includes buffet breakfast, wi-fi and taxes. (Another 10 euros for an extra person).<br><br><table border='0'><tr><td>Before February 15th - 75 euros"
			strHtml= strHtml + "<br><br>Before March 15th - 85 euros<br><br>Before March 25th - 95 euros<br><br>After March 26th regular fees apply.</td>"
			strHtml= strHtml + "<td width='250px'></td><td><div align='center'><img src='images/hotel.jpg' width='200' height='140'></div></td></tr></table>"
			strHtml= strHtml + "To make a reservation, please contact with the Hotel (conference code for discounted rates 3AAW- 3161 - IMEBE 2009):<ul>"			
			strHtml= strHtml +"<li>Phone: (34) 902 222 570</li>"			
			strHtml= strHtml +"<li>Fax: (34) 902 222 580</li>"						
			strHtml= strHtml +"<li>email: <a href='mailto:reservasnevada@abades.com'> reservasnevada@abades.com</a> (put in subject: Localizador 3AAW- 3161 - IMEBE 2009)</li></ul>"
			strHtml= strHtml +"Contact persons: Mari Nieves Mesa and Daniel Moreno</p>"
		break;

		case "Howto":
			strHtml="<br><h2>How to get there</h2>"
			strHtml= strHtml + "<p><h3>To Granada</h3>BY PLANE<br><a href='http://www.aena.es/csee/Satellite?cid=1047397546288&pagename=Estandar%2FPage%2FAeropuerto&SMO=-1&SiteName=GRX&c=Page&MO=0' target='_blank'>Granada – Jaén Airport</a> is located 17 km. away from Granada, in the motorway to Sevilla/Málaga (A-92). The Airport’s phone numbers are: +34 958 245 200/ 23 and +34 902 400 500. From the airport there are two ways of arriving to the city:"
			strHtml= strHtml + "<br>-Bus: Departs every 30 mints from the bus stop at the airport, with several stops at the city (tf.: 958 49 01 64 ); The single ticket costs 3 € and it takes 30 min to arrive to the city centre. Stops: Aeropuerto, Caleta, Avda. Constitución, Gran Vía, P. Congresos."
			strHtml= strHtml + "<br>-Taxi: the cost to the town centre is around 20-25 €. Taxi: Tele Taxi: 958 28 06 54 / Radio Taxi: 958 13 23 23 "
			strHtml= strHtml + "<br><br>BY TRAIN<br>Granada Train station is located in the town centre in Avenida de los Andaluces. To book a ticket, or plan your trip, please cheek: <a href='http://www.renfe.es' target='_blank'>RENFE.</a>" 
			strHtml= strHtml + "<br><br>BY CAR<br>No matter from where are you coming (Madrid->Jaén, in the north; Málaga/Sevilla ->Loja, in the west; Valencia/Almería -> Guadix, in the east), it is recomended to take the motorway that rounds the city by the south (to Motril – La Alhambra – Sierra Nevada), and then choose one of the several entries to the city (Méndez Núñez o Recogidas are the entries to the city centre). "
			strHtml= strHtml + "<br><br><h3>To the Hotel Abades Nevada Palace</h3><a href='http://maps.google.es/maps?f=d&hl=es&geocode=6634512739095911935,37.151460,-3.592087&saddr=&daddr=37.151894,-3.592486&mra=dme&mrcr=0&mrsp=1&sz=17&sll=37.151458,-3.590008&sspn=0.006379,0.00825&ie=UTF8&ll=37.151458,-3.590008&spn=0.006379,0.00825&source=embed target='_blank'>  Google maps</a></p>";
		break;

		case "Registration":
			strHtml="<h2>Registration</h2>"
			strHtml= strHtml + "Registration includes conference meals + coffee-breaks, dinner gala + flamenco show and social events."
			strHtml= strHtml + "<br><br>Before February 15th - 250 euros.<br><br>Before March 15th - 275 euros.<br><br>Before March 30th - 300 euros.<br><br>Registration for accompanying person (including participation in dinner gala + flamenco show and social events) is 75 euros. Due to space restrictions this “special” inscription should be booked no later than March 15th."
			strHtml= strHtml + "Social events are planned for every day:<br><br>April 1st (Welcome reception) at the <a href='emasagra.pdf' target='_blank'>Carmen del Aljibe del Rey</a>"
			strHtml= strHtml + "<br>April 2nd (Tapa tour) at Calle Navas or Evening (about 22.00h) tour to the Alhambra (only to the Nasrid Palaces or Gardens of the Generalife.)<br>April 3rd (Gala dinner) at Plaza de Toros + Flamenco show"
			strHtml= strHtml + "<br>April 4th A guided walk through Sacramonte and Albaic&iacute;n or guided visit to the<a href='http://www.alhambra-patronato.es/index.php/Conoce-la-Alhambra/9+M5d877228fff/0/?&cHash=556d582572' target='_blank'> Alhambra.</a> (about 15:00h)"
			strHtml= strHtml + "<br><br>With the only exception of the Alhambra tour all the events are included in the conference fee. At the moment, we have managed tickets for groups  to the Alhambra."
			strHtml= strHtml + "However the number of tickets is limited, because the maximum number of people allowed per group is 30."
			strHtml= strHtml + "Regular prices for guided visits are 40 euros (including ticket plus transportation and tour guide)."
			strHtml= strHtml + "<br><br>Individual entrances are available at the  <a href='http://www.alhambra-patronato.es/index.php/How-to-visit-the-Alhambra/8+M5d637b1e38d/0/' target='_blank'>Alhambra official site.</a>"
			strHtml=strHtml	+ cnv(' ',50) + "<input type='button' value='Registration' disabled name='registro' onclick='var opciones=\"left=400,top=50,width=600,height=650\";i=0;var ventana = window.open(\"form_registro.php\",\"\",opciones);'>"
			strHtml=strHtml + cnv(' ',20) + "<input type='button' value='How to pay' name='howpay' onclick='var opciones=\"left=400,top=50,width=600,height=650\";i=0;var ventana = window.open(\"pago.htm\",\"\",opciones);'>"

		break;
		case "Events":
			strHtml="<h2>Social Events</h2>"
			strHtml= strHtml + "<strong>To facilitate the meeting organization, please fill in the events that you find interesting.</strong><br><br>"
			strHtml= strHtml + "<form name='eventos' action='form_eventos.php' method='post' target='ventana'><table><tr><td>Email:</td><td><input type='text' id='email' name='email' maxlength='50' class='campo' size='50'></td>"
			strHtml= strHtml + "<td><input value='login' name='login' type='submit'></td><td width='30px'></td><td style='font-size:18px';><a href='social_events.pdf' target='_blank'>preliminar program</a></td></tr></table>"
			strHtml= strHtml + "<iframe id='ventana' name='ventana' frameborder='0' style='height:300px; width:900px;'>";
			strHtml=strHtml + "Si ves este texto es porque tu navegador no permite iframe.<a href='eventos.php' target='_blank'>Pincha aqu&iacute</a></iframe>";
			
		break;


		case "Contact":
			strHtml="<br><h2>Contact Us</h2>"
			strHtml= strHtml + "In case you need some additional information, please do not hesitate to contact us at:<br><br><a href='mailto:imebe@granadaworkshop.com'>imebe@granadaworkshop.com</a>"
		break;		
	}
	document.getElementById('cuerpo').innerHTML=strHtml;
	cambia_fondo(origen);
  }
  
function sobre() {
	document.body.style.cursor = 'pointer';
}


function sale() {
document.body.style.cursor = 'default';
}

function cambia_fondo(celda){

	document.getElementById('Welcome').className="etiqueta";
	document.getElementById('Information').className="etiqueta";
	document.getElementById('Tourism').className="etiqueta";
	document.getElementById('Paper').className="etiqueta2";
	document.getElementById('Lodging').className="etiqueta";
	document.getElementById('Howto').className="etiqueta";
	document.getElementById('Registration').className="etiqueta";
	document.getElementById('Events').className="etiqueta2";
	document.getElementById('Contact').className="etiqueta";

	document.getElementById(celda).className="etiqueta_sel";

}

function cnv(caracter,veces){
var cadena=caracter;
for (i = 1; i < veces; i++) {
		cadena = cadena + caracter;
		}
return cadena;
}

function marcadores() {
	cambia_central('Welcome');
	document.getElementById('Welcome').innerHTML=cnv(' ',7)+"Welcome"+cnv(' ',7); 
	document.getElementById('Information').innerHTML=" "+"Local Information"; 
	document.getElementById('Tourism').innerHTML=cnv(' ',8)+"Tourism"+cnv(' ',8); 
	document.getElementById('Paper').innerHTML=cnv(' ',8)+"Program"+cnv(' ',8); 
	document.getElementById('Lodging').innerHTML=" "+"Lodging &amp; Venue"; 
	document.getElementById('Howto').innerHTML=" "+"How to get there"+"  "; 
	document.getElementById('Registration').innerHTML=cnv(' ',5)+"Registration"+cnv(' ',5);
	document.getElementById('Events').innerHTML=cnv(' ',5)+"Social Events"+cnv(' ',5);  
	document.getElementById('Contact').innerHTML=cnv(' ',6)+"Contact Us"+cnv(' ',6); 
	}

function calcula_precio(precio) {
	if (document.getElementById('alh_noche').checked){precio=precio+40}
	if (document.getElementById('alh_noche_2').checked){precio=precio+40}
	if (document.getElementById('alh_dia').checked){precio=precio+40}
	if (document.getElementById('alh_dia_2').checked){precio=precio+40}
	if (document.getElementById('nosolo').checked){precio=precio+75}
	document.getElementById('total').innerHTML=String(precio)+' euros';
	document.getElementById('precio').value=precio;
}

function obligados() {
	if (document.getElementById('name').value =''){
		document.getElementById('enviar').disabled=true;
		}
	else {
		document.getElementById('enviar').disabled=false;
	}
}


