var Hompeage = Homepage || {};
Homepage.IndexController = jZend.Controller.extend({
	init: function () {
	},
	indexAction: function () {
		$('.news-entry').hide();
		$('.news-pointer').click(function () {
			// hiding news, and showing clicked one
			var position = $(this).prevAll().length;
			var activeEntry = $($('.news-entry').get(position));
			$('.news-entry').hide();
			activeEntry.show();
			
			// activating clicked pointer
			$('.news-pointer').removeClass('active');
			$(this).addClass('active');
			
		});
		$('.news-pointer').first().click();
		
		// init Slider
		$('.slider-container').cycle({
			timeout: 6000
		});
		
		
	},
	indexSuccess: function () {
		
	}

});
