// You need to specify the size of your background image here (could be done automatically by some PHP code)
		var FullscreenrOptions = {  width: 1000, height: 562, bgID: '#bgimg' };
		// This will activate the full screen background!
		jQuery.fn.fullscreenr(FullscreenrOptions);

		$(document).ready(function() {
			
			$("#leftwin").fancybox({
				'width'				: 830,
				'height'			: 500,
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'type'				: 'iframe',
				'scrolling'			: 'no'
			});
			$("#leftwin2").fancybox({
				'width'				: 850,
				'height'			: 400,
				'autoScale'			: false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'type'				: 'iframe'
			});
			$("#leftwin3").fancybox({
				'width'				: '50%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			$("#leftwin4").fancybox({
				'width'				: '50%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
		});
		
		


		
var thisAnchorMargin = 10.3;
var scrollSpeedGlobal= 800;
var isitOpen= "false";

$(document).ready(function(){
$( "#click" ).click(function(){
    $("#navi").stop().animate({
    top: thisAnchorMargin + '%'
    }, {
    duration:scrollSpeedGlobal,
    queue:false
    });
	$('#undercontent').fadeIn('slow', function() {
        // Animation complete
		var isitOpen="true";
      });
});
});

function checkopen(){
		if(isitOpen=="false"){
		$("#navi").stop().animate({
    top: thisAnchorMargin + '%'
    }, {
    duration:scrollSpeedGlobal,
    queue:false
    });
	$('#undercontent').fadeIn('slow', function() {
        // Animation complete
		var isitOpen= true;
      });}
}


$(document).ready(function(){

$( ".openreg" ).click(function(){



$('#schedule').fadeOut('slow', function() {
      });
$('#about').fadeOut('slow', function() {
      });
	  $('#merch').fadeOut('slow', function() {
      });
	  $('#pri').fadeOut('slow', function() {
      });
	  $('#contactus').fadeOut('slow', function() {
      });
	   $('#sponsors').fadeOut('slow', function() {
      });
	  $('#directionsto').fadeOut('slow', function() {
      });
	  $('#history').fadeOut('slow', function() {
      });
	  $('#sleep').fadeOut('slow', function() {
      });
$('#register').fadeIn('slow', function() {
      });
	  
});

$( ".openabout" ).click(function(){


checkopen();



$('#register').fadeOut('slow', function() {
      });
	  $('#schedule').fadeOut('slow', function() {
      });
	   $('#sponsors').fadeOut('slow', function() {
      });
	  $('#merch').fadeOut('slow', function() {
      });
	  $('#pri').fadeOut('slow', function() {
      });
	  $('#contactus').fadeOut('slow', function() {
      });
	  $('#directionsto').fadeOut('slow', function() {
      });
	  $('#history').fadeOut('slow', function() {
      });
	  $('#sleep').fadeOut('slow', function() {
      });
$('#about').fadeIn('slow', function() {
      });
});


$( ".openschedule" ).click(function(){
checkopen();
$('#register').fadeOut('slow', function() {
      });
	  $('#about').fadeOut('slow', function() {
      });
	  $('#sponsors').fadeOut('slow', function() {
      });
	  $('#merch').fadeOut('slow', function() {
      });
	  $('#pri').fadeOut('slow', function() {
      });
	  $('#contactus').fadeOut('slow', function() {
      });
	  $('#directionsto').fadeOut('slow', function() {
      });
	  $('#history').fadeOut('slow', function() {
      });
	  $('#sleep').fadeOut('slow', function() {
      });
$('#schedule').fadeIn('slow', function() {
      });
	  
});


$( ".opensponsor" ).click(function(){
checkopen();
$('#register').fadeOut('slow', function() {
      });
	  $('#about').fadeOut('slow', function() {
      });
$('#schedule').fadeOut('slow', function() {
      });
	  $('#merch').fadeOut('slow', function() {
      });
	  $('#pri').fadeOut('slow', function() {
      });
	  $('#contactus').fadeOut('slow', function() {
      });
	  $('#directionsto').fadeOut('slow', function() {
      });
	  $('#history').fadeOut('slow', function() {
      });
	  $('#sleep').fadeOut('slow', function() {
      });
	  $('#sponsors').fadeIn('slow', function() {
      });

});




$( ".openmerch" ).click(function(){
checkopen();
$('#register').fadeOut('slow', function() {
      });
	  $('#about').fadeOut('slow', function() {
      });
$('#schedule').fadeOut('slow', function() {
      });
	  $('#sponsors').fadeOut('slow', function() {
      });
	  $('#pri').fadeOut('slow', function() {
      });
	  $('#contactus').fadeOut('slow', function() {
      });
	  $('#directionsto').fadeOut('slow', function() {
      });
	  $('#history').fadeOut('slow', function() {
      });
	  $('#sleep').fadeOut('slow', function() {
      });
	  $('#merch').fadeIn('slow', function() {
      });
});




$( ".openpri" ).click(function(){
checkopen();
$('#register').fadeOut('slow', function() {
      });
	  $('#about').fadeOut('slow', function() {
      });
$('#schedule').fadeOut('slow', function() {
      });
	  $('#sponsors').fadeOut('slow', function() {
      });
	  $('#merch').fadeOut('slow', function() {
      });
	  $('#contactus').fadeOut('slow', function() {
      });
	  $('#directionsto').fadeOut('slow', function() {
      });
	  $('#history').fadeOut('slow', function() {
      });
	  $('#sleep').fadeOut('slow', function() {
      });
	  $('#pri').fadeIn('slow', function() {
      });
	  
});






$( ".opencontact" ).click(function(){
checkopen();
$('#register').fadeOut('slow', function() {
      });
	  $('#about').fadeOut('slow', function() {
      });
$('#schedule').fadeOut('slow', function() {
      });
	  $('#sponsors').fadeOut('slow', function() {
      });
	  $('#pri').fadeOut('slow', function() {
      });
	  $('#merch').fadeOut('slow', function() {
      });
	  $('#directionsto').fadeOut('slow', function() {
      });
	  $('#history').fadeOut('slow', function() {
      });
	  $('#sleep').fadeOut('slow', function() {
      });
	  $('#contactus').fadeIn('slow', function() {
      });
});








	  
	  
	  
	  
	  $( ".opendirec" ).click(function(){
checkopen();
document.getElementById('gmap').src = document.getElementById('gmap').src;
$('#register').fadeOut('slow', function() {
      });
	  $('#about').fadeOut('slow', function() {
      });
$('#schedule').fadeOut('slow', function() {
      });
	  $('#sponsors').fadeOut('slow', function() {
      });
	  $('#pri').fadeOut('slow', function() {
      });
	  $('#merch').fadeOut('slow', function() {
      });
	  $('#contactus').fadeOut('slow', function() {
      });
	  $('#history').fadeOut('slow', function() {
      });
	  $('#sleep').fadeOut('slow', function() {
      });
	  $('#directionsto').fadeIn('slow', function() {
      });
	  
});
	  
	  
	  
	  
	  
	  $( ".openhist" ).click(function(){
checkopen();
$('#register').fadeOut('slow', function() {
      });
	  $('#about').fadeOut('slow', function() {
      });
$('#schedule').fadeOut('slow', function() {
      });
	  $('#sponsors').fadeOut('slow', function() {
      });
	  $('#pri').fadeOut('slow', function() {
      });
	  $('#merch').fadeOut('slow', function() {
      });
	  $('#contactus').fadeOut('slow', function() {
      });
	  $('#directionsto').fadeOut('slow', function() {
      });
	  $('#sleep').fadeOut('slow', function() {
      });
	  $('#history').fadeIn('slow', function() {
      });
	  
	  
});
	  
	  
	  
	  
	  
	  $( ".opensleep" ).click(function(){
checkopen();
$('#register').fadeOut('slow', function() {
      });
	  $('#about').fadeOut('slow', function() {
      });
$('#schedule').fadeOut('slow', function() {
      });
	  $('#sponsors').fadeOut('slow', function() {
      });
	  $('#pri').fadeOut('slow', function() {
      });
	  $('#merch').fadeOut('slow', function() {
      });
	  $('#contactus').fadeOut('slow', function() {
      });
	  $('#directionsto').fadeOut('slow', function() {
      });
	  $('#history').fadeOut('slow', function() {
      });
	  $('#sleep').fadeIn('slow', function() {
      });  
	  
});
	  

	  
});



