home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 October / Chip_2000-10_cd1.bin / redakce / soutez / content / js / qtwindow.js next >
Text File  |  1999-12-08  |  523b  |  29 lines

  1. focus();
  2. var macns=0;
  3. var xvalue=300;
  4. var smally=300;
  5. var bigy=700;
  6.  
  7. if (navigator.platform && (navigator.platform.indexOf('Mac')) > -1) {
  8.   bigy=660;
  9.   if (navigator.appName.indexOf('Microsoft') < 0) macns=1;
  10.   }
  11.  
  12. else {
  13.   if (navigator.appName.indexOf('Microsoft') > -1) {
  14.     //win ie
  15.     xvalue=312;
  16.     smally=312;
  17.     bigy=760;
  18.     }
  19. }
  20.  
  21. function upsize() {
  22.   resizeTo(xvalue,bigy);
  23.   if (macns) document.location.reload();
  24. }
  25.  
  26. function downsize() {
  27.   resizeTo(xvalue,smally);
  28.   if (macns) document.location.reload();
  29. }