$(window).bind('load', function () {
  // run the cross fade plugin against selector
  $('img.fade').crossfade();
});

function setLeftColRightHeight () {
  var viewPortHeight = 0;
  if ($.browser.msie)
    viewPortHeight = document.documentElement.clientHeight;
  else
    viewPortHeight = window.innerHeight;

  var headerHeight = $("#Header").height();
  var viewPortHeightNew = viewPortHeight - headerHeight - 140;
  if ($.browser.msie)
    document.getElementById("LeftCol").style.minHeight=viewPortHeightNew;
  else
    $("#LeftCol").css("min-height", viewPortHeightNew);
  
};

$(document).ready(function(){
  // run the cross fade plugin against selector

  $(window).resize(function() {
    setLeftColRightHeight();
  });
  setLeftColRightHeight();



  $('#carousel a.outer').hover(
    function() {
      if ($(this).hasClass("linked"))
        document.body.style.cursor = 'pointer';
      $(this).stop().animate({
        backgroundColor: '#950148',
        borderBottomColor: 'white',
        borderLeftColor: 'white',
        borderRightColor: 'white',
        borderTopColor: 'white'
      }, 250);
      $(this).children('.products_index_overlay:first').fadeIn(250);
    },
    function() {
      if ($(this).hasClass("linked"))
        document.body.style.cursor = 'default';
      $(this).stop().animate({
        backgroundColor: '#212121',
        borderBottomColor: '#212121',
        borderLeftColor: '#212121',
        borderRightColor: '#212121',
        borderTopColor: '#212121'
      }, 500);
      $(this).children('.products_index_overlay:first').fadeOut(500);
    });
});