$(document).ready(function() {

	if (isiPhone()) { 
				
				header = new followAlong('header');
				
				$('#footer').css('position', 'relative');
				
				}

	var FullscreenrOptions = {  width: 2133, height: 1200, bgID: '#background,#background2,#background3' };
	jQuery.fn.fullscreenr(FullscreenrOptions);

jobflip = 0;

$('.whobox.job').click(function() { 

if (jobflip == 1) {

$('.whobox.job').revertFlip(); jobflip = 0;

} else {

$(this).flip({ direction:'lr', color: '#dddcd7', content: $('.otherside.job').html() }); jobflip = 1;

}

});

placementflip = 0;

$('.whobox.placement').click(function() { 

if (placementflip == 1) {

$('.whobox.placement').revertFlip(); placementflip = 0;

} else { 

$(this).flip({ direction:'lr', color: '#f04f23', content: $('.otherside.placement').html()}); placementflip = 1;

}

});




$('.page#WhoWeAre').bind('inview', function (event, visible) {
  if (visible == true) {
    $('#nav li#navWhoWeAre').addClass('active');
  } else {
    $('#nav li#navWhoWeAre').removeClass('active');
  }
});

$('.page#WhatWeDo').bind('inview', function (event, visible) {
  if (visible == true) {
    $('#nav li#navWhatWeDo').addClass('active'); // $('.submenu#whatwedo').fadeIn()
  } else {
    $('#nav li#navWhatWeDo').removeClass('active'); // $('.submenu#whatwedo').fadeOut()
  }
});


			

});
