$(function() {
    $(".hover ul").supersubs({
        minWidth: 8,
        // minimum width of sub-menus in em units
        maxWidth: 27,
        // maximum width of sub-menus in em units
        extraWidth: 1 // extra width can ensure lines don't sometimes turn over
        // due to slight rounding differences and font-family
    }).superfish({
        delay: 750,
        autoArrows: false,
        dropShadows: false
    });
	$('#slides').slides({
				preload: true,
				preloadImage: '../images/loading.gif',
				play: 5000,
				pause: 2500,
				hoverPause: true,
				animationStart: function(current){
					$('.caption').animate({
						bottom:-40
					},100);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationStart on slide: ', current);
					};
				},
				animationComplete: function(current){
					$('.caption').animate({
						bottom:0
					},200);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationComplete on slide: ', current);
					};
				},
				slidesLoaded: function() {
					$('.caption').animate({
						bottom:0
					},200);
				}
			});
	$('.quovolver blockquote').quovolver();	
		
});

$(function(){
   var path = location.pathname.substring(1);
   if ( path )
     $('#sidebar li a[href$="' + path + '"]').attr('class', 'selected');
 });
 
 $(function(){
   $('a.faq').click(function () {
	var divname= this.name;
	$("#"+divname).show().siblings().hide();
});
 });
