function showWarning() {
//   alert("This site is best viewed in Internet Explorer browser and 800x600 screen " + 
//          "resolution. Since your computer seems not to have one of these, you may " + 
//          "encounter some problems viewing certain pages in the site. \n\r\n\r\n\r " + 
//          "אתר זה נועד לצפייה מיטבית תחת דפדפן מסוג אינטרנט אקספלורר ורזולוציית מסך של 800 על 600 פיקסלים. מאחר ומחשבכם חסר אחד מדברים אלו, " + 
//          "אתם  עלולים  להתקל בבעיות  מסויימות בעת הצפייה בכמה מעמודי האתר. עמכם הסליחה");
   alert("This site is best viewed in Internet Explorer browser. "+
         "You may encounter some problems viewing certain pages " +
         "in the site. \n\r\n\r\n\r " + 
         "אתר זה נועד לצפייה מיטבית תחת דפדפן מסוג אינטרנט אקספלורר. " + 
         "אתם  עלולים  להתקל בבעיות  מסויימות בעת הצפייה בכמה מעמודי האתר. עמכם הסליחה");
}

function getResolution() {
   var x=screen.width;
   var y=screen.height;
   return (x + "X" + y);
}

function getBrowserType() {
   var shortName, shortVersion;
   var fullName=navigator.appName;
   var fullVersion=navigator.appVersion;
   if (fullName.indexOf("Microsoft") != -1)
      shortName="IE";
   else
     if (fullName.indexOf("Netscape") != -1)
        shortName="NS";
     else
        shortName="??";
   if (shortName == "NS")
      shortVersion=(fullVersion.split(" "))[0];
   else
      if (fullVersion.indexOf("5.") != -1)
         shortVersion="5.x"
      else
         shortVersion="4.x"
   return shortName+shortVersion;
}

function fadeIn(obj, dur) {
  if (browserType == "IE5.x") {
     if (obj) {
        if (obj.style) {
           obj.style.filter="blendTrans(duration=" + dur + ")";
           obj.style.visibility="hidden";
           // Make sure filter is not playing.
           if ((obj.visibility != "visible") && (obj.filters.blendTrans.status != 2)) {
             if (obj.filters) {
                obj.filters.blendTrans.Apply();
                obj.style.visibility="visible";
                obj.filters.blendTrans.Play();
             }
           }
        } 
     }
  }
}

function revealIn(obj, tr, dur) {
  if (browserType == "IE5.x") {
     if (obj) {
        if (obj.style) {
           obj.style.filter="revealTrans(Duration=" + dur + ", Transition=" + tr + ")";
           obj.style.visibility="hidden";
           if (obj.visibility != "visible") {
              if (obj.filters) {
                 obj.filters.revealTrans.Apply();
                 obj.style.visibility="visible";
                 obj.filters.revealTrans.Play();
              }
           }
        }
     }
  }
}

function reveal(obj) {
  var num = parseInt(Math.random()*30)+1;
  var num2 = Math.random()*3+0.5;
  if (obj && obj.style && obj.filters) {
     if (num > 25)
        fadeIn(obj, num2);
     else
        revealIn(obj, num, num2);
  }
}
