$(document).ready(function(){

// slide show on home page
	$('#slideshow').slidertron({
		viewerSelector:			'.viewer',
		reelSelector:			'.viewer .reel',
		slidesSelector:			'.viewer .reel .slide',
		navPreviousSelector:	'.previous',
		navNextSelector:		'.next',
    speed:            '800',
    advanceDelay:     '7000'
	});

/*
// pop up overlay for sign up form
  $.fancybox( 
  '<iframe id="test" src="/pop-up.html" width="600" height="450" frameborder="0" scrolling="no"></iframe>', 
  {
    'transitionIn'		: 'elastic',
    'transitionOut'		: 'none',
    'centerOnScroll'  : 'true',
    // use onComplete to remove overlay after 20 seconds if end-user has 
    // filled out form and gone on to sign up
    // onComplete causes an issue in firefox that is dealt with below
    'onComplete': function() { 
      $('#fancybox-wrap, #fancybox-overlay, #test').delay(20000).fadeOut(); 
    }

  });

//force closure of fancybox in Firefox due to an issue with onComplete
  $("#fancybox-close, #fancybox-overlay").click(function() {
    $('#fancybox-overlay').stop();
    $('#fancybox-wrap').stop();
    $('#test').stop();
  });

});

// force closure of fancybox in Firefox when hitting escape key due to an issue with onComplete
$(document).keyup(function(e) {
  if (e.keyCode == 27) { 
    $('#fancybox-overlay').stop();
    $('#fancybox-wrap').stop();
  }
*/
});

