//acordion//

$(document).ready(function(){
	$('A.drop').click(function() {
		$(this).next().slideToggle('slow');
		$(this).toggleClass("active");
		return false;
	}).next().hide();
	
	// autoscroll
	
	function autoScroll() {
		var box = $(this);
		var h = $(box.children()[0]).height();
		
		if (box.css('position') !== 'relative') {
			box.css({position:'relative', top: '' + (-Math.floor(Math.random() * box.children().length) * h) + 'px'});
			for (var i = 0; i < box.parent().height() / h; i++) {
				box.append($(box.children()[i]).clone());
			}
		}

		if (-parseInt(box.css('top')) > (box.height() - h * (box.parent().height() / h + 1))) {
			box.css('top', '0');
		}
		
		box.delay(9000).animate({
			top : '-=' + h + 'px'
		}, 750, autoScroll);
	}
	
	//$('.ticker > DIV').each(autoScroll);
	$('.hidden > DIV').each(autoScroll);
	
});
