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;i0&&"/"!=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)}};