",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=$(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Element={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test($.fn.jquery)?VMM.Element.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Element.css(a,"-webkit-transition","all "+j+" ease");VMM.Element.css(a,"-moz-transition","all "+j+" ease");VMM.Element.css(a,"-o-transition","all "+j+" ease");VMM.Element.css(a,"-ms-transition","all "+j+" ease");VMM.Element.css(a,"transition","all "+j+" ease");VMM.Element.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="Loading YouTube video...
";VMM.ExternalAPI.youtube.init(j.id)}else if(j.type=="vimeo")g="Loading Map...
";VMM.ExternalAPI.googlemaps.getMap(j.id,o)}else if(j.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");g=VMM.Util.properQuotes(j.id)}else if(j.type=="website")g="","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,"
"):d.type=="youtube"?VMM.appendElement(j,"
VIDEO ";d.content=e;d.raw=a;b.push(d);if(b.length==c){var g={tweetdata:b};VMM.fireEvent(global,"TWEETSLOADED",g)}}).success(function(){trace("second success")}).error(function(){trace("error")}).complete(function(){trace("complete")})}},getTweetSearch:function(a,b){var c=40;b!=null&&b!=""&&(c=b);var d="http://search.twitter.com/search.json?q="+a+"&rpp="+c+"&include_entities=true&result_type=mixed",e=[];VMM.getJSON(d,function(a){for(var b=0;b
";c.content=d;c.raw=a.results[b];e.push(c)}var g={tweetdata:e};VMM.fireEvent(global,"TWEETSLOADED",g)})},prettyHTML:function(a){var a=a.toString(),b={twitterid:a},c="http://api.twitter.com/1/statuses/show.json?id="+a+"&include_entities=true&callback=?";trace("id "+a);var d=setTimeout(VMM.ExternalAPI.twitter.notFoundError,4e3,a);VMM.getJSON(c,VMM.ExternalAPI.twitter.formatJSON).error(function(b,c,d){trace("TWITTER error");trace("TWITTER ERROR: "+c+" "+b.responseText);VMM.attachElement("#twitter_"+a,"
ERROR LOADING TWEET "+a+"
")}).success(function(){clearTimeout(d)})},notFoundError:function(a){trace("TWITTER JSON ERROR TIMEOUT "+a);VMM.attachElement("#twitter_"+a,"
TWEET NOT FOUND "+a+"
")},formatJSON:function(a){trace("TWITTER JSON LOADED F");trace(a);var b=a.id_str,c="
",d=VMM.Util.linkify_with_twitter(a.text,"_blank");c+=d;c+="
";c+="
"+" "+" ";c+="
";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
Stamen Design, under CC BY 3.0 . Data by OpenStreetMap , under CC BY SA .",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"])=="string"){h=!0;f=VMM.Util.getUrlVars(a.url).ll.split(",");e=new google.maps.LatLng(parseFloat(f[0]),parseFloat(f[1]))}else if(type.of(VMM.Util.getUrlVars(a.url)["sll"])=="string"){f=VMM.Util.getUrlVars(a.url).sll.split(",");e=new google.maps.LatLng(parseFloat(f[0]),parseFloat(f[1]))}if(type.of(VMM.Util.getUrlVars(a.url)["z"])=="string"){i=!0;g=parseFloat(VMM.Util.getUrlVars(a.url).z)}var k={zoom:g,disableDefaultUI:!0,mapTypeControl:!1,zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL,position:google.maps.ControlPosition.TOP_RIGHT},center:e,mapTypeId:d,mapTypeControlOptions:{mapTypeIds:[d]}},l=a.id.toString()+"_gmap";VMM.attachElement("#"+a.id,"
");var m=new google.maps.Map(document.getElementById(l),k);m.mapTypes.set(d,new google.maps.VeriteMapType(d));var n="";VMM.appendElement("#"+l,n);o()}},flickr:{getPhoto:function(a,b){var c="http://api.flickr.com/services/rest/?method=flickr.photos.getSizes&api_key="+Aes.Ctr.decrypt(VMM.master_config.keys.flickr,VMM.master_config.vp,256)+"&photo_id="+a+"&format=json&jsoncallback=?";VMM.getJSON(c,VMM.ExternalAPI.flickr.setPhoto)},setPhoto:function(a){var b=a.sizes.size[0].url.split("photos/")[1].split("/")[1],c="flickr_"+b,d=c+"_large",e=c+"_thumb",f,g=!1;for(var h=0;h0){VMM.TouchSlider.vertical?VMM.Element.animate(a,1e3,"",{top:0}):VMM.Element.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Element.css(a,"-webkit-transition-property","left");VMM.Element.css(a,"-webkit-transition-duration",c);VMM.Element.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Element.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Element.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Element.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Element.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Element.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Element.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Element.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Element.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Element.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Element.css(a,"left").substring(0,VMM.Element.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function w(){trace("onConfigSet")}function x(a,b){var c=!0,d=!1;a!=null&&(c=a);b!=null&&(d=b);j=s.slider.width;s.slider.nav.height=VMM.Element.height(u.prevBtnContainer);s.slider.content.width=j-s.slider.content.padding*2;VMM.Element.width(r,e.length*s.slider.content.width);if(d){var f=VMM.Element.position(e[i]);VMM.Element.css(q,"left",f.left)}F();G();VMM.Element.css(u.nextBtn,"left",j-s.slider.nav.width);VMM.Element.height(u.prevBtn,s.slider.height);VMM.Element.height(u.nextBtn,s.slider.height);VMM.Element.css(u.nextBtnContainer,"top",s.slider.height/2-s.slider.nav.height/2);VMM.Element.css(u.prevBtnContainer,"top",s.slider.height/2-s.slider.nav.height/2);VMM.Element.height(p,s.slider.height);VMM.Element.width(p,j);c&&I(i,"linear",1);i==0&&VMM.Element.visible(u.prevBtn,!1)}function y(a){if(i==e.length-1)VMM.Element.animate(q,s.duration,s.ease,{left:-VMM.Element.position(e[i]).left});else{I(i+1);C()}}function z(a){if(i==0)I(i);else{I(i-1);C()}}function A(a){switch(a.keyCode){case 39:y(a);break;case 37:z(a)}}function B(a,b){if(g.length==0)for(var c=0;c-VMM.Element.position(e[i]).left+s.slider_width/3?z():VMM.Element.animate(q,s.duration,s.ease,{left:-VMM.Element.position(e[i]).left})}else VMM.Element.animate(q,s.duration,s.ease,{left:-VMM.Element.position(e[i]).left});typeof b.top=="number"&&VMM.Element.animate(q,s.duration,s.ease,{top:-b.top})}function C(){VMM.fireEvent(n,"UPDATE")}var c={},d=[],e=[],f=[],g=[],h="",i=0,j=960,k={move:!1,x:10,y:0,off:0,dampen:48},l="",m=!1,n=a,o,p,q,r,s={slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}},t={interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15},u={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""};this.ver="0.6";if(type.of(b)=="object"){var v;for(v in b)Object.prototype.hasOwnProperty.call(b,v)&&(s[v]=b[v])}else if(type.of(t)=="object"){var v;for(v in t)Object.prototype.hasOwnProperty.call(t,v)&&(s[v]=t[v])}s.slider.width=s.width;s.slider.height=s.height;this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return s.slider.width;s.slider.width=a;x()};this.height=function(a){if(a==null||a=="")return s.slider.height;s.slider.height=a;x()};this.setData=function(a){if(typeof a!="undefined"){d=a;K()}else trace("NO DATA")};this.getData=function(){return d};this.setConfig=function(a){typeof a!="undefined"?s=a:trace("NO CONFIG DATA")};this.getConfig=function(){return s};this.setSize=function(a,b){a!=null&&(s.slider.width=a);b!=null&&(s.slider.height=b);m&&x()};this.active=function(){return m};this.getCurrentNumber=function(){return i};this.setSlide=function(a){I(a)};var D=function(a){d=a},E=function(a){VMM.attachElement(r,"");for(var b=0;b","slider-item",c);e.push(d)}},F=function(){VMM.Element.css(".slider-item","width",s.slider.content.width);VMM.Element.height(".slider-item",s.slider.height);var a=Math.round(s.slider.height)-160,b=Math.round(a/9*16),c=s.slider.content.width/100*60,d=Math.round(c/16*9)+25,e=Math.round(s.slider.height)-160,f=s.slider.content.width/100*60,g=!1;j<=650?g=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?g=!0:VMM.Browser.device=="tablet"&&VMM.Browser.orientation=="portrait"&&(g=!0);if(g){e=s.slider.height/100*40-40;c=s.slider.content.width;a=Math.round(c/16*9);f=s.slider.content.width;VMM.Element.css(".slider-item .layout-text-media .text","width","100%");VMM.Element.css(".slider-item .layout-text-media .text","display","block");VMM.Element.css(".slider-item .layout-text-media .media","float","none");VMM.Element.css(".slider-item .media blockquote p","line-height","18px");VMM.Element.css(".slider-item .media blockquote p","font-size","16px");VMM.Element.css(".slider-item .content","height",s.slider.height);VMM.Element.css(".slider-item","display","block");VMM.Element.css(".slider-item","overflow-y","auto")}else{e=s.slider.height-40;c=s.slider.content.width/100*60;f=s.slider.content.width/100*60;VMM.Element.css(".slider-item .layout-text-media .text","width","40%");VMM.Element.css(".slider-item .layout-text-media .text","display","table-cell");VMM.Element.css(".slider-item .layout-text-media .media","float","left");VMM.Element.css(".slider-item .layout-text-media","display","table");VMM.Element.css(".slider-item","display","table");VMM.Element.css(".slider-item","overflow-y","auto")}VMM.Element.css(".slider-item .layout-text-media .media .media-container img","max-height",e);VMM.Element.css(".slider-item .layout-media .media .media-container img","max-height",e-60);VMM.Element.css(".slider-item .layout-text-media .media .media-container img","max-width",f);VMM.Element.css(".slider-item .layout-text-media .media .media-container img","max-width",f);VMM.Element.css(".slider-item .media .media-container .twitter .avatar img","max-width",32);VMM.Element.css(".slider-item .media .media-container .twitter .avatar img","max-height",32);VMM.Element.height(".slider-item .media .media-container .media-frame",d);VMM.Element.width(".slider-item .media .media-container .media-frame",c);VMM.Element.height(".slider-item .layout-media .media .media-container .media-frame",a);VMM.Element.width(".slider-item .layout-media .media .media-container .media-frame",b);VMM.Element.height(".slider-item .layout-media .media .media-container .soundcloud",s.slider.height-150);VMM.Element.width(".slider-item .layout-media .media .media-container .soundcloud",s.slider.content.width);VMM.Element.width(".slider-item .layout-text-media .media .media-container .soundcloud",c);VMM.Element.css(".slider-item .media .media-container .soundcloud","max-height",168);VMM.Element.height(".slider-item .layout-text-media .media .media-container .map",e);VMM.Element.height(".slider-item .layout-media .media .media-container .map",a+60);VMM.Element.width(".slider-item .layout-media .media .media-container .map",c);VMM.Element.height(".slider-item .layout-text-media .media .media-container .doc",e);VMM.Element.height(".slider-item .layout-media .media .media-container .doc",a+60);VMM.Element.css(".slider-item .layout-text-media .media .media-container .media-frame","max-width",s.slider.content.width)},G=function(){var a=0;for(var b=0;b=e.length&&(k=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(j=c);var m=VMM.Element.position(e[i]);if(l)VMM.Element.visible(u.prevBtn,!1);else{VMM.Element.visible(u.prevBtn,!0);s.type=="timeline"&&VMM.attachElement(u.prevDate,d[i-1].date);VMM.attachElement(u.prevTitle,VMM.Util.unlinkify(d[i-1].title))}if(k)VMM.Element.visible(u.nextBtn,!1);else{VMM.Element.visible(u.nextBtn,!0);s.type=="timeline"&&VMM.attachElement(u.nextDate,d[i+1].date);VMM.attachElement(u.nextTitle,VMM.Util.unlinkify(d[i+1].title))}if(f)VMM.Element.css(q,"left",-(m.left-s.slider.content.padding));else{VMM.Element.stop(q);VMM.Element.animate(q,j,h,{left:-(m.left-s.slider.content.padding)})}g&&VMM.fireEvent(n,"LOADED");if(VMM.Element.height(e[i])>s.slider_height)VMM.Element.css(".slider","overflow-y","scroll");else{VMM.Element.css(n,"overflow-y","hidden");VMM.Element.animate(n,j,h,{scrollTop:VMM.Element.prop(n,"scrollHeight")-VMM.Element.height(n)})}},J=function(){var a="
";u.nextBtn=VMM.appendAndGetElement(o,"","nav-next");u.prevBtn=VMM.appendAndGetElement(o,"
","nav-previous");u.nextBtnContainer=VMM.appendAndGetElement(u.nextBtn,"
","nav-container",a);u.prevBtnContainer=VMM.appendAndGetElement(u.prevBtn,"
","nav-container",a);if(s.type=="timeline"){u.nextDate=VMM.appendAndGetElement(u.nextBtnContainer,"
","date","1957");u.prevDate=VMM.appendAndGetElement(u.prevBtnContainer,"
","date","1957")}u.nextTitle=VMM.appendAndGetElement(u.nextBtnContainer,"
","title","Title Goes Here");u.prevTitle=VMM.appendAndGetElement(u.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",y);VMM.bindEvent(".nav-previous",z);VMM.bindEvent(window,A,"keydown")},K=function(){VMM.attachElement(n,"");o=VMM.getElement("div.slider");p=VMM.appendAndGetElement(o,"
","slider-container-mask");q=VMM.appendAndGetElement(p,"
","slider-container");r=VMM.appendAndGetElement(q,"
","slider-item-container");J();E(d);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){s.duration=500;a=1e3;VMM.TouchSlider.createPanel(q,q,VMM.Element.width(e[0]),s.spacing,!0);VMM.bindEvent(q,B,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";x(!1,!0);VMM.Element.visible(u.prevBtn,!1);I(0,"easeOutExpo",a,!0,!0);m=!0}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},parseDate:function(a){var b;if(a.match(/,/gi)){var c=a.split(",");for(var d=0;d
1?b.setMonth(c[1]-1):b.setMonth(0);c[2]>1?b.setDate(c[2]):b.setDate(1);c[3]>1?b.setHours(c[3]):b.setHours(0);c[4]>1?b.setMinutes(c[4]):b.setMinutes(0);c[5]>1?b.setSeconds(c[5]):b.setSeconds(0);c[6]>1?b.setMilliseconds(c[6]):b.setMilliseconds(0)}else if(a.match("/"))b=new Date(a);else if(a.length<5){b=new Date;b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},ratio:{r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"dddd', 'h:MM TT''mmmm d',' yyyy' '",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT''dddd',' mmm d',' yyyy' '"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},prettyDate:function(a,b,c){var d="";if(type.of(a)=="date")a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?d=dateFormat(a,VMM.Util.date.dateformats.year):a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?d=dateFormat(a,VMM.Util.date.dateformats.month_short):d=dateFormat(a,VMM.Util.date.dateformats.month):a.getHours()===0&&a.getMinutes()===0?b?d=dateFormat(a,VMM.Util.date.dateformats.full_short):d=dateFormat(a,VMM.Util.date.dateformats.full):a.getMinutes()===0?b?d=dateFormat(a,VMM.Util.date.dateformats.time_no_seconds_short):d=dateFormat(a,VMM.Util.date.dateformats.time_no_seconds_small_date):b?d=dateFormat(a,VMM.Util.date.dateformats.time_no_seconds_short):d=dateFormat(a,VMM.Util.date.dateformats.full_long);else{trace("NOT A VALID DATE?");trace(a)}return d}},doubledigit:function(a){return(a<10?"0":"")+a},truncateWords:function(a,b,c){b||(b=30);c||(c=b);var d=/^[^A-Za-z0-9\'\-]+/gi,e=a.replace(d,""),f=e.split(" "),g=[];b=Math.min(f.length,b);c=Math.min(f.length,c);for(var h=0;h$&").replace(e,"$1$2 ").replace(f,"$1 ")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3 ")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14 $3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2 ").replace(i,"$1 ").replace(j,"$1 ").replace(k,"$1 ")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g," ")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d $& ').replace(b,'$1$2 ').replace(c,'$1 ').replace(d,"$1 ").replace(e,"$1 ")});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.length99?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=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"dddd', 'h:MM TT''mmmm d',' yyyy' '",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT''dddd',' mmm d',' yyyy' '"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c){function q(a,b){j=b.timeline;type.of(j.era)!="array"&&(j.era=[]);G()}function r(){C()}function s(){E();o.setSize(l.feature.width,l.feature.height);p.setSize(l.width,l.height);F()}function t(a){l.loaded.slider=!0;u()}function u(a){l.loaded.percentloaded=l.loaded.percentloaded+25;l.loaded.slider&&l.loaded.timenav&&A()}function v(a){l.loaded.timenav=!0;u()}function w(a){p.setMarker(o.getCurrentNumber(),l.ease,l.duration)}function x(a){o.setSlide(p.getCurrentNumber())}var d="0.98";trace("TIMELINE VERSION "+d);var e,f,g,h;e=VMM.getElement("#timeline");h=VMM.getElement("#timeline");f=VMM.appendAndGetElement(e,"","feedback","");g=VMM.appendAndGetElement(f,"
","messege","#Timeline");var i={},j={},k=[],l={type:"timeline",maptype:"toner",interval:10,something:0,width:960,height:540,spacing:15,loaded:{slider:!1,timenav:!1,percentloaded:0},nav:{width:960,height:200},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};VMM.Timeline.Config=l;VMM.master_config.Timeline=VMM.Timeline.Config;if(a!=null&&a!=""){l.width=a;VMM.Element.width(e,a)}else l.width=VMM.Element.width(e);if(b!=null&&b!=""){l.height=b;VMM.Element.height(e,b)}else l.height=VMM.Element.height(e);l.nav={width:l.width,height:200};l.feature={width:l.width,height:l.height-l.nav.height};VMM.Browser.device=="mobile"&&(l.feature.height=l.height);if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var m;for(m in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,m)&&(l[m]=timeline_config[m])}else if(typeof c=="object"){var m;for(m in c)Object.prototype.hasOwnProperty.call(c,m)&&(l[m]=c[m])}var n=!1;VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7&&(n=!0);var o=new VMM.Slider("div.slider",l),p=new VMM.Timeline.TimeNav("div.navigation",720,400,!0);this.init=function(a){trace("TIMELINE INIT");trace(VMM.Timeline.Config.language);VMM.Util.date.setLanguage(VMM.Timeline.Config.language);VMM.bindEvent(global,q,"DATAREADY");VMM.bindEvent(global,z,"MESSEGE");if(n){f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Internet Explorer 7 is not supported by #Timeline.")}else{type.of(a)=="string"?VMM.Timeline.DataObj.getData(a):VMM.Timeline.DataObj.getData(h);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline)}};this.iframeLoaded=function(){trace("iframeLoaded")};var y=function(a){VMM.getJSON(a,function(a){j=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},z=function(a,b){g=VMM.appendAndGetElement(f,"
","messege",b)},A=function(){VMM.Element.animate(f,l.duration,l.ease*4,{opacity:0},B)},B=function(){VMM.Element.detach(f)},C=function(){VMM.attachElement(e,"");VMM.appendElement(e,"
");s();VMM.bindEvent("div.slider",t,"LOADED");VMM.bindEvent("div.navigation",v,"LOADED");VMM.bindEvent("div.slider",w,"UPDATE");VMM.bindEvent("div.navigation",x,"UPDATE");o.init(k);p.init(k,j.era);VMM.bindEvent(global,s,"resize")},D=function(a,b){E();var c=a,d="",e={};e._text="";e._media="";var f=!1,g=!1,h=!1;if(type.of(b)=="date"){f=!0;a.type!="start"&&(e._text+=VMM.createElement("h2",VMM.Util.date.prettyDate(b),"date"));c.headline!=null&&c.headline!=""&&c.type!="tweets"&&(a.type=="start"?e._text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):e._text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank")));if(c.text!=null&&c.text!=""){h=!0;e._text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}e._text=VMM.createElement("div",e._text,"container");e._text=VMM.createElement("div",e._text,"text")}if(f&&c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){g=!0;e._media=VMM.MediaElement.create("",c.asset,!0,l.feature.width,l.feature.height)}if(f){var i="content-container layout";h&&(i+="-text");g&&(i+="-media");d=VMM.createElement("div",e._text+e._media,i)}return d},E=function(){l.width=VMM.Element.width(e);l.height=VMM.Element.height(e);l.nav.width=l.width;l.feature.width=l.width;VMM.Browser.device=="mobile"?l.feature.height=l.height:l.feature.height=l.height-l.nav.height-3},F=function(){!(l.width<=480)},G=function(){E();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;a
t.min_multiplier){t.multiplier<=1?t.multiplier=t.multiplier-.25:t.multiplier>5?t.multiplier=Math.round(t.multiplier-4):t.multiplier=Math.round(t.multiplier-1);t.multiplier<=0&&(t.multiplier=t.min_multiplier);eb()}}function O(){VMM.DragSlider.cancelSlide();if(t.multiplier4?t.multiplier=Math.round(t.multiplier+4):t.multiplier=Math.round(t.multiplier+1);t.multiplier>=t.max_multiplier&&(t.multiplier=t.max_multiplier);eb()}}function P(a){VMM.DragSlider.cancelSlide();cb(0);M()}function Q(a){VMM.DragSlider.cancelSlide();cb(a.data.number);M()}function R(a){VMM.Element.toggleClass(a.data.elem,"zFront")}function S(a,b){VMM.Element.animate(v,b.time/2,t.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e=[],f,g=[],h=[],i=[],j=[],k={},l=0,m=!1,n={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,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},o={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3},p={type:"year",number:10,first:1970,last:2011,multiplier:100},q={type:"year",number:10,first:1970,last:2011,multiplier:100},r={type:"year",number:10,first:1970,last:2011,multiplier:100},s={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{}},t=VMM.Timeline.Config;t.something=0;t.nav_width=100;t.nav_height=200;t.timeline=!1;t.marker_width=150;t.marker_height=48;t.density=1;t.timeline_width=900;t.interval_width=200;t.rows=[1,1,1];t.multiplier=6;t.max_multiplier=16;t.min_multiplier=.1;t.has_start_page=!1;t.rows=[t.marker_height,t.marker_height*2,1];b!=null&&b!=""&&(t.width=b);c!=null&&c!=""&&(t.height=c);var u="",m=!1,v="",w="",x="",y="",z="",A="",B="",C="",D="",E="",F="",G="",H="",I={};I.nextBtn;I.prevBtn;I.nextDate;I.prevDate;I.nextTitle;I.prevTitle;this.ver="0.1";var J=a;this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){e=a;f=b;db()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(t.width=a);b!=null&&(t.height=b);m&&L()};this.setMarker=function(a,b,c,d){cb(a,b,c)};this.getCurrentNumber=function(){return l};var T=function(){var a=2,b=0,c=0;for(var d=0;d","marker");k=VMM.appendAndGetElement(j,"","flag");l=VMM.appendAndGetElement(k,"
","flag-content");m=VMM.appendAndGetElement(j,"
","dot");n=VMM.appendAndGetElement(j,"
","line");o=VMM.appendAndGetElement(n,"
","event-line");e[d].asset!=null&&e[d].asset!=""&&VMM.appendElement(l,VMM.MediaElement.thumbnail(e[d].asset,32,32));VMM.appendElement(l,"
"+VMM.Util.unlinkify(e[d].title)+" "+e[d].date+" ");VMM.Element.attr(j,"id",e[d].uniqueid.toString());VMM.bindEvent(k,Q,"",{number:d});VMM.bindEvent(k,R,"mouseenter mouseleave",{number:d,elem:k});var p={marker:j,flag:k,lineevent:o,type:"marker"};if(e[d].type=="start"){trace("BUILD MARKER HAS START PAGE");t.has_start_page=!0;p.type="start"}h.push(p)}for(var q=0;q
","era");VMM.Element.attr(r.content,"id",r.uniqueid);VMM.Element.css(r.content,"background",r.color);VMM.appendElement(r.content,""+VMM.Util.unlinkify(r.title)+" ");r.startdate=VMM.Util.parseDate(f[q].startDate);r.enddate=VMM.Util.parseDate(f[q].endDate);g.push(r)}},U=function(a,b,c){var d=a.type,e=a.multiplier,f=Z(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Z(c);i=c.months;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-p.base)*(t.interval_width/t.multiplier);_pos_end=(i-p.base)*(t.interval_width/t.multiplier)}else{if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-p.base)*(t.interval_width/t.multiplier);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},V=function(){var a=0,b=0,c=0,d=[];for(var f=0;f1&&(t.multiplier=t.multiplier-1)},Y=function(a){var b=p.type,c=p.multiplier,d=2,f=0,i=0,j=150,k=6,m=0;VMM.Element.removeClass(".flag","row1");VMM.Element.removeClass(".flag","row2");VMM.Element.removeClass(".flag","row3");for(var n=0;n5){VMM.Element.css(s,"height",k);VMM.Element.css(s,"width",o);VMM.Element.css(s,"top",j)}if(A-f","_idd"),o=!1;VMM.appendElement(n,k);VMM.Element.css(n,"text-indent",-(VMM.Element.width(n)/2));VMM.Element.css(n,"opacity","0");f=m;var s=new Date(p.date),u={interval_element:n,interval_date:s,interval_visible:o,type:"interval"};i.push(u)}c=!0;_major_first_pos=0;_major_last_pos=0;for(var h=0;h","major");VMM.appendElement(_interval_major_element,k);VMM.Element.css(_interval_major_element,"text-indent",-(VMM.Element.width(_interval_major_element)/2));c&&(_major_first_pos=m);c=!1;g=m;_major_last_pos=m;var v=new Date(q.date),x={interval_element:_interval_major_element,interval_date:v,interval_visible:!0,type:"interval major"};j.push(x)}VMM.Element.width(w,p.number*(t.interval_width/t.multiplier));_minor_pos_offset=50;var y=_major_last_pos-_major_first_pos+_minor_pos_offset*6,B=f+_minor_pos_offset*6;ye.length/t.density){p=s.millenium;q=s.millenium;r=s.millenium}else if(k.centuries>e.length/t.density){p=Math.ceil(s.century);q=s.millenium;r=s.decade}else if(k.decades>e.length/t.density){p=s.decade;q=Math.ceil(s.century);r=s.year}else if(k.years>e.length/t.density){p=s.year;q=s.decade;r=s.month}else if(k.months>e.length/t.density){p=s.month;q=s.year;r=s.day}else if(k.days>e.length/t.density){p=s.day;q=s.month;r=s.hour}else if(k.hours>e.length/t.density){p=s.hour;q=s.day;r=s.minute}else if(k.minutes>e.length/t.density){p=s.minute;q=s.hour;r=s.second}else if(k.seconds>e.length/t.density){p=s.second;q=s.minute;r=s.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");p=s.day;q=s.month;r=s.hour}trace(p.type);trace(q.type);trace();E=VMM.appendAndGetElement(y,"","minor")},cb=function(a,b,c,d,e){l=a;var f=t.ease,g=t.duration,i=!1,j=!1;l==0&&(j=!0);l+1==h.length&&(i=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);var k=VMM.Element.position(h[l].marker);for(var m=0;m
","timenav");w=VMM.appendAndGetElement(v,"","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(J,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");bb();T();X();Y();ab();L(!0);VMM.fireEvent(J,"LOADED");F=VMM.appendAndGetElement(J,"
","toolbar");if(t.has_start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",P,"click");VMM.Element.css(F,"top",27);VMM.Element.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Element.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Element.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Element.attribute(G,"rel","tooltip");VMM.Element.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Element.attribute(H,"rel","tooltip");VMM.bindEvent(".zoom-in",N,"click");VMM.bindEvent(".zoom-out",O,"click");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,t.width,t.spacing,!1);VMM.bindEvent(v,S,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(J,v,t.width,t.spacing,!1);m=!0},eb=function(){trace("config.multiplier "+t.multiplier);Y(!0);_(i,!0);_(j,!0)}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)!="string"){trace("DATA SOURCE: NOT JSON");trace("TRYING HTML PARSE");VMM.Timeline.DataObj.parseHTML(a)}else if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}},parseHTML:function(a){trace("parseHTML");var b=VMM.Timeline.DataObj.data_template_obj;if(VMM.Element.find("#timeline section","time")[0]){b.timeline.startDate=VMM.Element.html(VMM.Element.find("#timeline section","time")[0]);b.timeline.headline=VMM.Element.html(VMM.Element.find("#timeline section","h2"));b.timeline.text=VMM.Element.html(VMM.Element.find("#timeline section","article"));var c=!1;if(VMM.Element.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Element.attr(VMM.Element.find("#timeline section","figure img"),"src")}else if(VMM.Element.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Element.attr(VMM.Element.find("#timeline section","figure a"),"href")}if(c){VMM.Element.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Element.html(VMM.Element.find("#timeline section","cite")));VMM.Element.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Element.html(VMM.Element.find("#timeline section","figcaption")))}}VMM.Element.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Element.find(this,"time")!=0){d=!0;e.startDate=VMM.Element.html(VMM.Element.find(this,"time")[0]);VMM.Element.find(this,"time")[1]&&(e.endDate=VMM.Element.html(VMM.Element.find(this,"time")[0]));e.headline=VMM.Element.html(VMM.Element.find(this,"h3"));e.text=VMM.Element.html(VMM.Element.find(this,"article"));var f=!1;if(VMM.Element.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Element.attr(VMM.Element.find(this,"figure img"),"src")}else if(VMM.Element.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Element.attr(VMM.Element.find(this,"figure a"),"href")}if(f){VMM.Element.find(this,"cite").length!=0&&(e.asset.credit=VMM.Element.html(VMM.Element.find(this,"cite")));VMM.Element.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Element.html(VMM.Element.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: NO IDEA");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,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[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+" )";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){var b=VMM.Timeline.DataObj.data_template_obj;for(
var c=0;c'd. mmmm yyyy' '",full_long:"dddd',' d. mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM''dddd',' d. mmm yyyy' '"},messages:{loading_timeline:"Chronologie wird geladen...",return_to_title:"Zurück zum Anfang",expand_timeline:"Chronologie vergrößern",contract_timeline:"Chronologie verkleinern"}});