var max_scroll = 2;
var num_scroll = 0;

$(function() {
	$(".scrollable").scrollable({
			keyboard: false, 
			circular: true,
			onSeek: function() {
				if(this.getIndex() == 0) num_scroll++;
				if(num_scroll >= max_scroll) this.stop();
			}
		}).autoscroll({ autoplay: true, interval: 7000, autopause: true });
	//$(".scrollable").scrollable({keyboard: true, circular: true});
	
	$(".navitem").hover(
		function() {
			$(this).find("div.menu").show();
		},
		function() {
			$(this).find("div.menu").hide();
		}
	);
});


$(function() {
	$("ul.tabs").tabs("div.panes > div");
	$("ul.tabs").click(function() {
			Cufon.refresh();
		}
	);
});

Cufon.replace('h1', { fontFamily: 'Gotham Book' });
Cufon.replace('h2', { fontFamily: 'Gotham Book' });
Cufon.replace('h3', { fontFamily: 'Gotham Medium' });
Cufon.replace('.additionalInfo h1', { fontFamily: 'Gotham Medium' });
Cufon.replace('.additionalInfo div a.font', { fontFamily: 'Gotham Medium' });
Cufon.replace('.serviceListItem', { fontFamily: 'Gotham Medium' });
Cufon.replace('.tabFont', { fontFamily: 'Gotham Medium' });
Cufon.now();

Cufon.refresh();
