$(function() {
		$('.maph').maphilight();
		
	
		
		$( "#example_2" ).accessNews({
	        //headline : "Business as Usual",
	        speed : "slow",
			slideBy : 4
	    });
		
		
		
	});
$().ready(function() {

	
	/*elenco = '';
	$('area').each(function() {
		if(elenco!='') {
			elenco+='<br />';
		}
		elenco += '<a href="'+$(this).attr('href')+'">'+$(this).attr('title')+'</a>';
		$(this).removeAttr('href');
	});
	$('.elenco_regioni').html(elenco);

	$('.elenco_regioni a').bind('mouseover', function() {
															 html = $(this).html();
															 $('area').each(function() {
																 if($(this).attr('title') == html) {
																	 $('area').trigger('mouseout');
																	 $(this).trigger('mouseover');
																 }
															 });
														 });
	$('.elenco_regioni').bind('mouseout', function() {$('area').trigger('mouseout');});
	
	$('.state').click(function() {
		//alert($(this).attr('rel')+'.gif');
		$('#mappa').load('_map/'+$(this).attr('rel')+'.html');
			//return mappa;
		
	;});
	*/
	//tooltip();

	$(".accessible_news_slider ").jCarouselLite({
		auto: 1300,
		speed: 2800
	});
	
	//This is the code to make the tab
	$('.SlideTab').tabSwitch('create', {type: 'toggle', toggle: 'fade', height: 240, width: 186});
	//This code to move to the next or previous tab
	$('.SlideTab').tabSwitch('moveStep',{step: parseInt($(this).attr('rel'))});
	//Move to a specific tab base on its rel
	$('.SlideTab').tabSwitch('moveTo',{index : $(this).attr('rel') });
	//Make it auto run
	$('.SlideTab').tabSwitch('startAuto',{interval: 4000});

	
	
});
