$(function()
{
  $('a.colorbox').colorbox();
	
	if ($('.SlideTab').text())
	{
    $('.SlideTab').tabSwitch('create',{type: 'toggle', toggle: 'fade',speed: 500, width: 386, height: 386});
  	$('.tabSelect').click(function(e){
  		$('.SlideTab').tabSwitch('moveTo',{index: parseInt($(this).attr("rel"))});
  		e.preventDefault();
  	});
  	$('.Nav').click(function(e){
  		$('.SlideTab').tabSwitch('moveStep',{step: parseInt($(this).attr("rel"))});
  		e.preventDefault();
  	});
  	$('.SlideTab').tabSwitch('startAuto',{interval: 10000});
  }
});
