/*This function sets the display style of all
   divs with a name of itemDiv to none*/
function hideItems(){
  /*alert("Hiding divs");*/
  var items = document.getElementsByTagName("div");
  /*alert(items.length);*/
  for(var i = 0; i < items.length; i++ ){
    var itemName = items[i].className;
    if(itemName == "itemDiv"){
        /*alert(itemName);*/
        items[i].style.display= "none" ;
    }
  }
}

/*This function sets the display style of the
  div with the selected id to block*/
function raiseItem(itemId){
  hideItems();
  var div = document.getElementById(itemId);
  /*alert("div found");*/
  div.style.display ="block";
} 


function showItem(item){
    $("div.itemDiv").hide();
    var curItem = "#" + item;
    $(curItem).show();
};

          function loadIt(location){
              $('#main').load(location);
          };

          function loadNew(location){
              $('#main').hide(0,loadIt(location));
              $('#main').show('slow');
          };
