$(document).ready( function() {



$('h1 a[href=""]').parent().hide();
//$('h1 a:empty').parent().hide();


$('#loginimg').click( function () {
  
          $('#login').slideDown();
  
});

$('#close').click( function () {
  
          $('#login').slideUp();
  
});


/////////////////////////////

$('.aboutb').click(function() {
  
  if ( $('#aboutus').is(":visible")  ) {
    
  $('#aboutus').fadeOut();
    
  } else {
  
  $('.modal').fadeOut();  
  $('#treatlist').slideUp();
  $('#aboutus').delay(600).fadeIn();

  
}

});



///////////////////////////

$('.specialoffersb').click(function() {
  
  if ( $('#specialoffers').is(":visible")  ) {
    
  $('#specialoffers').fadeOut();
    
  } else {
  
  $('.modal').fadeOut();  
  $('#treatlist').slideUp();
  $('#specialoffers').delay(600).fadeIn();

  
}

});



///////////////////////////

$('.treatb').click(function() {
  
  if ( $('#treatments').is(":visible")  ) {
    
  $('#treatments').fadeOut();
  $('#treatlist').slideUp();
    
  } else {
  
  $('.modal').fadeOut();  
  $('#treatlist').slideDown();
  $('#treatments').delay(600).fadeIn();

  
}

});

/////////////////////////////

$('.quoteb').click(function() {
  
  if ( $('#quote').is(":visible")  ) {
    
  $('#quote').fadeOut();
    
  } else {
  
  $('.modal').fadeOut();  
  $('#treatlist').slideUp();
  $('#quote').delay(600).fadeIn();

  
}

});


///////////////////////////

$('.galleryb').click(function() {
  
  if ( $('#gallery').is(":visible")  ) {
    
  $('#gallery').fadeOut();
    
  } else {
  
  $('.modal').fadeOut();  
  $('#treatlist').slideUp();
  $('#gallery').delay(600).fadeIn();

  
}

});



///////////////////////////

$('.gmapb').click(function() {
  
  if ( $('#gmap').is(":visible")  ) {
    
  $('#gmap').fadeOut();
    
  } else {
  
  $('.modal').fadeOut();  
  $('#treatlist').slideUp();
  $('#gmap').delay(600).fadeIn();

  
}

});


////////////////////////////

$('.contactusb').click(function() {
  
  if ( $('#contactus').is(":visible")  ) {
    
  $('#contactus').fadeOut();
  $('#treatlist').slideUp();
    
  } else {
  
  $('.modal').fadeOut();  
  $('#contactus').delay(600).fadeIn();

  
}

});

////////////////////////////

$('.faqb').click(function() {
  
  if ( $('#faq').is(":visible")  ) {
    
  $('#faq').fadeOut();
  $('#treatlist').slideUp();
    
  } else {
  
  $('.modal').fadeOut();  
  $('#faq').delay(600).fadeIn();

  
}

});



///////////////////////////


     $('#wrapper a').hover(function() {
          $(this).animate({ paddingLeft: '10px' }, 100);          
      }, function() {
           $(this).animate({ paddingLeft: '0px' }, 100);    
      });

////////////////

var css = {
      'bottom' : '0',
      'right' : '0'
    }

$('#backstretch img').css(css);
  
//////  

});
