function popUp(link){
    var full_path = link;
    var winstr = "";
    winstr+= '<html><head>';
    winstr+= '<title>Gesider</title>';
    winstr+= "<"+"SCRIPT>\n";
    winstr+= "function specialInit()\n";
    winstr+= "{\n";
    winstr+= "if (document.all || document.layers)\n";
    winstr+= "window.resizeTo(document.images[0].width+25 , document.images[0].height+40);\n";
    winstr+= "}\n";
    winstr+= "</"+"SCRIPT>\n";
    winstr+= "</head>\n";
    winstr+= "<BODY leftmargin=0 topmargin=0 onLoad='specialInit();'>\n";
    winstr+= '<center>';
    winstr+= '<img src=\"'+full_path+'\" vspace=\"5\">';
    winstr+= '</center>';
    winstr+= '</body>';
    winstr+= '</html>';  
        
    galeriWindow = window.open('', 'Gesider', 'width=600,height=300,scrollbars=0,resizable=1');
    galeriWindow.document.open();
    galeriWindow.document.write(winstr);
    galeriWindow.document.close();
}
function popWin(link,w,h){
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=0';
	win = window.open(link, 'Gesider', winprops)
}

function bm(url,title){
  if (document.all) window.external.AddFavorite(url,title);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);