 C_pumdiv='pumdiv';
 C_pumtab='pumtab';
 C_puma='puma';
 C_pumtd='pumtd';

 function get_el(i) {
  var el;
  if (document.getElementById) { return document.getElementById(i); };
  if (document.all) { eval("el=document.all."+i); return el; };
  return false;
 };

 function pum_v(i, k) {
   var el;
   if (!(el=get_el(C_pumdiv+k))) { return false; };
   if (i) {
     el.style.visibility='visible';
   } else {
     el.style.visibility='hidden';
	 window.status="";
   };
 };

 function pum_over(k, i) {
   var el, j, m, ad;
   j=k.id.substring(C_pumtd.length);
   m=j.substring(0, j.indexOf('_'));
   if (!(el=get_el(C_pumtab+m))) { return false; };
   if (i) { k.style.backgroundColor="#E5E5E5"; } else { k.style.backgroundColor=el.style.backgroundColor; };
   if (!(ad=get_el(C_puma+j))) { return false; };
   if (i) { ad.style.color="Black"; } else { ad.style.color="#3267DF"; };
   window.status=ad.href;
 };

 function pum_clk(k) {
  var el;
  k=k.substring(C_pumtd.length);
  if (!(el=get_el(C_puma+k))) { return false; };
  document.location.href=el.href;
  return false;
 };

 function init_pop(k) {
  var el, i;
  if (!(el=get_el(C_pumtab+k))) { return false; };
  for (i=0; i<el.rows.length; i++) {
    el.rows[i].cells[0].onmouseover=function anonymous() { pum_over(this, 1); };
    el.rows[i].cells[0].onmouseout=function anonymous() { pum_over(this, 0); };
    el.rows[i].cells[0].id=C_pumtd+k+"_"+i;
    el.rows[i].cells[0].onclick=function anonymous() { pum_clk(this.id); };
    el.rows[i].cells[0].style.cursor="hand";
  };
 };

 function op(i, t, w, b) {
  var ge=0;
  var re=new RegExp('[^ ]+', 'g');
  var xy=i.match(re);
  if (xy.length!=3) return false;
  var wg=0; bg="EFF2F7"; bd=0; ti="Photo"; im=i;
  if (w!=undefined) {wg=w; bd=1;};
  if (b!=undefined) {bg=b;};
  if (t!=undefined) {ti=t;};
  if (!document.getElementById) {
    if (document.all) { ge=1; } else { ge=2; }
  };
  if (screen.width<=800 && xy[1]>480) {
   xy[0]=Math.floor((480.0*xy[0])/xy[1]);
   xy[1]=480;
  };
  xy[0]=1*xy[0]+2*wg;
  xy[1]=1*xy[1]+2*wg;
  var options = "top=30,left=40,width="+xy[0]+",height="+xy[1]+",scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no,location=no,directories=no";
  window.open("/fullimg.php?im="+xy[2]+"&wg="+wg+"&bg="+bg+"&bd="+bd+"&ti="+unescape(ti)+"&ws="+screen.width+"&ge="+ge, "",  options);
 };
 
 var img, wg, bg, bd, ti;
 function op_l(i, t, w, b) { 
  wg=0; bg=""; bd=0; ti="Ôîòî";
  img=i;
  if (w!=undefined) {wg=w; bd=1;};
  if (b!=undefined) {bg=b;};
  if (t!=undefined) {ti=t;};
  if (navigator.userAgent.indexOf("MSIE") < 0) {
    imo.open();
    imo.write("<img name=im1 src="+i+">");
    imo.close();
    opw_l();
  } else { 
    imo.im1.src=i;
  };
 };
 function opw_l() {
  wi=imo.im1.width+wg*2;
  hi=imo.im1.height+wg*2;
  var options = "top=100,left=100,width=" + wi + ",height=" + hi + ",scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no,location=no,directories=no";
  uu=window.open("", "", options);  
  uu.document.open();
  uu.document.write("<html><head><title>"+ti+"</title></head><BODY leftMargin=0 topMargin=0 MARGINHEIGHT=0 MARGINWIDTH=0 bgcolor=\""+bg+"\"><table border=\"0\" cellspacing=\""+wg+"\" cellpadding=\"0\"><tr><td align=\"center\" valign=\"middle\"><img src="+img+" border=\""+bd+"\" alt=\"\" style=\"border-color: White;\"></td></tr></table></body></html>");
  uu.document.close();
 };
 
 if (navigator.userAgent.indexOf("MSIE") < 0)
      {imo=document.ly1.document;}
 else {imo=document.images;};

 
