//Javascript
//Inicia los valores del widget vertical clásico:
function amovensInitVer(amovensfestival, amovenstitulo, amovenssubtitulo, amovensdesde, amovenshasta, amovenscolor, amovensSearchText, amovensancho){
	//Cambiamos el color de los bordes:
	document.getElementById('amovensVerClas').style.borderColor=amovenscolor;
	document.getElementById('amovensOrigenVer').style.borderColor=amovenscolor;
	document.getElementById('amovensDestinoVer').style.borderColor=amovenscolor;
	document.getElementById('amovensBuscarVer').style.borderColor=amovenscolor;
	
	//Cambiamos los títulos, subtítulos, origen, destino, festival y buscar
	document.getElementById('amovensTitVer').innerHTML=amovenstitulo;
	document.getElementById('amovensSubVer').innerHTML=amovenssubtitulo;
	document.getElementById('amovensOrigenLabelVer').innerHTML=amovensdesde;
	document.getElementById('amovensDestinoLabelVer').innerHTML=amovenshasta;
	document.getElementById('amovensDestinoVer').value=amovensfestival;
	document.getElementById('amovensOrigenVer').value='';
	document.getElementById('amovensBuscarVer').value=amovensSearchText;
	
	//Cambiamos el ancho:
	document.getElementById('amovensVerClas').style.width=amovensancho+'px';
}

//Inicia los valores del widget horizontal clásico
function amovensInitHor(amovensfestival, amovenstitulo, amovenssubtitulo, amovensdesde, amovenshasta, amovensB1, amovensB2, amovensB3, amovenscolor, amovensSearchText){
	//Cambiamos el color de los bordes:
	document.getElementById('amovensHorClas').style.borderColor=amovenscolor;
	document.getElementById('amovensOrigenHor').style.borderColor=amovenscolor;
	document.getElementById('amovensDestinoHor').style.borderColor=amovenscolor;
	document.getElementById('amovensBuscarHor').style.borderColor=amovenscolor;
	
	//Cambiamos los títulos, subtítulos, origen, destino, festival y buscar
	document.getElementById('amovensTitHor').innerHTML=amovenstitulo;
	document.getElementById('amovensSubHor').innerHTML=amovenssubtitulo;
	document.getElementById('amovensOrigenLabelHor').innerHTML=amovensdesde;
	document.getElementById('amovensDestinoLabelHor').innerHTML=amovenshasta;
	document.getElementById('amovensDestinoHor').value=amovensfestival;
	document.getElementById('amovensOrigenHor').value='';
	document.getElementById('amovensBuscarHor').value=amovensSearchText;
	
	
	//Cambiamos los bullets:
	document.getElementById('amovensB1').innerHTML=amovensB1;
	document.getElementById('amovensB2').innerHTML=amovensB2;
	document.getElementById('amovensB3').innerHTML=amovensB3;
}

//Inicia los valores del widget horizontal clásico
function amovensInitHor2(amovensfestival, amovenstitulo, amovenssubtitulo, amovensdesde, amovenshasta, amovensB1, amovensB2, amovensB3, amovenscolor, amovensSearchText, amovensancho){
	
	amovensInitHor(amovensfestival, amovenstitulo, amovenssubtitulo, amovensdesde, amovenshasta, amovensB1, amovensB2, amovensB3, amovenscolor, amovensSearchText);
	//Cambiamos el ancho:
	document.getElementById('amovensHorClas').style.width=amovensancho+'px';
}

