var obras_per_page=15;
var productos_per_page=6;
var productos_per_fila=3;
var pasos_per_page=4;
var pasos_per_fila=2;
var urlAvento = "../productos/cargaAvento.html";
var urlAventoFoto = "../quienes/cargaAvento.html";
var urlAventoPaso = "../paso/cargaAvento.html";
var obraId=0;
var TimeID; 
var inicioTip	= '<img src="../img/comun/logoTip.jpg" border="0"><div class="divStyle">'; 
var finTip		= '</div>';

var uno		="1";
var dos		="2";
var tres	="3";
var cuatro	="4";
var cinco	="5";
var seis	="6";
var siete	="7";
var ocho	="8";
var nueve	="9";
var contenido="-1";


function MM_swapImgRestore() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() {
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


var textoImagen1 = "<a href=\'javascript:enviar(uno,1)\' onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image1','','img/comun/inicio_r.jpg',1)\"><img name='Image1' border='0' src='img/comun/inicio_a.jpg' alt='Inicio'></a>&nbsp;";
var textoImagen1Selected ="<img name='Image1' border='0' src='img/comun/inicio_r.jpg' alt='Inicio'>&nbsp;";

var textoImagen2 = "<a href=\'javascript:enviar(dos,1)\' onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image2','','img/comun/obras_r.jpg',1)\"><img name='Image2' border='0' src='img/comun/obras_a.jpg' alt='Conozca nuestras obras mas representativas'></a>&nbsp;";
var textoImagen2Selected ="<img name='Image2' border='0' src='img/comun/obras_r.jpg' alt='Conozca nuestras obras mas representativas'>&nbsp;";

var textoImagen3 ="<a href=\'javascript:enviar(tres,1)\' onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image3','','img/comun/rehabilita_r.jpg',1)\"><img name='Image3' border='0' src='img/comun/rehabilita_a.jpg' alt='Rehabilitación paso a paso'></a>&nbsp;";
var textoImagen3Selected ="<img name='Image3' border='0' src='img/comun/rehabilita_r.jpg' alt='Rehabilitación paso a paso'>&nbsp;";

var textoImagen4 ="<a href=\'javascript:enviar(cuatro,1)\' onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image4','','img/comun/productos_r.jpg',1)\"><img name='Image4' border='0' src='img/comun/productos_a.jpg' alt='Conozca los productos que utilizamos'></a>&nbsp;";
var textoImagen4Selected ="<img name='Image4' border='0' src='img/comun/productos_r.jpg' alt='Conozca los productos que utilizamos'>&nbsp;";

var textoImagen5 ="<a href=\'javascript:enviar(cinco,1)\' onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image5','','img/comun/servicios_r.jpg',1)\"><img name='Image5' border='0' src='img/comun/servicios_a.jpg' alt='Conózca nuestros servicios específicos'></a>&nbsp;";
var textoImagen5Selected ="<img name='Image5' border='0' src='img/comun/servicios_r.jpg' alt='Conózca nuestros servicios específicos'>&nbsp;";
					
var textoImagen6 ="<a href=\'javascript:enviar(seis,1)\' onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image6','','img/comun/quienes_r.jpg',1)\"><img name='Image6' border='0' src='img/comun/quienes_a.jpg' alt='Conózcanos'></a>";
var textoImagen6Selected ="<img name='Image6' border='0' src='img/comun/quienes_r.jpg' alt='Conózcanos'>";

var textoImagen7 ="<a href=\'javascript:enviar(siete,1)\' onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image7','','img/comun/cana_r.jpg',1)\"><img name='Image7' border='0' src='img/comun/cana_a.jpg' alt='Canalones de Aluminio'></a>";
var textoImagen7Selected ="<img name='Image7' border='0' src='img/comun/cana_r.jpg' alt='Canalones de Aluminio'>";

var textoImagen8 ="<a href=\'javascript:enviar(ocho,1)\' onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image8','','img/comun/foro_r.jpg',1)\"><img name='Image8' border='0' src='img/comun/foro_a.jpg' alt='Visite nuestro Foro'></a>";
var textoImagen8Selected ="<img name='Image8' border='0' src='img/comun/foro_r.jpg' alt='Visite nuestro Foro'>";

var textoImagen9 ="<a href=\'javascript:enviar(nueve,1)\' onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image9','','img/comun/inmo_r.jpg',1)\"><img name='Image9' border='0' src='img/comun/inmo_a.jpg' alt='Visite nuestra Zona Inmobiliaria'></a>";
var textoImagen9Selected ="<img name='Image9' border='0' src='img/comun/inmo_r.jpg' alt='Visite nuestra Zona Inmobiliaria'>";


var dw_event = {
  
  add: function(obj, etype, fp, cap) {
    cap = cap || false;
    if (obj.addEventListener) obj.addEventListener(etype, fp, cap);
    else if (obj.attachEvent) obj.attachEvent("on" + etype, fp);
  }, 

  remove: function(obj, etype, fp, cap) {
    cap = cap || false;
    if (obj.removeEventListener) obj.removeEventListener(etype, fp, cap);
    else if (obj.detachEvent) obj.detachEvent("on" + etype, fp);
  }, 

  DOMit: function(e) { 
    e = e? e: window.event;
    e.tgt = e.srcElement? e.srcElement: e.target;
    
    if (!e.preventDefault) e.preventDefault = function () { return false; }
    if (!e.stopPropagation) e.stopPropagation = function () { if (window.event) window.event.cancelBubble = true; }
        
    return e;
  }
  
}


var viewport = {
  getWinWidth: function () {
    this.width = 0;
    if (window.innerWidth) this.width = window.innerWidth - 18;
    else if (document.documentElement && document.documentElement.clientWidth) 
  		this.width = document.documentElement.clientWidth;
    else if (document.body && document.body.clientWidth) 
  		this.width = document.body.clientWidth;
  },
  
  getWinHeight: function () {
    this.height = 0;
    if (window.innerHeight) this.height = window.innerHeight - 18;
  	else if (document.documentElement && document.documentElement.clientHeight) 
  		this.height = document.documentElement.clientHeight;
  	else if (document.body && document.body.clientHeight) 
  		this.height = document.body.clientHeight;
  },
  
  getScrollX: function () {
    this.scrollX = 0;
  	if (typeof window.pageXOffset == "number") this.scrollX = window.pageXOffset;
  	else if (document.documentElement && document.documentElement.scrollLeft)
  		this.scrollX = document.documentElement.scrollLeft;
  	else if (document.body && document.body.scrollLeft) 
  		this.scrollX = document.body.scrollLeft; 
  	else if (window.scrollX) this.scrollX = window.scrollX;
  },
  
  getScrollY: function () {
    this.scrollY = 0;    
    if (typeof window.pageYOffset == "number") this.scrollY = window.pageYOffset;
    else if (document.documentElement && document.documentElement.scrollTop)
  		this.scrollY = document.documentElement.scrollTop;
  	else if (document.body && document.body.scrollTop) 
  		this.scrollY = document.body.scrollTop; 
  	else if (window.scrollY) this.scrollY = window.scrollY;
  },
  
  getAll: function () {
    this.getWinWidth(); this.getWinHeight();
    this.getScrollX();  this.getScrollY();
  }
  
}
						


var aveTip = {
    followMouse: true,
    offX: 8,
    offY: 12,
    tipID: "avenDiv",
    showDelay: 100,
    hideDelay: 200,
	ready:false,
	timer:null,
	tip:null,
	init:function(){
		if(document.createElement&&document.body&&typeof document.body.appendChild!="undefined"){
			if(!document.getElementById(this.tipID)){
				var el=document.createElement("DIV");
				el.id=this.tipID;
				document.body.appendChild(el);
			}
			this.ready=true;
		}
	},show:function(e,msg){
		if(this.timer){
			clearTimeout(this.timer);
			this.timer=0;
		}
		
		if(!this.ttready)
		return;
		
		this.tip=document.getElementById(this.tipID);
		
		if(this.followMouse)
		dw_event.add(document,"mousemove",this.trackMouse,true);
		
		this.writeTip("");
		this.writeTip(msg);
		viewport.getAll();
		this.positionTip(e);
		this.timer=setTimeout("aveTip.toggleVis('"+this.tipID+"', 'visible')",this.showDelay);
	},writeTip:function(msg){
		
		if(this.tip&&typeof this.tip.innerHTML!="undefined")
			this.tip.innerHTML=msg;
	},positionTip:function(e){
		if(this.tip&&this.tip.style){
			var x=e.pageX?e.pageX:e.clientX+viewport.scrollX;
			var y=e.pageY?e.pageY:e.clientY+viewport.scrollY;
			
			if(x+this.tip.offsetWidth+this.offX>viewport.width+viewport.scrollX){
				x=x-this.tip.offsetWidth-this.offX;
				if(x<0)x=0;}
				else 
				x=x+this.offX;
				if(y+this.tip.offsetHeight+this.offY>viewport.height+viewport.scrollY){
					y=y-this.tip.offsetHeight-this.offY;
					if(y<viewport.scrollY)
					 y=viewport.height+viewport.scrollY-this.tip.offsetHeight;
				}else 
				  y=y+this.offY;this.tip.style.left=x+"px";this.tip.style.top=y+"px";
			}
		},hide:function(){
			if(this.timer){
				clearTimeout(this.timer);
				this.timer=0;
			}
			this.timer=setTimeout("aveTip.toggleVis('"+this.tipID+"', 'hidden')",this.hideDelay);
			if(this.followMouse)
			 dw_event.remove(document,"mousemove",this.trackMouse,true);
			 this.tip=null;
			},
			
		toggleVis:function(id,vis){
			var el=document.getElementById(id);
			if(el)
			 el.style.visibility=vis;
		},
		
		trackMouse:function(e){
			e=dw_event.DOMit(e);
			aveTip.positionTip(e);
		}
	};var dw_Inf={};
	dw_Inf.ready=true; 
	aveTip.ttready=true; 




function timer() { 
	//window.clipboardData.clearData(); 
	//timeID = setTimeout("timer()", 100); 
} 



function obtvarurl(name_var){ 
	name_var=new String(name_var) 
	var urlactual 
	var longurl, longvar, valorvar= new String() 
	var ctractual, longvaractual, varactual= new String() 
	urlactual= window.location 
	urlactual= new String(urlactual) 
	longurl=urlactual.length 
	longvar=name_var.length 
	for (i = 1; i < (longurl+1); i++) 
	{ 
		ctractual=urlactual.substring(i,i+1) 
		if (ctractual=="?" || ctractual=="&") 
		   { 
		varactual=urlactual.substring(i+1,i+longvar+1) 
		if (varactual.toLocaleUpperCase() == name_var.toLocaleUpperCase()) 
		   { 
		   longvaractual=urlactual.indexOf("&",i+longvar+2) 
		   if (longvaractual<0) 
			  {longvaractual=longurl} 

		   valorvar=urlactual.substring(i+longvar+2,longvaractual) 

		   } 
		} 
	} 
	return valorvar 
} 

function enviar(valor, charge_url){
	url='';
	if (valor==uno)
	{
		//document.getElementById("img1").innerHTML=textoImagen1Selected;
		//document.getElementById("img2").innerHTML=textoImagen2;
		//document.getElementById("img3").innerHTML=textoImagen3;
		//document.getElementById("img4").innerHTML=textoImagen4;
		//document.getElementById("img5").innerHTML=textoImagen5;
		//document.getElementById("img6").innerHTML=textoImagen6;
		//parent.document.getElementById('ifrmContenido').src="/contenido.html";
		url='/index.html';
		if (charge_url==1)
		{
			window.parent.location.href='index.html';
		}
	}else if (valor==dos) {
		url="obras/index.html?page=1";
		if (charge_url==1)
		{
			document.getElementById("img1").innerHTML=textoImagen1;
			document.getElementById("img2").innerHTML=textoImagen2Selected;
			document.getElementById("img3").innerHTML=textoImagen3;
			document.getElementById("img4").innerHTML=textoImagen4;
			document.getElementById("img5").innerHTML=textoImagen5;
			document.getElementById("img6").innerHTML=textoImagen6;
			document.getElementById("img7").innerHTML=textoImagen7;
			document.getElementById("img8").innerHTML=textoImagen8;
			document.getElementById("img9").innerHTML=textoImagen9;
			parent.document.getElementById('ifrmContenido').src=url;
		}
	}else if (valor==tres) {
		url="paso/indice.html?tipo_paso=indice&paso=1&etiqueta=1";
		if (charge_url==1)
		{
			document.getElementById("img1").innerHTML=textoImagen1;
			document.getElementById("img2").innerHTML=textoImagen2;
			document.getElementById("img3").innerHTML=textoImagen3Selected;
			document.getElementById("img4").innerHTML=textoImagen4;
			document.getElementById("img5").innerHTML=textoImagen5;
			document.getElementById("img6").innerHTML=textoImagen6;
			document.getElementById("img7").innerHTML=textoImagen7;
			document.getElementById("img8").innerHTML=textoImagen8;
			document.getElementById("img9").innerHTML=textoImagen9;
			parent.document.getElementById('ifrmContenido').src=url;
		}
	}else if (valor==cuatro) {
		url="productos/index.html?page=1";
		if (charge_url==1)
		{
			document.getElementById("img1").innerHTML=textoImagen1;
			document.getElementById("img2").innerHTML=textoImagen2;
			document.getElementById("img3").innerHTML=textoImagen3;
			document.getElementById("img4").innerHTML=textoImagen4Selected;
			document.getElementById("img5").innerHTML=textoImagen5;
			document.getElementById("img6").innerHTML=textoImagen6;
			document.getElementById("img7").innerHTML=textoImagen7;
			document.getElementById("img8").innerHTML=textoImagen8;
			document.getElementById("img9").innerHTML=textoImagen9;
			parent.document.getElementById('ifrmContenido').src=url;
		}
	}else if (valor==cinco) {
		url="servicios/index.html";
		if (charge_url==1)
		{
			document.getElementById("img1").innerHTML=textoImagen1;
			document.getElementById("img2").innerHTML=textoImagen2;
			document.getElementById("img3").innerHTML=textoImagen3;   
			document.getElementById("img4").innerHTML=textoImagen4;
			document.getElementById("img5").innerHTML=textoImagen5Selected;
			document.getElementById("img6").innerHTML=textoImagen6;
			document.getElementById("img7").innerHTML=textoImagen7;
			document.getElementById("img8").innerHTML=textoImagen8;
			document.getElementById("img9").innerHTML=textoImagen9;
			parent.document.getElementById('ifrmContenido').src=url;
		}
	}else if (valor==seis) {
		url="quienes/index.html";
		if (charge_url==1)
		{
			document.getElementById("img1").innerHTML=textoImagen1;
			document.getElementById("img2").innerHTML=textoImagen2;
			document.getElementById("img3").innerHTML=textoImagen3;
			document.getElementById("img4").innerHTML=textoImagen4;
			document.getElementById("img5").innerHTML=textoImagen5;
			document.getElementById("img6").innerHTML=textoImagen6Selected;
			document.getElementById("img7").innerHTML=textoImagen7;
			document.getElementById("img8").innerHTML=textoImagen8;
			document.getElementById("img9").innerHTML=textoImagen9;
			parent.document.getElementById('ifrmContenido').src=url;
		}
	}
	else if (valor==siete) {
		url='canalum/index.html';
		if (charge_url==1)
		{
			document.getElementById("img1").innerHTML=textoImagen1;
			document.getElementById("img2").innerHTML=textoImagen2;
			document.getElementById("img3").innerHTML=textoImagen3;
			document.getElementById("img4").innerHTML=textoImagen4;
			document.getElementById("img5").innerHTML=textoImagen5;
			document.getElementById("img6").innerHTML=textoImagen6;
			document.getElementById("img7").innerHTML=textoImagen7Selected;
			document.getElementById("img8").innerHTML=textoImagen8;
			document.getElementById("img9").innerHTML=textoImagen9;
			parent.document.getElementById('ifrmContenido').src=url;
		}
	}else if (valor==ocho) {
		url='forum/index.html';
		if (charge_url==1)
		{
			document.getElementById("img1").innerHTML=textoImagen1;
			document.getElementById("img2").innerHTML=textoImagen2;
			document.getElementById("img3").innerHTML=textoImagen3;
			document.getElementById("img4").innerHTML=textoImagen4;
			document.getElementById("img5").innerHTML=textoImagen5;
			document.getElementById("img6").innerHTML=textoImagen6;
			document.getElementById("img7").innerHTML=textoImagen7;
			document.getElementById("img8").innerHTML=textoImagen8Selected;
			document.getElementById("img9").innerHTML=textoImagen9;
			parent.document.getElementById('ifrmContenido').src=url;
		}
	}else if (valor==nueve) {
		url='inmobiliaria/index.html';
		if (charge_url==1)
		{
			document.getElementById("img1").innerHTML=textoImagen1;
			document.getElementById("img2").innerHTML=textoImagen2;
			document.getElementById("img3").innerHTML=textoImagen3;
			document.getElementById("img4").innerHTML=textoImagen4;
			document.getElementById("img5").innerHTML=textoImagen5;
			document.getElementById("img6").innerHTML=textoImagen6;
			document.getElementById("img7").innerHTML=textoImagen7;
			document.getElementById("img8").innerHTML=textoImagen8;
			document.getElementById("img9").innerHTML=textoImagen9Selected;
			parent.document.getElementById('ifrmContenido').src=url;
		}
	}else if (valor==contenido){

		url='contenido.html';
	}
	if (charge_url!=1)
	{
		return url;
	}
}

// Ventana Productos
var dragapproved=false
var minrestore = 1;
var initialwidth,initialheight
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all

function iecompattest(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function drag_drop(e){
if (ie5&&dragapproved&&event.button==1){
document.getElementById("dwindow").style.left=tempx+event.clientX-offsetx+"px"
document.getElementById("dwindow").style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
document.getElementById("dwindow").style.left=tempx+e.clientX-offsetx+"px"
document.getElementById("dwindow").style.top=tempy+e.clientY-offsety+"px"
}
}

function initializedrag(e){
offsetx=ie5? event.clientX : e.clientX
offsety=ie5? event.clientY : e.clientY
document.getElementById("dwindowcontent").style.display="none" //extra
tempx=parseInt(document.getElementById("dwindow").style.left)
tempy=parseInt(document.getElementById("dwindow").style.top)

dragapproved=true
document.getElementById("dwindow").onmousemove=drag_drop
}

function loadwindow(url,width,height){
if (!ie5&&!ns6){
window.open(url,"","width=width,height=height,scrollbars=1");
}else{
document.getElementById("dwindow").style.display=''
document.getElementById("dwindow").style.width=initialwidth=width+"px"
document.getElementById("dwindow").style.height=initialheight=height+"px"
document.getElementById("dwindow").style.left="30px"
document.getElementById("dwindow").style.top=ns6? window.pageYOffset*1+30+"px" : iecompattest().scrollTop*1+30+"px"
document.getElementById("cframe").src=url
}
}

function maximize(){
if (minrestore==0){
minrestore=1; //maximize window
document.getElementById("maxname").setAttribute("src","../img/comun/max.gif");
document.getElementById("dwindow").style.width=initialwidth
document.getElementById("dwindow").style.height=initialheight
}
else{
document.getElementById("maxname").setAttribute("src","../img/comun/restore.gif")
document.getElementById("dwindow").style.width=ns6? window.innerWidth-20+"px" : iecompattest().clientWidth+"px"
document.getElementById("dwindow").style.height=ns6? window.innerHeight-20+"px" : iecompattest().clientHeight+"px"
minrestore=0; //restore window
}
document.getElementById("dwindow").style.left=ns6? window.pageXOffset+"px" : iecompattest().scrollLeft+"px"
document.getElementById("dwindow").style.top=ns6? window.pageYOffset+"px" : iecompattest().scrollTop+"px"
}

function closeit(){
minrestore=0;
document.getElementById("cframe").src=urlAvento;
document.getElementById("maxname").setAttribute("src","../img/comun/max.gif");
document.getElementById("dwindow").style.display="none";
}
function stopdrag(){
dragapproved=false;
document.getElementById("dwindow").onmousemove=null;
document.getElementById("dwindowcontent").style.display="" //extra
}



//Ventana Fotos quienes somos

var dragapprovedFoto=false
var minrestoreFoto = 1;
var initialwidthFoto,initialwidthFoto
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all

function iecompattestFoto(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function drag_dropFoto(e){
if (ie5&&dragapprovedFoto&&event.button==1){
document.getElementById("dwindowFoto").style.left=tempxFoto+event.clientX-offsetxFoto+"px"
document.getElementById("dwindowFoto").style.top=tempyFoto+event.clientY-offsetyFoto+"px"
}
else if (ns6&&dragapprovedFoto){
document.getElementById("dwindowFoto").style.left=tempxFoto+e.clientX-offsetxFoto+"px"
document.getElementById("dwindowFoto").style.top=tempyFoto+e.clientY-offsetyFoto+"px"
}
}

function initializedragFoto(e){
offsetxFoto=ie5? event.clientX : e.clientX
offsetyFoto=ie5? event.clientY : e.clientY
document.getElementById("dwindowcontentFoto").style.display="none" //extra
tempxFoto=parseInt(document.getElementById("dwindowFoto").style.left)
tempyFoto=parseInt(document.getElementById("dwindowFoto").style.top)

dragapprovedFoto=true
document.getElementById("dwindowFoto").onmousemove=drag_dropFoto
}

function loadwindowFoto(url,width,height){
if (!ie5&&!ns6){
window.open(url,"","width=width,height=height,scrollbars=1");
}else{
document.getElementById("dwindowFoto").style.display="";
document.getElementById("dwindowFoto").style.width=initialwidthFoto=width+"px"
document.getElementById("dwindowFoto").style.height=initialheightFoto=height+"px"
document.getElementById("dwindowFoto").style.left="150px"
document.getElementById("dwindowFoto").style.top=ns6? window.pageYOffset*1+30+"px" : iecompattestFoto().scrollTop*1+30+"px";
document.getElementById("cframeFoto").src=url;
}
}

function closeitFoto(){
minrestoreFoto=0;
document.getElementById("cframeFoto").src=urlAventoFoto;
document.getElementById("dwindowFoto").style.display="none";
}

function stopdragFoto(){
dragapprovedFoto=false;
document.getElementById("dwindowFoto").onmousemove=null;
document.getElementById("dwindowcontentFoto").style.display="" //extra
}


//Ventana Fotos Paso a Paso

var dragapprovedPaso=false
var minrestorePaso = 1;
var initialwidthPaso,initialwidthPaso
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all

function iecompattestPaso(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function drag_dropPaso(e){
if (ie5&&dragapprovedPaso&&event.button==1){
document.getElementById("dwindowPaso").style.left=tempxPaso+event.clientX-offsetxPaso+"px"
document.getElementById("dwindowPaso").style.top=tempyPaso+event.clientY-offsetyPaso+"px"
}
else if (ns6&&dragapprovedPaso){
document.getElementById("dwindowPaso").style.left=tempxPaso+e.clientX-offsetxPaso+"px"
document.getElementById("dwindowPaso").style.top=tempyPaso+e.clientY-offsetyPaso+"px"
}
}

function initializedragPaso(e){
offsetxPaso=ie5? event.clientX : e.clientX
offsetyPaso=ie5? event.clientY : e.clientY
//document.getElementById("dwindowcontentPaso").style.display="none" //extra
//tempxPaso=parseInt(document.getElementById("dwindowPaso").style.left)
//tempyPaso=parseInt(document.getElementById("dwindowPaso").style.top)

//dragapprovedPaso=true
//document.getElementById("dwindowPaso").onmousemove=drag_dropPaso
}

function loadwindowPaso(url,width,height){
if (!ie5&&!ns6){
window.open(url,"","width=width,height=height,scrollbars=1");
}else{
document.getElementById("dwindowPaso").style.display="";
document.getElementById("dwindowPaso").style.width=initialwidthPaso=width+"px"
document.getElementById("dwindowPaso").style.height=initialheightPaso=height+"px"
document.getElementById("dwindowPaso").style.left="395px"
document.getElementById("dwindowPaso").style.top=ns6? window.pageYOffset*1+16+"px" : iecompattestPaso().scrollTop*1+16+"px";
document.getElementById("cframePaso").src=url;
}
}

function closeitPaso(){
minrestorePaso=0;
document.getElementById("cframePaso").src=urlAventoPaso;
document.getElementById("dwindowPaso").style.display="none";
}

function stopdragPaso(){
dragapprovedPaso=false;
document.getElementById("dwindowPaso").onmousemove=null;
document.getElementById("dwindowcontentPaso").style.display="" //extra
}




//Obras
function apa(e, msg) {
  msg = eval("inicioTip + arrayObras[" + msg + "][3] + finTip");
  if ( typeof aveTip == "undefined" || !aveTip.ready ) return;
  aveTip.show(e, msg);
}

function desa() {
  if ( typeof aveTip == "undefined" || !aveTip.ready ) return;
  aveTip.hide();
} 

// Productos
function apaP(e) {
  msg = eval("inicioTip + 'Pulse sobre el producto para mas información.' + finTip");
  if ( typeof aveTip == "undefined" || !aveTip.ready ) return;
  aveTip.show(e, msg);
}

function desaP() {
  if ( typeof aveTip == "undefined" || !aveTip.ready ) return;
  aveTip.hide();
}


//Servicios
function apaS(e) {
  msg = eval("inicioTip + 'Pulse para ver en detalle nuestros servicios.' + finTip");
  if ( typeof aveTip == "undefined" || !aveTip.ready ) return;
  aveTip.show(e, msg);
}

function desaS() {
  if ( typeof aveTip == "undefined" || !aveTip.ready ) return;
  aveTip.hide();
}

//
function apaQ(e) {
  msg = eval("inicioTip + 'Pulse para ver la ampliación de la foto.' + finTip");
  if ( typeof aveTip == "undefined" || !aveTip.ready ) return;
  aveTip.show(e, msg);
}

function desaQ() {
  if ( typeof aveTip == "undefined" || !aveTip.ready ) return;
  aveTip.hide();
}




