var path = "/images/";
var currentImage = "menu0";

if (document.images) {

   menu0Off = new Image();
   menu0Off.src = path + "menu00.gif";
   menu0Hi = new Image();
   menu0Hi.src = path + "menu00.gif"; 
		
   menu1Off = new Image();
   menu1Off.src = path + "menu01.gif";
   menu1Hi = new Image();
   menu1Hi.src = path + "menu01o.gif"; 

   menu2Off = new Image();
   menu2Off.src = path + "menu02.gif";
   menu2Hi = new Image();
   menu2Hi.src = path + "menu02o.gif"; 

   menu3Off = new Image();
   menu3Off.src = path + "menu03.gif";
   menu3Hi = new Image();
   menu3Hi.src = path + "menu03o.gif";
  
   menu4Off = new Image();
   menu4Off.src = path + "menu04.gif";
   menu4Hi = new Image();
   menu4Hi.src = path + "menu04o.gif";
		
   menu5Off = new Image();
   menu5Off.src = path + "menu05.gif";
   menu5Hi = new Image();
   menu5Hi.src = path + "menu05o.gif";
		
   menu6Off = new Image();
   menu6Off.src = path + "menu06.gif";
   menu6Hi = new Image();
   menu6Hi.src = path + "menu06o.gif";
		
   menu7Off = new Image();
   menu7Off.src = path + "menu07.gif";
   menu7Hi = new Image();
   menu7Hi.src = path + "menu07o.gif";
 
}

function switchOn(imgName) {
   if (document.images) {
      if (imgName != currentImage) {
         imgHi = eval(imgName + "Hi.src");
         document [imgName].src = imgHi;
      }
   }
}

function switchOff(imgName) {
   if (document.images) {
      if (imgName != currentImage) {
         imgOff = eval(imgName + "Off.src");
         document [imgName].src = imgOff;
      }
   }
}




/**
 * @PROJECT:   mygosuMenu 1.0.3
 * @COPYRIGHT: (c) 2003,2004 Cezary Tomczak
 * @LINK:      http://gosu.pl/software/mygosumenu.html
 * @LICENSE:   BSD
 */

var menuTimeout = 400

      var menuSections = new Array()
      var menuCountHide = new Array()

      var menuSectionCnt = 0
      var menuBoxCnt = 0

      function menuShow(section, elements) {
   for (var i = 0; i < menuSections.length; i++) {
      if (menuSections[i] != section) {
         menuHide(menuSections[i], menuCountNodes(menuSections[i]))
      }
   }
   for (var i = 1; i <= elements; i++) {
      document.getElementById(section + '-' + i).style.visibility = 'visible'
   }
      }

      function menuHide(section, elements) {
         for (var i = 1; i <= elements; i++) {
            document.getElementById(section + '-' + i).style.visibility = 'hidden'
                     document.getElementById(section).style.zIndex = -1
         }
      }

      function menuTryHide(section, elements, countHide) {
         if (countHide != menuCountHide[section]) {
            return
         }
         menuHide(section, elements)
      }

      function menuCountNodes(element) {
         ret = 0
               nodes = document.getElementById(element).childNodes.length
               for (var i = 0; i < nodes; i++) {
            if (document.getElementById(element).childNodes[i].nodeType == 1) {
               ret++
            }
               }
               return ret
      }

      function menuInitSection(section) {
         var elements = menuCountNodes(section)
               for (var i = 0; i <= elements; i++) {
            var s = (i == 0 ? (section + '-top') : (section + '-' + i))
                  if (i == 0) {
               document.getElementById(s).onmouseover = function() {
                  menuShow(section, elements)
                        menuCountHide[section]++
                        for (var ii = 0; ii < menuSections.length; ii++) {
                     document.getElementById(section).style.zIndex = 1
                              if (menuSections[ii] != section) {
                        document.getElementById(menuSections[ii]).style.zIndex = -1
                              }
                        }
               }
                  } else {
                     document.getElementById(s).onmouseover = function() {
                        menuShow(section, elements)
                              menuCountHide[section]++
                     }
                  }
                  document.getElementById(s).onmouseout = function() {
                     setTimeout("menuTryHide('" + section + "', " + elements + ", " + menuCountHide[section] + ")", menuTimeout)
                  }
               }
      }

      function menuMakeId(nodes) {
         for (var i = 0; i < nodes.length; i++) {
            switch (nodes[i].className) {
               case 'top':
                     menuSectionCnt++
                     menuBoxCnt = 0
                     nodes[i].id = 'menu-' + menuSectionCnt + '-top'
                     break
               case 'section':
                     nodes[i].id = 'menu-' + menuSectionCnt
                     menuSections[menuSections.length] = nodes[i].id
                     break
               case 'box':
                     menuBoxCnt++
                     nodes[i].id = 'menu-' + menuSectionCnt + '-' + menuBoxCnt
                     break
            }
            if (nodes[i].childNodes) {
               menuMakeId(nodes[i].childNodes)
            }
         }
      }

      function menuInit() {
         menuMakeId(document.getElementById('menu').childNodes)
               for (var i = 0; i < menuSections.length; i++) {
            menuCountHide[menuSections[i]] = 0
               }
               for (var i = 0; i < menuSections.length; i++) {
                  menuInitSection(menuSections[i])
               }
      } 

/***********************************************
            * DD Tab Menu II script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
            * This notice MUST stay intact for legal use
            * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//Set tab to intially be selected when page loads:
//[which tab (1=first tab), ID of tab content to display]:
            var initialtab=[1, "sc1"]

//Turn menu into single level image tabs (completely hides 2nd level)?
            var turntosingle=0 //0 for no (default), 1 for yes

//Disable hyperlinks in 1st level tab images?
                  var disabletablinks=0 //0 for no (default), 1 for yes


                  ////////Stop editting////////////////

                  var previoustab=""

                  if (turntosingle==1)
            document.write('<style type="text/css">\n#tabcontentcontainer{display: none;}\n</style>')

            function expandcontent(cid, aobject){
         if (disabletablinks==1)
         aobject.onclick=new Function("return false")
         if (document.getElementById && turntosingle==0){
            highlighttab(aobject)
                  if (previoustab!="")
                  document.getElementById(previoustab).style.display="none"
                  document.getElementById(cid).style.display="block"
                  previoustab=cid
         }
            }

            function highlighttab(aobject){
               if (typeof tabobjlinks=="undefined")
               collectddimagetabs()
               for (i=0; i<tabobjlinks.length; i++)
               tabobjlinks[i].className=""
               aobject.className="current"
            }

            function collectddimagetabs(){
               var tabobj=document.getElementById("ddimagetabs")
                     tabobjlinks=tabobj.getElementsByTagName("A")
            }
