
  $(document).ready(function() {
  $('.contents').hide();
  $('#nav_links td').click( function() {
    var which = $(this).attr('id');
      $('#splash').hide(); 
      $('.contents').hide(); 
      $('.'+which).fadeIn('1000');
  }); // end click 

   $('#nav_links td').hover( function() {
   $(this).toggleClass('skewed');
  }); // end hover skew

   $('.col2 a').click( function() {
      what_kind = $(this).attr('rel'); 
      img_where = $(this).children().attr('src');
      caption = $(this).children().attr('title');
      fullsize = img_where.replace('thumbs','full');
   $('#big_image_'+what_kind+', #image_caption_'+what_kind).hide();
   $('#image_caption_'+what_kind).text(caption);
   $('#big_image_'+what_kind).attr('title',caption);
   $('#big_image_'+what_kind).attr('alt',caption);
   $('#big_image_'+what_kind).attr('src',fullsize);

   $('#big_image_'+what_kind+', #image_caption_'+what_kind).load(function() {
//   $(this).fadeIn(2000);
   $('#big_image_'+what_kind+', #image_caption_'+what_kind).fadeIn(800);
});

  }); // end image click

  $('#blog').click( function() {
  $('.blog td').append('<iframe src="http://loadedhips.blogspot.com/"></iframe>');
});


// hack for portraits
  var where_am_i = window.location;
  if (where_am_i == 'http://www.loadedhipspress.com/mockup.html?portraits') {
    $('#splash').hide();
    $('.contents').hide();
    $('.portraits').fadeIn('1000'); 
  } else { }

}); // end ready


