function escriu_flash(archivo,ancho,alto) // tutorial by IVI CONCEPT - www.ivi-concept.com
  {
  var version="7,0,0,0"; // version del flash player
  var quality="high"; // calidad de visualización de la peli
  var bgcolor="#fff"; // color de fondo de la peli
  // --fin parametros--------------------------------------------------
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" width='+ancho+' height='+alto+'>\n');
document.write('<param name="movie" value='+archivo+' />\n');
document.write('<param name="quality" value='+quality+'>\n');
document.write('<param name="bgcolor" value='+bgcolor+'>\n');
document.write('<embed src='+archivo+' bgcolor='+bgcolor+' quality='+quality+' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+ancho+' height='+alto+'></embed>');
document.write('</object>\n');
}


	function obre(myUrl,am,al,nom){
	  var ampla = am;
	  var altura = al;
	  strURL = myUrl;
	  poshoritz = (screen.width) ? (screen.width-ampla)/2 : 0;
	  posvert = (screen.height) ? (screen.height-altura)/2 : 0;
	  strW = 'toolbar=0,directories=0,location=0,status=no,menubar=0,resizable=0,copyhistory=0,scrollbars=1,width='+ ampla + ',height='+ altura + ',top='+ posvert + ',left='+ poshoritz;
	  eval("window.open('" + strURL + "',nom,'" + strW + "')");
	}


function pasarVariables(pagina, nombres) {
  pagina +="?";
  nomVec = nombres.split(",");
  for (i=0; i<nomVec.length; i++)
    pagina += nomVec[i] + "=" + escape(eval(nomVec[i]))+"&";
  pagina = pagina.substring(0,pagina.length-1);
  //parent.location.href=pagina;
 obre(pagina,780,555,"foto");
}

function getObject(objname)
{
    var obj = null ;
    if (document.getElementById) {
        obj = document.getElementById(objname) ;
    } else {
        if (document.all) {
            obj = document.all[objname] ;
            }
        }

    return obj ;
}

 function amplia(id) {
 	capa = id;
 	for(i=1;i<6;i++){
	document.getElementById("ul"+i).style.display="none" ;
 	}
	document.getElementById(id).style.display="block" ;
}

 function amplia2(id) {
 	capa = id;
 	for(i=1;i<7;i++){
	document.getElementById("ser"+i).style.display="none" ;
 	}
	document.getElementById(id).style.display="block" ;
}

 function amplia3(id) {
 	capa = id;
 	for(i=1;i<4;i++){
	document.getElementById("ost"+i).style.display="none" ;
 	}
	document.getElementById(id).style.display="block" ;
}

 function ampliadom() {
	document.getElementById("textdom").style.display="block";
	document.getElementById("textrhb").style.display="none";
	document.getElementById("casa2").style.top="500px";
}


 function ampliarhb() {
	document.getElementById("textrhb").style.display="block";
	document.getElementById("textdom").style.display="none";
	document.getElementById("casa2").style.position = "absolute";
	document.getElementById("casa2").style.top="640px";

}

function amplia4(){

	document.getElementById("osteopReembors").style.display="block";


	}
