$(document).ready(function(){

$('.external').click(function() {
window.open($(this).attr("href"),null);
return false;
})


$('label span').click(function(){
  
// temp IE7 FIX
 $(this).hide(); $(this).next().focus();




});


  $('label input').focus(function(){
    $(this).css({'background-color':'#FFFFFF'})
  })

  $('label input').blur(function(){
    if($(this).val()=='')
$(this).css({'background-color':'transparent'})
  })

 $('label input').each(function(){
   if($(this).val()!='')
    $(this).css({'background-color':'#FFFFFF'})
  })

 $('label input').keypress(function(){
   if($(this).val()!='')
    $(this).css({'background-color':'#FFFFFF'})
  })

 $('label input').change(function(){
   if($(this).val()!='')
    $(this).css({'background-color':'#FFFFFF'})
  })

 $('label input').change(function(){
   if($(this).val()!='')
    $(this).css({'background-color':'#FFFFFF'})
  })

 $('input:image').hover(function(){
   $(this).attr('src',$(this).attr('src').replace('.jpg','hover.jpg'))

  }
  ,
  function(){
   $(this).attr('src',$(this).attr('src').replace('hover.jpg','.jpg'))
  }
  )

  $(function() {
        $('.menu ul li a.Selected').parent().addClass('selectedLava')
        $('.menu ul').lavaLamp();
    });


  $('.main input.textbox, .main textarea.textAreaBox, .main select.selectBox, .main input.textboxBig').focus(function(){
    $(this).prev().css('font-weight','bold')
  })
  $('.main input.textbox, .main textarea.textAreaBox, .main select.selectBox, .main input.textboxBig').blur(function(){
    $(this).prev().css('font-weight','normal')
  })
  
})

