cit = new Array;
var st = 0;

function show() {
    clearTimeout(st);
    hide();
    for (i=0; i<show.arguments.length; i++) {
//      alert(show.arguments[i]);
        if (!document.all) {
            document.getElementById(show.arguments[i]).style.visibility='visible';
        } else {
            document.all[show.arguments[i]].style.visibility='visible';
        }
    }
    cit = show.arguments;
}

function hide() {
    for  (i=0; i<cit.length; i++) {
        if (!document.all) {
            document.getElementById(cit[i]).style.visibility='hidden';
        } else {
            document.all[cit[i]].style.visibility='hidden';
        }
    }
}

function showdesc(file, w, h) {
    dw=window.open(file, 'dw', 'height='+h+',width='+w+',screenX=50,screenY=50,top=50,left=50,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
    dw.resizeTo(w, h);
    dw.focus();
}
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 showpic(pic, w, h, tit) {
    pw=window.open('', 'pw', 'height='+h+28+',width='+w+6+',screenX=50,screenY=50,top=50,left=50,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
    if(!tit) tit='Картинка';
    buf = '<html><head><title>'+tit+'</title></head><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><a href=# onClick=self.close()><img src='+pic+' alt="Щелкните на картинке, чтобы закрыть окно" border=0></a></body></html>'
    pw.document.write(buf);
    pw.document.close();
    pw.resizeTo(w+6, h+28);
    pw.focus();
}


function chan(o){
    object=MM_findObj(o);
    if  (object.style.display ==""){
        object.style.display = "none";
    } else {
        object.style.display = "";
    }
}

function MM_preloadImages() { //v3.0
  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];}}
}

