function over(){
    this.src=this.src.replace('0_md','1_md')
}

function out(){
    this.src=this.src.replace('1_md','0_md')
}

function vaxlator(){

    for(i=0;i<(I=document.images).length;i++)
    
    if(I[i].src.indexOf('0_md')>0){
        I[i].onmouseover=over
        I[i].onmouseout=out
    }
    //hasIE_hideAndShow()
}   















function otworz(adres,param)

{

 if (param=='') {var param = "height = 1, width = 1" };

newwin =

window.open("","newwin",param+"toolbar=0,menubar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0");

var tmp="";

tmp += "<html><head><title></title>" ;

tmp += "<script language='javascript'>";

tmp += "var NS = (navigator.appName==\"Netscape\")?true:false;" ;

tmp += "img = new Image();" ;

tmp += "img.src = \""+adres+"\";";

tmp += "function fitpic() {" ;

tmp += "iWidth = (NS)?window.innerWidth:document.body.clientWidth;" ;

tmp += "iHeight = (NS)?window.innerHeight:document.body.clientHeight;" ;

tmp += "iWidth = document.images[0].width - iWidth;" ;

tmp += "iHeight = document.images[0].height - iHeight;" ;

tmp += "var popX = (screen.width - img.width)/2;";

tmp += "var popY = (screen.height - img.height)/2;";

tmp += "window.resizeBy(iWidth, iHeight);" ;

tmp += "window.moveTo(popX,popY);";

tmp += "self.focus();" ;

tmp += "}" ;

tmp += "<\/script>" ;

tmp += "<\/head><body onload=\"fitpic()\" style='margin: 0;padding:0' onclick='self.close();'>" ;

tmp += "<img src=\""+adres+"\" > " ;

tmp += "<\/body><\/html>" ;

newwin.tmp=tmp;

if (document.all)

{

newwin.moveTo(0,0);

} 

newwin.location.href='javascript:tmp';

}