/* <![CDATA[ */
$(document).ready(function () {
$(".portTmb a").fancybox({
	'frameWidth': 950,
	'frameHeight': 570,
});
$("a.group").fancybox({
		'hideOnContentClick': false
	});

$('.spotInfo').hide();
$('#spot1').fadeIn(1000);
var currentID = 1;

$('#rtArrow').mousedown(function () {
	if (currentID==4) {
	  // do nothing
	  $('#rtArrow').attr('class','disabled');
	} else {
	$('#ltArrow').removeClass('disabled');
	$("#spot" + currentID).fadeOut(200, function() {
	  currentID = currentID+1;
	  if (currentID>=4) {
		  currentID = 4;
		  $('#spot' + currentID).fadeIn(1000);
		  $('#rtArrow').attr('class','disabled');
	  } else {
	  $('#spot' + currentID).fadeIn(1000);
	  }
    });
	}
});

$('#ltArrow').mouseup(function () { 
	if (currentID==1) {
	  // do nothing
	  $('#ltArrow').attr('class','disabled');
	} else {
	$('#rtArrow').removeClass('disabled');
	$('#spot' + currentID).fadeOut(200, function() {
	  currentID = currentID-1;
	  if (currentID<=1) {
		  currentID = 1;
		  $('#ltArrow').attr('class','disabled');
		  $('#spot' + currentID).fadeIn(1000);
	  } else {
	  $('#spot' + currentID).fadeIn(1000);
	  }
	});
    }
});

})
/* ]]> */