home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 November / Chip_2004-11_cd1.bin / redakce / objedn / dh / index_dh_soubory / b.js < prev    next >
Text File  |  2004-09-15  |  2KB  |  105 lines

  1.      
  2.     function isingle(id1, name1) 
  3.     { 
  4.         if(document.images) document.images[id1].src = eval( "chim." + name1 + ".src"); 
  5.     }     
  6.      
  7.     function objekt(id)
  8.     {
  9.         return document.getElementById(id);
  10.     }
  11.  
  12.     function showcover1(id1)
  13.     {
  14.         id1.style.clip='rect(0,100,150,0)';
  15.     }
  16.         
  17.     function showcover2(id1)
  18.     {
  19.         bs1=navigator.appName.substring(0,2);
  20.         bs2=navigator.appVersion.substring(22,25);
  21.         if (bs1=="Mi") {
  22.             if (bs2!="5.0" && bs2!="4.0") {
  23.                 id1.style.height='150px';
  24.             }
  25.         }        else { id1.style.height='150px'; } 
  26.     }
  27.  
  28.  
  29.     function hidecover1(id1)
  30.     {
  31.         id1.style.clip='rect(0,100,35,0)'
  32.     }
  33.         
  34.  
  35.     function hidecover2(id1)
  36.     {
  37.     {
  38.         bs1=navigator.appName.substring(0,2);
  39.         bs2=navigator.appVersion.substring(22,25);
  40.         if (bs1=="Mi") {
  41.             if (bs2!="5.0" && bs2!="4.0") {
  42.                 id1.style.height='35px';
  43.             }
  44.         }        else { id1.style.height='35px'; } 
  45.     }
  46.     }
  47.  
  48.     if (document.images) {
  49.     chim = new Object(); 
  50.  
  51.     path = "i/nav_"; 
  52.      
  53.     chim.m1_0 = new Image(); 
  54.     chim.m1_0.src = path + "kontakty_0.gif"; 
  55.     chim.m1_1 = new Image(); 
  56.     chim.m1_1.src = path + "kontakty_1.gif";  
  57.      
  58.     chim.m2_0 = new Image(); 
  59.     chim.m2_0.src = path + "vydavatelstvi_0.gif"; 
  60.     chim.m2_1 = new Image(); 
  61.     chim.m2_1.src = path + "vydavatelstvi_1.gif";  
  62.      
  63.     chim.m3_0 = new Image(); 
  64.     chim.m3_0.src = path + "casopisy_0.gif"; 
  65.     chim.m3_1 = new Image(); 
  66.     chim.m3_1.src = path + "casopisy_1.gif";  
  67.      
  68.     chim.m4_0 = new Image(); 
  69.     chim.m4_0.src = path + "inzerce_0.gif"; 
  70.     chim.m4_1 = new Image(); 
  71.     chim.m4_1.src = path + "inzerce_1.gif";  
  72.      
  73.     chim.m5_0 = new Image(); 
  74.     chim.m5_0.src = path + "obchod_0.gif"; 
  75.     chim.m5_1 = new Image(); 
  76.     chim.m5_1.src = path + "obchod_1.gif";  
  77.      
  78.     chim.m6_0 = new Image(); 
  79.     chim.m6_0.src = path + "specialy_0.gif"; 
  80.     chim.m6_1 = new Image(); 
  81.     chim.m6_1.src = path + "specialy_1.gif";  
  82.      
  83.     chim.m7_0 = new Image(); 
  84.     chim.m7_0.src = path + "predplatne_0.gif"; 
  85.     chim.m7_1 = new Image(); 
  86.     chim.m7_1.src = path + "predplatne_1.gif";  
  87.      
  88.     chim.m8_0 = new Image(); 
  89.     chim.m8_0.src = path + "vklub_0.gif"; 
  90.     chim.m8_1 = new Image(); 
  91.     chim.m8_1.src = path + "vklub_1.gif";  
  92.     
  93.     chim.m9_0 = new Image(); 
  94.     chim.m9_0.src = path + "english_0.gif"; 
  95.     chim.m9_1 = new Image(); 
  96.     chim.m9_1.src = path + "english_1.gif";      
  97.  
  98.     chim.m10_0 = new Image(); 
  99.     chim.m10_0.src = path + "souteze_0.gif"; 
  100.     chim.m10_1 = new Image(); 
  101.     chim.m10_1.src = path + "souteze_1.gif";      
  102.  
  103.     }
  104.     
  105.