$(document).ready(function()
{
	// Initialize Dropdown Menu
    if ($('#nav-main').length) {
    	$("ul#nav-main").superfish({pathClass: 'current', autoArrows: false, dropShadows: true, delay: 800});
    }
    
    // Initialize Banner Slideshow
    if ($('#banner-slideshow').length) {
    	$('#banner-slideshow').cycle({timeout: 8000, speed: 1000, sync: 1, pause: 1, fit: 1 });
    }
    
    // Toggle Ask The Expert Questions
    if ($('.toggle-question').length) {
    	$('.toggle-question').each(function(){
    		$(this).next().hide();
    		$(this).css('cursor', 'pointer');
    		$(this).bind('click', function(){
    			$(this).next().slideToggle();
    		});
    		
    	});
    }
    
    // Initialize Toolkit
    $.toolkit.tooltip();
	$.toolkit.popup();
	$.toolkit.external();
	$.toolkit.rotate();
	$.toolkit.cycle();
	$.toolkit.forms();
	// This sucks - $.toolkit.showhide();
	$.toolkit.jump();
	
});
