// JavaScript Document

 /****************************
           Daneček
     http://danecek.info/
  bk.web.art(zavinac)post.cz

      Zahradnictví Fous

         JavaSript
        ver. 1.2.2.
         13.1.2008
 ****************************/

 var naHled = window.naHled;
 var naBled = window.naBled;
 var browsername = navigator.appName;
 var Agent = navigator.userAgent.toLowerCase();
 var JeMoz = ( navigator.product == 'Gecko' );
 var JeOpr = ( Agent.indexOf('opera') != -1 );
 var JeiMac = (( Agent.indexOf('safari') != -1 ) || ( navigator.vendor == "Apple Computer, Inc." ));
 var navrat;

 agent();
 doomies();
 pictures();
 
 function agent() {
 if ( browsername.indexOf('Microsoft') != -1 ) {
 if (( Agent.indexOf('msie') != -1 ) && (!JeMoz) && (!JeOpr) && (!JeiMac)) { valeCek = 1;
    if ( Agent.indexOf('msie 5.') != -1 ) { stratus(); teTak = 1; };
    if (( Agent.indexOf('msie 5.0') != -1 ) || ( Agent.indexOf('msie 5.1') != -1 ) || ( Agent.indexOf('msie 5.2') != -1 ) || ( Agent.indexOf('msie 4.') != -1 )) { kuliHrasek = 1; }; }; }; }

 function doomies() {
  if ( !document.getElementById ) {
        if ( !document.getElementById && document.all ) {
              document.getElementById = document.all; };
        alert('Your browser does not correctly support DOM! To display pictures, disable scripting (Javasript).');
        times(); }; }

 function otevriNahled(odkaz, width, height, imagT, popisek) {
  var heist = height*1 - 20;
  var weist = width*1 - 20;
  var Hled = "<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8' /></head><body style='background-color: #335733; padding: 0px; margin: 0px;'><img onclick='self.close();' onkeypress='self.close();' style='position: absolute; left: 10px; top: 10px; width: " + weist + "px; height:" + heist + "px;' src='" + odkaz + "' alt='" + popisek + "' /></body></html>";
  if ( imagT < 1 ) {
       odkaz.target = 'Fous';
       if ( imagT < 0 ) {
            if ( naHled != null && !naHled.closed ) {
                 naHled.close(); }; };
       if ( naHled != null && !naHled.closed ) {
            naHled.focus();
            naHled.document.write(Hled); }
       else {
            naHled = window.open('', 'Fous', "left=460,top=20,width=" + width + ",height=" + height + ",menubar=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=no");
            naHled.document.write(Hled);
            if ( naHled != null ) {
                 naHled.focus(); }; };
       navrat = naHled; }
  else {
       odkaz.target = 'FousB';
       if ( naBled != null && !naBled.closed ) {
            naBled.focus();
            naBled.document.write(Hled); }
       else {
            naBled = window.open('', 'FousB', "left=380,top=50,width=" + width + ",height=" + height + ",menubar=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=no");
            naBled.document.write(Hled);
            if ( naBled != null ) {
                 naBled.focus(); }; };
       navrat = naBled; };
  return navrat; };

 function outing() {
  if ( naHled != null && !naHled.closed ) {
       naHled.close(); };
  if ( naBled != null && !naBled.closed ) {
       naBled.close(); }; }

 function pictures() {
  if ( valeCek > 0 ) {
  if ( !document.styleSheets[0].addRule ) { } else {
        document.styleSheets[0].addRule('a:hover img',"filter: alpha(opacity=85);", 0); }; }; }

 function ukazHoa(nuMb) {
  var popisEk  = document.getElementById('hoa' + nuMb);
  if (popisEk != null) { popisEk.style.visibility = 'visible'; }; }

 function schofHoa(nuMb) {
  var popisEk  = document.getElementById('hoa' + nuMb);
  if (popisEk != null) { popisEk.style.visibility = 'hidden'; }; }

