
function clearText(thefield){if(thefield.defaultValue!=thefield.value)return;thefield.value='';}
function insertText(thefield){if(thefield.value!='')return;thefield.value=thefield.defaultValue;}

$(function() {
  $('A IMG[rel=hoverme][hover]').hover(function() {
    if ( !$(this).attr('hover').length ) {
      return;
    }
    if ( !$(this).attr('orig') ) {
      $(this).attr('orig', $(this).attr('src'));
    }
    $(this).attr('src', $(this).attr('hover'));
  }, function() {
    if ( !$(this).attr('hover').length ) {
      return;
    }
    $(this).attr('src', $(this).attr('orig'));
  });
  
  $('A.toplink').parent().hover(function() {
    $(this).addClass('hover');
  }, function() {
    $(this).removeClass('hover');
  });
  
  
  $('.cTeaserLinks .entry').click(function() {
    document.location.href = $('A', $(this)).attr('href');
    return false;
  }).hover(function() {
    $(this).addClass('hover');
  }, function() {
    $(this).removeClass('hover');
  });
  
  
});


function doManagementList() {
        $('.management-list .name').click(function() {
                /*$('.description', $(this).closest('.entry')).slideToggle('fast')
                $(this).toggleClass('open'); */
                return false;
        });
        $('A[rel=lightbox]').fancybox();
}


