var universalAnalytics={dimensionForVersion:void 0,version:void 0,appName:void 0,dimensionForAdditionalLabel:void 0,uaIDs:[],nonInteraction:!0,multiua:function(){if("undefined"==typeof FBO||!FBO.Config.DisableViewTracking){var n=Array.prototype.slice.call(arguments);for(i=0,l=universalAnalytics.uaIDs.length;i0&&"/"!=universalAnalytics.path.charAt(0)&&(universalAnalytics.path="/"+universalAnalytics.path);var n=universalAnalytics.path.indexOf("index.html");n!==-1&&n+10===universalAnalytics.path.length&&(universalAnalytics.path=universalAnalytics.path.slice(0,n));var n=universalAnalytics.path.indexOf("index.htm");n!==-1&&n+9===universalAnalytics.path.length&&(universalAnalytics.path=universalAnalytics.path.slice(0,n))}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(i){universalAnalytics.currency=i,universalAnalytics.multiua("set","&cu",i)},setShopName:function(i){universalAnalytics.shopName=i},addImpression:function(i,n){universalAnalytics.multiua("ec:addImpression",{id:n,name:i})},addTransaction:function(i){universalAnalytics.multiua("ecommerce:addTransaction",{id:universalAnalytics.getTransactionID(),affiliation:universalAnalytics.shopName,revenue:i,currency:universalAnalytics.currency})},addItem:function(i,n,a,e){universalAnalytics.multiua("ecommerce:addItem",{id:universalAnalytics.getTransactionID(),name:i,sku:n,price:a,quantity:e}),universalAnalytics.multiua("ec:addProduct",{id:n,name:i})},purchase:function(i){universalAnalytics.multiua("ecommerce:send"),universalAnalytics.multiua("ec:setAction","purchase",{id:universalAnalytics.getTransactionID(),revenue:i}),universalAnalytics.deteleTransactionID()},shareByFacebook:function(i){ua&&universalAnalytics.multiua("send","social","Facebook","Share",i)},shareByGooglePlus:function(i){ua&&universalAnalytics.multiua("send","social","Google+","Share",i)},shareByLinkedin:function(i){ua&&universalAnalytics.multiua("send","social","LinkedIn","Share",i)},shareByTumblr:function(i){ua&&universalAnalytics.multiua("send","social","Tumblr","Share",i)},shareByVK:function(i){ua&&universalAnalytics.multiua("send","social","VK","Share",i)},shareByBlogger:function(i){ua&&universalAnalytics.multiua("send","social","Blogger","Share",i)},tweet:function(i){ua&&universalAnalytics.multiua("send","social","Twitter","Tweet",i)},shareByEmail:function(i){ua&&universalAnalytics.multiua("send","social","Email","Mail",i)},shareByMySpace:function(i){ua&&universalAnalytics.multiua("send","social","MySpace","Share",i)},dispatch:function(i,n,a,e,t){var s={};void 0!==a&&(s.eventLabel=a),void 0!==e&&(s.eventValue=e),universalAnalytics.nonInteraction&&(s.nonInteraction=!0),void 0!==t&&void 0!=universalAnalytics.dimensionForAdditionalLabel&&(s[universalAnalytics.dimensionForAdditionalLabel]=t),void 0!=universalAnalytics.dimensionForVersion&&(s[universalAnalytics.dimensionForVersion]=universalAnalytics.version),s.page=universalAnalytics.getPath(),ua&&universalAnalytics.multiua("send","event",i,n,s)},fbDispatch:function(i,n,a,e,t){var s={};void 0!==a&&(s.eventLabel=a),void 0!==e&&(s.eventValue=e),universalAnalytics.nonInteraction&&(s.nonInteraction=!0),void 0!==t&&void 0!=universalAnalytics.dimensionForAdditionalLabel&&(s[universalAnalytics.dimensionForAdditionalLabel]=t),void 0!=universalAnalytics.dimensionForVersion&&(s[universalAnalytics.dimensionForVersion]=universalAnalytics.version),s.page=universalAnalytics.getPath(),ua&&universalAnalytics.fbua("send","event",i,n,s)},zoomIn:function(i,n){universalAnalytics.dispatch("Zoom","Zoom In",n,void 0,i)},zoomOut:function(i,n){universalAnalytics.dispatch("Zoom","Zoom Out",n,void 0,i)},zoomBlock:function(i){universalAnalytics.dispatch("Zoom","Zoom Block",i)},openWindow:function(i,n){universalAnalytics.dispatch(i,"Open",n)},closeWindow:function(i,n){universalAnalytics.dispatch(i,"Close",n)},print:function(i,n){universalAnalytics.dispatch("Print","Print",n,void 0,i)},clickImage:function(i){universalAnalytics.dispatch("Image","Click",i)},imageLoaded:function(i){universalAnalytics.dispatch("Image","Loaded",i)},download:function(i,n){universalAnalytics.dispatch("Download","Download",i,void 0,n)},videoPlay:function(i,n){universalAnalytics.dispatch("Video","Play",i,void 0,n)},videoPause:function(i,n){universalAnalytics.dispatch("Video","Pause",i,void 0,n)},videoStop:function(i,n){universalAnalytics.dispatch("Video","Stop",i,void 0,n)},videoSeekTo:function(i,n){universalAnalytics.dispatch("Video","SeekTo",i,void 0,n)},fullscreenOn:function(i){universalAnalytics.dispatch("Fullscreen","On",i)},fullscreenOff:function(i){universalAnalytics.dispatch("Fullscreen","Off",i)},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(i,n){universalAnalytics.dispatch("Bookmarks","Add",n,void 0,i)},removeBookmark:function(i,n){universalAnalytics.dispatch("Bookmarks","Remove",n,void 0,i)},productLink:function(i,n,a){var e="undefined"==typeof n?a:n;universalAnalytics.dispatch("Link","Product",i,void 0,e)},externalLink:function(i,n,a){universalAnalytics.dispatch("Link","External",i,void 0,n)},internalLink:function(i,n){universalAnalytics.dispatch("Link","Internal",i,void 0,n)},search:function(i){universalAnalytics.dispatch("Search","Search",i)},textSelect:function(i){universalAnalytics.dispatch("TextSelection","Select",i)},textCopy:function(i){universalAnalytics.dispatch("TextSelection","Copy",i)},startLoading:function(){universalAnalytics.dispatch("Loading","Start",universalAnalytics.getPlatform())},openedDate:void 0,publicationOpened:function(){universalAnalytics.openedDate=(new Date).getTime(),universalAnalytics.dispatch("Loading","Open",universalAnalytics.getPlatform(),void 0,universalAnalytics.openedDate-universalAnalytics.startDate),universalAnalytics.sendApplicationTiming(universalAnalytics.openedDate-universalAnalytics.startDate),universalAnalytics.sendFBTiming("Application Load 2",universalAnalytics.openedDate-universalAnalytics.startDate),universalAnalytics.nonInteraction=!1},preloaderLoaded:function(){universalAnalytics.preloaderDate=(new Date).getTime(),universalAnalytics.sendFBTiming("Preloader Load",universalAnalytics.preloaderDate-universalAnalytics.startDate)},preloaderDate:void 0,startFlippingBookLoad:function(){universalAnalytics.startFlippingBookDate=(new Date).getTime()},startFlippingBookDate:void 0,endFlippingBookLoad:function(){universalAnalytics.endFlippingBookDate=(new Date).getTime(),universalAnalytics.sendFBTiming("Style Load",universalAnalytics.endFlippingBookDate-universalAnalytics.startFlippingBookDate)},endFlippingBookDate:void 0,startStyleLoad:function(){universalAnalytics.startStyleDate=(new Date).getTime()},startStyleDate:void 0,endStyleLoad:function(){universalAnalytics.endStyleDate=(new Date).getTime(),universalAnalytics.sendFBTiming("Style Load",universalAnalytics.endStyleDate-universalAnalytics.startStyleDate)},endStyleDate:void 0,startPropertyLoad:function(){universalAnalytics.startPropertyDate=(new Date).getTime()},startPropertyDate:void 0,endPropertyLoad:function(){universalAnalytics.endPropertyDate=(new Date).getTime(),universalAnalytics.sendFBTiming("Property Load",universalAnalytics.endPropertyDate-universalAnalytics.startPropertyDate)},endPropertyDate:void 0,startStyleXmlLoad:function(){universalAnalytics.startStyleXmlDate=(new Date).getTime()},startStyleXmlDate:void 0,endStyleXmlLoad:function(){universalAnalytics.endStyleXmlDate=(new Date).getTime(),universalAnalytics.sendFBTiming("Style xml Load",universalAnalytics.endStyleXmlDate-universalAnalytics.startStyleXmlDate)},endStyleXmlDate:void 0,startFontLoad:function(){universalAnalytics.startFontDate=(new Date).getTime()},startFontDate:void 0,endFontLoad:function(){universalAnalytics.endFontDate=(new Date).getTime(),universalAnalytics.sendFBTiming("Font Load",universalAnalytics.endFontDate-universalAnalytics.startFontDate)},endFontDate:void 0,previousPage:void 0,previousPage2:void 0,pageView:function(i){var n=universalAnalytics.getPath(),a="undefined"!=typeof FBO?i:"#"+i;ua&&universalAnalytics.multiua("send","pageview",{page:n+a})},flipToLastPage:function(i){universalAnalytics.fbDispatch("Pages","Last Page",i)},flipToFirstPage:function(i){universalAnalytics.fbDispatch("Pages","First Page",i)},openInSlide:function(i,n){"Start Book"!==i&&universalAnalytics.dispatch("Pages","OpenInSlide",n,void 0,i),universalAnalytics.previousPage!==n&&universalAnalytics.previousPage2!==n&&(universalAnalytics.pageView(n),n%2===0?universalAnalytics.previousPage=n:universalAnalytics.previousPage2=n)},openInSpread:function(i,n,a){"Start Book"!==i&&universalAnalytics.dispatch("Pages","OpenInSpread",n,void 0,i),n!==universalAnalytics.previousPage&&n!==universalAnalytics.previousPage2&&universalAnalytics.pageView(n),a&&(universalAnalytics.dispatch("Pages","OpenInSpread",a,void 0,i),a!==universalAnalytics.previousPage&&a!==universalAnalytics.previousPage2&&universalAnalytics.pageView(a),universalAnalytics.previousPage2=a),universalAnalytics.previousPage=n},sendTiming:function(i,n,a){ua&&universalAnalytics.multiua("send","timing",universalAnalytics.getPlatform(),i,n,a)},sendFBTiming:function(i,n,a){ua&&universalAnalytics.fbua("send","timing",universalAnalytics.getPlatform(),i,n,a)},sendApplicationTiming:function(i){universalAnalytics.sendTiming("Application Load",i)},sendPageTiming:function(i,n){universalAnalytics.sendTiming("Page Load",i,n)},sendSlideTiming:function(i,n){universalAnalytics.sendTiming("Slide Load",i,n)},sendThumbnailTiming:function(i,n){universalAnalytics.sendTiming("Thumbnail Load",i,n)},sendFatalError:function(i,n){ua&&universalAnalytics.multiua("send","exception",{exDescription:i,exFatal:!0,appName:universalAnalytics.appName,appVersion:universalAnalytics.version}),universalAnalytics.dispatch("Error","Fatal",i,void 0,n)},sendError:function(i,n){ua&&universalAnalytics.multiua("send","exception",{exDescription:i,exFatal:!1,appName:universalAnalytics.appName,appVersion:universalAnalytics.version}),universalAnalytics.dispatch("Error","Non Fatal",i,void 0,n)}};