jQuery(document).ready(function($) {
/* top feature */
	$(".topfeature .images li").hide();
	$(".topfeature .thumbs li:first").addClass("active");
	$(".topfeature .images li:first").show();
	$(".topfeature .thumbs li").hover(function() {
		$(".topfeature .thumbs li").removeClass("active");
		$(this).addClass("active");
		if(!$(this).hasClass("hovered")){
			var idx = $(".topfeature .thumbs li").index(this) + 1;
			raiseGAEvent('topFeature', 'hover', 'feat' + idx.toString())
			$(this).addClass("hovered");
		}
		$(".topfeature .images li").hide();
		var activeImage = this.className.split(' ')[0];
		$('#' + activeImage).show();
		return false;
	}); 
	$(".topfeature .thumbs li").click(function() {
		var idx = $(".topfeature .thumbs li").index(this) + 1;
		raiseGAEvent('topFeature', 'clickThumb', 'feat' + idx.toString())
	});
	$(".topfeature .images li").click(function() {
		var idx = $(".topfeature .images li").index(this) + 1;
		raiseGAEvent('topFeature', 'clickImage', 'feat' + idx.toString())
	});
});
