/**
 * Shared variables
 */
var ua                  = navigator.userAgent.toLowerCase(),
	platform            = navigator.platform.toLowerCase(),
	$window             = jQuery(window),
	$document           = jQuery(document),
	$html               = jQuery('html'),
	$body               = jQuery('body'),

	android_ancient     = (ua.indexOf('mozilla/5.0') !== -1 && ua.indexOf('android') !== -1 && ua.indexOf('applewebKit') !== -1) && ua.indexOf('chrome') === -1,
	apple               = ua.match(/(iPad|iPhone|iPod|Macintosh)/i),
	webkit              = ua.indexOf('webkit') != -1,

	isiPhone            = false,
	isiPod              = false,
	isAndroidPhone      = false,
	android             = false,
	iOS                 = false,
	isIE                = false,
	ieMobile            = false,
	isSafari            = false,
	isMac               = false,
	isWindows           = false,
	isiele10            = false,
	isiPad              = false,

	firefox             = ua.indexOf('gecko') != -1,
	safari              = ua.indexOf('safari') != -1 && ua.indexOf('chrome') == -1,

	is_small            = jQuery('.js-nav-trigger').is(':visible'),

	windowHeight        = $window.height(),
	windowWidth         = $window.width(),
	documentHeight      = $document.height(),
	myOrientation       = windowWidth > windowHeight ? 'portrait' : 'landscape',

	filmWidth,
	contentWidth,
	sidebarWidth,

	latestKnownScrollY  = window.scrollY,
	latestKnownScrollX  = window.scrollX,

	latestKnownMouseX   = 0,
	latestKnownMouseY   = 0,

	latestDeviceAlpha   = 0,
	latestDeviceBeta    = 0,
	latestDeviceGamma   = 0,

	ticking             = false,
	horToVertScroll     = false,

	globalDebug         = false;


(function($, undefined) {
	"use strict";
