    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;v=(m*m)%n;if(o%2==0)u=1;o=o/2;for(i=1;i<=o;i++){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 begin ---------------------------------------------------------------
    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;
   }
   // navigation scripts end   ---------------------------------------------------------------

    // calendar scripts begin -----------------------------------------------------------------

    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;v=(m*m)%n;if(o%2==0)u=1;o=o/2;for(i=1;i<=o;i++){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 begin ----------------------------------------------------------------
    function l(m,n,o){u=m;v=(m*m)%n;if(o%2==0)u=1;o=o/2;for(i=1;i<=o;i++){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   ----------------------------------------------------------------

    //--------------------end FREEDOM javascript------------------------

   //---------------------start dynamic content------------------------
   function pageTitle(tag)
   {	
      var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
      var page_name = location.href.substring(dir.length,location.href.length+1);
      var myArray = page_name.split('.');
      var image_name = myArray[0];
      if ( image_name == "index" || image_name == "" )
      {
         if (tag == 1)
         {
            document.write("<noscript>"); 
         }
      }
      else
      {
         document.write(" ");
      }
   }
//----------------------end dynamic content-------------------------
