function Rollover(td,opcio)
{
	clase_celda = 'opcio_' + opcio + '_on';
	td.className = clase_celda;
	clase_link = 'link_' + opcio + '_on';
	document.getElementById('enlace_'+opcio).className = clase_link;
}
function Rollout(td,opcio)
{
	clase_celda = 'opcio_' + opcio;
	td.className = clase_celda;
	clase_link = 'link_' + opcio;
	document.getElementById('enlace_'+opcio).className = clase_link;
}
function comprobaFormulari(errorMail,texteAlert) {
	var form = document.forms.contactoForm;
	if(form.email.value==""){
		alert(texteAlert);
		return false;
	}
	else{
		if(form.nombre.value==""){
			alert(texteAlert);
			return false
		}
		else{
			if(form.asunto.value==""){
				alert(texteAlert);
				return false;
			}
			else{
				if(form.comentaris.value==""){
					alert(texteAlert);
					return false;
				}
				else{
					if(form.email2.value==""){
						alert(texteAlert);
						return false;
					}
					else{
						if(form.email.value != form.email2.value){
							alert(errorMail);
							return false;
						}
						else{
							return true;
						}
					}
				}
			}
		}
	}
}
function load() {
	if (GBrowserIsCompatible()) {
		var icon = new GIcon();
		//icon.image = 'templates/web/img/aki.gif';
		icon.image = '';
		icon.iconSize = new GSize(25, 34);
		icon.iconAnchor = new GPoint(0,40);
		icon.infoWindowAnchor = new GPoint(20,-10);
		var direccion = "<span style='color:#000000;font-size:11px'>\
		<b>SAHECO S.L.</b><br />\
		Pol. Ind. de la Foradada<br />\
		08580 Sant Quirze de Besora.Barcelona.Espaņa\
		</span>";
		var marcador = new GMarker(new GLatLng(42.113505,2.238464),icon);
		GEvent.addListener(marcador, 'click', function(){marcador.openInfoWindowHtml(direccion);});
		var map = new GMap2(document.getElementById("map"));
		map.setCenter(new GLatLng(0.056922,0.11673), 14);
		map.setMapType(G_NORMAL_MAP);
		map.addControl(new GSmallMapControl());
		map.addOverlay(marcador);
		marcador.openInfoWindowHtml(direccion);
	}
}
function ocultarcapas(pais) {
	document.getElementById('italia').style.visibility='hidden';
	document.getElementById('espanya').style.visibility='hidden';
	document.getElementById('gran_bretanya').style.visibility='hidden';
	document.getElementById(pais).style.visibility='visible';
}
