var ultimo = '';var conteggio = 0;var titoli = ['From 1794', 'Watchmaking', 'Jewellery'];var links = ['index.php?option=com_content&view=article&id=13&Itemid=23', 'index.php?option=com_content&view=article&id=4&Itemid=4', 'index.php?option=com_content&view=article&id=3&Itemid=5'];var texts = ['Click here to view our historical watches >', 'Click here to discover the Watchmaking section >', 'Click here to view the collection >'];var puls = ['pul01', 'pul02', 'pul03'];function switchIMG(par, titolo, link_address, link_text, pul) {	if (typeof(timer) != 'undefined') {		clearTimeout(timer);	}	if (ultimo == '') {		ultimo = 'pul01';	}		$('#'+ultimo).attr('class', 'thumb_nav');	$('#viewer'+par).fadeIn();		$('.viewer').not($('#viewer'+par)).fadeOut();	$('#viewer'+par).queue(function() {		$(this).dequeue();		timer = setTimeout('autoPlay()', 3500);	})		$('#titolo_gallery').html(titolo);	$('#link_gallery > a')		.attr('href', link_address)		.html(link_text)	$('#'+pul).attr('class', 'thumb_nav_active');		ultimo = pul;	conteggio = par;}	function hover(pul) {	if (pul.className != 'thumb_nav_active'){		pul.className = 'thumb_nav_hover';	}}function out(pul) {	if (pul.className == 'thumb_nav_hover') {		pul.className = 'thumb_nav';	}		}function autoPlay() {	switchIMG(conteggio, titoli[conteggio], links[conteggio], texts[conteggio], puls[conteggio])	conteggio++;	if (conteggio >= 3) {		conteggio = 0;	}}$(window).ready(function() {	var timer = setTimeout('autoPlay()',3500);});
