var Utils=function(){var n=navigator.userAgent;return{MaintainAspectRatio:function(n){var t=$(n);t.each(function(){$(this).attr("data-aspectRatio",this.height/this.width).removeAttr("height").removeAttr("width")});$(window).resize(function(){t.each(function(){var n=$(this),t=n.parent().width();n.width(t).height(t*n.attr("data-aspectRatio"))})}).resize()},EqualiseHeights:function(n,t){var i=function(n){var t=0;n.each(function(){var i=$(this),n;i.css({height:""});n=i.outerHeight();n>t&&(t=n)});n.outerHeight(t)};typeof t=="undefined"?i($(n)):$(t).each(function(){i($(this).find(n))})},IsAndroidMobile:function(){return n.indexOf("Android")>-1&&n.indexOf("Mozilla/5.0")>-1&&n.indexOf("AppleWebKit")>-1},IsAndroidNativeBrowser:function(){var t=new RegExp(/AppleWebKit\/([\d.]+)/),r=t.exec(n),i=r===null?null:parseFloat(t.exec(n)[1]);return this.IsAndroidMobile()&&i!==null&&i<537},MinWidth:function(n){return Modernizr.mq!==undefined?Modernizr.mq("only screen and (min-width: "+n+")")?!0:!1:'"Media Queries" is not an included detect in your Modernizr build.'},MaxWidth:function(n){return Modernizr.mq!==undefined?Modernizr.mq("only screen and (max-width: "+n+")")?!0:!1:'"Media Queries" is not an included detect in your Modernizr build.'},DeviceOrientation:function(){return Modernizr.mq!==undefined?Modernizr.mq("only screen and (orientation:portrait)")?"portrait":Modernizr.mq("only screen and (orientation:landscape)")?"landscape":null:'"Media Queries" is not an included detect in your Modernizr build.'},DetectFirefox:function(){Modernizr.addTest("firefox",function(){return!!navigator.userAgent.match(/firefox/i)})}(),AddUserAgentAsClass:function(){var n=document.documentElement;n.setAttribute("data-useragent",navigator.userAgent)},AddIndexOfSupport:function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){for(var i=t||0,r=this.length;i<r;i++)if(this[i]===n)return i;return-1})}(),GetUrlParams:function(n){var u={},f=document.createElement("a"),e,i,t,r;for(f.href=n,e=f.search.substring(1),i=e.split("&"),t=0;t<i.length;t++)r=i[t].split("="),u[r[0]]=decodeURIComponent(r[1]);return u}}}()