/*
    Custom Fancybox Popup functions
*/
    $(document).ready(function() 
	{
		$("a#page_popup").fancybox({
			'padding'                   : 0,
			'overlayOpacity'            : 0.4,
			'width'                     : 800,
			'height'                    : '75%',
			'transitionIn'              : 'fade',
			'transitionOut'             : 'fade',
			'type'				         : 'iframe'
		});

		$("a#help_popup").fancybox({
			'padding'                   : 0,
			'overlayOpacity'            : 0.4,
			'width'                     : 800,
			'height'                    : 400,
			'transitionIn'              : 'fade',
			'transitionOut'             : 'fade',
			'type'				         : 'iframe'
		});
		
		$("a#image_popup").fancybox({
			'autoScale'			     : true,
			'overlayOpacity'            : 0.4,
			'transitionIn'              : 'fade',
			'transitionOut'             : 'fade',
			'titlePosition'             : 'none'
		});

		$("a#contact_popup").fancybox({
			'padding'                   : 0,
			'overlayOpacity'            : 0.4,
			'width'                     : 750,
			'height'                    : 400,
			'transitionIn'              : 'fade',
			'transitionOut'             : 'fade',
			'type'				         : 'iframe'
		});
		
	  
	  	$("a.gallery").fancybox({
     		'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'inside',
			'margin'            : 60,
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over"><h5>Image &nbsp ' + (currentIndex + 1) + ' &nbsp of &nbsp ' + currentArray.length + (title.length ? '</h5> &nbsp; - ' + title : '') + '</span>';}
		});

		$("a#calendar").fancybox({
			'padding'			: 0,
			'width'				: 320,
			'height'			: 220,
			'autoScale'			: false,
			'transitionIn'      : 'fade',
			'transitionOut'     : 'none',
			'modal'             : true,
			'type'				: 'iframe'
		});
	});


/*
    This is jQuery content for slide options
*/
      $(document).ready(function() {
         $('div.view').hide();
         $('.slide h5').click(function()
	     {
		    $(this).next('div.view').slideToggle(400);
		    $(this).toggleClass("active");
            return false;
         });
      });



	  
