// JavaScript Document 

function cambia_central(origen)
  {
	strHtml="";
	switch(origen){
		case "Welcome":
			strHtml="<h2>Welcome</h2>";
			strHtml=strHtml +"<p>The Bilbao Laboratory of Experimental Analysis (Bilbao LABEAN) and the Department of Foundations of Economic Analysis I ";
			strHtml=strHtml +"at the University of the Basque Country, <a href='http://www.uv.es/lineex' target='_blank'>the Laboratory for Research in Experimental Economics (LINEEX)</a> ";
			strHtml=strHtml + "at the University of Valencia and <a href='http://www.demo.uab.cat/asr' target='_blank'>the Research Chair Antoni Serra Ramoneda (UAB - Caixa Catalunya)</a> ";
			strHtml=strHtml + "jointly sponsor the Sixth International Meeting on Experimental and Behavioral Economics (IMEBE), organized by Jordi Brandts (UAB & IAE), ";
			strHtml=strHtml + "Enrique Fat&aacute;s (LINEEX -UV), Jose Ram&oacute;n Uriarte (UPV-EHU), Nagore Iriberri (UPF- Barcelona GSE). ";
			strHtml=strHtml + "The IMEBE 2010 includes a limited number of special sessions by key researchers on the topic.</p>";
			strHtml=strHtml + "<p>The invited speakers are <a href='http://www.econ.ucsb.edu/~charness/' target='_blank'>Gary Charness</a> (University of California at Santa Barbara), ";
			strHtml=strHtml + "<a href='http://cbees.utdallas.edu/~crosonr/' target='blank'>Rachel Croson</a> (University of Texas at Dallas), ";
			strHtml=strHtml + "<a href='http://www.econ.ohio-state.edu/levin/' target='_blank'>Dan Levin</a> (Ohio State University), ";
			strHtml=strHtml + "<a href='http://www.palacios-huerta.com/index.html' target='_blank'>Ignacio Palacios-Huerta</a> (London School of Economics), ";
			strHtml=strHtml + "<a href='http://www.uea.ac.uk/eco/ecopeople/SugdenR.html' target='_blank'>Robert Sugden</a> (University of East Anglia).</p>";
			strHtml=strHtml + "<p>Important dates:</p><p>Deadline for submissions (extended abstract or full paper): February, 8th ,2010";
			strHtml=strHtml + "<br>Notification of acceptance: February, 22nd , 2010";
			strHtml=strHtml + "<br>Conference dates April 8-10th , 2010</p>";
			strHtml=strHtml + "<p>Along these pages you will find the most relevant information. See you in Bilbao&#33;</p>";
			strHtml=strHtml + "<p>If you want to participate, please click here : <a href='form_registro.php' 'target='_blank'><strong>Create New Account</strong></a></p>";
			document.getElementById('cuerpo').style.height="400px";
document.getElementById('cuerpo').innerHTML=strHtml;
		break;

		case "Information":
			strHtml="<h2>Local Information</h2>";
			strHtml= strHtml + "<strong>Local Committee</strong><ul><li>I&ntilde;aki Aguirre</li><li>Javier Arin</li><li>Ilaski Bara&ntilde;ano</li><li>Arantza Beitia</li>";
			strHtml= strHtml + "<li>Mari Luz Campo</li><li>Francisco Javier Casado</li><li>Jaromir Kovarick</li><li>Marta San Mart&iacute;n</li>";
			strHtml= strHtml + "<li>Ana Saracho</li><li>Norma Olaizola</li><li>Jos&eacute; Ram&oacute;n Uriarte, Chairman</li></ul>";
			strHtml= strHtml + "<p><a href='http://www.fae1-eao1.ehu.es/s0043-home1/en' target='_blank'>Department of Foundations of Economic Analysis I  at the University of the Basque Country.</a></p>";
			strHtml= strHtml + "Facultad de Ciencias Econ&oacute;micas y Empresariales<br>Avenida Lehendakari Agirre 83<br>48015 Bilbao<br>";
			strHtml= strHtml + "Tel: +34-94-6013799 - Fax:+34-94-6013891";
			document.getElementById('cuerpo').style.height="400px";
document.getElementById('cuerpo').innerHTML=strHtml;
		break;

		case "Tourism":
			strHtml="<h2>Tourism</h2>";
			strHtml= strHtml + "<p>If you want more information about Bilbao and its surroundings the following links could be useful:</p>";
			strHtml= strHtml + "<p><a href='http://www2.bilbao.net/bilbaoturismo/index_ingles.htm' target='_blank'>Bilbao Turismo</a></p>";
			strHtml= strHtml + "<p><a href='http://www.visitbilbao.info' target='_blank'>Visit Bilbao</a></p>";
			strHtml= strHtml + "<p><a href='http://www.bizkaia.net/home2/Temas/DetalleTema.asp?Tem_Codigo=337&Idioma=IN' target='_blank'>Bizkaia Turismo</a></p>";
			strHtml= strHtml + "<p><a href='http://www.turismoa.euskadi.net/s11-18805/en/' target='_blank'>Turismo Euskadi</a></p>";
			document.getElementById('cuerpo').style.height="400px";
document.getElementById('cuerpo').innerHTML=strHtml;
		break;

		case "Program":
			strHtml="<h2>Program</h2><table><tr><td>We've edited  definitive program of IMEBE  and e-book of abtracts. Click to open: </td>";
			strHtml=strHtml + "<td width='100px' align='center'><a href='program.pdf' target='ventana'>Program</a></td>";
			strHtml=strHtml + "<td width='100px' align='center'><a href='abstracts.pdf' target='ventana'>e-book</a></td></tr></table>";
			strHtml=strHtml + "<center><iframe id='ventana' name='ventana' frameborder='0' scrolling='auto' style='height:320px; width:900px;'></center>";
			document.getElementById('cuerpo').style.height="400px";
			document.getElementById('cuerpo').innerHTML=strHtml;
		break;

		case "Lodging":
			strHtml="<h2>Lodging & Venue</h2>";
			strHtml= strHtml + "<p>Our conference will be held at a beautiful newly-built <a href='http://www.hotelgranbilbao.com/en/index_en.html' target='_blank'>Hotel Gran Bilbao ****</a>, located in the new Miraflores neighbourhood, ";
			strHtml= strHtml + "just 500 metres from the Atxuri train station and a five minute walk from the city&#39;s signature Siete Calles del Casco Viejo district, ";
			strHtml= strHtml + "the perfect spot to enjoy the city&#39;s culture and gastronomy.</p>";
			strHtml= strHtml + "<p>There are a limited number of rooms with a substantial discount for earlier registers. Single room fare includes buffet breakfast, ";
			strHtml= strHtml + "wi-fi and taxes. (Another 10 euros for an extra person).</p>";
			strHtml= strHtml + "<table width='100%'><tr><td><p><ul><li>Before March 8th - 75&euro;.</li><li>Before March 22nd - 85&euro;."	;
			strHtml= strHtml + "<li>Before  April 3 - 95&euro;.</li><li>After April 3, regular fees apply.</li></ul></p></td>";
			strHtml= strHtml + "<td><img src='images/hotel.jpg'></td></tr></table>";
			strHtml= strHtml +"<p>BOOKING REQUIREMENTS:";
			strHtml= strHtml +"<br>Booking request is individual. Booking procedure is the following: send an email to the hotel (<a href='mailto:hotel@hotelgranbilbao.com'>hotel@hotelgranbilbao.com</a>), including:";
			strHtml= strHtml +"<ol><li>Conference Identification: IMEBE</li><li>Credit card number for booking deposit</li>";
			strHtml= strHtml +"<li>Your name, kind of selected room (single, double) arrival and departure dates.</li></ol></p>";
			strHtml= strHtml +"<p>GRAN BILBAO HOTEL * * * *<br>Calle Indalecio Prieto N&ordm; 1 Miraflores' Corner<br>";
			strHtml= strHtml +"48004 Bilbao - Bizkaia<br>Tel. +34 94 432 85 75 G<br>Fax. +34 94 432 85 77</p>";
			document.getElementById('cuerpo').style.height="600px";
document.getElementById('cuerpo').innerHTML=strHtml;
		break;

		case "Howto":
			strHtml="<h2>How to get there</h2>";
			strHtml= strHtml + "<p><strong>To Bilbao</strong></p><p><a href='http://www2.bilbao.net/bilbaoturismo/ingles/cllegar/avion.htm' target='_blank'>By plane</a></p>";
			strHtml= strHtml + "<p><a href='http://www2.bilbao.net/bilbaoturismo/ingles/cllegar/tren.htm' target='_blank'>By train</a></p>";
			strHtml= strHtml + "<p><a href='http://www2.bilbao.net/bilbaoturismo/ingles/cllegar/autobus.htm' target='_blank'>By bus</a></p>";

			strHtml= strHtml + "<p><strong>To the Hotel Gran Bilbao</strong></p><p><a href='http://maps.google.es/maps?oe=utf-8&client=firefox-a&ie=UTF8&q=hotel+gran+bilbao&fb=1&gl=es&hq=hotel+gran&hnear=bilbao&hl=es&view=map&cid=4894286074919008134&iwloc=A&ved=0CBsQpQY&sa=X&ei=249LS8jNFYe6jAfNmKT5Bg' target='_blank'>  Google maps</a></p>";
			document.getElementById('cuerpo').style.height="400px";
document.getElementById('cuerpo').innerHTML=strHtml;
		break;

		case "Registration":
			strHtml="<h2>Registration</h2>";
			strHtml= strHtml + "<p>Registration includes conference meals + coffee-breaks, dinner gala and social events.";
			strHtml= strHtml + "<ul><li>Before March 8th - 250 euros.</li><li>Before March 22nd - 275 euros.</li><li>Before April 3 - 300 euros.</li></ul>";
			strHtml= strHtml + "Registration for accompanying person (including participation in dinner gala and social events) is 75 euros. ";
			strHtml= strHtml + "Due to space restrictions this &quot;special&quot; inscription should be booked no later than March 15th. ";
			strHtml= strHtml + "With the only exception of visit of Guggenheim-Bilbao all the events are included in the conference fee.</p>";
			strHtml= strHtml + "<p>If you want to attend at IMEBE, you must fill in your register. First, go to <a href='#' onclick='document.getElementById(\"Myaccount\").onclick();return false;'>My account</a> and login or create a new account. ";
			strHtml= strHtml + "Then, you could register and pay the fee.</p>";
			document.getElementById('cuerpo').style.height="400px";
document.getElementById('cuerpo').innerHTML=strHtml;
		break;

		case "Events":
			strHtml="<h2>Social Events</h2>";
			strHtml= strHtml + "<p>Social events are planned for every day:</p>";
			strHtml= strHtml + "<ul><li>April 7: Welcome reception.</li><li>April 8: Guided visit to Guggenheim-Bilbao.</li><li>April 9: Conference Dinner.</li></ul>";
			document.getElementById('cuerpo').style.height="400px";			
document.getElementById('cuerpo').innerHTML=strHtml;
		break;


		case "Sponsors":
			strHtml="<h2>Sponsors</h2>";
			strHtml= strHtml + "<table border='0'><tr><td width='300px'><center><a href='http://www.ehu.es/p200-home/es/' target='_blank'><img src='images/upv-ehu.jpg' border='0'></a></center></td>";
			strHtml= strHtml + "<td width='250px'><center><a href='http://www.uv.es/lineex/' target='_blank'><img src='images/lineex.jpg' border='0'></a></center></td>";
			strHtml= strHtml + "<td width='300px'><center><a href='http://www.uab.cat/english/' target='_blank'><img src='images/uab.jpg' border='0'></a></center></td></tr></table>";
			strHtml= strHtml + "<p>The organizers are particularly grateful to I&ntilde;aki Bilbao (Faculty of Fine Arts, University of the Basque Country) by ";
			strHtml= strHtml + "letting us use two of his paintings (technique: oil on canvas) depicting the now swept away traditional industrial landscape and the building of an icon.";
			document.getElementById('cuerpo').style.height="400px";
document.getElementById('cuerpo').innerHTML=strHtml;
		break;		

		case "Myaccount":
			strHtml="<h2 id='cuenta'>My Account</h2>";
			strHtml= strHtml + "<div id='menu_ac'><table width='500px' border='0'><tr>";
			strHtml= strHtml + "<td id='Login' onmouseover='sobre()' onmouseout='sale()' onclick='cambia_ac(\"Login\")'>Login</td>";
			strHtml= strHtml + "<td id='Logout' onmouseover='sobre()' onmouseout='sale()' onclick='cambia_ac(\"Logout\")'>Logout</td>";
			strHtml= strHtml + "<td id='Paper' onmouseover='sobre()' onmouseout='sale()' onclick='cambia_ac(\"Paper\")'>Upload Paper</td>";
			strHtml= strHtml + "<td id='Slides' onmouseover='sobre()' onmouseout='sale()' onclick='cambia_ac(\"Slides\")'>Upload Slides</td>";
			strHtml= strHtml + "<td id='Registration' onmouseover='sobre()' onmouseout='sale()'><a href='form_inscripcion.php' target='_blank'>Conference Fee</a></td>";
			strHtml= strHtml + "<td id='Vpapers'></td>";
			strHtml= strHtml + "</tr></table></div><div id='cuerpo_ac'></div>";
			document.getElementById('cuerpo').style.height="400px";
			document.getElementById('cuerpo').innerHTML=strHtml;
			document.getElementById('Login').onclick();
		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('Program').className="etiqueta";
	document.getElementById('Lodging').className="etiqueta";
	document.getElementById('Howto').className="etiqueta";
	document.getElementById('Registration').className="etiqueta";
	document.getElementById('Events').className="etiqueta";
	document.getElementById('Sponsors').className="etiqueta";
	document.getElementById('Myaccount').className="etiqueta";

	document.getElementById(celda).className="etiqueta_sel";

}

function cambia_ac(origen)
  {
	strHtml="";
	switch(origen){
		case "Login":
			strHtml="<iframe id='usuario' name='usuario' src='acceso.php' frameborder='0' width='800px' height='300px' scrolling='auto'></iframe>";
			document.getElementById('cuerpo_ac').style.height="320px";
		break;

		case "Logout":
			strHtml="<iframe id='usuario' name='usuario' src='logout.php' frameborder='0' width='800px' height='300px' scrolling='auto'></iframe>";
			document.getElementById('cuerpo_ac').style.height="320px";
		break;

		case "Paper":
			strHtml="<iframe id='usuario' name='usuario' src='ficheros.php' frameborder='0' width='800px' height='300px' scrolling='auto'></iframe>";
			document.getElementById('cuerpo_ac').style.height="320px";
		break;
		
		case "Slides":
			strHtml="<iframe id='usuario' name='usuario' src='slides.php' frameborder='0' width='800px' height='300px' scrolling='auto'></iframe>";
			document.getElementById('cuerpo_ac').style.height="320px";
		break;
	}

	document.getElementById('cuerpo_ac').innerHTML=strHtml;
	cambia_fondo_ac(origen);
  }

function cambia_fondo_ac(celda){

	document.getElementById('Login').className="etiqueta_ac";
	document.getElementById('Logout').className="etiqueta_ac";
	document.getElementById('Paper').className="etiqueta_ac";
	document.getElementById('Slides').className="etiqueta_ac";
	document.getElementById('Registration').className="etiqueta_ac";

	document.getElementById(celda).className="etiqueta_sel_ac";

}

function resize() {
  window.parent.document.getElementById("relacion_papers").height = window.document.getElementById("lista_papers").offsetHeight;
}

function c_status(fila,valor){
	var preg = window.confirm ("do you want to change status to selected row?");
	if (preg){	
		document.getElementById("status_id").value=fila;
		document.getElementById("status_st").value=valor;	
		document.forms[1].submit();
	}else{
	parent.location.href="filtra_papers.php";
	}
}

function v_paper(fila,nombre){
	document.getElementById("papers_id").value=fila;
	document.getElementById("papers_n").value=nombre;
	window.open("blank.htm", fila , "width=500,height=300,scrollbars=yes") 
	document.forms[2].target=fila;
	document.forms[2].submit();
	parent.location.href="filtra_papers.php";
}

function v_changes(fila,nombre){
	document.getElementById("changes_id").value=fila;
	document.getElementById("changes_n").value=nombre;
	window.open("blank.htm", fila , "width=500,height=300,scrollbars=yes") 
	document.forms[3].target=fila;
	document.forms[3].submit();
	parent.location.href="filtra_papers.php";
}

function paperstoexcel(){
	for (i=0;i<4;++i){
		if (document.forms['fpapers'].filtro[i].checked){document.getElementById("e_filtro").value=document.forms['fpapers'].filtro[i].value;}
		if (document.forms['fpapers'].orden[i].checked){document.getElementById("e_orden").value=document.forms['fpapers'].orden[i].value;}
	}

	document.forms['excel'].submit();
}


function mayusculas(input){
	input.value = input.value.toUpperCase();
} 

function calcula_precio(precio) {
	if (document.getElementById('gugen').checked){precio=precio+18}
	if (document.getElementById('gugen_2').checked){precio=precio+18}
	if (document.getElementById('nosolo').checked){precio=precio+75}
	document.getElementById('total').innerHTML='Total registration   '+String(precio)+' euros';
	document.getElementById('precio').value=precio;
}


