// jQuery Cycle for Patient Interface

jQuery(function() {
    jQuery('#p-test').cycle({
        fx:     'fade',
        speed:  '2500',
        timeout: 0,
        pager:  'p-imgs',
		pagerEvent: 'mouseover',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#p-imgs li:eq(' + (idx) + ') a';
        }
    });
});

// jQuery Superfish 
jQuery(document).ready(function(){ 
	jQuery("ul.sf-menu").superfish({ 
		animation: {height:'show'},   // slide-down effect without fade-in 
		delay:     1200               // 1.2 second delay on mouseout 
	}); 
}); 

// jQuery SiteMap

jQuery(document).ready(function(){
	jQuery(".titleSM").click(function(){ jQuery("#siteMapBody").show("slow"); });
	jQuery("#close").click(function(){ jQuery("#siteMapBody").hide("slow"); });
});   

//jQuery Lightbox
jQuery(function() {
    jQuery('a[@rel*=lightbox]').lightBox(); 
	
});