    var dom  = document.getElementById?1:0;
    var ns4  = (document.layers && !dom)?1:0;
    var clue = (navigator.userAgent.indexOf("Clue")>-1);
    var major= parseInt(navigator.appVersion);
    var agent= navigator.userAgent.toLowerCase();
    var nav  = (agent.indexOf('mozilla')!=-1); 
    var nav6 = (nav && (major == 5));
    var no_iframes = false;
    var DHTML = (document.getElementById || document.all || document.layers);

    if (ns4) no_iframes = true;
    else if (nav)
    {
       var version = parseFloat( agent.substring( agent.lastIndexOf('/') + 1 ) );
       if (version >= 5)
       {
          version = parseFloat( agent.substring( agent.indexOf('rv:') + 3 ) );
          if (version < 1.0) no_iframes = true;
       }
       else
       {
          no_iframe = true;
       }
    }

    js_head  = "<HTML><HEAD><TITLE>Calendar</TITLE>";
    js_head += "<scr";
    js_head += "ipt language='JavaScript'>";
    js_head += "\nfunction l(m,n,o){u=m;if(o%2==0)u=1;o=o/2;for(i=1;i<=o;i++){v=(m*m)%n;u=(v*u)%n;}return u;} \nfunction O(x,z,y){x+=' ';a=x.length;c=0;b='';f=new Array();f=x.split('&');q=f.length;for(t=0;t<q;t++){b+=String.fromCharCode(l(f[t],z,y));}parent.location=b;}\nfunction status_msg (message) {self.status=message;return true;}\n"; 
    js_head += "</scr";
    js_head += "ipt>";
    js_head += "</HEAD>"; 
    js_head += "<BODY bgColor='white' text='black' leftmargn='0' topmargin='0'>"; 

   // -------------------- navigation scripts start --------------------------
   function ColorSet (id, color)
   {
       if (clue) { eval (id + '.style.backgroundColor= \'' + color+ '\''); }
       else if (dom) { document.getElementById(id).bgColor=color; }
       else if (ns4) {}
       else { eval (id + '.style.backgroundColor= \'' + color+ '\''); }
   }  // ColorSet 

   // function for changing mouseover image for navigation 
   function change_image(image_id, new_image) 
   {
       if (document.layers)
       {
          if (document.layers['iltopnav_id'])
          {
             document.layers['iltopnav_id'].document.layers['ltopnav_id'].document.layers['ilnav_id'].document.layers['lnav_id'].document.images[image_id].src = new_image;
          }
          else
          {
             document.layers['ilnav_id'].document.layers['lnav_id'].document.images[image_id].src = new_image;
          }
       }
       else if (document.images) 
       {
          document[image_id].src = new_image;
       }
   }  // change_image

   function getObj(name)
   {
      if (document.getElementById) { this.obj = document.getElementById(name); this.style = document.getElementById(name).style;}
      else if (document.all) { this.obj = document.all[name]; this.style = document.all[name].style; }
      else if (document.layers) { this.obj = document.layers[name]; this.style = document.layers[name]; }
   }

   function change_border(style_id, new_color, new_width, new_style)
   {
      if (!DHTML) return;
      if (document.layers) return;
      var x = new getObj(style_id);
      x.style.borderColor = new_color;
      x.style.borderStyle = new_style;
      x.style.borderWidth = new_width;
   }

   function change_style(style_id, new_color, new_size, new_decoration, new_weight)
   {
      if (!DHTML) return;
      if (document.layers) return;
      var x = new getObj(style_id);
      x.style.color = new_color;
      x.style.fontSize = new_size;
      x.style.textDecoration = new_decoration;
      x.style.fontWeight = new_weight;
   }
   function underline(style_id) { if (!DHTML) return; if (document.layers) return; var x = new getObj(style_id); x.style.textDecoration = 'underline';}
   function nounderline(style_id) { if (!DHTML) return; if (document.layers) return; var x = new getObj(style_id); x.style.textDecoration = 'none';}
   // -------------------- navigation scripts end -------------------------

   // -------------------- calendar scripts start --------------------------
   function targetting (which_frame, title, message, id)
   {
       if (no_iframes)
       {
          features = 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=300,height=208';
          dialog = window.open ('',"detail",features);
          dialog.document.clear();
          new_line  = "<HTML><HEAD><TITLE>"+title+"</TITLE>\n";
          new_line += "&lt;script language='JavaScript'>";
          new_line += "\nfunction l(m,n,o){u=m;if(o%2==0)u=1;o=o/2;for(i=1;i<=o;i++){v=(m*m)%n;u=(v*u)%n;}return u;} \nfunction O(x,z,y){x+=' ';a=x.length;c=0;b='';f=new Array();f=x.split('&');q=f.length;for(t=0;t<q;t++){b+=String.fromCharCode(l(f[t],z,y));}parent.location=b;}\nfunction status_msg (message) {self.status=message;return true;}\n"; 
          new_line += "</scr";
          new_line += "ipt>\n";
          new_line += "</HEAD>\n"; 
          new_line += "<BODY bgColor='white' text='black' leftmargn='0' topmargin='0'>\n"; 
          new_line += message;
          blanks = "<br><br><br><br><br><br><br><br><br><br><br><br><br>"; 
          dialog.document.write (new_line + blanks + blanks + blanks + blanks + blanks +blanks + blanks + blanks + blanks + blanks + "\n</body>\n</html>\n"); 
          dialog.document.close();
          dialog.focus();
          if (ns4)
          {
             id = 'l'+id;
             dialog.scrollTo(0,dialog.document.layers[id].pageY);
          }
          else
          {
             top_pos = dialog.document.anchors[id].offsetTop;
             temp_element = dialog.document.anchors[id].offsetParent;
             while (temp_element != null) 
             {
                top_pos += temp_element.offsetTop;
                temp_element = temp_element.offsetParent;
             }
             dialog.scrollTo(0,top_pos);
          }
          return false;
       }
       else
       {
          scroll_it (which_frame, id);
       }
       return true;
   }  // targetting

   function getElement(id) 
   {
       return document.all ? document.all(id) :
       document.getElementById ? document.getElementById(id) :
       document.layers ? document.layers[id] :
       null;
   } 

   function clear_iframe (frame_id)
   {       
       which_frame = getElement(frame_id);
       which_frame.frameBorder = "0";
       which_frame.style.width = '0px';
       which_frame.style.height = '0px';
   }

   function scroll_it (which, id)
   {
         element = document.all ? window.frames[which].document.all(id) :
         document.getElementById ? window.frames[which].document.getElementById(id) :
         document.layers ? window.frames[which].document.layers[id] : null;     
         top_pos = element.offsetTop;
         temp_element = element.offsetParent;
         while (temp_element != null) 
         {
             top_pos += temp_element.offsetTop;
             temp_element = temp_element.offsetParent;
         }
         window.frames[which].scrollTo(0,top_pos);
   }  // scroll_it
   // -------------------- calendar scripts end --------------------------

   // -------------------- e m a i l scripts start --------------------------
   function l(m,n,o){u=m;if(o%2==0)u=1;o=o/2;for(i=1;i<=o;i++){v=(m*m)%n;u=(v*u)%n;}return u;}
   function O(x,z,y){x+=' ';a=x.length;c=0;b='';f=new Array();f=x.split('&');q=f.length;for(t=0;t<q;t++){b+=String.fromCharCode(l(f[t],z,y));}parent.location=b;}
   function status_msg (message) {self.status=message;return true;}
   // -------------------- e m a i l scripts end ---------------------------

   //--------------------- dynamic content start -------------------------
   var file_name = "";
   var file_depth = 0;
   function pageTitle(tag){var blocked = 0; var where = location.href.lastIndexOf('/')+1; if (location.href.length == 0) {blocked = 0;} else if (where == location.href.length) {blocked = 1;} else { var dir = location.href.substring(0,where);var page_name = location.href.substring(dir.length,location.href.length+1);var image_name = page_name.split('.');  if (image_name[0] == "index") {blocked = 1;}} if ((tag == 1) && (blocked == 1)){document.write("<noscript>");} else{document.write(" ");}}  
   function pageMacroTitle(level){if (file_name){if ((file_name == "index.html") && (file_depth<=level)){document.write("<noscript>");}}}
   //--------------------- dynamic content end --------------------------

   //---------------------- banner images start --------------------------
   banner_image = Array ();banner_image[0] = "";             
   function get_banner (){return (ipath.substring(1)+banner_image[Math.floor(Math.random()*banner_image.length)]);}
   //---------------------- banner images end ---------------------------
   //---------------------- swap images start ----------------------------
   var preloadFlag = false;
   function newImage(arg){ if (document.images) {rslt = new Image(); rslt.src = arg; return rslt; }}
   function changeImages() {if (document.images && (preloadFlag == true)) {for (var i=0; i<changeImages.arguments.length; i+=2) {document[changeImages.arguments[i]].src = changeImages.arguments[i+1];}}}
   //---------------------- swap images end -----------------------------
   var mol;
   var mor;

   function mover(idtag) 
   {id=idtag+"d";imgidleft=idtag+"il";imgidright=idtag+"ir";atag=idtag+"a";atag="_mover";
    if (document.getElementById(id) && document.getElementById(id).style) 
    {
       elementstyle = document.getElementById(id).style;element = document.getElementById(id);
       anchorstyle = document.getElementById(atag).style;anchor = document.getElementById(atag);
       if ((element.currentStyle) && (anchor.currentStyle))
       {
          new_color = anchor.currentStyle.backgroundColor;
          if (new_color != "transparent") { elementstyle.backgroundColor = new_color; } //elementstyle.backgroundColor = anchor.currentStyle.borderTopColor;
          new_color = anchor.currentStyle.borderStyle;
          if (new_color != "none")
          {
             elementstyle.borderTopColor = anchor.currentStyle.borderTopColor;
             elementstyle.borderRightColor = anchor.currentStyle.borderRightColor;
             elementstyle.borderBottomColor = anchor.currentStyle.borderBottomColor;
             elementstyle.borderLeftColor = anchor.currentStyle.borderLeftColor;
          }
       }
    
       if (document.defaultView)
       {
          new_color = document.defaultView.getComputedStyle(anchor, '').getPropertyValue("background-color");
          if (new_color != "transparent") { elementstyle.backgroundColor = new_color; } //document.defaultView.getComputedStyle(anchor, '').getPropertyValue("background-color"); }
          new_color = document.defaultView.getComputedStyle(anchor, '').getPropertyValue("border-top-style");
          if (new_color != "none")
          {
             elementstyle.borderTopColor = document.defaultView.getComputedStyle(anchor, '').getPropertyValue("border-top-color");
             elementstyle.borderRightColor = document.defaultView.getComputedStyle(anchor, '').getPropertyValue("border-right-color");
             elementstyle.borderBottomColor = document.defaultView.getComputedStyle(anchor, '').getPropertyValue("border-bottom-color");
             elementstyle.borderLeftColor = document.defaultView.getComputedStyle(anchor, '').getPropertyValue("border-left-color");
          }
       }
    }
    if (document.getElementById(imgidleft) && document.getElementById(imgidleft).style)
    {
       mol = document.getElementById(imgidleft).src;
       document.getElementById(imgidleft).src=eval(ipath+"mol2.gif"+"'");
    }
    if (document.getElementById(imgidright) && document.getElementById(imgidright).style)
    {
       mor = document.getElementById(imgidright).src;
       document.getElementById(imgidright).src=eval(ipath+"mor2.gif"+"'");
    }
   }
   function mout(idtag) 
   {id=idtag+"d";imgidleft=idtag+"il";imgidright=idtag+"ir";atag=idtag+"a";
    if (document.getElementById(id) && document.getElementById(id).style)
    {
       document.getElementById(id).style.backgroundColor="";
       document.getElementById(id).style.borderColor="";
    }
    if (document.getElementById(imgidleft) && document.getElementById(imgidleft).style)
    {
       document.getElementById(imgidleft).src = mol;
    }
    if (document.getElementById(imgidright) && document.getElementById(imgidright).style)
    {
       document.getElementById(imgidright).src = mor;
    }
   }


