$(function(){
	$('.slideshow').cycle({
		fx:     'fade', 
		speed:  2000, 
		timeout: 6000, 
		next:   '#next2', 
		prev:   '#prev2' 
	});
	
});

function startCount(house, time){
	var i = 0;
	var interval = setInterval(function(){
		i > house ?  clearInterval(interval) : $('#rangeCount').html(i++);
	}, time);
}

function selectingMenuByPage(page){
	$('#mainMenu li a').each(function(){
		if($(this).attr('href') == page) $(this).addClass('selected');
	});
}
