
// jQuery Functions

$(document).ready(
	function(){

		$('.banner.homeBanner').innerfade({
				speed: 750,
				timeout: 7000, 
			containerheight: '250px'
		});



		// Innerfade Script
		$('#logoBanner').innerfade({
			speed: 750,
			timeout: 4000, 
			type: 'random_start',
			containerheight: '120px'
		});


		// Twitter Script
		$(".tweets").getTwitter({
			userName: "InstantHome",
			numTweets: 3,
			loaderText: "Loading tweets...",
			slideIn: true,
			showHeading: false,
			headingText: "Latest Tweets",
			showProfileLink: false
		});


		$('#accordion ul h3.heading').click(function() {
			$(this).css('outline','none');
			if($(this).parent().hasClass('current')) {
				$(this).siblings('div').slideUp('slow',function() {
					$(this).parent().removeClass('current');
				});
			} else {
				$('#accordion ul li.current div').slideUp('slow',function() {
					$(this).parent().removeClass('current');
				});


				$(this).parent().toggleClass('current');
				$(this).siblings('div').slideToggle('slow');
			}
			return false;
		});
});







