function MostrarImagen(ruta,domini){
	document.getElementById('imatge_gran').src='http://'+domini+'/byte/includes/tallfoto.php?ruta=../../img/galeria/'+ruta+'&posx=0&posy=0&width=310&height=234&opcio=reduir';
}
function MostrarImagen2(ruta,domini){
	document.getElementById('imatge_gran').src='http://'+domini+'/byte/includes/tallfoto.php?ruta=../../img/galeria/'+ruta+'&posx=0&posy=0&width=228&height=152&opcio=reduir';
}
function comprobaFormulari(texteAlert) {
	var form = document.forms.contactoForm;
	if(form.email.value==""){
		alert(texteAlert);
		return false;
	}
	else{
		if(form.nom.value==""){
			alert(texteAlert);
			return false
		}
		else{
			if(form.comentaris.value==""){
				alert(texteAlert);
				return false;
			}
			else{
				if(form.telefon.value==""){
					alert(texteAlert);
					return false;
				}
				else{
					return true;
				}
			}
		}
	}
}
function load() {
  if (GBrowserIsCompatible()) {
    var icon = new GIcon();
    //icon.image = 'http://'+domini+'/templates/web/img/logo.jpg';
    icon.image = '';
    icon.iconSize = new GSize(61, 65);
    icon.iconAnchor = new GPoint(-5, 100);
    icon.infoWindowAnchor = new GPoint(-5,10);
    var direccion = "<span style='color:#000000;font-family:Tahoma;font-size:11px'>\
    <b>AERF S.A.</b><br />\
    Pol. Industrial Sot dels Pradals<br />\
	C/ Sot dels Pradals<br />\
	08500 Vic (Barcelona)<br />\
    </span>";
    var marcador = new GMarker(new GLatLng(41.935799,2.248787),icon);
    GEvent.addListener(marcador, 'click', function(){marcador.openInfoWindowHtml(direccion);});
    var map = new GMap2(document.getElementById("map"));
    map.setCenter(new GLatLng(41.934799,2.243387), 15);
	//sll=41.940499,2.249687&sspn=0.00755,0.013304&ll=41.945958,2.253485&spn=0.00755,0.013304
    map.setMapType(G_NORMAL_MAP);
    map.addControl(new GSmallMapControl());
    map.addOverlay(marcador);
    marcador.openInfoWindowHtml(direccion);
  }
}

