function ava(mis){
open('ak.php?'+mis,'','width=900,height=600');
}
function ava1(mida){
 aken=document.getElementById('paken');
 aken.style.width='400px';
 aken.style.height='400px';

 pilt=document.getElementById('gp');
// pilt.src='tyhi.gif';

 pilt.style.visibility='hidden';

 aken.style.visibility='visible';
// aken.style.marginTop=(parseInt(aken.style.marginTop)+document.body.scrollTop)+'px';;


 aken.style.marginLeft='-200px';
 aken.style.marginTop=(document.body.scrollTop-200)+'px'; 
 
 
  pilt.src=mida;
 
  
 pilt.onload=function(){
 this.style.visibility='visible';
 aken=document.getElementById('paken');
 laius=this.offsetWidth;
 korgus=this.offsetHeight;
 aken.style.marginLeft=(-1*(laius/2))+'px';
 aken.style.width=(laius)+'px';
 aken.style.marginTop=((-1*(korgus/2))+document.body.scrollTop)+'px';  // 
 aken.style.height=(korgus)+'px';



 } 
 pilt.onclick=function(){
 document.getElementById('paken').style.visibility='hidden';
  this.style.visibility='hidden';
 } 

}

function avasule(mida){
 m=(document.getElementById)?document.getElementById(mida):(document.all)?document.all[mida]:0;
   if(m!=0){
     a=(m.style.display=='block')?'none':'block';
     m.style.display=a;
  }
}

window.onload=function(){
adr=location.href.split('?')[1];
lingid=document.links;
for(i=0;i<lingid.length;i++){
 if(lingid[i].href.split('?')[1]==adr){
   lingid[i].style.fontWeight='bold'; /* <b>'+lingid[i].innerHTML+'</b>'; */
  }
  
 }


// document.body.onselectstart=function(){return false;}
// document.body.oncontextmenu=function(){return false;}
// document.body.onscroll=function(){}

}


