// JavaScript Document

	var j$ = jQuery;

	j$(function(){
		j$(".acc").each(function(){
			j$("li > a", this).each(function(index){
				var $this = j$(this);

				if(index > 0) $this.next().hide();

				$this.click(function(){
				var params = {height:"toggle", opacity:"toggle"};
				j$(this).next().animate(params).parent().siblings()
					.children("ul:visible").animate(params);
					return false;
				});
			});
		});
	});
	
/*$(function() {

      var $getdd = $('dl#slide > dd');
      var $getdt = $('dl#slide > dt');
      var smenu = $('dd#smenu').get(0);
      var slide = $('dl#slide').get(0);

      $('dt#menu1').click(function() {
        if (this.id == "menu1" && smenu.className == '') {
          $(smenu).stop().animate({ height: slide.offsetHeight + 'px' }, 450);
          smenu.className = "clicked";
          this.className = "expand";
        }
        else {
          $getdd.each(function(q) {
            eNext = this.firstChild;
            while (eNext.nodeType != 1) { eNext = eNext.nextSibling; }
            ulHeight = eNext.offsetHeight;
            if (this.offsetHeight > 0) {
              this.className = '';
              $getdt.get(q + 1).className = '';
              $('#' + this.id).stop().animate({ height: 0 }, 450);
            }
          }); // end of $getdd.each
          slide.style.position = "absolute";
          smenu.style.overflow = "hidden";
          $(smenu).stop().animate({ height: 0 }, 450);
          smenu.className = '';
          this.className = '';
        }
      }); // end of click

      $getdt.each(function(i) {
        $(this).click(function() {
          var thisClick = this;
          slide.style.position = "relative";
          smenu.style.overflow = "visible";
          if (this.id.indexOf('item') != -1) {
            $getdd.each(function(z) {
              if (this.id.indexOf(thisClick.id) != -1 && this.className == '') {
                eNext = this.firstChild;
                while (eNext.nodeType != 1) { eNext = eNext.nextSibling; }
                ulHeight = eNext.offsetHeight;
                $('#' + this.id).stop().animate({ height: ulHeight + 'px' }, 450);
              }
              else {
                eNext = this.firstChild;
                while (eNext.nodeType != 1) { eNext = eNext.nextSibling; }
                ulHeight = eNext.offsetHeight;
                if (this.offsetHeight > 0) {
                  $('#' + this.id).stop().animate({ height: 0 }, 450);
                }
              }
              if (this.id.indexOf(thisClick.id) != -1 && this.className == '') {
                this.className = 'selected';
                thisClick.className = 'slide';
              }
              else {
                this.className = '';
                ePrevious = this.previousSibling;
                while (ePrevious.nodeType != 1) { ePrevious = ePrevious.previousSibling; }
                ePrevious.className = '';
              }
            }); // end of #getdd.each
          }   // end of if
        }); // end of click
      }); // end of $getdd.each
    }); 



$(function() {

      var $getdd = $('dl#slide2 > dd');
      var $getdt = $('dl#slide2 > dt');
      var smenu2 = $('dd#smenu2').get(0);
      var slide2 = $('dl#slide2').get(0);

      $('dt#menu2').click(function() {
        if (this.id == "menu2" && smenu2.className == '') {
          $(smenu2).stop().animate({ height: slide2.offsetHeight + 'px' }, 450);
          smenu2.className = "clicked";
          this.className = "expand";
        }
        else {
          $getdd.each(function(q) {
            eNext = this.firstChild;
            while (eNext.nodeType != 1) { eNext = eNext.nextSibling; }
            ulHeight = eNext.offsetHeight;
            if (this.offsetHeight > 0) {
              this.className = '';
              $getdt.get(q + 1).className = '';
              $('#' + this.id).stop().animate({ height: 0 }, 450);
            }
          }); // end of $getdd.each
          slide2.style.position = "absolute";
          smenu2.style.overflow = "hidden";
          $(smenu2).stop().animate({ height: 0 }, 450);
          smenu2.className = '';
          this.className = '';
        }
      }); // end of click

      $getdt.each(function(i) {
        $(this).click(function() {
          var thisClick = this;
          slide2.style.position = "relative";
          smenu2.style.overflow = "visible";
          if (this.id.indexOf('item') != -1) {
            $getdd.each(function(z) {
              if (this.id.indexOf(thisClick.id) != -1 && this.className == '') {
                eNext = this.firstChild;
                while (eNext.nodeType != 1) { eNext = eNext.nextSibling; }
                ulHeight = eNext.offsetHeight;
                $('#' + this.id).stop().animate({ height: ulHeight + 'px' }, 450);
              }
              else {
                eNext = this.firstChild;
                while (eNext.nodeType != 1) { eNext = eNext.nextSibling; }
                ulHeight = eNext.offsetHeight;
                if (this.offsetHeight > 0) {
                  $('#' + this.id).stop().animate({ height: 0 }, 450);
                }
              }
              if (this.id.indexOf(thisClick.id) != -1 && this.className == '') {
                this.className = 'selected';
                thisClick.className = 'slide2';
              }
              else {
                this.className = '';
                ePrevious = this.previousSibling;
                while (ePrevious.nodeType != 1) { ePrevious = ePrevious.previousSibling; }
                ePrevious.className = '';
              }
            }); // end of #getdd.each
          }   // end of if
        }); // end of click
      }); // end of $getdd.each
    }); 
*/
