$(function() {
            $('#rotate > ul').tabs({ fx: { opacity: 'toggle' } }).tabs('rotate', 7000);
        });


$(document).ready(function() {
	
  //photo switching
  //----------------
  $('#photo_thumbs a').click(function() {
    
    if($(this).hasClass('cur')) {} else {      

      newImg = $(this).attr('href');
      $('#photo_thumbs .cur').removeClass('cur');
      $(this).addClass('cur');
      
      $('#photo_img img').fadeOut(350, function(){
        $('#photo_img').css({ height: $("#photo_img img").height() });
        animateArrow('feat_arrow',$('#photo_thumbs .cur'));         
        $('#loading').show();
        $('#photo_img img').attr({ src: newImg }).css({ margin: "0", visibility: "hidden" }).show();          
        $('#photo_img').animate({ height: $("#photo_img img").height() }, 350, function(){
          $("#loading").hide();
          $('#photo_img img').css({ visibility: "visible", display: "none" }).fadeIn(350);       
        }); 
      });

    }//if

    return false;
    
  });//photo switching
  //------------------


  var images = new Array;
  i = 0;
  $('#photo_thumbs a').each(function() {
    images[i] = new Image();
    images[i].src = $(this).attr('href');
    i++;
  });

});//doc ready


function animateArrow(arrow,clickedLink){
  offset = clickedLink.offset();
}






