$(document).ready(function() {
	$("#twitterFeed").getTwitter({ // Twitter feed 
		userName: "starlightcinema",
		numTweets: 2, // Control the nubmer of tweets to show
		loaderText: "Loading tweets...",
		slideIn: true,
		showHeading: false,
		headingText: "Latest Tweets",
		showProfileLink: false
	});
	
	$("#featureBox").scrollable({size:1}).circular().autoscroll({  // Feature Scroller
		interval: 4000,
		api: true
	}); 
	
	$('#featureBox').hover(function() {
        $('#featureBox>a').addClass('show'); // Show the next/prev btn links
		$('.featureInfo').addClass('active'); // Show the full description 
//		$api.pause(); // Pause the feature scroller
      }, function() {
        $('#featureBox>a').removeClass('show');
		$('.featureInfo').removeClass('active');
    });
	
	$(".zebraTable tr:even").addClass("even"); // Zebra striped tables 
	$(".zebraTable tr:odd").addClass("odd");
	
});

sfHover = function() {
	var sfEls = document.getElementById("primary-nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

