$(document).ready(function(){
			$(".lightbox").lightbox();






});




$(document).ready(function(){
    $("#navigation_container li").each(function(){ 
    var link = $(this).children("a"); 
    var image = $(link).children("img"); 
    var imgsrc = $(image).attr("src");
    // add mouseover 
        $(link).mouseover(function(){ 
        var on = imgsrc.replace(/.gif$/gi,"_over.gif"); 
        $(image).attr("src",on); 
        });
        // add mouse out 
        $(link).mouseout(function(){ 
        $(image).attr("src",imgsrc); 
        }); 
    });
}); 







//   TOOLTIPS

// Create the tooltips only on document load
$(document).ready(function() 
{
   // By suppling no content attribute, the library uses each elements title attribute by default
   $('a.tooltip[href][title]').qtip({
      content: {
         text: false // Use each elements title attribute
      },
   position: {
   adjust: { x: 0, y: -17 },
      corner: {
         target: 'bottomMiddle',
         tooltip: 'bottomMiddle'
      }
   },
   style: { 
      width: 200,
      padding: 5,
      background: '#ffffff',
      color: '#000000',
      textAlign: 'left',
      border: {
         width: 3,
         radius: 2,
         color: '#cacaca'
      },
     tip: 'bottomMiddle'
     }

   });

   // NOTE: You can even omit all options and simply replace the regular title tooltips like so:
   // $('#content a[href]').qtip();
});


//   END TOOLTIPS




// BEGIN FIELD-CLEARING FUNCTION

function clearField(field){
  if (field.value == field.defaultValue) {
    field.value = "";
  }
}

// END FIELD-CLEARING FUNCTION
