$(document).ready(function () {  
// Instan. Facebook Event Feed 
	fbFetch();
	
// MedToday News xml parser
	$('#med_feed').rssfeed('http://www.medpagetoday.com/medical-news-rss-feeds/Asthma-Specific.xml', {
		limit: 3,
		header: false,
		snippet: false,
		content: false
	});
	
// Facebook APP init *Currently not being used*
//  window.fbAsyncInit = function() {
//     FB.init({appId: '214618118562951', status: true, cookie: true,
//              xfbml: true});
//   }; 
//   (function() {
//    var e = document.createElement('script'); e.async = true;
//    e.src = document.location.protocol +
//      '//connect.facebook.net/en_US/all.js';
//    document.getElementById('fb-root').appendChild(e);
//  }()); 

// add hooks for first and last childs in lists + tables
$("li:first-child, tr:first-child, td:first-child").addClass('first-child');
$("li:last-child, tr:last-child, td:last-child").addClass('last-child');

//open external links in a new window
$('a[href^="http://"]').each(function() {
           $(this).attr('target','_blank');
   });

// add hooks for odd childs in various markup lists
$('#main li:even, #main dt:even, #main dd:even').addClass('odd-child');
  

$('#slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});

$(document).ready(function() { 
       $('ul.sf-menu').superfish({ 
           delay:       1000,                            // one second delay on mouseout 
           animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
           speed:       'slow',                          // faster animation speed 
           autoArrows:  false,                           // disable generation of arrow mark-up 
           dropShadows: true                            // disable drop shadows 
       }); 
   });
 						 

});

