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 a=Array.prototype.slice.call(arguments);for(i=0,l=universalAnalytics.uaIDs.length;i0&&"/"!=universalAnalytics.path.charAt(0)&&(universalAnalytics.path="/"+universalAnalytics.path);var b=universalAnalytics.path.indexOf("index.html");b!==-1&&b+10===universalAnalytics.path.length&&(universalAnalytics.path=universalAnalytics.path.slice(0,b));var b=universalAnalytics.path.indexOf("index.htm");b!==-1&&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),universalAnalytics.nonInteraction&&(f.nonInteraction=!0),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)},fbDispatch:function(a,b,c,d,e){var f={};void 0!==c&&(f.eventLabel=c),void 0!==d&&(f.eventValue=d),universalAnalytics.nonInteraction&&(f.nonInteraction=!0),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.fbua("send","event",a,b,f)},zoomIn:function(a,b){universalAnalytics.dispatch("Zoom","Zoom In",b,void 0,a)},zoomOut:function(a,b){universalAnalytics.dispatch("Zoom","Zoom Out",b,void 0,a)},zoomBlock:function(a){universalAnalytics.dispatch("Zoom","Zoom Block",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",b,void 0,a)},clickImage:function(a){universalAnalytics.dispatch("Image","Click",a)},imageLoaded:function(a){universalAnalytics.dispatch("Image","Loaded",a)},download:function(a,b){universalAnalytics.dispatch("Download","Download",a,void 0,b)},videoPlay:function(a,b){universalAnalytics.dispatch("Video","Play",a,void 0,b)},videoPause:function(a,b){universalAnalytics.dispatch("Video","Pause",a,void 0,b)},videoStop:function(a,b){universalAnalytics.dispatch("Video","Stop",a,void 0,b)},videoSeekTo:function(a,b){universalAnalytics.dispatch("Video","SeekTo",a,void 0,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",b,void 0,a)},removeBookmark:function(a,b){universalAnalytics.dispatch("Bookmarks","Remove",b,void 0,a)},productLink:function(a,b,c){var d="undefined"==typeof b?c:b;universalAnalytics.dispatch("Link","Product",a,void 0,d)},externalLink:function(a,b,c){universalAnalytics.dispatch("Link","External",a,void 0,b)},internalLink:function(a,b){universalAnalytics.dispatch("Link","Internal",a,void 0,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(),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(a){var b=universalAnalytics.getPath(),c="undefined"!=typeof FBO?a:"#"+a;ua&&universalAnalytics.multiua("send","pageview",{page:b+c})},flipToLastPage:function(a){universalAnalytics.fbDispatch("Pages","Last Page",a)},flipToFirstPage:function(a){universalAnalytics.fbDispatch("Pages","First Page",a)},openInSlide:function(a,b){"Start Book"!==a&&universalAnalytics.dispatch("Pages","OpenInSlide",b,void 0,a),universalAnalytics.previousPage!==b&&universalAnalytics.previousPage2!==b&&(universalAnalytics.pageView(b),b%2===0?universalAnalytics.previousPage=b:universalAnalytics.previousPage2=b)},openInSpread:function(a,b,c){"Start Book"!==a&&universalAnalytics.dispatch("Pages","OpenInSpread",b,void 0,a),b!==universalAnalytics.previousPage&&b!==universalAnalytics.previousPage2&&universalAnalytics.pageView(b),c&&(universalAnalytics.dispatch("Pages","OpenInSpread",c,void 0,a),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)},sendFBTiming:function(a,b,c){ua&&universalAnalytics.fbua("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,void 0,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,void 0,b)}};