$(function(){$.fn.getTwitter=function(options){var o=$.extend({},$.fn.getTwitter.defaults,options);$(this).hide();if(o.showHeading){$(this).append('<h2>'+o.headingText+'</h2>');}
$(this).append('<ul id="twitter_update_list"><li></li></ul>');$("ul#twitter_update_list").hide();var pl=$('<p id="'+o.preloaderId+'">'+o.loaderText+'</p>');$(this).append(pl);if(o.showProfileLink){$(this).append('<a id="profileLink" href="http://twitter.com/'+o.userName+'" target="_blank">http://twitter.com/'+o.userName+'</a>');}
$(this).show();$.getScript("http://twitter.com/javascripts/blogger.js");$.getScript("http://twitter.com/statuses/user_timeline/"+o.userName+".json?callback=twitterCallback2&count="+o.numTweets,function(){$(pl).remove();if(o.slideIn){$("ul#twitter_update_list").slideDown(1000);}
else{$("ul#twitter_update_list").show();}
$("ul#twitter_update_list li:first").addClass("firstTweet");$("ul#twitter_update_list li:last").addClass("lastTweet");});};$.fn.getTwitter.defaults={userName:"ImedexCME",numTweets:3,preloaderId:"preloader",loaderText:"Loading tweets...",slideIn:true,showHeading:true,headingText:"Latest Tweets",showProfileLink:false};});$(document).ready(function(){if($("#twitter").length){$("#twitter").getTwitter({userName:"ImedexCME",numTweets:3,loaderText:"Loading tweets...",slideIn:true,showHeading:true,headingText:"Latest Tweets",showProfileLink:false});document.getElementById("box-twitter").style.display="block";}});
