if (typeof LUAV == "undefined" || !LUAV) {
	/**
	 * @namespace Namespace for Leptron scripting
	 */
	var LUAV = {};
};

/**
 * The LUAV page class contains various utility methods
 * @class LUAV.utils
 * @static
 */
LUAV.utils = LUAV.utils || /** @lends LUAV.utils */ {
	/**
	 * Initialize the Event binding for Zoom Boxes
	 * @function initZoomBoxes
	 * @returns void
	 * @requires jquery-1.4.2.js
	 */
	initZoomBoxes : function initZoomBoxes() {
		// Zoom box for Flash Videos
		jQuery("a.zoom_video").click(function() {
			jQuery.fancybox({
				'padding'		: 0,
				'autoScale'		: false,
				'transitionIn'	: 'none',
				'transitionOut'	: 'none',
				'title'			: this.title,
				'width'			: 680,
				'height'		: 495,
				'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
				'type'			: 'swf',
				'swf'			: {
					'wmode'				: 'transparent',
					'allowfullscreen'	: 'true'
				}
			});
	
			return false;
		});
		// Zoom boz for Diagrams
		jQuery(".zoom_photo").fancybox({
			'width'				: 930,
			'height'			: 649,
			'autoScale'			: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'				: 'iframe'
		});
	}
};

