var t;

function thetimeout(){
	t = setTimeout("thefade()",2500);
}

function thefade(){

	$("#watch img").fadeOut(400);
	var thisimg = $("#watch img").attr("rel");
	var nextimg = parseInt(thisimg) + 1;
	if (nextimg > 5){nextimg=1;}
	var nextimgname = "images/watches" + nextimg + ".png";
	setTimeout(function(){
	$('#watch img').attr('src', nextimgname).attr('rel',nextimg);
	setTimeout(function(){$('#watch img').fadeIn(600);},300)
	thetimeout();},400);
	
}

$(document).ready(function() {

thetimeout();
$("#container-3").tabs();
});