/ * !
TimelineJS
Version 1.71
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 . StoryJS . License . js
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //*!
StoryJS
Designed and built by Zach Wise at VéritéCo
This Source Code Form is subject to the terms of the Mozilla Public
License , v . 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at http : //mozilla.org/MPL/2.0/.
* //***********************************************
Begin VMM . js
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //**
* VéritéCo JS Core
* Designed and built by Zach Wise at VéritéCo zach @ verite . co
* This Source Code Form is subject to the terms of the Mozilla Public
* License , v . 2.0 . If a copy of the MPL was not distributed with this
* file , You can obtain one at http : //mozilla.org/MPL/2.0/.
* //* Simple JavaScript Inheritance
By John Resig http : //ejohn.org/
MIT Licensed .
=== === === === === === === === === === === === === === === === == * / f u n c t i o n t r a c e ( e ) { 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 ( e ) : 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 ( e ) ) } 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 e = ! 1 , t = / 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 ( n ) { f u n c t i o n o ( ) { ! e & & 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 r = t h i s . p r o t o t y p e ; e = ! 0 ; v a r i = n e w t h i s ; e = ! 1 ; f o r ( v a r s i n n ) i [ s ] = t y p e o f n [ s ] = = " f u n c t i o n " & & t y p e o f r [ s ] = = " f u n c t i o n " & & t . t e s t ( n [ s ] ) ? f u n c t i o n ( e , t ) { r e t u r n f u n c t i o n ( ) { v a r n = t h i s . _ s u p e r ; t h i s . _ s u p e r = r [ e ] ; v a r i = t . 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 = n ; r e t u r n i } } ( s , n [ s ] ) : n [ s ] ; o . p r o t o t y p e = i ; o . p r o t o t y p e . c o n s t r u c t o r = o ; o . 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 o } } ) ( ) ; 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 : " " } , t i m e r s : { a p i : 7 e 3 } , a p i : { p u s h q u e s : [ ] } , t w i t t e 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 : [ ] } , 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 : [ ] } , g o o g l e p l u 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 : [ ] , t r i e s : 0 } , 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 ( e , t , n , r , i ) { v a r s = " " ; i f ( e ! = n u l l & & e ! = " " ) { s + = " < " + e ; n ! = n u l l & & n ! = " " & & ( s + = " c l a s s = ' " + n + " ' " ) ; r ! = n u l l & & r ! = " " & & ( s + = " " + r ) ; i ! = n u l l & & i ! = " " & & ( s + = " s t y l e = ' " + i + " ' " ) ; s + = " > " ; t ! = n u l l & & t ! = " " & & ( s + = t ) ; s = s + " < / " + e + " > " } r e t u r n s } ; 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 ( e , t , n ) { v a r r = " " , i = ! 1 ; r + = " < d i v c l a s s = ' m e d i a ' > " ; i f ( e ! = n u l l & & e ! = " " ) { v a l i d = ! 0 ; r + = " < i m g s r c = ' " + e + " ' > " ; n ! = n u l l & & n ! = " " & & ( r + = V M M . c r e a t e E l e m e n t ( " d i v " , n , " c r e d i t " ) ) ; t ! = n u l l & & t ! = " " & & ( r + = V M M . c r e a t e E l e m e n t ( " d i v " , t , " c a p t i o n " ) ) } r + = " < / d i v > " ; r e t u r n r } ; V M M . h i d e U r l B a r = f u n c t i o n ( ) { v a r e = w i n d o w , t = e . d o c u m e n t ; i f ( ! l o c a t i o n . h a s h | | ! e . 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 n = 1 , r = s e t I n t e r v a l ( f u n c t i o n ( ) { i f ( t . b o d y ) { c l e a r I n t e r v a l ( r ) ; n = " s c r o l l T o p " i n t . b o d y ? t . b o d y . s c r o l l T o p : 1 ; e . s c r o l l T o ( 0 , n = = = 1 ? 0 : 1 ) } } , 1 5 ) ; e . 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 ( ) { e . s c r o l l T o ( 0 , n = = = 1 ? 0 : 1 ) } , 0 ) } , ! 1 ) } } } A r r a y . p r o t o t y p e . r e m o v e = f u n c t i o n ( e , t ) { v a r n = t h i s . s l i c e ( ( t | | e ) + 1 | | t h i s . l e n g t h ) ; t h i s . l e n g t h = e < 0 ? t h i s . l e n g t h + e : e ; r e t u r n t h i s . p u s h . a p p l y ( t h i s , n ) } ; 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 e = 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 - e ) / 8 6 4 e 5 + e . 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 e = 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 - e ) / 8 6 4 e 5 ) } ; v a r i s = { N u l l : f u n c t i o n ( e ) { r e t u r n e = = = n u l l } , U n d e f i n e d : f u n c t i o n ( e ) { r e t u r n e = = = u n d e f i n e d } , n t : f u n c t i o n ( e ) { r e t u r n e = = = n u l l | | e = = = 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 ( e ) { r e t u r n t y p e o f e = = " f u n c t i o n " ? e . 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 ( e ) { r e t u r n t y p e o f e = = " s t r i n g " ? ! 0 : t y p e o f e = = " o b j e c t " ? e . 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 ( e ) { r e t u r n t y p e o f e = = " o b j e c t " ? e . 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 | | e . 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 ( e ) { r e t u r n t y p e o f e = = " b o o l e a n " ? ! 0 : t y p e o f e = = " o b j e c t " ? e . 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 ( e ) { r e t u r n t y p e o f e = = " d a t e " ? ! 0 : t y p e o f e = = " o b j e c t " ? e . 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 ( e ) { r e t u r n t y p e o f e = = " o b j e c t " ? e . 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 ( e ) { r e t u r n t y p e o f e = = " n u m b e r " ? ! 0 : t y p e o f e = = " o b j e c t " ? e . 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 ( e ) { r e t u r n t y p e o f e = = " o b j e c t " ? e . 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 ( e ) { r e t u r n t y p e o f e = = " f u n c t i o n " ? e . 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
, s = setTimeout ( VMM . ExternalAPI . twitter . errorTimeOut , VMM . master _config . timers . api , e ) , o = setTimeout ( t , VMM . master _config . timers . api , e ) ; VMM . getJSON ( i , function ( t ) { var n = t . id _str , r = "<blockquote><p>" , i = VMM . Util . linkify _with _twitter ( t . text , "_blank" ) ; r += i ; r += "</p></blockquote>" ; typeof t . entities . media != "undefined" && t . entities . media [ 0 ] . type == "photo" ; r += "<div class='vcard author'>" ; r += "<a class='screen-name url' href='https://twitter.com/" + t . user . screen _name + "' data-screen-name='" + t . user . screen _name + "' target='_blank'>" ; r += "<span class='avatar'><img src=' " + t . user . profile _image _url + "' alt=''></span>" ; r += "<span class='fn'>" + t . user . name + "</span>" ; r += "<span class='nickname'>@" + t . user . screen _name + "<span class='thumbnail-inline'></span></span>" ; r += "</a>" ; r += "</div>" ; VMM . attachElement ( "#" + e . id . toString ( ) , r ) ; VMM . attachElement ( "#text_thumb_" + e . id . toString ( ) , t . text ) } ) . error ( function ( t , n , r ) { trace ( "TWITTER error" ) ; trace ( "TWITTER ERROR: " + n + " " + t . responseText ) ; VMM . attachElement ( "#" + e . id , VMM . MediaElement . loadingmessage ( "ERROR LOADING TWEET " + e . mid ) ) } ) . success ( function ( e ) { clearTimeout ( s ) ; clearTimeout ( o ) ; t ( ) } ) } , errorTimeOut : function ( e ) { trace ( "TWITTER JSON ERROR TIMEOUT " + e . mid ) ; VMM . attachElement ( "#" + e . id . toString ( ) , VMM . MediaElement . loadingmessage ( "Still waiting on Twitter: " + e . mid ) ) ; VMM . getJSON ( "http://api.twitter.com/1/account/rate_limit_status.json" , function ( t ) { trace ( "REMAINING TWITTER API CALLS " + t . remaining _hits ) ; trace ( "TWITTER RATE LIMIT WILL RESET AT " + t . reset _time ) ; var n = "" ; if ( t . remaining _hits == 0 ) { n = "<p>You've reached the maximum number of tweets you can load in an hour.</p>" ; n += "<p>You can view tweets again starting at: <br/>" + t . reset _time + "</p>" } else n = "<p>Still waiting on Twitter. " + e . mid + "</p>" ; VMM . attachElement ( "#" + e . id . toString ( ) , VMM . MediaElement . loadingmessage ( n ) ) } ) } , pushQue : function ( ) { if ( VMM . master _config . twitter . que . length > 0 ) { VMM . ExternalAPI . twitter . create ( VMM . master _config . twitter . que [ 0 ] , VMM . ExternalAPI . twitter . pushQue ) ; VMM . master _config . twitter . que . remove ( 0 ) } } , getHTML : function ( e ) { var t = "http://api.twitter.com/1/statuses/oembed.json?id=" + e + "&callback=?" ; VMM . getJSON ( t , VMM . ExternalAPI . twitter . onJSONLoaded ) } , onJSONLoaded : function ( e ) { trace ( "TWITTER JSON LOADED" ) ; var t = e . id ; VMM . attachElement ( "#" + t , VMM . Util . linkify _with _twitter ( e . html ) ) } , parseTwitterDate : function ( e ) { var t = new Date ( Date . parse ( e ) ) ; return t } , prettyParseTwitterDate : function ( e ) { var t = new Date ( Date . parse ( e ) ) ; return VMM . Date . prettyDate ( t , ! 0 ) } , getTweets : function ( e ) { var t = [ ] , n = e . length ; for ( var r = 0 ; r < e . length ; r ++ ) { var i = "" ; e [ r ] . tweet . match ( "status/" ) ? i = e [ r ] . tweet . split ( "status/" ) [ 1 ] : e [ r ] . tweet . match ( "statuses/" ) ? i = e [ r ] . tweet . split ( "statuses/" ) [ 1 ] : i = "" ; var s = "http://api.twitter.com/1/statuses/show.json?id=" + i + "&include_entities=true&callback=?" ; VMM . getJSON ( s , function ( e ) { var r = { } , i = "<div class='twitter'><blockquote><p>" , s = VMM . Util . linkify _with _twitter ( e . text , "_blank" ) ; i += s ; i += "</p>" ; i += "— " + e . user . name + " (<a href='https://twitter.com/" + e . user . screen _name + "'>@" + e . user . screen _name + "</a>) <a href='https://twitter.com/" + e . user . screen _name + "/status/" + e . id + "'>" + VMM . ExternalAPI . twitter . prettyParseTwitterDate ( e . created _at ) + " </a></blockquote></div>" ; r . content = i ; r . raw = e ; t . push ( r ) ; if ( t . length == n ) { var o = { tweetdata : t } ; VMM . fireEvent ( global , "TWEETSLOADED" , o ) } } ) . success ( function ( ) { trace ( "second success" ) } ) . error ( function ( ) { trace ( "error" ) } ) . complete ( function ( ) { trace ( "complete" ) } ) } } , getTweetSearch : function ( e , t ) { var n = 40 ; t != null && t != "" && ( n = t ) ; var r = "http://search.twitter.com/search.json?q=" + e + "&rpp=" + n + "&include_entities=true&result_type=mixed" , i = [ ] ; VMM . getJSON ( r , function ( e ) { for ( var t = 0 ; t < e . results . length ; t ++ ) { var n = { } , r = "<div class='twitter'><blockquote><p>" , s = VMM . Util . linkify _with _twitter ( e . results [ t ] . text , "_blank" ) ; r += s ; r += "</p>" ; r += "— " + e . results [ t ] . from _user _name + " (<a href='https://twitter.com/" + e . results [ t ] . from _user + "'>@" + e . results [ t ] . from _user + "</a>) <a href='https://twitter.com/" + e . results [ t ] . from _user + "/status/" + e . id + "'>" + VMM . ExternalAPI . twitter . prettyParseTwitterDate ( e . results [ t ] . created _at ) + " </a></blockquote></div>" ; n . content = r ; n . raw = e . results [ t ] ; i . push ( n ) } var o = { tweetdata : i } ; VMM .
( VMM . Slider = function ( e , t ) { function w ( ) { trace ( "onConfigSet" ) } function E ( e , t ) { var r = ! 0 , i = ! 1 ; e != null && ( r = e ) ; t != null && ( i = t ) ; d = n . slider . width ; n . slider . nav . height = VMM . Lib . height ( b . prevBtnContainer ) ; n . slider . content . width = d - n . slider . content . padding * 2 ; VMM . Lib . width ( u , l . length * n . slider . content . width ) ; i && VMM . Lib . css ( o , "left" , l [ p ] . leftpos ( ) ) ; _ ( ) ; D ( ) ; VMM . Lib . css ( b . nextBtn , "left" , d - n . slider . nav . width ) ; VMM . Lib . height ( b . prevBtn , n . slider . height ) ; VMM . Lib . height ( b . nextBtn , n . slider . height ) ; VMM . Lib . css ( b . nextBtnContainer , "top" , n . slider . height / 2 - n . slider . nav . height / 2 + 10 ) ; VMM . Lib . css ( b . prevBtnContainer , "top" , n . slider . height / 2 - n . slider . nav . height / 2 + 10 ) ; VMM . Lib . height ( s , n . slider . height ) ; VMM . Lib . width ( s , d ) ; r && H ( p , "linear" , 1 ) ; p == 0 && VMM . Lib . visible ( b . prevBtn , ! 1 ) } function S ( e ) { if ( p == l . length - 1 ) VMM . Lib . animate ( o , n . duration , n . ease , { left : - l [ p ] . leftpos ( ) } ) ; else { H ( p + 1 ) ; C ( ) } } function x ( e ) { if ( p == 0 ) H ( p ) ; else { H ( p - 1 ) ; C ( ) } } function T ( e ) { switch ( e . keyCode ) { case 39 : S ( e ) ; break ; case 37 : x ( e ) } } function N ( e , t ) { if ( c . length == 0 ) for ( var r = 0 ; r < l . length ; r ++ ) c . push ( l [ r ] . leftpos ( ) ) ; if ( typeof t . left == "number" ) { var i = t . left , s = - l [ p ] . leftpos ( ) ; i < s - n . slider _width / 3 ? S ( ) : i > s + n . slider _width / 3 ? x ( ) : VMM . Lib . animate ( o , n . duration , n . ease , { left : s } ) } else VMM . Lib . animate ( o , n . duration , n . ease , { left : s } ) ; typeof t . top == "number" && VMM . Lib . animate ( o , n . duration , n . ease , { top : - t . top } ) } function C ( ) { n . current _slide = p ; VMM . fireEvent ( y , "UPDATE" ) } var n , r , i , s , o , u , a = { } , f = [ ] , l = [ ] , c = [ ] , h = "" , p = 0 , d = 960 , v = { move : ! 1 , x : 10 , y : 0 , off : 0 , dampen : 48 } , m = "" , g = ! 1 , y = e , b = { nextBtn : "" , prevBtn : "" , nextDate : "" , prevDate : "" , nextTitle : "" , prevTitle : "" } ; typeof t != "undefined" ? n = t : n = { preload : 4 , current _slide : 0 , interval : 10 , something : 0 , width : 720 , height : 400 , ease : "easeInOutExpo" , duration : 1e3 , timeline : ! 1 , spacing : 15 , slider : { width : 720 , height : 400 , content : { width : 720 , height : 400 , padding : 130 } , nav : { width : 100 , height : 200 } } } ; this . ver = "0.6" ; n . slider . width = n . width ; n . slider . height = n . height ; this . init = function ( e ) { l = [ ] ; c = [ ] ; typeof e != "undefined" ? this . setData ( e ) : trace ( "WAITING ON DATA" ) } ; this . width = function ( e ) { if ( e == null || e == "" ) return n . slider . width ; n . slider . width = e ; E ( ) } ; this . height = function ( e ) { if ( e == null || e == "" ) return n . slider . height ; n . slider . height = e ; E ( ) } ; this . setData = function ( e ) { if ( typeof e != "undefined" ) { f = e ; j ( ) } else trace ( "NO DATA" ) } ; this . getData = function ( ) { return f } ; this . setConfig = function ( e ) { typeof e != "undefined" ? n = e : trace ( "NO CONFIG DATA" ) } ; this . getConfig = function ( ) { return n } ; this . setSize = function ( e , t ) { e != null && ( n . slider . width = e ) ; t != null && ( n . slider . height = t ) ; g && E ( ) } ; this . active = function ( ) { return g } ; this . getCurrentNumber = function ( ) { return p } ; this . setSlide = function ( e ) { H ( e ) } ; var k = function ( e ) { f = e } , L = function ( e ) { var t = 0 ; VMM . attachElement ( u , "" ) ; l = [ ] ; for ( t = 0 ; t < e . length ; t ++ ) { var n = new VMM . Slider . Slide ( e [ t ] , u ) ; l . push ( n ) } } , A = function ( e ) { var t = 0 ; if ( e ) O ( ) ; else { for ( t = 0 ; t < l . length ; t ++ ) l [ t ] . clearTimers ( ) ; r = setTimeout ( O , n . duration ) } } , O = function ( ) { var e = 0 ; for ( e = 0 ; e < l . length ; e ++ ) l [ e ] . enqueue = ! 0 ; for ( e = 0 ; e < n . preload ; e ++ ) { if ( ! ( p + e > l . length - 1 ) ) { l [ p + e ] . show ( ) ; l [ p + e ] . enqueue = ! 1 } if ( ! ( p - e < 0 ) ) { l [ p - e ] . show ( ) ; l [ p - e ] . enqueue = ! 1 } } if ( l . length > 50 ) for ( e = 0 ; e < l . length ; e ++ ) l [ e ] . enqueue && l [ e ] . hide ( ) ; _ ( ) } , M = function ( e ) { } , _ = function ( ) { var e = 0 , t = ".slider-item .layout-text-media .media .media-container " , r = ".slider-item .layout-media .media .media-container " , i = ".slider-item .media .media-container" , s = ".slider-item .media .media-container .media-shadow .caption" , o = { text _media : { width : n . slider . content . width / 100 * 60 , height : n . slider . height - 60 , video : { width : 0 , height : 0 } , text : { width : n . slider . content . width / 100 * 40 - 30 , height : n . slider . height } } , media : { width : n . slider . content . width , height : n . slider . height - 110 , video : { width : 0 , height : 0 } } } ; VMM . master _config . sizes . api . width = o . media . width ; VMM . master _config . sizes . api . height = o . media . height ; o . text _media . video = VMM . Util . ratio . fit ( o . text _media . width , o . text _media . height , 16 , 9 ) ; o . media . video = VMM . Util . ratio . fit ( o . media . width , o . media . height , 16 , 9 ) ; VMM . Lib . css ( ".slider-item" , "width" , n . slider . content . width ) ; VMM . Lib . height ( ".slider-item" , n . slider . height ) ; var u = ! 1 ; d <= 640 ? u = ! 0 : VMM . Browser . device == "mobile" && VMM . Browser . orientation == "portrait" ? u = ! 0 : VMM . Browser . device == "tablet" && VMM . Browser .
e . originalEvent && ( e = e . originalEvent ) ; e . wheelDelta ? t = e . wheelDelta / 6 : e . detail && ( t = - e . detail * 12 ) ; if ( t ) { e . preventDefault && e . preventDefault ( ) ; e . returnValue = ! 1 } if ( typeof e . wheelDeltaX != "undefined" ) { t = e . wheelDeltaY / 6 ; Math . abs ( e . wheelDeltaX ) > Math . abs ( e . wheelDeltaY ) ? t = e . wheelDeltaX / 6 : t = e . wheelDeltaY / 6 } n = VMM . Lib . position ( r ) . left + t ; n > b . nav . constraint . left ? n = b . width / 2 : n < b . nav . constraint . right && ( n = b . nav . constraint . right ) ; VMM . Lib . stop ( r ) ; VMM . Lib . css ( r , "left" , n ) } function Q ( e ) { y . cancelSlide ( ) ; Y ( e . data . number ) ; W ( ) } function G ( e ) { VMM . Lib . toggleClass ( e . data . elem , "zFront" ) } function Z ( e , t ) { VMM . Lib . animate ( r , t . time / 2 , b . ease , { left : t . left } ) } trace ( "VMM.Timeline.TimeNav" ) ; var r , s , o , u , a , f , l , c , h , p , d , v , m , g , y , b = VMM . Timeline . Config , w , E = { } , S = { } , x = e , T = [ ] , N = [ ] , C = [ ] , k = [ ] , L = [ ] , A = [ ] , O = 0 , M = ! 1 , _ , D , P = { interval _position : "" } , H = { left : "" , visible : { left : "" , right : "" } } , B = { day : 24 , month : 12 , year : 10 , hour : 60 , minute : 60 , second : 1e3 , decade : 10 , century : 100 , millenium : 1e3 , age : 1e6 , epoch : 1e7 , era : 1e8 , eon : 5e8 , week : 4.34812141 , days _in _month : 30.4368499 , days _in _week : 7 , weeks _in _month : 4.34812141 , weeks _in _year : 52.177457 , days _in _year : 365.242199 , hours _in _day : 24 } , j = { day : 864e5 , week : 7 , month : 30.4166666667 , year : 12 , hour : 24 , minute : 1440 , second : 86400 , decade : 10 , century : 100 , millenium : 1e3 , age : 1e6 , epoch : 1e7 , era : 1e8 , eon : 5e8 } , F = { type : "year" , number : 10 , first : 1970 , last : 2011 , multiplier : 100 , classname : "_idd" , interval _type : "interval" } , I = { type : "year" , number : 10 , first : 1970 , last : 2011 , multiplier : 100 , classname : "major" , interval _type : "interval major" } , q = { type : "year" , number : 10 , first : 1970 , last : 2011 , multiplier : 100 , classname : "_dd_minor" , interval _type : "interval minor" } , R = { day : { } , month : { } , year : { } , hour : { } , minute : { } , second : { } , decade : { } , century : { } , millenium : { } , week : { } , age : { } , epoch : { } , era : { } , eon : { } } ; w = b . nav . marker . height / 2 ; b . nav . rows = { full : [ 1 , w * 2 , w * 4 ] , half : [ 1 , w , w * 2 , w * 3 , w * 4 , w * 5 ] , current : [ ] } ; t != null && t != "" && ( b . nav . width = t ) ; n != null && n != "" && ( b . nav . height = n ) ; this . init = function ( e , t ) { trace ( "VMM.Timeline.TimeNav init" ) ; typeof e != "undefined" ? this . setData ( e , t ) : trace ( "WAITING ON DATA" ) } ; this . setData = function ( e , t ) { if ( typeof e != "undefined" ) { T = { } ; T = e ; _ = t ; ct ( ) } else trace ( "NO DATA" ) } ; this . setSize = function ( e , t ) { e != null && ( b . width = e ) ; t != null && ( b . height = t ) ; M && z ( ) } ; this . setMarker = function ( e , t , n , r ) { Y ( e , t , n ) } ; this . getCurrentNumber = function ( ) { return O } ; var K = function ( ) { trace ( "config.nav.multiplier " + b . nav . multiplier . current ) ; ut ( ! 0 ) ; at ( ! 0 ) ; ft ( a , k , ! 0 , ! 0 ) ; ft ( f , L , ! 0 ) ; b . nav . constraint . left = b . width / 2 ; b . nav . constraint . right = b . nav . constraint . right _min - b . width / 2 ; y . updateConstraint ( b . nav . constraint ) } , Y = function ( e , t , n , i , s ) { var o = b . ease , u = b . duration , a = ! 1 , f = ! 1 ; O = e ; H . left = b . width / 2 - VMM . Lib . position ( C [ O ] . marker ) . left ; H . visible . left = Math . abs ( H . left ) - 100 ; H . visible . right = Math . abs ( H . left ) + b . width + 100 ; O == 0 && ( f = ! 0 ) ; O + 1 == C . length && ( a = ! 0 ) ; t != null && t != "" && ( o = t ) ; n != null && n != "" && ( u = n ) ; for ( var l = 0 ; l < C . length ; l ++ ) VMM . Lib . removeClass ( C [ l ] . marker , "active" ) ; if ( b . start _page && C [ 0 ] . type == "start" ) { VMM . Lib . visible ( C [ 0 ] . marker , ! 1 ) ; VMM . Lib . addClass ( C [ 0 ] . marker , "start" ) } VMM . Lib . addClass ( C [ O ] . marker , "active" ) ; VMM . Lib . stop ( r ) ; VMM . Lib . animate ( r , u , o , { left : H . left } ) } , et = function ( ) { var e = 0 , t = 0 , n = 0 , r = [ ] , i = 0 ; for ( i = 0 ; i < C . length ; i ++ ) if ( T [ i ] . type != "start" ) { var s = ot ( F , C [ i ] . relative _pos ) , e = t ; t = s . begin ; n = t - e ; r . push ( n ) } return VMM . Util . average ( r ) . mean } , tt = function ( ) { var e = 0 , t = 0 , n = "" , r = 0 , i = [ ] , s = ! 0 , o = 0 ; for ( o = 0 ; o < T . length ; o ++ ) if ( T [ o ] . type == "start" ) trace ( "DATA DATE IS START" ) ; else { n = T [ o ] . startdate ; e = t ; t = n ; r = t - e ; i . push ( r ) } return VMM . Util . average ( i ) } , nt = function ( ) { var e = b . nav . multiplier . current , t = 0 ; for ( t = 0 ; t < e ; t ++ ) et ( ) < 75 && b . nav . multiplier . current > 1 && ( b . nav . multiplier . current = b . nav . multiplier . current - 1 ) } , rt = function ( ) { var e = it ( T [ 0 ] . startdate ) , t = it ( T [ T . length - 1 ] . enddate ) ; R . eon . type = "eon" ; R . eon . first = e . eons ; R . eon . base = Math . floor ( e . eons ) ; R . eon . last = t . eons ; R . eon . number = S . eons ; R . eon . multiplier = B . eons ; R . eon . minor = B . eons ; R . era . type = "era" ; R . era . first = e . eras ; R . era . base = Math . floor ( e . eras ) ; R . era . last = t . eras ; R . era . number = S . eras ; R . era . multiplier = B . eras ; R . era . minor = B . eras ; R . epoch . type = "epoch" ; R . epoch . first = e . epochs ; R . epoch . base = Math . floor ( e . epochs ) ; R . epoch . last = t . epochs ; R . epoch . number = S . epochs ; R . epoch . multiplier = B . epochs ; R . epoch . m