$(document).ready(function(){
	
	// fancybox lightbox
    $("a.fancybox").fancybox();
	
	// faq link
	jQuery('.faqList a, a.top').bind('click',function(){
	    var element = jQuery(this).attr('href');
	    var offsetpx = jQuery(element).offset().top;
	    jQuery('html,body').animate({scrollTop: offsetpx}, 1000);    
	    return false;
	});


    $("#flowpanes").scrollable({size: 1, clickable:false}).autoscroll({autoplay: true, interval: 10000}).circular().navigator({ 
        // select #flowtabs to be used as navigator 
        navi: "#moduleNav", 
        // select A tags inside the navigator to work as items (not direct children) 
        naviItem: 'a', 
        // assign "current" class name for the active A tag inside navigator 
        activeClass: 'active'
    });

})
