var universalAnalytics={dimensionForVersion:void 0,version:void 0,appName:void 0,dimensionForAdditionalLabel:void 0,uaIDs:[],multiua:function(){var a=Array.prototype.slice.call(arguments);for(i=0,l=universalAnalytics.uaIDs.length;l>i;i++){var b=a.slice();b[0]="additional"+i.toString()+"."+b[0],ua.apply(null,b)}},init:function(a,b,c,d,e,f,g,h,j){for(universalAnalytics.platform=c,universalAnalytics.startDate=d,universalAnalytics.dimensionForAdditionalLabel=h,universalAnalytics.dimensionForVersion=j,universalAnalytics.version=e,universalAnalytics.appName=g,universalAnalytics.uaIDs=a.slice(),function(a,b,c,d,e,f,g){a.GoogleAnalyticsObject=e,a[e]=a[e]||function(){(a[e].q=a[e].q||[]).push(arguments)},a[e].l=1*new Date,f=b.createElement(c),g=b.getElementsByTagName(c)[0],f.async=1,f.src=d,g.parentNode.insertBefore(f,g)}(window,document,"script","//www.google-analytics.com/analytics.js","ua"),i=0,l=universalAnalytics.uaIDs.length;l>i;i++)ua("create",universalAnalytics.uaIDs[i],b,{name:"additional"+i.toString()});universalAnalytics.multiua("require","displayfeatures"),f===!0&&universalAnalytics.multiua("set","anonymizeIp",!0),void 0!=universalAnalytics.dimensionForVersion&&universalAnalytics.multiua("set",universalAnalytics.dimensionForVersion,"Version"),void 0!=universalAnalytics.dimensionForAdditionalLabel&&universalAnalytics.multiua("set",universalAnalytics.dimensionForAdditionalLabel,"Additional Label"),universalAnalytics.startLoading(),universalAnalytics.multiua("require","ecommerce"),universalAnalytics.multiua("require","ec")},getPlatform:function(){return universalAnalytics.platform},path:void 0,getPath:function(){if(void 0===universalAnalytics.path){if(universalAnalytics.path=window.location.pathname,"basic"===universalAnalytics.platform){var a=new RegExp("files/assets/basic-html/page.*html");universalAnalytics.path=universalAnalytics.path.replace(a,"")}universalAnalytics.path.length>0&&"/"!=universalAnalytics.path.charAt(0)&&(universalAnalytics.path="/"+universalAnalytics.path);var b=universalAnalytics.path.indexOf("index.html");-1!==b&&b+10===universalAnalytics.path.length&&(universalAnalytics.path=universalAnalytics.path.slice(0,b));var b=universalAnalytics.path.indexOf("index.htm");-1!==b&&b+9===universalAnalytics.path.length&&(universalAnalytics.path=universalAnalytics.path.slice(0,b))}return universalAnalytics.path},transactionID:void 0,deteleTransactionID:function(){delete universalAnalytics.transactionID},getTransactionID:function(){return"undefined"==typeof universalAnalytics.transactionID&&(universalAnalytics.transactionID=(new Date).getTime().toString(36),"undefined"!=typeof universalAnalytics.startDate&&(universalAnalytics.transactionID+=universalAnalytics.startDate.toString(36)),"undefined"!=typeof universalAnalytics.openedDate&&(universalAnalytics.transactionID+=universalAnalytics.openedDate.toString(36))),universalAnalytics.transactionID},setCurrency:function(a){universalAnalytics.currency=a,universalAnalytics.multiua("set","&cu",a)},setShopName:function(a){universalAnalytics.shopName=a},addImpression:function(a,b){universalAnalytics.multiua("ec:addImpression",{id:b,name:a})},addTransaction:function(a){universalAnalytics.multiua("ecommerce:addTransaction",{id:universalAnalytics.getTransactionID(),affiliation:universalAnalytics.shopName,revenue:a,currency:universalAnalytics.currency})},addItem:function(a,b,c,d){universalAnalytics.multiua("ecommerce:addItem",{id:universalAnalytics.getTransactionID(),name:a,sku:b,price:c,quantity:d}),universalAnalytics.multiua("ec:addProduct",{id:b,name:a})},purchase:function(a){universalAnalytics.multiua("ecommerce:send"),universalAnalytics.multiua("ec:setAction","purchase",{id:universalAnalytics.getTransactionID(),revenue:a}),universalAnalytics.deteleTransactionID()},shareByFacebook:function(a){ua&&universalAnalytics.multiua("send","social","Facebook","Share",a)},shareByGooglePlus:function(a){ua&&universalAnalytics.multiua("send","social","Google+","Share",a)},shareByLinkedin:function(a){ua&&universalAnalytics.multiua("send","social","LinkedIn","Share",a)},shareByTumblr:function(a){ua&&universalAnalytics.multiua("send","social","Tumblr","Share",a)},shareByVK:function(a){ua&&universalAnalytics.multiua("send","social","VK","Share",a)},shareByBlogger:function(a){ua&&universalAnalytics.multiua("send","social","Blogger","Share",a)},tweet:function(a){ua&&universalAnalytics.multiua("send","social","Twitter","Tweet",a)},shareByEmail:function(a){ua&&universalAnalytics.multiua("send","social","Email","Mail",a)},shareByMySpace:function(a){ua&&universalAnalytics.multiua("send","social","MySpace","Share",a)},dispatch:function(a,b,c,d,e){var f={};void 0!==c&&(f.eventLabel=c),void 0!==d&&(f.eventValue=d),void 0!==e&&void 0!=universalAnalytics.dimensionForAdditionalLabel&&(f[universalAnalytics.dimensionForAdditionalLabel]=e),void 0!=universalAnalytics.dimensionForVersion&&(f[universalAnalytics.dimensionForVersion]=universalAnalytics.version),f.page=universalAnalytics.getPath(),ua&&universalAnalytics.multiua("send","event",a,b,f)},zoomIn:function(a,b){universalAnalytics.dispatch("Zoom","Zoom In",a,b)},zoomOut:function(a,b){universalAnalytics.dispatch("Zoom","Zoom Out",a,b)},zoomBlock:function(a){universalAnalytics.dispatch("Zoom","Zoom Block",void 0,a)},openWindow:function(a,b){universalAnalytics.dispatch(a,"Open",b)},closeWindow:function(a,b){universalAnalytics.dispatch(a,"Close",b)},print:function(a,b){universalAnalytics.dispatch("Print","Print",a,b)},download:function(a,b){universalAnalytics.dispatch("Download","Download",a,void 0,b)},videoPlay:function(a,b){universalAnalytics.dispatch("Video","Play",a,b)},videoPause:function(a,b){universalAnalytics.dispatch("Video","Pause",a,b)},videoStop:function(a,b){universalAnalytics.dispatch("Video","Stop",a,b)},videoSeekTo:function(a,b){universalAnalytics.dispatch("Video","SeekTo",a,b)},fullscreenOn:function(a){universalAnalytics.dispatch("Fullscreen","On",a)},fullscreenOff:function(a){universalAnalytics.dispatch("Fullscreen","Off",a)},slideshowStart:function(){universalAnalytics.dispatch("Slideshow","Start")},slideshowStop:function(){universalAnalytics.dispatch("Slideshow","Stop")},soundOn:function(){universalAnalytics.dispatch("Sound","On")},soundOff:function(){universalAnalytics.dispatch("Sound","Off")},addBookmark:function(a,b){universalAnalytics.dispatch("Bookmarks","Add",a,b)},removeBookmark:function(a,b){universalAnalytics.dispatch("Bookmarks","Remove",a,b)},externalLink:function(a,b,c){universalAnalytics.dispatch("Link","External",a,b,c)},internalLink:function(a,b){universalAnalytics.dispatch("Link","Internal",a,b)},search:function(a){universalAnalytics.dispatch("Search","Search",a)},textSelect:function(a){universalAnalytics.dispatch("TextSelection","Select",a)},textCopy:function(a){universalAnalytics.dispatch("TextSelection","Copy",a)},startLoading:function(){universalAnalytics.dispatch("Loading","Start",universalAnalytics.getPlatform())},openedDate:void 0,publicationOpened:function(){universalAnalytics.openedDate=(new Date).getTime(),universalAnalytics.dispatch("Loading","Open",universalAnalytics.getPlatform(),universalAnalytics.openedDate-universalAnalytics.startDate),universalAnalytics.sendApplicationTiming(universalAnalytics.openedDate-universalAnalytics.startDate)},previousPage:void 0,previousPage2:void 0,pageView:function(a){var b=universalAnalytics.getPath();ua&&universalAnalytics.multiua("send","pageview",{page:b+"#"+a})},openInSlide:function(a,b){universalAnalytics.dispatch("Pages","OpenInSlide",a,b),universalAnalytics.previousPage!==b&&universalAnalytics.previousPage2!==b&&(universalAnalytics.pageView(b),b%2===0?universalAnalytics.previousPage=b:universalAnalytics.previousPage2=b)},openInSpread:function(a,b,c){universalAnalytics.dispatch("Pages","OpenInSpread",a,b),b!==universalAnalytics.previousPage&&b!==universalAnalytics.previousPage2&&universalAnalytics.pageView(b),c&&(universalAnalytics.dispatch("Pages","OpenInSpread",a,c),c!==universalAnalytics.previousPage&&c!==universalAnalytics.previousPage2&&universalAnalytics.pageView(c),universalAnalytics.previousPage2=c),universalAnalytics.previousPage=b},sendTiming:function(a,b,c){ua&&universalAnalytics.multiua("send","timing",universalAnalytics.getPlatform(),a,b,c)},sendApplicationTiming:function(a){universalAnalytics.sendTiming("Application Load",a)},sendPageTiming:function(a,b){universalAnalytics.sendTiming("Page Load",a,b)},sendSlideTiming:function(a,b){universalAnalytics.sendTiming("Slide Load",a,b)},sendThumbnailTiming:function(a,b){universalAnalytics.sendTiming("Thumbnail Load",a,b)},sendFatalError:function(a,b){ua&&universalAnalytics.multiua("send","exception",{exDescription:a,exFatal:!0,appName:universalAnalytics.appName,appVersion:universalAnalytics.version}),universalAnalytics.dispatch("Error","Fatal",a,b)},sendError:function(a,b){ua&&universalAnalytics.multiua("send","exception",{exDescription:a,exFatal:!1,appName:universalAnalytics.appName,appVersion:universalAnalytics.version}),universalAnalytics.dispatch("Error","Non Fatal",a,b)}};