jQuery(document).ready(function($){
	h3 = $("div#accordion > h3");
	elements = $("div#accordion > div.element1");
	$("div#accordion > div.element1:gt(0)").animate({height: "hide"}, 300);
	$("div#accordion > h3:eq(0)").addClass("activeaccordion");
	h3.click(function(){
		var index = h3.index(this);
		if (elements.eq(index).css("display") != "block") {
			for(var i = 0; i < elements.length; i++)
			if (i == index) {
				elements.eq(i).animate({height: "show"},  { queue:false, duration:500 });
				h3.eq(index).addClass("activeaccordion");
			}
			else {
				/*
				if (elements.eq(i).css("display") == "block") {
					elements.eq(i).animate({height: "hide"},  { queue:false, duration:500 });
					h3.eq(i).removeClass("activeaccordion");
				}
				*/
			}
		}
		else {
			elements.eq(index).animate({height: "hide"},  { queue:false, duration:500 });
			h3.eq(index).removeClass("activeaccordion");
		}
	});


if ('\v'=='v')
{
$("h3.toggler").mouseout(function(){
      $(this).find('span.dotted-hover').css('background','none');
	  $(this).find('span.dotted-hover').css('border-bottom','');
	  $(this).find('span.dotted-hover').css('text-decoration','');
    }).mouseover(function(){
      $(this).find('span.dotted-hover').css('background-image','url("/images/arrow-down.gif")');
      $(this).find('span.dotted-hover').css('background-position','left center');
	  $(this).find('span.dotted-hover').css('background-repeat','no-repeat');
	  $(this).find('span.dotted-hover').css('border-bottom','1px dashed');
	  $(this).find('span.dotted-hover').css('text-decoration','none');
    });

};
});

