function getAbsoluteElementPosition(element) {
  if (typeof element == "string")
    element = document.getElementById(element)
    
  if (!element) return { top:0,left:0 };
  
  var y = 0;
  var x = 0;
  while (element.offsetParent) {
    x += element.offsetLeft;
    y += element.offsetTop;
    element = element.offsetParent;
  }
  return {top:y,left:x};
}


function ensenar()
{
	document.getElementById("resumen").style.display = "block";
  	var elemento = document.getElementById("otrosEnlaces");
  	var pos = getAbsoluteElementPosition(elemento);
	pos.top = pos.top;// - 150;
	pos.left = pos.left + 120;
	document.getElementById("resumen").style.top = pos.top+"px";
	document.getElementById("resumen").style.left = pos.left+"px";
}

function esconder()
{
	document.getElementById("resumen").style.display = "none";
}

function mostrar(id)
{
	if (document.getElementById('td_sub_' + id)!= 'null'){
		if (document.getElementById('td_sub_' + id).style.display != ''){
			document.getElementById('td_sub_' + id).style.display ='';
			document.getElementById('vinculo' + id).className ="link1_over";
		}
		else {
			document.getElementById('td_sub_' + id).style.display='none';
			document.getElementById('vinculo' + id).className ="link1";
		}
	}
}

function mostrarocultar()
{
 	   if (document.getElementById("subterminos").style.display != 'none'){
			document.getElementById("subterminos").style.display ='none';
		}
		else {
			document.getElementById("subterminos").style.display='block';
		}
}

<!--
if (navigator.appName.indexOf("Netscape") != -1) 
	{ document.write("<link rel=stylesheet type=text/css href=http://www.samper.com/CSS/general_ns.css>"); }
-->

var vnav = parseInt(navigator.appVersion);
window.status = "SAMPER CROISSIER - Mobiliario de oficina";

if (document.images) {	
	var opON = new Image();
	var opOFF = new Image();
	opOFF.src = "http://www.samper.com/img/menu/b_servicios.gif";	
	opON.src = "http://www.samper.com/img/menu/b_gris.gif";
   window.status = "SAMPER CROISSIER - Mobiliario de oficina - Arquitectura interior - Imagen de empresa";	
}
	function msover(num) {
      	if (document.images) {
        	document["boleta" + num ].src = opON.src;   
        	return true;
		}
    }
	function msout(num) {
      	if (document.images) {
       	document["boleta" + num].src = opOFF.src; 
   			return true;
   		}
    }

var vnav = parseInt(navigator.appVersion);
window.status = "SAMPER CROISSIER - Mobiliario de oficina";

if (document.images) {	
	var mx = 8;
	var opON= new Array(mx);
	var opOFF = new Image();
	var text = new Array(mx);
	var aStatus = new Array(mx);
   for (var i = 0; i < mx; i++) 	
   { 	opON[i] = new Image();	}

	opOFF.src = "http://www.samper.com/img/menu/zona_boliche.gif";	
		
	opON[0].src = "http://www.samper.com/img/menu/b_presentacion.gif";
	opON[1].src = "http://www.samper.com/img/menu/b_servicios.gif";
	opON[2].src = "http://www.samper.com/img/menu/b_portafolio.gif";
	opON[3].src = "http://www.samper.com/img/menu/b_marcas.gif";
	opON[4].src = "http://www.samper.com/img/menu/b_productos.gif";
	opON[5].src = "http://www.samper.com/img/menu/b_buscar.gif";
	opON[6].src = "http://www.samper.com/img/menu/b_seleccion.gif";
	opON[7].src = "http://www.samper.com/img/menu/b_presentacion.gif";
			
	aStatus[0] = "Presentación";
	aStatus[1] = "Servicios";
	aStatus[2] = "Portafolio";
	aStatus[3] = "Marcas";
	aStatus[4] = "Productos";
	aStatus[5] = "Buscar";
	aStatus[6] = "Selección";		
	aStatus[7] = "Contactar";		
	
}
	function msover(num) {
      	if (document.images) {
        	document["imgop" + num].src = opON[num].src; 
        	window.status = aStatus[num];    
        	return true;
   			
		}
    }
	function msout(num) {
      	if (document.images) {
       	document["imgop" + num].src = opOFF.src; 
   			window.status = "SAMPER CROISSIER - Equipamient Integral de Oficinas";
   			return true;
   		}
    }

function y2k(number) { 
	return (number < 1000) ? number + 1900 : number; 
}
function VerSeleccion() {
	var now = new Date();
	var nowsecs = Date.UTC(y2k(now.getYear()),now.getMonth(),now.getDate(),now.getHours(),now.getMinutes(),now.getSeconds());
	var txtHREF = "http://www.samper.com/SeleccionEditar.asp?opcion=0&TM=" + nowsecs;
	vw = 700;	vh = 450;
	if (vnav >= 4) {
		vws = (screen.width-vw)/2;
		vhs = (screen.height-vh)/2;
		}
	else 
		{	vws = 25;	vhs = 25;	}
	vParam ='height=' + vh + ',width=' + vw + ',top=' + vhs + ',left=' + vws
	vParam = vParam + ',scrollbars=yes,toolbar=no,location=no,status=no,titlebar=no,menubar=no,resizable=yes,dependent=no,alwaysRaised'
	vVentana = open(txtHREF, "seleccion", vParam); 
	if (vnav >= 4) { vVentana.window.focus(); }
}




