/* ********************************************************************************************** */
/* ***** imprimir pagina y enviar pagina.                                                   ***** */
/* ***** Archivo de estilos usado:                                                          ***** */
/* *****     /<carpeta prontus>/css/site/port/estilos.css                                   ***** */
/* ***** V1.0 09/04/2003 - MCO - Primera version.                                           ***** */
/* ***** V2.0 09/05/2003 - MCO - Se agrega el uso del estilo gral * y si en uno de los      ***** */
/* *****                         estilos usados no viene el valor, se usa uno por defecto.  ***** */
/* *****                         Se agrega restriccion para no tomar los estilos con hover. ***** */
/* ********************************************************************************************** */




// ******************************** ENVIAR A *******************************
// Envio de noticia por e-mail.
function enviar() {
  var url = document.URL;
  var loc = '/prontus_distribuidores/stat/enviar/formulario.html?_URL=' + escape(url);
  var envia = window.open(loc,'enviar',
  'toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0,location=0,directories=0,width=530,height=420');
  envia.focus();
}; // enviar.

// ******************************** IMPRIMIR PAGINA *******************************
// Imprime noticia actual.
function imprimir() {
var url = document.URL;
var loc = '/cgi-bin/imprimir.cgi?_URL=' + escape(url);
var imprime = window.open(loc, 'imprimir');
imprime.focus();
}; //imprimir.

// ******************************** LAYER *******************************
function MM_findObj(n, d) { //v4.01
  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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//layer

// ******************************** POP para Zoom *******************************
var FOTOS = new Array();
var TITUS = new Array();
var PIES = new Array();
function popZoom(loc, nom, ancho, alto, posx, posy) {                                                        
  var options="toolbar=no,status=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no,width="
             + ancho + ",height=" + alto;                                                                    
  winzoom = window.open(loc, nom, options);                                                                  
  winzoom.focus();                                                                                           
  if ( (posx > 0) && (posy > 0) ) {                                                                          
    winzoom.moveTo(posx, posy);                                                                              
  };                                                                                                         
}; // popZoom 

