var okno = window.okno;
    
    function fotogalerie(link,Name)
    {
      var open=true;
      if (okno!=null && !okno.closed)
      {
        okno.focus();
		okno.location.href=link.href;
      }
      else
      {
        okno=window.open(link.href,Name,'width=710, height=580, location=0, menubar=0, toolbar=0, scrollbars=0, resizable=1, status=0');
        //  left=50, top=50, 
        if (okno==null || typeof(okno)=="undefined")
          open=false;
        else
        {
          link.target=Name;
          okno.focus();
        }
      }
      return open;
    };
	
	
    function fotogalerie600(link,Name)
    {
      var open=true;
      if (okno!=null && !okno.closed)
      {
        okno.focus();
		okno.location.href=link.href;
      }
      else
      {
        okno=window.open(link.href,Name,'width=800, height=650, location=0, menubar=0, toolbar=0, scrollbars=0, resizable=1, status=0');
        //  left=50, top=50, 
        if (okno==null || typeof(okno)=="undefined")
          open=false;
        else
        {
          link.target=Name;
          okno.focus();
        }
      }
      return open;
    };
    
    
     function NoveOknoOnas(link,Name,s,v)
    {
     var widthParam=s;
     var heightParam=v;
     
      var open=true;
      if (okno!=null && !okno.closed)
      {
        okno.focus();
		okno.location.href=link.href;
      }
      else
      {
        okno=window.open(link.href,Name,'width='+widthParam+', height='+heightParam+', location=0, menubar=0, toolbar=0,  resizable=0, status=0, left=50, top=20, scrollbars=0,');
         //  
        if (okno==null || typeof(okno)=="undefined")
          open=false;
        else
        {
          link.target=Name;
          okno.focus();
        }
      }
      return open;
    };
 
 // Pro fotogalerii instruktoři   
      function NoveOkno(link,Name,s,v)
    {
     var widthParam=s;
     var heightParam=v;
     
      var open=true;
      if (okno!=null && !okno.closed)
      {
       okno.location.href=link.href	;
       var widthParam=widthParam+28;
       var heightParam=heightParam+65;
       
      	okno.resizeTo(widthParam, heightParam);
        okno.focus();
       
      }
      else
      {
        okno=window.open(link.href,Name,'width='+widthParam+', height='+heightParam+', location=0, menubar=0, toolbar=0,  resizable=1, status=0, left=50, top=20, scrollbars=0,');
        okno.resizeTo(widthParam, heightParam);
        okno.focus();
         //  
        if (okno==null || typeof(okno)=="undefined")
          open=false;
        else
        {
          link.target=Name;
           	var widthParam=widthParam+28;
    		var heightParam=heightParam+65;
          okno.resizeTo(widthParam, heightParam);
          okno.focus();
        }
      }
      return open;
    };
      
      
      function fotogalerie2(link,Name)
    {
      var open=true;
      if (okno!=null && !okno.closed)
      {
        okno.focus();
		okno.location.href=link.href;
      }
      else
      {
        okno=window.open(link.href,Name,'width=920, height=660, location=0, menubar=0, toolbar=0, scrollbars=auto, resizable=1, status=0');
        //  left=50, top=50, 
        if (okno==null || typeof(okno)=="undefined")
          open=false;
        else
        {
          link.target=Name;
          okno.focus();
        }
      }
      return open;
    };
  
  
  // Pro fotogalerii vyska - sirka  
    function fotogalerie3(link,scrol,Name,s,v)
    {
	 var scrolbar=scrol;
     var widthParam=s;
     var heightParam=v;
     var open=true;
      if (okno!=null && !okno.closed)
      {
       okno.location.href=link.href	;
       okno.resizeTo(widthParam, heightParam);
       okno.focus();
      }
      else
      {
       okno=window.open(link.href,Name,'width='+widthParam+', height='+heightParam+', scrollbars='+scrolbar+', location=0, menubar=0, toolbar=0,  resizable=1, status=0, left=50, top=20');
	   //,
       okno.resizeTo(widthParam, heightParam);
       okno.focus();
         //  
       if (okno==null || typeof(okno)=="undefined")
          open=false;
       else
        {
          link.target=Name;
          okno.resizeTo(widthParam, heightParam);
          okno.focus();
        }
      }
      return open;
    };
 // ============================================================     
