
//Start Minimum Height Function
function setMinHeight() {
  var newMinHeight = $(window).height() - 250;
  $('#wrapper').attr("style", "min-height:"+newMinHeight+"px;");
  shadeLI();
  singleTD();
  shadeTR();
  lastGroupIt();
  shadeGroupIt();
  lastTD();
  $('h1').wrapInner('<span></span>');
} 
$(window).resize(function() {
  var newMinHeight = $(window).height() - 250;
  $('#wrapper').attr("style", "min-height:"+newMinHeight+"px;");
}); 
//End Minimum Height Function

//Start Delete Search Text
$(".searchBox").click(
    function () {
    $(".searchBox").attr("value", "");
    } 
);
//End Delete Search Text

//Start Adding Classes to Even List Items
function shadeLI(){
  $("ul.shade li:even").attr("class", "shade");
}
//End Adding Classes to Odd List Items

//Start Adding Classes to Even TRs
function shadeTR(){
  $("table.shade tr:even").addClass("shade");
  $("table.shade tr:first-child").attr("class", "heading");
}
//End Adding Classes to Odd List Items

//Start Adding Classes to TR where there is only 1 TD
function singleTD(){
  $('#content table td strong').parent('td').parent('tr').addClass('subHead');
}
//End Adding Classes to TR where there is only 1 TD

//Start Adding Class to last TDs of each TR
function lastTD(){
  $('#content table td:last-child').addClass('last');
}
//End Adding Class to last TDs of each TR

//Start Adding Classes to Even .groupIt Divs
function shadeGroupIt(){
  $("#content.shade div.groupIt:even").attr("class", "groupIt shade");
}
//End Adding Classes to Even .groupIt Divs

//Start Adding Class to last groupIt DIV
function lastGroupIt(){
  $("#content div.groupIt:last-child").attr("class", "groupIt last");
}
//End Adding Class to last groupIt DIV


