$(document).ready(function () {
  //$("body").gradient({from: '400463', to: '300349', length:  (parseInt($("body").height())-200), position: 'bottom'});
  $("#SearchTerm").click(function() {
    if($(this).val()=="Search for...")$(this).val("");
  }); 
  $("input").focus(function(){$(this).css("background", "#DEDEDE")});
  $("input").blur(function(){$(this).css("background", "#fff")});
    $("a[rel='external']").click( function() {
      h = ($(this).attr('href').indexOf("AddToCart") > 0) ? 200 : 600;
      w = ($(this).attr('href').indexOf("AddToCart") > 0) ? 300 : 800;
      s = ($(this).attr('href').indexOf("AddToCart") > 0) ? "no" : "yes";
      r = ($(this).attr('href').indexOf("AddToCart") > 0) ? "no" : "yes";
      window.open( $(this).attr('href'),'MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + s + ',resizable=' + r + ',width=' + w + ',height=' + h );
      return false;
  });
  //PimpMyVinyl page - add classes to year boxes to space them out
  $("td.numericTextBox select").each(function() {
    if($(this).attr("id").indexOf("Year")>-1) {
      $(this).addClass("year");
    }
  })

});
       
function loadHeaderStyles() {
 //$("#header").liquidCanvas("[shadow{width:2; color:'#666'; shiftX:-1; shift:2 } fill{color:#400463}] => ecken{tl:20; bl:0; br:0; tr:20}");
  //$("#user-bar ul").liquidCanvas("[fill{color:#111}] => ecken{tl:0; bl:10; br:10; tr:0}");
  
  $("#top-nav").gradient({ from: 'cccccc', to: '9BA7AB' , length: 37, position: 'top'}); 
  
}