

function vesASeccio(quinaSeccio){
	location.href = quinaSeccio;
}


//TIME_WATCHING = 8000;

/*function slideSwitch(num){

	intervalid = "interval_id"+num;
	slideshowname = "slideshow"+num;

	clearInterval(intervalid);

	var $active = $('#'+slideshowname+' span.active');

	if ( $active.length == 0 ) $active = $('#'+slideshowname+' span:last');

	// use this to pull the images in the order they appear in the markup
	var $next =  $active.next().length ? $active.next()
		: $('#'+slideshowname+' span:first');

	$active.addClass('last-active');

	$next.css({opacity: 0.0})
		.addClass('active')
		.animate({opacity: 1.0}, 2000, function() {
			$active.removeClass('active last-active');
			intervalid = setInterval( "slideSwitch("+num+")", TIME_WATCHING );
		});
}


function activa_Slides(time1,num){
	intervalid = "interval_id"+num;
	intervalid = setInterval( "slideSwitch("+num+")", time1 );
}*/

/*function slideSwitch(num,nom_inter){
	
	clearInterval(nom_inter);

	var $active = $('#slideshow'+num+' span.active');

	if ( $active.length == 0 ) $active = $('#slideshow'+num+' span:last');

	// use this to pull the images in the order they appear in the markup
	var $next =  $active.next().length ? $active.next()
		: $('#slideshow'+num+' span:first');

	$active.addClass('last-active');

	$next.css({opacity: 0.0})
		.addClass('active')
		.animate({opacity: 1.0}, 2000, function() {
			$active.removeClass('active last-active');
			nom_inter = setInterval( "slideSwitch("+num+","+nom_inter+")", TIME_WATCHING );
		});
}


function activa_Slides(time1,num){
	for(k=0;k<num;k++){
		n_inter = k+2;
		nom_interval = setInterval( "slideSwitch("+k+","+n_inter+")", time1 );
	}
}*/


