/*
	Author: NetConstruct
*/

$('html').removeClass('no-js');


$('#homeBanner').cycle({
	fx:			'scrollLeft', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	timeout: 10000,  // milliseconds between slide transitions (0 to disable auto advance)
	slideResize: 0,  //do not allow resize
    speed: 3000
});


$('#homeRotator #shuffler').cycle({
	fx:			'shuffle',
	timeout:	0,
	next:   '#homeRotator #bigNext',
	prev:   '#homeRotator #bigPrev'
});


$('#partnerSlider .slider').cycle({
	fx:			'scrollLeft',
	timeout:	0,
	next:   '#partnerSlider #smallNext',
	prev:   '#partnerSlider #smallPrev'
});


$('#map #slider').cycle({ 
    fx:     'scrollRight', 
    speed:  'fast', 
    timeout: 0,
    next:   '#map #smallNext',
	prev:   '#map #smallPrev',
	after:  function(){
		$('#mapContainer ul a').removeClass('active');
		var id = $(this).attr('id');

		$('#mapContainer ul a.' + id).addClass('active');
	}
}); 


$('#mapContainer ul a').click(function() {
	$('#mapContainer ul a').removeClass('active');

	var
		id	= $(this).attr('class'),
		index	= $('#map #slider #' + id).index();

	$('#map #slider').cycle(index);
	$(this).addClass('active');
	return false; 
}); 




















