$(document).ready(function() {
	$('dl.menuleft> dd').hide();
	$('blockquote> ul').hide();
//$('dl.menuleft> dd:gt(0)').hide(); use this if you want the first one to stay opened

	

	$('blockquote> div').click(function() {
    var $nextDIV = $(this).next();
    var $visibleSiblingsDIV = $nextDIV.siblings('ul:visible');
 
    if ($visibleSiblingsDIV.length) {
		$visibleSiblingsDIV.slideUp('fast', function() {
		rightshadow();
        $nextDIV.slideToggle('fast', function() {
		rightshadow();
      });
      });
    } else {
       $nextDIV.slideToggle('fast', function() {
		rightshadow();
      });
    }
	
});

$('blockquote> div').hover(function() {
	$(this).addClass('prettyhover');
	rightshadow();
}, function() {
	$(this).removeClass('prettyhover');
	rightshadow();
});



	$('dl.menuleft> dt').click(function() {
    var $nextDT = $(this).next();
    var $visibleSiblings = $nextDT.siblings('dd:visible');
 
    if ($visibleSiblings.length) {
		$visibleSiblings.slideUp('normal', function() {
        $nextDT.slideToggle('normal');
      });
    } else {
       $nextDT.slideToggle('normal');
    }
});


$('.menuleft dt').hover(function() {
	$(this).addClass('prettyhover');
}, function() {
	$(this).removeClass('prettyhover');
});


$(".menuleft dt").click(function(){
	var $newdestination = $(this).find("a").attr("href");
	if($newdestination){
		window.location=$newdestination;
	}
});
	

$('.menuleft li').hover(function() {
	$(this).addClass('prettyhoverli');
}, function() {
	$(this).removeClass('prettyhoverli');
});


$(".menuleft li").click(function(){
	var $newdestination = $(this).find("a").attr("href");
	if($newdestination){
		window.location=$newdestination;
	}
});
	
	
var hrefParts = location.href.split('/');
var thisPage = hrefParts[3];
	if(thisPage != "" && hrefParts[4].length > 0){
		$('dl.menuleft dd:has(a[href*=' + thisPage + '])').show();
	}
});



//$(document).ready(function() {
//  $('div.demo-show:eq(0)> div').hide(); 
//  $('div.demo-show:eq(0)> h3').click(function() {
//    $(this).next().slideToggle('fast');
//  });
//});