/ * !
TimelineJS
Designed and built by Zach Wise at VéritéCo
This program is free software : you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
http : //www.gnu.org/licenses/
* //***********************************************
Begin VMM . js
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //* Verite
* Verite JS Master
* Version : 0.6
* Date : April 26 , 2012
* Copyright 2012 Verite unless part of Verite Timeline ,
* if part of Timeline then it inherits Timeline ' s license .
* Designed and built by Zach Wise digitalartwork . net
* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - * //* Simple JavaScript Inheritance
* By John Resig http : //ejohn.org/
* MIT Licensed .
=== === === === === === === === === === === === === === === === == * / f u n c t i o n t r a c e ( a ) { V M M . d e b u g & & ( w i n d o w . c o n s o l e ? c o n s o l e . l o g ( a ) : t y p e o f j s T r a c e ! = " u n d e f i n e d " & & j s T r a c e . s e n d ( a ) ) } f u n c t i o n o n Y o u T u b e P l a y e r A P I R e a d y ( ) { t r a c e ( " G L O B A L Y O U T U B E A P I C A L L E D " ) ; V M M . E x t e r n a l A P I . y o u t u b e . o n A P I R e a d y ( ) } ( f u n c t i o n ( ) { v a r a = ! 1 , b = / x y z / . t e s t ( f u n c t i o n ( ) { x y z } ) ? / \ b _ s u p e r \ b / : / . * / ; t h i s . C l a s s = f u n c t i o n ( ) { } ; C l a s s . e x t e n d = f u n c t i o n ( c ) { f u n c t i o n g ( ) { ! a & & t h i s . i n i t & & t h i s . i n i t . a p p l y ( t h i s , a r g u m e n t s ) } v a r d = t h i s . p r o t o t y p e ; a = ! 0 ; v a r e = n e w t h i s ; a = ! 1 ; f o r ( v a r f i n c ) e [ f ] = t y p e o f c [ f ] = = " f u n c t i o n " & & t y p e o f d [ f ] = = " f u n c t i o n " & & b . t e s t ( c [ f ] ) ? f u n c t i o n ( a , b ) { r e t u r n f u n c t i o n ( ) { v a r c = t h i s . _ s u p e r ; t h i s . _ s u p e r = d [ a ] ; v a r e = b . a p p l y ( t h i s , a r g u m e n t s ) ; t h i s . _ s u p e r = c ; r e t u r n e } } ( f , c [ f ] ) : c [ f ] ; g . p r o t o t y p e = e ; g . p r o t o t y p e . c o n s t r u c t o r = g ; g . e x t e n d = a r g u m e n t s . c a l l e e ; r e t u r n g } } ) ( ) ; v a r g l o b a l = f u n c t i o n ( ) { r e t u r n t h i s | | ( 1 , e v a l ) ( " t h i s " ) } ( ) ; i f ( t y p e o f V M M = = " u n d e f i n e d " ) { v a r V M M = C l a s s . e x t e n d ( { } ) ; V M M . d e b u g = ! 0 ; V M M . m a s t e r _ c o n f i g = { i n i t : f u n c t i o n ( ) { r e t u r n t h i s } , s i z e s : { a p i : { w i d t h : 0 , h e i g h t : 0 } } , v p : " P e l l e n t e s q u e n i b h f e l i s , e l e i f e n d i d , c o m m o d o i n , i n t e r d u m v i t a e , l e o " , a p i _ k e y s _ m a s t e r : { f l i c k r : " R A I v x H Y 4 h E / E l m 5 c i e h 4 X 5 p t M y D p j 7 M Y I x z i G x i 0 W G C c y 1 s + y r 7 r K Q = = " , g o o g l e : " j w N G n Y w 4 h E 9 l m A e z 4 l l 0 Q D + j o 6 S K B J F k n k o p L S 4 F r S A u G f I w y j 5 7 A u s u R 0 s 8 d A o = " , t w i t t e r : " " } , f l i c k r : { a c t i v e : ! 1 , a r r a y : [ ] , a p i _ l o a d e d : ! 1 , q u e : [ ] } , y o u t u b e : { a c t i v e : ! 1 , a r r a y : [ ] , a p i _ l o a d e d : ! 1 , q u e : [ ] } , v i m e o : { a c t i v e : ! 1 , a r r a y : [ ] , a p i _ l o a d e d : ! 1 , q u e : [ ] } , g o o g l e m a p s : { a c t i v e : ! 1 , m a p _ a c t i v e : ! 1 , p l a c e s _ a c t i v e : ! 1 , a r r a y : [ ] , a p i _ l o a d e d : ! 1 , q u e : [ ] } , g o o g l e d o c s : { a c t i v e : ! 1 , a r r a y : [ ] , a p i _ l o a d e d : ! 1 , q u e : [ ] } , w i k i p e d i a : { a c t i v e : ! 1 , a r r a y : [ ] , a p i _ l o a d e d : ! 1 , q u e : [ ] } , s o u n d c l o u d : { a c t i v e : ! 1 , a r r a y : [ ] , a p i _ l o a d e d : ! 1 , q u e : [ ] } } . i n i t ( ) ; V M M . c r e a t e E l e m e n t = f u n c t i o n ( a , b , c , d , e ) { v a r f = " " ; i f ( a ! = n u l l & & a ! = " " ) { f + = " < " + a ; c ! = n u l l & & c ! = " " & & ( f + = " c l a s s = ' " + c + " ' " ) ; d ! = n u l l & & d ! = " " & & ( f + = " " + d ) ; e ! = n u l l & & e ! = " " & & ( f + = " s t y l e = ' " + e + " ' " ) ; f + = " > " ; b ! = n u l l & & b ! = " " & & ( f + = b ) ; f = f + " < / " + a + " > " } r e t u r n f } ; V M M . c r e a t e M e d i a E l e m e n t = f u n c t i o n ( a , b , c ) { v a r d = " " , e = ! 1 ; d + = " < d i v c l a s s = ' m e d i a ' > " ; i f ( a ! = n u l l & & a ! = " " ) { v a l i d = ! 0 ; d + = " < i m g s r c = ' " + a + " ' > " ; c ! = n u l l & & c ! = " " & & ( d + = V M M . c r e a t e E l e m e n t ( " d i v " , c , " c r e d i t " ) ) ; b ! = n u l l & & b ! = " " & & ( d + = V M M . c r e a t e E l e m e n t ( " d i v " , b , " c a p t i o n " ) ) } d + = " < / d i v > " ; r e t u r n d } ; V M M . h i d e U r l B a r = f u n c t i o n ( ) { v a r a = w i n d o w , b = a . d o c u m e n t ; i f ( ! l o c a t i o n . h a s h | | ! a . a d d E v e n t L i s t e n e r ) { w i n d o w . s c r o l l T o ( 0 , 1 ) ; v a r c = 1 , d = s e t I n t e r v a l ( f u n c t i o n ( ) { i f ( b . b o d y ) { c l e a r I n t e r v a l ( d ) ; c = " s c r o l l T o p " i n b . b o d y ? b . b o d y . s c r o l l T o p : 1 ; a . s c r o l l T o ( 0 , c = = = 1 ? 0 : 1 ) } } , 1 5 ) ; a . a d d E v e n t L i s t e n e r ( " l o a d " , f u n c t i o n ( ) { s e t T i m e o u t ( f u n c t i o n ( ) { a . s c r o l l T o ( 0 , c = = = 1 ? 0 : 1 ) } , 0 ) } , ! 1 ) } } } D a t e . p r o t o t y p e . g e t W e e k = f u n c t i o n ( ) { v a r a = n e w D a t e ( t h i s . g e t F u l l Y e a r ( ) , 0 , 1 ) ; r e t u r n M a t h . c e i l ( ( ( t h i s - a ) / 8 6 4 e 5 + a . g e t D a y ( ) + 1 ) / 7 ) } ; D a t e . p r o t o t y p e . g e t D a y O f Y e a r = f u n c t i o n ( ) { v a r a = n e w D a t e ( t h i s . g e t F u l l Y e a r ( ) , 0 , 1 ) ; r e t u r n M a t h . c e i l ( ( t h i s - a ) / 8 6 4 e 5 ) } ; v a r i s = { N u l l : f u n c t i o n ( a ) { r e t u r n a = = = n u l l } , U n d e f i n e d : f u n c t i o n ( a ) { r e t u r n a = = = u n d e f i n e d } , n t : f u n c t i o n ( a ) { r e t u r n a = = = n u l l | | a = = = u n d e f i n e d } , F u n c t i o n : f u n c t i o n ( a ) { r e t u r n t y p e o f a = = " f u n c t i o n " ? a . c o n s t r u c t o r . t o S t r i n g ( ) . m a t c h ( / F u n c t i o n / ) ! = = n u l l : ! 1 } , S t r i n g : f u n c t i o n ( a ) { r e t u r n t y p e o f a = = " s t r i n g " ? ! 0 : t y p e o f a = = " o b j e c t " ? a . c o n s t r u c t o r . t o S t r i n g ( ) . m a t c h ( / s t r i n g / i ) ! = = n u l l : ! 1 } , A r r a y : f u n c t i o n ( a ) { r e t u r n t y p e o f a = = " o b j e c t " ? a . c o n s t r u c t o r . t o S t r i n g ( ) . m a t c h ( / a r r a y / i ) ! = = n u l l | | a . l e n g t h ! = = u n d e f i n e d : ! 1 } , B o o l e a n : f u n c t i o n ( a ) { r e t u r n t y p e o f a = = " b o o l e a n " ? ! 0 : t y p e o f a = = " o b j e c t " ? a . c o n s t r u c t o r . t o S t r i n g ( ) . m a t c h ( / b o o l e a n / i ) ! = = n u l l : ! 1 } , D a t e : f u n c t i o n ( a ) { r e t u r n t y p e o f a = = " d a t e " ? ! 0 : t y p e o f a = = " o b j e c t " ? a . c o n s t r u c t o r . t o S t r i n g ( ) . m a t c h ( / d a t e / i ) ! = = n u l l : ! 1 } , H T M L : f u n c t i o n ( a ) { r e t u r n t y p e o f a = = " o b j e c t " ? a . c o n s t r u c t o r . t o S t r i n g ( ) . m a t c h ( / h t m l / i ) ! = = n u l l : ! 1 } , N u m b e r : f u n c t i o n ( a ) { r e t u r n t y p e o f a = = " n u m b e r " ? ! 0 : t y p e o f a = = " o b j e c t " ? a . c o n s t r u c t o r . t o S t r i n g ( ) . m a t c h ( / N u m b e r / ) ! = = n u l l : ! 1 } , O b j e c t : f u n c t i o n ( a ) { r e t u r n t y p e o f a = = " o b j e c t " ? a . c o n s t r u c t o r . t o S t r i n g ( ) . m a t c h ( / o b j e c t / i ) ! = = n u l l : ! 1 } , R e g E x p : f u n c t i o n ( a ) { r e t u r n t y p e o f a = = " f u n c t i o n " ? a . c o n s t r u c t o r . t o S t r i n g ( ) . m a t c h ( / r e g e x p / i ) ! = = n u l l : ! 1 } } , t y p e = { o f : f u n c t i o n ( a ) { f o r ( v a r b i n i s ) i f ( i s [ b ] ( a ) ) r e t u r n b . t o L o w e r C a s e ( ) } } ; i f ( t y p e o f V M M ! = " u n d e f i n e d " ) { V M M . a t t a c h E l e m e n t = f u n c t i o n ( a , b ) { t y p e o f j Q u e r y ! = " u n d e f i n e d " & & j Q u e r y ( a ) . h t m l ( b ) } ; V M M . a p p e n d E l e m e n t = f u n c t i o n ( a , b ) { t y p e o f j Q u e r y ! = " u n d e f i n e d " & & j Q u e r y ( a ) . a p p e n d ( b ) } ; V M M . g e
) } ) } , formatJSON : function ( a ) { var b = a . id _str , c = "<blockquote><p>" , d = VMM . Util . linkify _with _twitter ( a . text , "_blank" ) ; c += d ; c += "</p></blockquote>" ; c += "<div class='vcard author'>" ; c += "<a class='screen-name url' href='https://twitter.com/" + a . user . screen _name + "' data-screen-name='" + a . user . screen _name + "' target='_blank'>" ; c += "<span class='avatar'><img src=' " + a . user . profile _image _url + "' alt=''></span>" ; c += "<span class='fn'>" + a . user . name + "</span>" ; c += "<span class='nickname'>@" + a . user . screen _name + "<span class='thumbnail-inline'></span></span>" ; c += "</a>" ; c += "</div>" ; typeof a . entities . media != "undefined" && a . entities . media [ 0 ] . type == "photo" && ( c += "<img src=' " + a . entities . media [ 0 ] . media _url + "' alt=''>" ) ; VMM . attachElement ( "#twitter_" + b . toString ( ) , c ) } } , googlemaps : { get : function ( a , b ) { var c , d = VMM . Util . getUrlVars ( a ) , e ; VMM . master _config . Timeline . api _keys . google != "" ? e = VMM . master _config . Timeline . api _keys . google : e = Aes . Ctr . decrypt ( VMM . master _config . api _keys _master . google , VMM . master _config . vp , 256 ) ; var f = "http://maps.googleapis.com/maps/api/js?key=" + e + "&libraries=places&sensor=false&callback=VMM.ExternalAPI.googlemaps.onMapAPIReady" , g = { url : a , vars : d , id : b } ; if ( VMM . master _config . googlemaps . active ) VMM . master _config . googlemaps . que . push ( g ) ; else { VMM . master _config . googlemaps . que . push ( g ) ; VMM . master _config . googlemaps . api _loaded || VMM . LoadLib . js ( f , function ( ) { trace ( "Google Maps API Library Loaded" ) } ) } } , create : function ( a ) { function e ( a ) { if ( a in VMM . ExternalAPI . googlemaps . map _providers ) { b = VMM . ExternalAPI . googlemaps . map _attribution [ VMM . ExternalAPI . googlemaps . map _providers [ a ] . attribution ] ; return VMM . ExternalAPI . googlemaps . map _providers [ a ] } if ( VMM . ExternalAPI . googlemaps . defaultType ( a ) ) { trace ( "GOOGLE MAP DEFAULT TYPE" ) ; return google . maps . MapTypeId [ a . toUpperCase ( ) ] } trace ( "Not a maptype: " + a ) } function o ( ) { var b = a . url + "&output=kml" ; b = b . replace ( "&output=embed" , "" ) ; var c = new google . maps . KmlLayer ( b , { preserveViewport : ! 0 } ) , e = new google . maps . InfoWindow ; c . setMap ( d ) ; google . maps . event . addListenerOnce ( c , "defaultviewport_changed" , function ( ) { d . fitBounds ( c . getDefaultViewport ( ) ) ; i && d . panTo ( f ) ; j && d . setZoom ( h ) } ) ; google . maps . event . addListener ( c , "click" , function ( a ) { function c ( a ) { e . setContent ( a ) ; e . open ( d ) } var b = a . featureData . description ; c ( b ) } ) } var b = "" , c , d ; google . maps . VeriteMapType = function ( a ) { if ( VMM . ExternalAPI . googlemaps . defaultType ( a ) ) return google . maps . MapTypeId [ a . toUpperCase ( ) ] ; var b = e ( a ) ; return google . maps . ImageMapType . call ( this , { getTileUrl : function ( a , c ) { var d = ( c + a . x + a . y ) % VMM . ExternalAPI . googlemaps . map _subdomains . length ; return [ b . url . replace ( "{S}" , VMM . ExternalAPI . googlemaps . map _subdomains [ d ] ) . replace ( "{Z}" , c ) . replace ( "{X}" , a . x ) . replace ( "{Y}" , a . y ) . replace ( "{z}" , c ) . replace ( "{x}" , a . x ) . replace ( "{y}" , a . y ) ] } , tileSize : new google . maps . Size ( 256 , 256 ) , name : a , minZoom : b . minZoom , maxZoom : b . maxZoom } ) } ; google . maps . VeriteMapType . prototype = new google . maps . ImageMapType ( "_" ) ; type . of ( VMM . master _config . Timeline . maptype ) == "string" ? VMM . ExternalAPI . googlemaps . defaultType ( VMM . master _config . Timeline . maptype ) ? c = google . maps . MapTypeId [ VMM . master _config . Timeline . maptype . toUpperCase ( ) ] : c = VMM . master _config . Timeline . maptype : c = "toner" ; var f = new google . maps . LatLng ( 41.875696 , - 87.624207 ) , g , h = 11 , i = ! 1 , j = ! 1 , k ; if ( type . of ( VMM . Util . getUrlVars ( a . url ) [ "ll" ] ) == "string" ) { i = ! 0 ; g = VMM . Util . getUrlVars ( a . url ) . ll . split ( "," ) ; f = new google . maps . LatLng ( parseFloat ( g [ 0 ] ) , parseFloat ( g [ 1 ] ) ) } else if ( type . of ( VMM . Util . getUrlVars ( a . url ) [ "sll" ] ) == "string" ) { g = VMM . Util . getUrlVars ( a . url ) . sll . split ( "," ) ; f = new google . maps . LatLng ( parseFloat ( g [ 0 ] ) , parseFloat ( g [ 1 ] ) ) } if ( type . of ( VMM . Util . getUrlVars ( a . url ) [ "z" ] ) == "string" ) { j = ! 0 ; h = parseFloat ( VMM . Util . getUrlVars ( a . url ) . z ) } var l = { zoom : h , disableDefaultUI : ! 0 , mapTypeControl : ! 1 , zoomControl : ! 0 , zoomControlOptions : { style : google . maps . ZoomControlStyle . SMALL , position : google . maps . ControlPosition . TOP _RIGHT } , center : f , mapTypeId : c , mapTypeControlOptions : { mapTypeIds : [ c ] } } , m = a . id . toString ( ) + "_gmap" ; VMM . attachElement ( "#" + a . id , "<div class='google-map' id='" + m + "' style='width=100%;height=100%;'></div>" ) ; var d = new google . maps . Map ( document . getElementById ( m ) , l ) ; if ( ! VMM . ExternalAPI . googlemaps . defaultType ( VMM . master _config . Timeline . maptype ) ) { d .
( ".slider-item .layout-text-media .text" , "width" , "40%" ) ; VMM . Lib . css ( ".slider-item .layout-text-media .text" , "display" , "table-cell" ) ; VMM . Lib . css ( ".slider-item .layout-text-media .text .container" , "display" , "table-cell" ) ; VMM . Lib . css ( ".slider-item .layout-text-media .text .container" , "width" , "auto" ) ; VMM . Lib . css ( ".slider-item .layout-text-media .text .container .start" , "width" , e . text _media . text . width ) ; VMM . Lib . removeClass ( ".slider-item .content-container" , "pad-top" ) ; VMM . Lib . css ( ".slider-item .layout-text-media .media" , "float" , "left" ) ; VMM . Lib . css ( ".slider-item .layout-text-media" , "display" , "table" ) ; VMM . Lib . css ( ".slider-item .media blockquote p" , "line-height" , "36px" ) ; VMM . Lib . css ( ".slider-item .media blockquote p" , "font-size" , "28px" ) ; VMM . Lib . css ( ".slider-item" , "display" , "table" ) ; VMM . Lib . css ( ".slider-item" , "overflow-y" , "auto" ) } VMM . Lib . css ( a + ".media-frame" , "max-width" , e . text _media . width ) ; VMM . Lib . height ( a + ".media-frame" , e . text _media . height ) ; VMM . Lib . width ( a + ".media-frame" , e . text _media . width ) ; VMM . Lib . css ( a + "img" , "max-height" , e . text _media . height ) ; VMM . Lib . css ( b + "img" , "max-height" , e . media . height ) ; VMM . Lib . css ( a + "img" , "max-width" , e . text _media . width ) ; VMM . Lib . css ( a + ".twitter .avatar img" , "max-width" , 32 ) ; VMM . Lib . css ( a + ".twitter .avatar img" , "max-height" , 32 ) ; VMM . Lib . css ( b + ".twitter .avatar img" , "max-width" , 32 ) ; VMM . Lib . css ( b + ".twitter .avatar img" , "max-height" , 32 ) ; VMM . Lib . width ( a + ".media-frame" , e . text _media . video . width ) ; VMM . Lib . height ( a + ".media-frame" , e . text _media . video . height ) ; VMM . Lib . width ( b + ".media-frame" , e . media . video . width ) ; VMM . Lib . height ( b + ".media-frame" , e . media . video . height ) ; VMM . Lib . css ( b + ".media-frame" , "max-height" , e . media . video . height ) ; VMM . Lib . css ( b + ".media-frame" , "max-width" , e . media . video . width ) ; VMM . Lib . height ( b + ".soundcloud" , 168 ) ; VMM . Lib . height ( a + ".soundcloud" , 168 ) ; VMM . Lib . width ( b + ".soundcloud" , e . media . width ) ; VMM . Lib . width ( a + ".soundcloud" , e . text _media . width ) ; VMM . Lib . css ( c + ".soundcloud" , "max-height" , 168 ) ; VMM . Lib . height ( a + ".map" , e . text _media . height ) ; VMM . Lib . css ( b + ".map" , "max-height" , e . media . height ) ; VMM . Lib . width ( b + ".map" , e . media . width ) ; VMM . Lib . height ( a + ".doc" , e . text _media . height ) ; VMM . Lib . height ( b + ".doc" , e . media . height ) ; VMM . Lib . width ( b + ".wikipedia" , e . media . width ) ; VMM . Lib . width ( b + ".twitter" , e . media . width ) ; for ( var g = 0 ; g < j . length ; g ++ ) { j [ g ] . layout ( f ) ; j [ g ] . content _height ( ) > d . slider . height + 20 ? j [ g ] . css ( "display" , "block" ) : j [ g ] . css ( "display" , "table" ) } } , G = function ( ) { var a = 0 ; for ( var b = 0 ; b < j . length ; b ++ ) { a = b * ( d . slider . width + d . spacing ) ; j [ b ] . leftpos ( a ) } } , H = function ( a ) { var b = "linear" ; for ( var c = 0 ; c < j . length ; c ++ ) c == m ? j [ c ] . animate ( d . duration , b , { opacity : 1 } ) : c == m - 1 || c == m + 1 ? j [ c ] . animate ( d . duration , b , { opacity : . 1 } ) : j [ c ] . opacity ( a ) } , I = function ( a , b , c , e , f ) { VMM . ExternalAPI . youtube . stopPlayers ( ) ; m = a ; var h = d . ease , k = d . duration , l = ! 1 , n = ! 1 , o = j [ m ] . leftpos ( ) , p = "" ; m == 0 && ( n = ! 0 ) ; m + 1 >= j . length && ( l = ! 0 ) ; b != null && b != "" && ( h = b ) ; c != null && c != "" && ( k = c ) ; if ( n ) VMM . Lib . visible ( s . prevBtn , ! 1 ) ; else { VMM . Lib . visible ( s . prevBtn , ! 0 ) ; p = VMM . Util . unlinkify ( i [ m - 1 ] . title ) ; if ( d . type == "timeline" ) if ( typeof i [ m - 1 ] . date == "undefined" ) { VMM . attachElement ( s . prevDate , p ) ; VMM . attachElement ( s . prevTitle , "" ) } else { VMM . attachElement ( s . prevDate , VMM . Date . prettyDate ( i [ m - 1 ] . startdate ) ) ; VMM . attachElement ( s . prevTitle , p ) } else VMM . attachElement ( s . prevTitle , p ) } if ( l ) VMM . Lib . visible ( s . nextBtn , ! 1 ) ; else { VMM . Lib . visible ( s . nextBtn , ! 0 ) ; p = VMM . Util . unlinkify ( i [ m + 1 ] . title ) ; if ( d . type == "timeline" ) if ( typeof i [ m + 1 ] . date == "undefined" ) { VMM . attachElement ( s . nextDate , p ) ; VMM . attachElement ( s . nextTitle , "" ) } else { VMM . attachElement ( s . nextDate , VMM . Date . prettyDate ( i [ m + 1 ] . startdate ) ) ; VMM . attachElement ( s . nextTitle , p ) } else VMM . attachElement ( s . nextTitle , p ) } if ( e ) VMM . Lib . css ( g , "left" , - ( o - d . slider . content . padding ) ) ; else { VMM . Lib . stop ( g ) ; VMM . Lib . animate ( g , k , h , { left : - ( o - d . slider . content . padding ) } ) } f && VMM . fireEvent ( r , "LOADED" ) ; if ( j [ m ] . height ( ) > d . slider _height ) VMM . Lib . css ( ".slider" , "overflow-y" , "scroll" ) ; else { VMM . Lib . css ( r , "overflow-y" , "hidden" ) ; VMM . Lib . animate ( r , k , h , { scrollTop : VMM . Lib . prop ( r , "scrollHeight" ) - VMM . Lib . height ( r ) } ) } D ( ) } , J = function ( ) { var a = "<div class='icon'> </div>" ; s . nextBtn = VMM . appendAndGetElement ( e , "<div>" , "nav-next" ) ; s . prevBtn = VMM . appendAnd
. length ; e ++ ) if ( g [ e ] . type != "start" ) { var f = _ ( s , g [ e ] . startdate , g [ e ] . enddate ) ; a = b ; b = f . begin ; c = b - a ; d . push ( c ) } return VMM . Util . average ( d ) . mean } , X = function ( ) { var a = 0 , b = 0 , c = 0 , d = [ ] , e = ! 0 ; for ( var f = 0 ; f < g . length ; f ++ ) if ( g [ f ] . type == "start" ) trace ( "DATA DATE IS START" ) ; else { var h = g [ f ] . startdate ; a = b ; b = h ; c = b - a ; d . push ( c ) } return VMM . Util . average ( d ) } , Y = function ( ) { var a = K . nav . multiplier . current ; for ( var b = 0 ; b < a ; b ++ ) W ( ) < 75 && K . nav . multiplier . current > 1 && ( K . nav . multiplier . current = K . nav . multiplier . current - 1 ) } , Z = function ( ) { var a = $ ( g [ 0 ] . startdate ) , b = $ ( g [ g . length - 1 ] . enddate ) ; v . eon . type = "eon" ; v . eon . first = a . eons ; v . eon . base = Math . floor ( a . eons ) ; v . eon . last = b . eons ; v . eon . number = e . eons ; v . eon . multiplier = q . eons ; v . eon . minor = q . eons ; v . era . type = "era" ; v . era . first = a . eras ; v . era . base = Math . floor ( a . eras ) ; v . era . last = b . eras ; v . era . number = e . eras ; v . era . multiplier = q . eras ; v . era . minor = q . eras ; v . epoch . type = "epoch" ; v . epoch . first = a . epochs ; v . epoch . base = Math . floor ( a . epochs ) ; v . epoch . last = b . epochs ; v . epoch . number = e . epochs ; v . epoch . multiplier = q . epochs ; v . epoch . minor = q . epochs ; v . age . type = "age" ; v . age . first = a . ages ; v . age . base = Math . floor ( a . ages ) ; v . age . last = b . ages ; v . age . number = e . ages ; v . age . multiplier = q . ages ; v . age . minor = q . ages ; v . millenium . type = "millenium" ; v . millenium . first = a . milleniums ; v . millenium . base = Math . floor ( a . milleniums ) ; v . millenium . last = b . milleniums ; v . millenium . number = e . milleniums ; v . millenium . multiplier = q . millenium ; v . millenium . minor = q . millenium ; v . century . type = "century" ; v . century . first = a . centuries ; v . century . base = Math . floor ( a . centuries ) ; v . century . last = b . centuries ; v . century . number = e . centuries ; v . century . multiplier = q . century ; v . century . minor = q . century ; v . decade . type = "decade" ; v . decade . first = a . decades ; v . decade . base = Math . floor ( a . decades ) ; v . decade . last = b . decades ; v . decade . number = e . decades ; v . decade . multiplier = q . decade ; v . decade . minor = q . decade ; v . year . type = "year" ; v . year . first = a . years ; v . year . base = Math . floor ( a . years ) ; v . year . last = b . years ; v . year . number = e . years ; v . year . multiplier = 1 ; v . year . minor = q . month ; v . month . type = "month" ; v . month . first = a . months ; v . month . base = Math . floor ( a . months ) ; v . month . last = b . months ; v . month . number = e . months ; v . month . multiplier = 1 ; v . month . minor = Math . round ( q . week ) ; v . week . type = "week" ; v . week . first = a . weeks ; v . week . base = Math . floor ( a . weeks ) ; v . week . last = b . weeks ; v . week . number = e . weeks ; v . week . multiplier = 1 ; v . week . minor = 7 ; v . day . type = "day" ; v . day . first = a . days ; v . day . base = Math . floor ( a . days ) ; v . day . last = b . days ; v . day . number = e . days ; v . day . multiplier = 1 ; v . day . minor = 24 ; v . hour . type = "hour" ; v . hour . first = a . hours ; v . hour . base = Math . floor ( a . hours ) ; v . hour . last = b . hours ; v . hour . number = e . hours ; v . hour . multiplier = 1 ; v . hour . minor = 60 ; v . minute . type = "minute" ; v . minute . first = a . minutes ; v . minute . base = Math . floor ( a . minutes ) ; v . minute . last = b . minutes ; v . minute . number = e . minutes ; v . minute . multiplier = 1 ; v . minute . minor = 60 ; v . second . type = "decade" ; v . second . first = a . seconds ; v . second . base = Math . floor ( a . seconds ) ; v . second . last = b . seconds ; v . second . number = e . seconds ; v . second . multiplier = 1 ; v . second . minor = 10 } , $ = function ( a , b ) { var c = { } ; c . days = a / r . day ; c . weeks = c . days / r . week ; c . months = c . days / r . month ; c . years = c . months / r . year ; c . hours = c . days * r . hour ; c . minutes = c . days * r . minute ; c . seconds = c . days * r . second ; c . decades = c . years / r . decade ; c . centuries = c . years / r . century ; c . milleniums = c . years / r . millenium ; c . ages = c . years / r . age ; c . epochs = c . years / r . epoch ; c . eras = c . years / r . era ; c . eons = c . years / r . eon ; return c } , _ = function ( a , b , c ) { var d = a . type , e = a . multiplier , f = $ ( b ) , g , h , i ; h = b . months ; if ( type . of ( c ) == "date" ) { g = $ ( c ) ; i = c . months ; if ( d == "eon" ) { h = f . eons ; i = g . eons } else if ( d == "era" ) { h = f . eras ; i = g . eras } else if ( d == "epoch" ) { h = f . epochs ; i = g . epochs } else if ( d == "age" ) { h = f . ages ; i = g . ages } else if ( d == "millenium" ) { h = b . milleniums ; i = c . milleniums } else if ( d == "century" ) { h = f . centuries ; i = g . centuries } else if ( d == "decade" ) { h = f . decades ; i = g . decades } else if ( d == "year" ) { h = f . years ; i = g . years } else if ( d == "month" ) { h = f . months ; i = g . months } else if ( d == "week" ) { h = f . weeks ; i = g . weeks } else if ( d == "day" ) { h = f . days ; i = g . days } else if ( d == "hour" ) { h = f . hours ; i = g . hours } else if ( d == "minute" ) { h = f . minutes ; i = g . minutes } _pos = ( h - s . base ) * ( K . nav . interval _width / K . nav . multiplier . current ) ; _pos _end = ( i - s . base ) * ( K . nav . interval _width / K . nav . multiplier . current ) } else { if ( d == "eon" ) { h = f . eons ; i = f . eons } else