/ * V e r i t e
* 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 ) { 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 . 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 } , 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 " , k e y s : { 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 = " } , 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 : [ ] } , 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 : [ ] } } . 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 + = " " + 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 ( ) } } ; ! f u n c t i o n ( a ) { " u s e s t r i c t " ; v a r b = f u n c t i o n ( a , b ) { t h i s . i n i t ( " t o o l t i p " , a , b ) } ; b . p r o t o t y p e = { c o n s t r u c t o r : b , i n i t : f u n c t i o n ( b , c , d ) { v a r e , f ; t h i s . t y p e = b ; t h i s . $ e l e m e n t = a ( c ) ; t h i s . o p t i o n s = t h i s . g e t O p t i o n s ( d ) ; t h i s . e n a b l e d = ! 0 ; i f ( t h i s . o p t i o n s . t r i g g e r ! = " m a n u a l " ) { e = t h i s . o p t i o n s . t r i g g e r = = " h o v e r " ? " m o u s e e n t e r " : " f o c u s " ; f = t h i s . o p t i o n s . t r i g g e r = = " h o v e r " ? " m o u s e l e a v e " : " b l u r " ; t h i s . $ e l e m e n t . o n ( e , t h i s . o p t i o n s . s e l e c t o r , a . p r o x y ( t h i s . e n t e r , t h i s ) ) ; t h i s . $ e l e m e n t . o n ( f , t h i s . o p t i o n s . s e l e c t o r , a . p r o x y ( t h i s . l e a v e , t h i s ) ) } t h i s . o p t i o n s . s e l e c t o r ? t h i s . _ o p t i o n s = a . e x t e n d ( { } , t h i s . o p t i o
; 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>" ; c += "</a>" ; c += "</div>" ; VMM . attachElement ( "#twitter_" + b . toString ( ) , c ) } } , googlemaps : { getMap : function ( a , b ) { var c = VMM . Util . getUrlVars ( a ) ; trace ( c ) ; var d = "http://maps.googleapis.com/maps/api/js?key=" + Aes . Ctr . decrypt ( VMM . master _config . keys . google , VMM . master _config . vp , 256 ) + "&libraries=places&sensor=false&callback=VMM.ExternalAPI.googlemaps.onMapAPIReady" , e = { url : a , vars : c , id : b } ; if ( VMM . master _config . googlemaps . active ) VMM . master _config . googlemaps . createMap ( e ) ; else { VMM . master _config . googlemaps . que . push ( e ) ; VMM . master _config . googlemaps . api _loaded || VMM . LoadLib . js ( d , function ( ) { trace ( "Google Maps API Library Loaded" ) } ) } } , onMapAPIReady : function ( ) { VMM . master _config . googlemaps . map _active = ! 0 ; VMM . master _config . googlemaps . places _active = ! 0 ; VMM . ExternalAPI . googlemaps . onAPIReady ( ) } , onPlacesAPIReady : function ( ) { VMM . master _config . googlemaps . places _active = ! 0 ; VMM . ExternalAPI . googlemaps . onAPIReady ( ) } , onAPIReady : function ( ) { if ( ! VMM . master _config . googlemaps . active && VMM . master _config . googlemaps . map _active && VMM . master _config . googlemaps . places _active ) { VMM . master _config . googlemaps . active = ! 0 ; for ( var a = 0 ; a < VMM . master _config . googlemaps . que . length ; a ++ ) VMM . ExternalAPI . googlemaps . createMap ( VMM . master _config . googlemaps . que [ a ] ) } } , map _subdomains : [ "" , "a." , "b." , "c." , "d." ] , map _attribution : { stamen : "Map tiles by <a href='http://stamen.com'>Stamen Design</a>, under <a href='http://creativecommons.org/licenses/by/3.0'>CC BY 3.0</a>. Data by <a href='http://openstreetmap.org'>OpenStreetMap</a>, under <a href='http://creativecommons.org/licenses/by-sa/3.0'>CC BY SA</a>." , apple : "Map data © 2012 Apple, Imagery © 2012 Apple" } , map _providers : { toner : { url : "http://{S}tile.stamen.com/toner/{Z}/{X}/{Y}.png" , minZoom : 0 , maxZoom : 20 , attribution : "stamen" } , "toner-lines" : { url : "http://{S}tile.stamen.com/toner-lines/{Z}/{X}/{Y}.png" , minZoom : 0 , maxZoom : 20 , attribution : "stamen" } , "toner-labels" : { url : "http://{S}tile.stamen.com/toner-labels/{Z}/{X}/{Y}.png" , minZoom : 0 , maxZoom : 20 , attribution : "stamen" } , sterrain : { url : "http://{S}tile.stamen.com/terrain/{Z}/{X}/{Y}.jpg" , minZoom : 4 , maxZoom : 20 , attribution : "stamen" } , apple : { url : "http://gsp2.apple.com/tile?api=1&style=slideshow&layers=default&lang=en_US&z={z}&x={x}&y={y}&v=9" , minZoom : 4 , maxZoom : 20 , attribution : "apple" } , watercolor : { url : "http://{S}tile.stamen.com/watercolor/{Z}/{X}/{Y}.jpg" , minZoom : 3 , maxZoom : 16 , attribution : "stamen" } } , createMap : function ( a ) { function c ( 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 ] } throw 'No such provider: "' + a + '"' } function o ( ) { var b = a . url + "&output=kml" ; b = b . replace ( "&output=embed" , "" ) ; var c = new google . maps . KmlLayer ( b , { preserveViewport : ! 0 } ) ; c . setMap ( m ) ; var d = new google . maps . InfoWindow ; google . maps . event . addListenerOnce ( c , "defaultviewport_changed" , function ( ) { m . fitBounds ( c . getDefaultViewport ( ) ) ; h && m . panTo ( e ) ; i && m . setZoom ( g ) } ) ; google . maps . event . addListener ( c , "click" , function ( a ) { function c ( a ) { d . setContent ( a ) ; d . open ( m ) } var b = a . featureData . description ; trace ( a . featureData . infoWindowHtml ) ; c ( b ) } ) } trace ( VMM . ExternalAPI . googlemaps . stamen _map _attribution ) ; var b = "" ; google . maps . VeriteMapType = function ( a ) { var b = c ( 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 ( "_" ) ; var d ; type . of ( VMM . master _config . Timeline . maptype ) == "string" ? d = VMM . master _config . Timeline . maptype : d = "toner" ; var e = new google . maps . LatLng ( 41.875696 , - 87.624207 ) , f , g = 11 , h = ! 1 , i = ! 1 , j ; if ( type . of ( VMM . Util . getUrlVars ( a . url ) [ "ll" ] ) == " strin
, "<a href='http://twitter.com/$2' target='_blank'>$1</a>" ) . replace ( e , "<a href='http://twitter.com/#search?q=%23$2' target='_blank'>$1</a>" ) } ) ; var dateFormat = function ( ) { var a = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g , b = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g , c = /[^-+\dA-Z]/g , d = function ( a , b ) { a = String ( a ) ; b = b || 2 ; while ( a . length < b ) a = "0" + a ; return a } ; return function ( e , f , g ) { var h = dateFormat ; if ( arguments . length == 1 && Object . prototype . toString . call ( e ) == "[object String]" && ! /\d/ . test ( e ) ) { f = e ; e = undefined } e = e ? new Date ( e ) : new Date ; if ( isNaN ( e ) ) throw SyntaxError ( "invalid date" ) ; f = String ( h . masks [ f ] || f || h . masks [ "default" ] ) ; if ( f . slice ( 0 , 4 ) == "UTC:" ) { f = f . slice ( 4 ) ; g = ! 0 } var i = g ? "getUTC" : "get" , j = e [ i + "Date" ] ( ) , k = e [ i + "Day" ] ( ) , l = e [ i + "Month" ] ( ) , m = e [ i + "FullYear" ] ( ) , n = e [ i + "Hours" ] ( ) , o = e [ i + "Minutes" ] ( ) , p = e [ i + "Seconds" ] ( ) , q = e [ i + "Milliseconds" ] ( ) , r = g ? 0 : e . getTimezoneOffset ( ) , s = { d : j , dd : d ( j ) , ddd : h . i18n . dayNames [ k ] , dddd : h . i18n . dayNames [ k + 7 ] , m : l + 1 , mm : d ( l + 1 ) , mmm : h . i18n . monthNames [ l ] , mmmm : h . i18n . monthNames [ l + 12 ] , yy : String ( m ) . slice ( 2 ) , yyyy : m , h : n % 12 || 12 , hh : d ( n % 12 || 12 ) , H : n , HH : d ( n ) , M : o , MM : d ( o ) , s : p , ss : d ( p ) , l : d ( q , 3 ) , L : d ( q > 99 ? Math . round ( q / 10 ) : q ) , t : n < 12 ? "a" : "p" , tt : n < 12 ? "am" : "pm" , T : n < 12 ? "A" : "P" , TT : n < 12 ? "AM" : "PM" , Z : g ? "UTC" : ( String ( e ) . match ( b ) || [ "" ] ) . pop ( ) . replace ( c , "" ) , o : ( r > 0 ? "-" : "+" ) + d ( Math . floor ( Math . abs ( r ) / 60 ) * 100 + Math . abs ( r ) % 60 , 4 ) , S : [ "th" , "st" , "nd" , "rd" ] [ j % 10 > 3 ? 0 : ( j % 100 - j % 10 != 10 ) * j % 10 ] } ; return f . replace ( a , function ( a ) { return a in s ? s [ a ] : a . slice ( 1 , a . length - 1 ) } ) } } ( ) ; dateFormat . masks = { "default" : "ddd mmm dd yyyy HH:MM:ss" , shortDate : "m/d/yy" , mediumDate : "mmm d, yyyy" , longDate : "mmmm d, yyyy" , fullDate : "dddd, mmmm d, yyyy" , shortTime : "h:MM TT" , mediumTime : "h:MM:ss TT" , longTime : "h:MM:ss TT Z" , isoDate : "yyyy-mm-dd" , isoTime : "HH:MM:ss" , isoDateTime : "yyyy-mm-dd'T'HH:MM:ss" , isoUtcDateTime : "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'" } ; dateFormat . i18n = { dayNames : [ "Sun" , "Mon" , "Tue" , "Wed" , "Thu" , "Fri" , "Sat" , "Sunday" , "Monday" , "Tuesday" , "Wednesday" , "Thursday" , "Friday" , "Saturday" ] , monthNames : [ "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec" , "January" , "February" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "December" ] } ; Date . prototype . format = function ( a , b ) { return dateFormat ( this , a , b ) } } window . loadedJS = [ ] ; typeof VMM != "undefined" && typeof VMM . LoadLib == "undefined" && ( VMM . LoadLib = function ( a ) { function i ( a ) { var b = ! 1 ; for ( var c = 0 ; c < h . length ; c ++ ) h [ c ] == a && ( b = ! 0 ) ; b || h . push ( a ) ; return b } function j ( b , c ) { var d = a . createElement ( b ) , e ; for ( e in c ) c . hasOwnProperty ( e ) && d . setAttribute ( e , c [ e ] ) ; return d } function k ( a ) { var b = d [ a ] , c , g ; if ( b ) { c = b . callback ; g = b . urls ; g . shift ( ) ; e = 0 ; if ( ! g . length ) { c && c . call ( b . context , b . obj ) ; d [ a ] = null ; f [ a ] . length && m ( a ) } } } function l ( ) { var c = navigator . userAgent ; b = { async : a . createElement ( "script" ) . async === ! 0 } ; ( b . webkit = /AppleWebKit\// . test ( c ) ) || ( b . ie = /MSIE/ . test ( c ) ) || ( b . opera = /Opera/ . test ( c ) ) || ( b . gecko = /Gecko\// . test ( c ) ) || ( b . unknown = ! 0 ) } function m ( e , g , h , i , m ) { var p = function ( ) { k ( e ) } , q = e === "css" , r = [ ] , s , t , u , v , w , x ; b || l ( ) ; if ( g ) { g = typeof g == "string" ? [ g ] : g . concat ( ) ; if ( q || b . async || b . gecko || b . opera ) f [ e ] . push ( { urls : g , callback : h , obj : i , context : m } ) ; else for ( s = 0 , t = g . length ; s < t ; ++ s ) f [ e ] . push ( { urls : [ g [ s ] ] , callback : s === t - 1 ? h : null , obj : i , context : m } ) } if ( d [ e ] || ! ( v = d [ e ] = f [ e ] . shift ( ) ) ) return ; c || ( c = a . head || a . getElementsByTagName ( "head" ) [ 0 ] ) ; w = v . urls ; for ( s = 0 , t = w . length ; s < t ; ++ s ) { x = w [ s ] ; if ( q ) u = b . gecko ? j ( "style" ) : j ( "link" , { href : x , rel : "stylesheet" } ) ; else { u = j ( "script" , { src : x } ) ; u . async = ! 1 } u . className = "lazyload" ; u . setAttribute ( "charset" , "utf-8" ) ; if ( b . ie && ! q ) u . onreadystatechange = function ( ) { if ( /loaded|complete/ . test ( u . readyState ) ) { u . onreadystatechange = null ; p ( ) } } ; else if ( q && ( b . gecko || b . webkit ) ) if ( b . webkit ) { v . urls [ s ] = u . href ; o ( ) } else { u . innerHTML = '@import "' + x + '";' ; n ( u ) } else u . onload = u . onerror = p ; r . push ( u ) } for ( s = 0 , t = r . length ; s < t ; ++ s ) c . appendChild ( r [ s ] ) } function n ( a ) { var b ; try { b = ! ! a . sheet . cssRules } catch ( c ) { e += 1 ; e < 200 ? setTimeout ( function ( ) { n ( a ) } , 50 ) : b && k ( "css" ) ; return } k ( "css" ) } function o ( ) { var a = d . css , b ; if ( a ) { b = g . length ; while ( -- b >= 0 ) if ( g [ b ] . href === a . urls [ 0 ] ) { k ( "css" ) ; break } e += 1 ; a && ( e < 200 ? setTime
, VMM . Timeline . DataObj . model _Tweets . onTwitterDataReady , "TWEETSLOADED" ) ; VMM . ExternalAPI . twitter . getTweetSearch ( a ) } , onTwitterDataReady : function ( a , b ) { var c = VMM . Timeline . DataObj . data _template _obj ; for ( var d = 0 ; d < b . tweetdata . length ; d ++ ) { var e = { type : "tweets" , startDate : "" , headline : "" , text : "" , asset : { media : "" , credit : "" , caption : "" } , tags : "Optional" } ; e . startDate = b . tweetdata [ d ] . raw . created _at ; type . of ( b . tweetdata [ d ] . raw . from _user _name ) ? e . headline = b . tweetdata [ d ] . raw . from _user _name + " (<a href='https://twitter.com/" + b . tweetdata [ d ] . raw . from _user + "'>" + "@" + b . tweetdata [ d ] . raw . from _user + "</a>)" : e . headline = b . tweetdata [ d ] . raw . user . name + " (<a href='https://twitter.com/" + b . tweetdata [ d ] . raw . user . screen _name + "'>" + "@" + b . tweetdata [ d ] . raw . user . screen _name + "</a>)" ; e . asset . media = b . tweetdata [ d ] . content ; c . timeline . date . push ( e ) } VMM . fireEvent ( global , "DATAREADY" , c ) } } , model _GoogleSpreadsheet : { type : "google spreadsheet" , getData : function ( a ) { var b = VMM . Util . getUrlVars ( a ) . key , c = "https://spreadsheets.google.com/feeds/list/" + b + "/od6/public/values?alt=json" ; VMM . getJSON ( c , VMM . Timeline . DataObj . model _GoogleSpreadsheet . buildData ) } , buildData : function ( a ) { VMM . fireEvent ( global , "MESSEGE" , "Parsing Data" ) ; var b = VMM . Timeline . DataObj . data _template _obj ; for ( var c = 0 ; c < a . feed . entry . length ; c ++ ) { var d = a . feed . entry [ c ] ; if ( d . gsx$titleslide . $t . match ( "start" ) ) { b . timeline . startDate = d . gsx$startdate . $t ; b . timeline . headline = d . gsx$headline . $t ; b . timeline . asset . media = d . gsx$media . $t ; b . timeline . asset . caption = d . gsx$mediacaption . $t ; b . timeline . asset . credit = d . gsx$mediacredit . $t ; b . timeline . text = d . gsx$text . $t ; b . timeline . type = "google spreadsheet" } else { var e = { type : "google spreadsheet" , startDate : d . gsx$startdate . $t , endDate : d . gsx$enddate . $t , headline : d . gsx$headline . $t , text : d . gsx$text . $t , asset : { media : d . gsx$media . $t , credit : d . gsx$mediacredit . $t , caption : d . gsx$mediacaption . $t } , tags : "Optional" } ; b . timeline . date . push ( e ) } } VMM . fireEvent ( global , "DATAREADY" , b ) } } , data _template _obj : { timeline : { headline : "" , description : "" , asset : { media : "" , credit : "" , caption : "" } , date : [ ] } } , date _obj : { startDate : "2012,2,2,11,30" , headline : "" , text : "" , asset : { media : "http://youtu.be/vjVfu8-Wp6s" , credit : "" , caption : "" } , tags : "Optional" } } ) ; typeof VMM != "undefined" && ( VMM . Language = { date : { month : [ "janvier" , "février" , "mars" , "avril" , "mai" , "juin" , "juillet" , "août" , "septembre" , "octobre" , "novembre" , "décembre" ] , month _abbr : [ "janv." , "févr." , "mars" , "avril" , "mai" , "juin" , "juil." , "août" , "sept." , "oct." , "nov." , "dec." ] , day : [ "dimanche" , "lundi" , "mardi" , "mercredi" , "jeudi" , "vendredi" , "samedi" ] , day _abbr : [ "dim." , "lu." , "ma." , "me." , "jeu." , "vend." , "sam." ] } , dateformats : { year : "yyyy" , month _short : "mmm" , month : "mmmm yyyy" , full _short : "d mmm" , full : "d mmmm yyyy" , time _no _seconds _short : "HH:MM" , time _no _seconds _small _date : "HH:MM'<br/><small>'d mmmm yyyy'</small>'" , full _long : "dddd',' d mmm yyyy 'um' HH:MM" , full _long _small _date : "HH:MM'<br/><small>'dddd',' d mmm yyyy'</small>'" } , messages : { loading _timeline : "Chargement de la frise en cours... " , return _to _title : "Retour à la page d'accueil" , expand _timeline : "Elargir la frise" , contract _timeline : "Réduire la frise" } } ) ;