/**
 * Global JS file
 * @author Richard Hallows
 */

/**
 * Javascript CSS namespace
 */
$('html').addClass('js');

/**
 * Outside of jQuery on Dom ready
 */
	/**
	 * SWF
	 */
		
	/**
	 * SIFR
	 */

/**
 * jQuery on Dom ready functionality
 */
jQuery(function($) {	

	// init
	
		// debug
		$.gridOverlay('/assets/images/resources/', {
			imgExt: "jpg",
			gridPos: "left top"
		});
		
		// shadowbox
		Shadowbox.init({
			overlayOpacity: 0.8,
			continuous: true
		});
		
	// events
	
		// print
		$('.print').click(function() {
			window.print();
		});
		
		$('#privacy-policy').click(function(event) {
			
			event.preventDefault();

			Shadowbox.open({
		        content: "/page/privacy-policy/",
		        player: "iframe",
				width: 560
		    });
		});
});