
var res = document.documentElement.clientHeight;
if(navigator.appVersion.indexOf("MSIE 6") != -1 || res<768)
  document.write("<link type='text/css' rel='stylesheet' href='estilos/remplazar.css' />");

/*********** Función para obtener la resolución **************/
window.onresize = function()
{
  location.reload();
  //resolucion();  
}

/*function resolucion()
{
  var res = document.documentElement.clientHeight;
  if(navigator.appVersion.indexOf("MSIE 6") == -1){
    if (res<768){
      document.getElementById('inf').style.height = '44px';
      document.getElementById('izq').style.top = '81px';
      document.getElementById('sup').style.paddingTop = '0';
      document.getElementById('con').style.marginTop = '81px';    
    }
    else{
      document.getElementById('inf').style.height = '164px';
      document.getElementById('izq').style.top = '214px';
      document.getElementById('sup').style.paddingTop = '127px';
      document.getElementById('con').style.marginTop = '214px';      
    }
  }
}*/

function popup(id)
{
  var ventana=window.open("/personalizacion/otras/popimg.asp?idfoto="+id,"pop","status='no',location=0,0, scrollbars=no, resizable=no,width=640,height=480");
  ventana.opener.top.name="opener";
  ventana.focus();
}
			
function js_Ventana(www,ancho,alto,titulo,target)
{
  var destino=www+'#'+target;
  var ventana=window.open(destino,titulo,'status=no,location=0,0, scrollbars=yes, resizable=no,width='+ancho+',height='+alto);
  ventana.opener.top.name="opener";
  ventana.focus();
}