function amovensWriteVer1() {
	document.write('<div id="amovensVerClas" style="background-color: #FFF; border-style: solid;border-width: 1px;border-color: #000;color:#000;margin:0px;padding: 0px;font-family: Arial, Helvetica, sans-serif;font-size: 16px;text-align:left;"><form name="amovensFormHor" id="amovensForm" action="http://www.amovens.com" method="POST" enctype="application/x-www-form-urlencoded" target="_blank" style="margin:0px; padding:0px;"><input name="dest" type="hidden" value="widamovens" /><table style="border:none"><tr><td id="amovensTitVer" style="padding-left:10px;font-weight:bold;font-size:16px;">COMPARTIR COCHE CON AMOVENS</td></tr><tr><td id="amovensSubVer" style="padding-left:10px;font-size:14px;padding-bottom:15px;">Con Amovens es fácil compartir coche y viajar barato</td></tr><tr><td id="amovensOrigenLabelVer" align="left" style="padding-left:10px;padding-right:10px;font-size:14px;font-weight:bold;">ORIGEN</td></tr><tr><td style="padding-left:10px;padding-right:15px"><input id="amovensOrigenVer" align="center" name="sou" type="text" style="padding:0px;margin:0px;padding-left:5px;overflow:visible;z-index:99;position:relative;height: 30px; width: 100%;border-style: solid;border-width: 1px;border-color: #093;font-size:16px;background-color: #FFF; background-image: url(http://www.amovens.com/pub/fondo-input.png); background-repeat:repeat-x;"/></td></tr><tr><td id="amovensDestinoLabelVer" align="left" style="padding-left:10px;padding-right:10px;font-size:14px;font-weight:bold;">DESTINO</td></tr><tr><td style="padding-left:10px;padding-right:15px;"><input id="amovensDestinoVer" align="center" name="des" type="text" style="padding:0px;margin:0px;padding-left:5px;overflow:visible;z-index:99;position:relative;height: 30px; width: 100%;border-style: solid;border-width: 1px;border-color: #093;font-size:16px;background-color: #FFF; background-image: url(http://www.amovens.com/pub/fondo-input.png); background-repeat:repeat-x;"/></td></tr><tr><td align="right" style="padding-left:10px;padding-right:10px;"><input id="amovensBuscarVer" type="submit" value="Buscar" style="cursor:pointer;border:outset 1px #ccc;background:#FFF;color:#000;border-width:1px;border-color:#099;font-weight:bold;height:30px;font-size:14px;padding:0px;margin:0px;" /></td></tr><tr><td>');
}

function amovensWriteVer2() {
	document.write('</td></tr></table></form></div>');
}

function amovensWriteHor1() {
	document.write('<div id="amovensHorClas" style="background-color: #FFF; border-style: solid;border-width: 1px;border-color: #000;color:#000;margin:0px;padding: 0px;width: 538px;font-family: Arial, Helvetica, sans-serif;font-size: 16px;text-align:left;"><form name="amovensFormHor" id="amovensForm" action="http://www.amovens.com" method="post" enctype="application/x-www-form-urlencoded" target="_blank" style="margin:0px; padding:0px;"><input name="dest" type="hidden" value="widamovens" /><table><tr><td id="amovensTitHor" style="font-weight:bold;font-size:20px;padding:0px;padding-left:10px;padding-top:10px;">COMPARTIR COCHE CON AMOVENS</td></tr><tr><td id="amovensSubHor" style="font-size:16px;padding-left:10px;padding-bottom:15px;">Con Amovens es fácil compartir coche y viajar barato</td></tr><tr><td><table style="border:none;width:100%;table-layout:fixed;"><col width="80px"><col width="100%"><col width="50px"><col width="180px"><tr><td id="amovensOrigenLabelHor" align="right" style="font-size:16px;font-weight:bold;">ORIGEN</td><td><input id="amovensOrigenHor" align="right" name="sou" type="text" style="padding:0px;margin:0px;overflow:visible;z-index:99;position:relative;height: 30px; width: 95%;border-style: solid;border-width: 1px;border-color: #093;font-size:16px;padding-left:5px;background-color: #FFF; background-image: url(http://www.amovens.com/pub/fondo-input.png); background-repeat:repeat-x;"/></td><td align="right"><img src="http://www.amovens.com/pub/hoja2.gif" alt="" style="border:none; padding:0px; margin:0px;padding-right:5px;"/></td><td id="amovensB1">Viaja Barato</td></tr><tr><td id="amovensDestinoLabelHor" align="right" style="font-size:16px;font-weight:bold;">DESTINO</td><td><input id="amovensDestinoHor" align="right" name="des" type="text" style="padding:0px;margin:0px;overflow:visible;z-index:99;position:relative;height: 30px; width: 95%;border-style: solid;border-width: 1px;border-color: #093;font-size:16px;padding-left:5px;background-color: #FFF; background-image: url(http://www.amovens.com/pub/fondo-input.png); background-repeat:repeat-x;"/></td><td align="right"><img src="http://www.amovens.com/pub/hoja2.gif" alt="" style="border:none; padding:0px; margin:0px;padding-right:5px;"/></td><td id="amovensB2">Sé ecológico</td></tr><tr><td></td><td align="right" style="padding:0px;margin:0px"><input id="amovensBuscarHor" type="submit" value="Buscar" style="cursor:pointer;border:outset 1px #ccc;background:#FFF;color:#000;border-width:1px;border-color:#099;font-weight:bold;height:30px;font-size:20px;" /></td><td align="right"><img src="http://www.amovens.com/pub/hoja2.gif" alt="" style="border:none; padding:0px; margin:0px;padding-right:5px;"/></td><td id="amovensB3">Conoce gente nueva</td></tr></table></td></tr><tr><td>');
}

function amovensWriteHor2() {
	document.write('</td></tr></table></form></div>');
}