text: /*!
  	TimelineJS
  	Version 2.17
  	Designed and built by Zach Wise at VéritéCo
  	
  	Minor changes by Joe (EZG team) to match EZG needs!
  	
  	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.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.
  ================================================== */(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function d(){!a&&this.init&&this.init.apply(this,arguments)}var f=this.prototype;a=!0;var e=new this;a=!1;for(var h in c)e[h]="function"==typeof c[h]&&"function"==typeof f[h]&&b.test(c[h])?function(a,b){return function(){var c=this._super;this._super=f[a];var d=b.apply(this,arguments);this._super=c;return d}}(h,c[h]):c[h];d.prototype=e;d.prototype.constructor=d;d.extend=arguments.callee;
  return d}})();var global=function(){return this||(0,eval)("this")}();
  if("undefined"==typeof VMM){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},sizes:{api:{width:0,height:0}},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"uQKadH1VMlCsp560gN2aOiMz4evWkl1s34yryl3F/9FJOsn+/948CbBUvKLN46U=",twitter:""},timers:{api:7E3},api:{pushques:[]},twitter:{active:!1,array:[],api_loaded:!1,que:[]},flickr:{active:!1,array:[],
  api_loaded:!1,que:[]},youtube:{active:!1,array:[],api_loaded:!1,que:[]},vimeo:{active:!1,array:[],api_loaded:!1,que:[]},webthumb:{active:!1,array:[],api_loaded:!1,que:[]},googlemaps:{active:!1,map_active:!1,places_active:!1,array:[],api_loaded:!1,que:[]},googledocs:{active:!1,array:[],api_loaded:!1,que:[]},googleplus:{active:!1,array:[],api_loaded:!1,que:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[],tries:0},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,
  b,c,d,f){var e="";null!=a&&""!=a&&(e+="<"+a,null!=c&&""!=c&&(e+=" class='"+c+"'"),null!=d&&""!=d&&(e+=" "+d),null!=f&&""!=f&&(e+=" style='"+f+"'"),e+=">",null!=b&&""!=b&&(e+=b),e=e+"</"+a+">");return e};VMM.createMediaElement=function(a,b,c){var d;d="<div class='media'>";null!=a&&""!=a&&(valid=!0,d+="<img src='"+a+"'>",null!=c&&""!=c&&(d+=VMM.createElement("div",c,"credit")),null!=b&&""!=b&&(d+=VMM.createElement("div",b,"caption")));return d+"</div>"};VMM.hideUrlBar=function(){var a=window,b=a.document;
  if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){b.body&&(clearInterval(d),c="scrollTop"in b.body?b.body.scrollTop:1,a.scrollTo(0,1===c?0:1))},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,1===c?0:1)},0)},!1)}}}function trace(a){VMM.debug&&(window.console?console.log(a):"undefined"!=typeof jsTrace&&jsTrace.send(a))}
  Array.prototype.remove=function(a,b){var c=this.slice((b||a)+1||this.length);this.length=0>a?this.length+a:a;return this.push.apply(this,c)};Date.prototype.getWeek=function(){var a=new Date(this.getFullYear(),0,1);return Math.ceil(((this-a)/864E5+a.getDay()+1)/7)};Date.prototype.getDayOfYear=function(){var a=new Date(this.getFullYear(),0,1);return Math.ceil((this-a)/864E5)};
  var is={Null:function(a){return null===a},Undefined:function(a){return void 0===a},nt:function(a){return null===a||void 0===a},Function:function(a){return"function"===typeof a?null!==a.constructor.toString().match(/Function/):!1},String:function(a){return"string"===typeof a?!0:"object"===typeof a?null!==a.constructor.toString().match(/string/i):!1},Array:function(a){return"object"===typeof a?null!==a.constructor.toString().match(/array/i)||void 0!==a.length:!1},Boolean:function(a){return"boolean"===
  typeof a?!0:"object"===typeof a?null!==a.constructor.toString().match(/boolean/i):!1},Date:function(a){return"date"===typeof a?!0:"object"===typeof a?null!==a.constructor.toString().match(/date/i):!1},HTML:function(a){return"object"===typeof a?null!==a.constructor.toString().match(/html/i):!1},Number:function(a){return"number"===typeof a?!0:"object"===typeof a?null!==a.constructor.toString().match(/Number/):!1},Object:function(a){return"object"===typeof a?null!==a.constructor.toString().match(/object/i):
  !1},RegExp:function(a){return"function"===typeof a?null!==a.constructor.toString().match(/regexp/i):!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};
  "undefined"!=typeof VMM&&(VMM.smoothScrollTo=function(a,b,c){if("undefined"!=typeof jQuery){var d="easein",f=1E3;null!=b&&(f=1>b?1:Math.round(b));null!=c&&""!=c&&(d=c);jQuery(window).scrollTop()!=VMM.Lib.offset(a).top&&VMM.Lib.animate("html,body",f,d,{scrollTop:VMM.Lib.offset(a).top})}},VMM.attachElement=function(a,b){"undefined"!=typeof jQuery&&jQuery(a).html(b)},VMM.appendElement=function(a,b){"undefined"!=typeof jQuery&&jQuery(a).append(b)},VMM.getHTML=function(a){if("undefined"!=typeof jQuery)return a=
  jQuery(a).html()},VMM.getElement=function(a,b){var c;if("undefined"!=typeof jQuery)return c=b?jQuery(a).parent().get(0):jQuery(a).get(0)},VMM.bindEvent=function(a,b,c,d){var f="click",e={};null!=c&&""!=c&&(f=c);null!=e&&""!=e&&(e=d);"undefined"!=typeof jQuery&&jQuery(a).bind(f,e,b)},VMM.unbindEvent=function(a,b,c){var d="click";null!=c&&""!=c&&(d=c);"undefined"!=typeof jQuery&&jQuery(a).unbind(d,b)},VMM.fireEvent=function(a,b,c){var d="click",f=[];null!=b&&""!=b&&(d=b);null!=c&&""!=c&&(f=c);"undefined"!=
  typeof jQuery&&jQuery(a).trigger(d,f)},VMM.getJSON=function(a,b,c){if("undefined"!=typeof jQuery){jQuery.ajaxSetup({timeout:3E3});if("Explorer"==VMM.Browser.browser&&7<=parseInt(VMM.Browser.version,10)&&window.XDomainRequest){trace("IE JSON");var d=a;if(d.match("^http://"))return jQuery.getJSON(d,b,c);if(d.match("^https://"))return d=d.replace("https://","http://"),jQuery.getJSON(d,b,c)}return jQuery.getJSON(a,b,c)}},VMM.parseJSON=function(a){if("undefined"!=typeof jQuery)return jQuery.parseJSON(a)},
  VMM.appendAndGetElement=function(a,b,c,d){var f,e="",h="";null!=c&&""!=c&&(e=c);null!=d&&""!=d&&(h=d);"undefined"!=typeof jQuery&&(f=jQuery(b),f.addClass(e),f.html(h),jQuery(a).append(f));return f},VMM.Lib={init:function(){return this},hide:function(a,b){null!=b&&""!=b?"undefined"!=typeof jQuery&&jQuery(a).hide(b):"undefined"!=typeof jQuery&&jQuery(a).hide()},remove:function(a){"undefined"!=typeof jQuery&&jQuery(a).remove()},detach:function(a){"undefined"!=typeof jQuery&&jQuery(a).detach()},append:function(a,
  b){"undefined"!=typeof jQuery&&jQuery(a).append(b)},prepend:function(a,b){"undefined"!=typeof jQuery&&jQuery(a).prepend(b)},show:function(a,b){null!=b&&""!=b?"undefined"!=typeof jQuery&&jQuery(a).show(b):"undefined"!=typeof jQuery&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};null!=d&&""!=d&&(d=c);"undefined"!=typeof jQuery&&jQuery(a).load(d,b)},addClass:function(a,b){"undefined"!=typeof jQuery&&jQuery(a).addClass(b)},removeClass:function(a,b){"undefined"!=typeof jQuery&&jQuery(a).removeClass(b)},
  attr:function(a,b,c){if(null!=c&&""!=c)"undefined"!=typeof jQuery&&jQuery(a).attr(b,c);else if("undefined"!=typeof jQuery)return jQuery(a).attr(b)},prop:function(a,b,c){"undefined"!=typeof jQuery&&/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?jQuery(a).prop(b,c):VMM.Lib.attribute(a,b,c)},attribute:function(a,b,c){if(null!=c&&""!=c)"undefined"!=typeof jQuery&&jQuery(a).attr(b,c);else if("undefined"!=typeof jQuery)return jQuery(a).attr(b)},visible:function(a,b){if(null!=b)"undefined"!=typeof jQuery&&
  (b?jQuery(a).show(0):jQuery(a).hide(0));else if("undefined"!=typeof jQuery)return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(null!=c&&""!=c)"undefined"!=typeof jQuery&&jQuery(a).css(b,c);else if("undefined"!=typeof jQuery)return jQuery(a).css(b)},cssmultiple:function(a,b){if("undefined"!=typeof jQuery)return jQuery(a).css(b)},offset:function(a){var b;"undefined"!=typeof jQuery&&(b=jQuery(a).offset());return b},position:function(a){var b;"undefined"!=typeof jQuery&&(b=jQuery(a).position());
  return b},width:function(a,b){if(null!=b&&""!=b)"undefined"!=typeof jQuery&&jQuery(a).width(b);else if("undefined"!=typeof jQuery)return jQuery(a).width()},height:function(a,b){if(null!=b&&""!=b)"undefined"!=typeof jQuery&&jQuery(a).height(b);else if("undefined"!=typeof jQuery)return jQuery(a).height()},toggleClass:function(a,b){"undefined"!=typeof jQuery&&jQuery(a).toggleClass(b)},each:function(a,b){"undefined"!=typeof jQuery&&jQuery(a).each(b)},html:function(a,b){var c;if("undefined"!=typeof jQuery)return c=
  jQuery(a).html();if(null!=b&&""!=b)"undefined"!=typeof jQuery&&jQuery(a).html(b);else if("undefined"!=typeof jQuery)return c=jQuery(a).html()},find:function(a,b){if("undefined"!=typeof jQuery)return jQuery(a).find(b)},stop:function(a){"undefined"!=typeof jQuery&&jQuery(a).stop()},delay_animate:function(a,b,c,d,f,e){"mobile"==VMM.Browser.device||"tablet"==VMM.Browser.device?(a=Math.round(c/1500*10)/10+"s",VMM.Lib.css(b,"-webkit-transition","all "+a+" ease"),VMM.Lib.css(b,"-moz-transition","all "+a+
  " ease"),VMM.Lib.css(b,"-o-transition","all "+a+" ease"),VMM.Lib.css(b,"-ms-transition","all "+a+" ease"),VMM.Lib.css(b,"transition","all "+a+" ease"),VMM.Lib.cssmultiple(b,_att)):"undefined"!=typeof jQuery&&jQuery(b).delay(a).animate(f,{duration:c,easing:d})},animate:function(a,b,c,d,f,e){var h="easein",g=!1,l=1E3,r={};null!=b&&(l=1>b?1:Math.round(b));null!=c&&""!=c&&(h=c);null!=f&&""!=f&&(g=f);r=null!=d?d:{opacity:0};if("mobile"==VMM.Browser.device||"tablet"==VMM.Browser.device){b=Math.round(l/
  1500*10)/10+"s";h=" cubic-bezier(0.33, 0.66, 0.66, 1)";for(x in r)Object.prototype.hasOwnProperty.call(r,x)&&(trace(x+" to "+r[x]),VMM.Lib.css(a,"-webkit-transition",x+" "+b+h),VMM.Lib.css(a,"-moz-transition",x+" "+b+h),VMM.Lib.css(a,"-o-transition",x+" "+b+h),VMM.Lib.css(a,"-ms-transition",x+" "+b+h),VMM.Lib.css(a,"transition",x+" "+b+h));VMM.Lib.cssmultiple(a,r)}else"undefined"!=typeof jQuery&&(null!=e&&""!=e?jQuery(a).animate(r,{queue:g,duration:l,easing:h,complete:e}):jQuery(a).animate(r,{queue:g,
  duration:l,easing:h}))}});
  "undefined"!=typeof jQuery&&(function(a){window.XDomainRequest&&a.ajaxTransport(function(b){if(b.crossDomain&&b.async){b.timeout&&(b.xdrTimeout=b.timeout,delete b.timeout);var c;return{send:function(d,f){function e(b,d,e,r){c.onload=c.onerror=c.ontimeout=a.noop;c=void 0;f(b,d,e,r)}c=new XDomainRequest;c.open(b.type,b.url);c.onload=function(){e(200,"OK",{text:c.responseText},"Content-Type: "+c.contentType)};c.onerror=function(){e(404,"Not Found")};b.xdrTimeout&&(c.ontimeout=function(){e(0,"timeout")},
  c.timeout=b.xdrTimeout);c.send(b.hasContent&&b.data||null)},abort:function(){c&&(c.onerror=a.noop(),c.abort())}}}})}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,f){return jQuery.easing[jQuery.easing.def](a,b,c,d,f)},easeInExpo:function(a,b,c,d,f){return 0==b?c:d*Math.pow(2,10*(b/f-1))+c},easeOutExpo:function(a,b,c,d,f){return b==f?c+d:d*(-Math.pow(2,-10*b/f)+1)+c},easeInOutExpo:function(a,b,c,d,f){return 0==b?c:b==f?c+d:1>
  (b/=f/2)?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,f){return d*(b/=f)*b+c},easeOutQuad:function(a,b,c,d,f){return-d*(b/=f)*(b-2)+c},easeInOutQuad:function(a,b,c,d,f){return 1>(b/=f/2)?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}}));
  "undefined"!=typeof VMM&&"undefined"==typeof VMM.Browser&&(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 0==a||180==a?"portrait":
  90==a||-90==a?"landscape":"normal"},searchDevice:function(a){var b="";return b=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<a.length;b++){var c=a[b].string,d=a[b].prop;this.versionSearchString=a[b].versionSearch||a[b].identity;if(c){if(-1!=c.indexOf(a[b].subString))return a[b].identity}else if(d)return a[b].identity}},searchVersion:function(a){var b=a.indexOf(this.versionSearchString);
  if(-1!=b)return parseFloat(a.substring(b+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera",versionSearch:"Version"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},
  {string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,
  subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.userAgent,subString:"iPad",identity:"iPad"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]},VMM.Browser.init());
  "undefined"!=typeof VMM&&"undefined"==typeof VMM.FileExtention&&(VMM.FileExtention={googleDocType:function(a){a=a.replace(/\s\s*$/,"");for(var b="",c="DOC DOCX XLS XLSX PPT PPTX PDF PAGES AI PSD TIFF DXF SVG EPS PS TTF XPS ZIP RAR".split(" "),d=!1,b=a.substr(a.length-5,5),f=0;f<c.length;f++)if(b.toLowerCase().match(c[f].toString().toLowerCase())||a.match("docs.google.com"))d=!0;return d}});
  if("undefined"!=typeof VMM&&"undefined"==typeof VMM.Date){VMM.Date={init:function(){return this},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:"h:MM TT'<br/><small>'mmmm d',' yyyy'</small>'",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'<br/><small>mmm d',' yyyy'</small>'"},month:"January February March April May June July August September October November December".split(" "),
  month_abbr:"Jan. Feb. March April May June July Aug. Sept. Oct. Nov. Dec.".split(" "),day:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),day_abbr:"Sun. Mon. Tues. Wed. Thurs. Fri. Sat.".split(" "),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"],bc_format:{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'<br/><small>'mmmm d',' yyyy'</small>'",
  full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'<br/><small>'dddd',' mmm d',' yyyy'</small>'"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Date.dateformats=a.dateformats;VMM.Date.month=a.date.month;VMM.Date.month_abbr=a.date.month_abbr;VMM.Date.day=a.date.day;VMM.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)},parse:function(a){var b,c,d;if("date"==
  type.of(a))b=a;else if(b=new Date(0,0,1,0,0,0,0),a.match(/,/gi)){c=a.split(",");for(a=0;a<c.length;a++)c[a]=parseInt(c[a],10);c[0]&&b.setFullYear(c[0]);1<c[1]&&b.setMonth(c[1]-1);1<c[2]&&b.setDate(c[2]);1<c[3]&&b.setHours(c[3]);1<c[4]&&b.setMinutes(c[4]);1<c[5]&&b.setSeconds(c[5]);1<c[6]&&b.setMilliseconds(c[6])}else a.match("/")?(a.match(" ")?(d=a.split(" "),a.match(":")&&(a=d[1].split(":"),1<=a[0]&&b.setHours(a[0]),1<=a[1]&&b.setMinutes(a[1]),1<=a[2]&&b.setSeconds(a[2]),1<=a[3]&&b.setMilliseconds(a[3])),
  c=d[0].split("/")):c=a.split("/"),c[2]&&b.setFullYear(c[2]),1<c[0]&&b.setMonth(c[0]-1),1<c[1]&&b.setDate(c[1])):a.match("now")?(c=new Date,b.setFullYear(c.getFullYear()),b.setMonth(c.getMonth()),b.setDate(c.getDate()),a.match("hours")&&b.setHours(c.getHours()),a.match("minutes")&&(b.setHours(c.getHours()),b.setMinutes(c.getMinutes())),a.match("seconds")&&(b.setHours(c.getHours()),b.setMinutes(c.getMinutes()),b.setSeconds(c.getSeconds())),a.match("milliseconds")&&(b.setHours(c.getHours()),b.setMinutes(c.getMinutes()),
  b.setSeconds(c.getSeconds()),b.setMilliseconds(c.getMilliseconds()))):5>=a.length?(b.setFullYear(parseInt(a,10)),b.setMonth(0),b.setDate(1),b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0)):a.match("T")?navigator.userAgent.match(/MSIE\s(?!9.0)/)?(d=a.split("T"),a.match(":")&&(a=_time_parse[1].split(":"),1<=a[0]&&b.setHours(a[0]),1<=a[1]&&b.setMinutes(a[1]),1<=a[2]&&b.setSeconds(a[2]),1<=a[3]&&b.setMilliseconds(a[3])),_d_array=d[0].split("-"),c[0]&&b.setFullYear(c[0]),1<c[1]&&b.setMonth(c[1]-
  1),1<c[2]&&b.setDate(c[2])):b=new Date(Date.parse(a)):b=new Date(parseInt(a.slice(0,4),10),parseInt(a.slice(4,6),10)-1,parseInt(a.slice(6,8),10),parseInt(a.slice(8,10),10),parseInt(a.slice(10,12),10));return b},prettyDate:function(a,b,c){var d,f,e=!1,h,g;null!=c&&(e=!0);if("date"==type.of(a)){b=0===a.getMonth()&&1==a.getDate()&&0===a.getHours()&&0===a.getMinutes()?VMM.Date.dateformats.year:1>=a.getDate()&&0===a.getHours()&&0===a.getMinutes()?b?VMM.Date.dateformats.month_short:VMM.Date.dateformats.month:
  0===a.getHours()&&0===a.getMinutes()?b?VMM.Date.dateformats.full_short:VMM.Date.dateformats.full:0===a.getMinutes()?b?VMM.Date.dateformats.time_no_seconds_short:VMM.Date.dateformats.time_no_seconds_small_date:b?VMM.Date.dateformats.time_no_seconds_short:VMM.Date.dateformats.full_long;d=dateFormat(a,b,!1);a=d.split(" ");for(var l=0;l<a.length;l++)0>parseInt(a[l],10)&&(trace("YEAR IS BC"),h=a[l],g=Math.abs(parseInt(a[l],10)),g=g.toString()+" B.C.",d=d.replace(h,g));if(e)for(f=dateFormat(c,b),a=f.split(" "),
  c=0;c<a.length;c++)0>parseInt(a[c],10)&&(trace("YEAR IS BC"),h=a[c],g=Math.abs(parseInt(a[c],10)),g=g.toString()+" B.C.",f=f.replace(h,g))}else trace("NOT A VALID DATE?"),trace(a);return e?d+" &mdash; "+f:d}}.init();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);for(b=b||
  2;a.length<b;)a="0"+a;return a};return function(f,e,h){var g=dateFormat;1!=arguments.length||"[object String]"!=Object.prototype.toString.call(f)||/\d/.test(f)||(e=f,f=void 0);isNaN(f)&&trace("invalid date "+f);e=String(g.masks[e]||e||g.masks["default"]);"UTC:"==e.slice(0,4)&&(e=e.slice(4),h=!0);var l=h?"getUTC":"get",r=f[l+"Date"](),p=f[l+"Day"](),w=f[l+"Month"](),y=f[l+"FullYear"](),q=f[l+"Hours"](),C=f[l+"Minutes"](),K=f[l+"Seconds"](),l=f[l+"Milliseconds"](),D=h?0:f.getTimezoneOffset(),I={d:r,
  dd:d(r),ddd:g.i18n.dayNames[p],dddd:g.i18n.dayNames[p+7],m:w+1,mm:d(w+1),mmm:g.i18n.monthNames[w],mmmm:g.i18n.monthNames[w+12],yy:String(y).slice(2),yyyy:y,h:q%12||12,hh:d(q%12||12),H:q,HH:d(q),M:C,MM:d(C),s:K,ss:d(K),l:d(l,3),L:d(99<l?Math.round(l/10):l),t:12>q?"a":"p",tt:12>q?"am":"pm",T:12>q?"A":"P",TT:12>q?"AM":"PM",Z:h?"UTC":(String(f).match(b)||[""]).pop().replace(c,""),o:(0<D?"-":"+")+d(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][3<r%10?0:(10!=r%100-r%10)*r%10]};
  return e.replace(a,function(a){return a in I?I[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".split(" "),
  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".split(" ")};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}
  "undefined"!=typeof VMM&&"undefined"==typeof VMM.Util&&(VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="";a=a.split("://",2);c=b.match("http")?b:"https";return c+"://"+a[1]},mergeConfig:function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},getObjectAttributeByIndex:function(a,b){if("undefined"!=typeof a){var c=0,d;for(d in a){if(b===c)return a[d];c++}}return""},ordinal:function(a){return["th",
  "st","nd","rd"][a%10*!(3<a%10||1==Math.floor(a%100/10))]},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){for(var b={mean:0,variance:0,deviation:0},c=a.length,d,f=0,e=c;e--;f+=a[e]);d=b.mean=f/c;e=c;for(f=0;e--;f+=Math.pow(a[e]-d,2));return b.deviation=Math.sqrt(b.variance=f/c),b},customSort:function(a,b){return a==b?0:a>b?1:-1},deDupeArray:function(a){var b,c=a.length,d=[],f={};for(b=0;b<c;b++)f[a[b]]=0;for(b in f)d.push(b);return d},number2money:function(a,
  b,c){b=null!==b?b:!0;c=null!==c?c:!1;a=VMM.Math2.floatPrecision(a,2);a=this.niceNumber(a);!a.split(/\./g)[1]&&c&&(a+=".00");b&&(a="$"+a);return a},wordCount:function(a){a+=" ";var b=a.replace(/^[^A-Za-z0-9\'\-]+/gi,"").replace(/[^A-Za-z0-9\'\-]+/gi," ").split(" ").length-1;2>a.length&&(b=0);return b},ratio:{fit:function(a,b,c,d){var f={width:0,height:0};f.width=a;f.height=Math.round(a/c*d);f.height>b&&(f.height=b,f.width=Math.round(b/d*c),f.width>a&&trace("FIT: DIDN'T FIT!!! "));return f},r16_9:function(a,
  b){if(null!==a&&""!==a)return Math.round(b/16*9);if(null!==b&&""!==b)return Math.round(a/9*16)},r4_3:function(a,b){if(null!==a&&""!==a)return Math.round(b/4*3);if(null!==b&&""!==b)return Math.round(a/3*4)}},doubledigit:function(a){return(10>a?"0":"")+a},truncateWords:function(a,b,c){b||(b=30);c||(c=b);a=a.replace(/^[^A-Za-z0-9\'\-]+/gi,"").split(" ");var d=[];b=Math.min(a.length,b);c=Math.min(a.length,c);for(var f=0;f<b;f++)d.push(a[f]);for(;f<c&&(b=a[f],d.push(b),"."!=b.charAt(b.length-1));f++);
  return d.join(" ")},linkify:function(a,b,c){return a.replace(/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,"<a target='_blank' href='$&' onclick='void(0)'>$&</a>").replace(/(^|[^\/])(www\.[\S]+(\b|$))/gim,"$1<a target='_blank' onclick='void(0)' href='http://$2'>$2</a>").replace(/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,"<a target='_blank' onclick='void(0)' href='mailto:$1'>$1</a>")},linkify_with_twitter:function(a,b,c){return a.replace(/(\()((?: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,
  '$1$4$7$10$13<a href="$2$5$8$11$14" class="hyphenate">$2$5$8$11$14</a>$3$6$9$12').replace(/(^|[^\/])(www\.[\S]+(\b|$))/gim,"$1<a target='_blank' class='hyphenate' onclick='void(0)' href='http://$2'>$2</a>").replace(/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,"<a target='_blank' onclick='void(0)' href='mailto:$1'>$1</a>").replace(/\B@([\w-]+)/gm,"<a href='http://twitter.com/$1' target='_blank' onclick='void(0)'>@$1</a>").replace(/(#([\w]+))/g,"<a href='http://twitter.com/#search?q=%23$2' target='_blank' 'void(0)'>$1</a>")},
  linkify_wikipedia:function(a){return a.replace(/<i[^>]*>(.*?)<\/i>/gim,"<a target='_blank' href='http://en.wikipedia.org/wiki/$&' onclick='void(0)'>$&</a>").replace(/<i\b[^>]*>/gim,"").replace(/<\/i>/gim,"").replace(/<b\b[^>]*>/gim,"").replace(/<\/b>/gim,"")},unlinkify:function(a){if(!a)return a;a=a.replace(/<a\b[^>]*>/i,"");return a=a.replace(/<\/a>/i,"")},untagify:function(a){return a?a=a.replace(/<\s*\w.*?>/g,""):a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"<br/>")},unique_ID:function(a){for(var b=
  "",c=0;c<a;c++){var d;d="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ".substr(Math.floor(62*Math.random()),1);b+=d}return b},isEven:function(a){return 0===a%2?!0:!1},getUrlVars:function(a){var b=a.toString();b.match("&#038;")?b=b.replace("&#038;","&"):b.match("&#38;")?b=b.replace("&#38;","&"):b.match("&amp;")&&(b=b.replace("&amp;","&"));a=[];for(var c=b.slice(b.indexOf("?")+1).split("&"),d=0;d<c.length;d++)b=c[d].split("="),a.push(b[0]),a[b[0]]=b[1];return a},toHTML:function(a){a=this.nl2br(a);
  a=this.linkify(a);return a.replace(/\s\s/g,"&nbsp;&nbsp;")},toCamelCase:function(a,b){!1!==b&&(b=!0);for(var c=(b?a.toLowerCase():a).split(" "),d=0;d<c.length;d++)c[d]=c[d].substr(0,1).toUpperCase()+c[d].substr(1);return c.join(" ")},properQuotes:function(a){return a.replace(/\"([^\"]*)\"/gi,"&#8220;$1&#8221;")},niceNumber:function(a){x=(a+"").split(".");x1=x[0];x2=1<x.length?"."+x[1]:"";for(a=/(\d+)(\d{3})/;a.test(x1);)x1=x1.replace(a,"$1,$2");return x1+x2},toTitleCase:function(a){if("Explorer"==
  VMM.Browser.browser&&7<=parseInt(VMM.Browser.version,10))return a.replace("_","%20");var b={__smallWords:"a an and as at but by en for if in of on or the to v[.]? via vs[.]?".split(" "),init:function(){this.__smallRE=this.__smallWords.join("|");this.__lowerCaseWordsRE=new RegExp("\\b("+this.__smallRE+")\\b","gi");this.__firstWordRE=new RegExp("^([^a-zA-Z0-9 \\r\\n\\t]*)("+this.__smallRE+")\\b","gi");this.__lastWordRE=new RegExp("\\b("+this.__smallRE+")([^a-zA-Z0-9 \\r\\n\\t]*)$","gi")},toTitleCase:function(a){var b=
  "";a=a.split(/([:.;?!][ ]|(?:[ ]|^)["\u201c])/);for(var f=0;f<a.length;++f)var e=a[f],e=e.replace(/\b([a-zA-Z][a-z.'\u2019]*)\b/g,this.__titleCaseDottedWordReplacer),e=e.replace(this.__lowerCaseWordsRE,this.__lowerReplacer),e=e.replace(this.__firstWordRE,this.__firstToUpperCase),e=e.replace(this.__lastWordRE,this.__firstToUpperCase),b=b+e;b=b.replace(/ V(s?)\. /g," v$1. ");b=b.replace(/(['\u2019])S\b/g,"$1s");return b=b.replace(/\b(AT&T|Q&A)\b/ig,this.__upperReplacer)},__titleCaseDottedWordReplacer:function(a){return a.match(/[a-zA-Z][.][a-zA-Z]/)?
  a:b.__firstToUpperCase(a)},__lowerReplacer:function(a){return a.toLowerCase()},__upperReplacer:function(a){return a.toUpperCase()},__firstToUpperCase:function(a){a=a.split(/(^[^a-zA-Z0-9]*[a-zA-Z0-9])(.*)$/);a[1]&&(a[1]=a[1].toUpperCase());return a.join("")}};b.init();a=a.replace(/_/g," ");return a=b.toTitleCase(a)}}.init());
  LazyLoad=function(a){function b(b,c){var d=a.createElement(b),e;for(e in c)c.hasOwnProperty(e)&&d.setAttribute(e,c[e]);return d}function c(a){var b=r[a],c,d;b&&(c=b.callback,d=b.urls,d.shift(),p=0,d.length||(c&&c.call(b.context,b.obj),r[a]=null,w[a].length&&f(a)))}function d(){var b=navigator.userAgent;g={async:!0===a.createElement("script").async};(g.webkit=/AppleWebKit\//.test(b))||(g.ie=/MSIE/.test(b))||(g.opera=/Opera/.test(b))||(g.gecko=/Gecko\//.test(b))||(g.unknown=!0)}function f(f,C,y,p,I){var E=
  function(){c(f)},H="css"===f,F=[],t,v,A,k;g||d();if(C)if(C="string"===typeof C?[C]:C.concat(),H||g.async||g.gecko||g.opera)w[f].push({urls:C,callback:y,obj:p,context:I});else for(t=0,v=C.length;t<v;++t)w[f].push({urls:[C[t]],callback:t===v-1?y:null,obj:p,context:I});if(!r[f]&&(k=r[f]=w[f].shift())){l||(l=a.head||a.getElementsByTagName("head")[0]);C=k.urls;t=0;for(v=C.length;t<v;++t)y=C[t],H?A=g.gecko?b("style"):b("link",{href:y,rel:"stylesheet"}):(A=b("script",{src:y}),A.async=!1),A.className="lazyload",
  A.setAttribute("charset","utf-8"),g.ie&&!H?A.onreadystatechange=function(){/loaded|complete/.test(A.readyState)&&(A.onreadystatechange=null,E())}:H&&(g.gecko||g.webkit)?g.webkit?(k.urls[t]=A.href,h()):(A.innerHTML='@import "'+y+'";',e(A)):A.onload=A.onerror=E,F.push(A);t=0;for(v=F.length;t<v;++t)l.appendChild(F[t])}}function e(a){var b;try{b=!!a.sheet.cssRules}catch(d){p+=1;200>p?setTimeout(function(){e(a)},50):b&&c("css");return}c("css")}function h(){var a=r.css,b;if(a){for(b=y.length;0<=--b;)if(y[b].href===
  a.urls[0]){c("css");break}p+=1;a&&(200>p?setTimeout(h,50):c("css"))}}var g,l,r={},p=0,w={css:[],js:[]},y=a.styleSheets;return{css:function(a,b,c,d){f("css",a,b,c,d)},js:function(a,b,c,d){f("js",a,b,c,d)}}}(this.document);LoadLib=function(a){function b(a){for(var b=0,e=!1,b=0;b<c.length;b++)c[b]==a&&(e=!0);if(e)return!0;c.push(a);return!1}var c=[];return{css:function(a,c,e,h){b(a)||LazyLoad.css(a,c,e,h)},js:function(a,c,e,h){b(a)||LazyLoad.js(a,c,e,h)}}}(this.document);
  "undefined"!=typeof VMM&&"undefined"==typeof VMM.Language&&(VMM.Language={lang:"en",api:{wikipedia:"en"},date:{month:"January February March April May June July August September October November December".split(" "),month_abbr:"Jan. Feb. March April May June July Aug. Sept. Oct. Nov. Dec.".split(" "),day:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),day_abbr:"Sun. Mon. Tues. Wed. Thurs. Fri. Sat.".split(" ")},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:"h:MM TT'<br/><small>'mmmm d',' yyyy'</small>'",full_long:"mmm d',' yyyy 'at' h:MM TT",full_long_small_date:"h:MM TT'<br/><small>mmm d',' yyyy'</small>'"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline",wikipedia:"From Wikipedia, the free encyclopedia",loading_content:"Loading Content",loading:"Loading"}});
  "undefined"!=typeof VMM&&"undefined"==typeof VMM.ExternalAPI&&(VMM.ExternalAPI={keys:{google:"",flickr:"",twitter:""},keys_master:{vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},init:function(){return this},setKeys:function(a){VMM.ExternalAPI.keys=a},pushQues:function(){VMM.master_config.googlemaps.active&&VMM.ExternalAPI.googlemaps.pushQue();
  VMM.master_config.youtube.active&&VMM.ExternalAPI.youtube.pushQue();VMM.master_config.soundcloud.active&&VMM.ExternalAPI.soundcloud.pushQue();VMM.master_config.googledocs.active&&VMM.ExternalAPI.googledocs.pushQue();VMM.master_config.googleplus.active&&VMM.ExternalAPI.googleplus.pushQue();VMM.master_config.wikipedia.active&&VMM.ExternalAPI.wikipedia.pushQue();VMM.master_config.vimeo.active&&VMM.ExternalAPI.vimeo.pushQue();VMM.master_config.twitter.active&&VMM.ExternalAPI.twitter.pushQue();VMM.master_config.flickr.active&&
  VMM.ExternalAPI.flickr.pushQue();VMM.master_config.webthumb.active&&VMM.ExternalAPI.webthumb.pushQue()},twitter:{tweetArray:[],get:function(a){VMM.master_config.twitter.que.push({mid:a.id,id:a.uid});VMM.master_config.twitter.active=!0},create:function(a,b){var c="http://api.twitter.com/1/statuses/show.json?id="+a.mid+"&include_entities=true&callback=?",d=setTimeout(VMM.ExternalAPI.twitter.errorTimeOut,VMM.master_config.timers.api,a),f=setTimeout(b,VMM.master_config.timers.api,a);VMM.getJSON(c,function(b){var c=
  "<blockquote><p>",d=VMM.Util.linkify_with_twitter(b.text,"_blank"),c=c+d+"</p></blockquote>",c=c+"<div class='vcard author'>",c=c+("<a class='screen-name url' href='https://twitter.com/"+b.user.screen_name+"' data-screen-name='"+b.user.screen_name+"' target='_blank'>"),c=c+("<span class='avatar'><img src=' "+b.user.profile_image_url+"'  alt=''></span>"),c=c+("<span class='fn'>"+b.user.name+"</span>"),c=c+("<span class='nickname'>@"+b.user.screen_name+"<span class='thumbnail-inline'></span></span>"),
  c=c+"</a>",c=c+"</div>";VMM.attachElement("#"+a.id.toString(),c);VMM.attachElement("#text_thumb_"+a.id.toString(),b.text);VMM.attachElement("#marker_content_"+a.id.toString(),b.text)}).error(function(b,c,d){trace("TWITTER error");trace("TWITTER ERROR: "+c+" "+b.responseText);VMM.attachElement("#"+a.id,VMM.MediaElement.loadingmessage("ERROR LOADING TWEET "+a.mid))}).success(function(a){clearTimeout(d);clearTimeout(f);b()})},errorTimeOut:function(a){trace("TWITTER JSON ERROR TIMEOUT "+a.mid);VMM.attachElement("#"+
  a.id.toString(),VMM.MediaElement.loadingmessage("Still waiting on Twitter: "+a.mid));VMM.getJSON("http://api.twitter.com/1/account/rate_limit_status.json",function(b){trace("REMAINING TWITTER API CALLS "+b.remaining_hits);trace("TWITTER RATE LIMIT WILL RESET AT "+b.reset_time);var c="",c=0==b.remaining_hits?"<p>You've reached the maximum number of tweets you can load in an hour.</p>"+("<p>You can view tweets again starting at: <br/>"+b.reset_time+"</p>"):"<p>Still waiting on Twitter. "+a.mid+"</p>";
  VMM.attachElement("#"+a.id.toString(),VMM.MediaElement.loadingmessage(c))})},pushQue:function(){0<VMM.master_config.twitter.que.length&&(VMM.ExternalAPI.twitter.create(VMM.master_config.twitter.que[0],VMM.ExternalAPI.twitter.pushQue),VMM.master_config.twitter.que.remove(0))},getHTML:function(a){VMM.getJSON("http://api.twitter.com/1/statuses/oembed.json?id="+a+"&callback=?",VMM.ExternalAPI.twitter.onJSONLoaded)},onJSONLoaded:function(a){trace("TWITTER JSON LOADED");VMM.attachElement("#"+a.id,VMM.Util.linkify_with_twitter(a.html))},
  parseTwitterDate:function(a){return new Date(Date.parse(a))},prettyParseTwitterDate:function(a){a=new Date(Date.parse(a));return VMM.Date.prettyDate(a,!0)},getTweets:function(a){for(var b=[],c=a.length,d=0;d<a.length;d++){var f="",f=a[d].tweet.match("status/")?a[d].tweet.split("status/")[1]:a[d].tweet.match("statuses/")?a[d].tweet.split("statuses/")[1]:"";VMM.getJSON("http://api.twitter.com/1/statuses/show.json?id="+f+"&include_entities=true&callback=?",function(a){var d={},f="<div class='twitter'><blockquote><p>",
  l=VMM.Util.linkify_with_twitter(a.text,"_blank"),f=f+l+"</p>",f=f+("\u2014 "+a.user.name+" (<a href='https://twitter.com/"+a.user.screen_name+"'>@"+a.user.screen_name+"</a>) <a href='https://twitter.com/"+a.user.screen_name+"/status/"+a.id+"'>"+VMM.ExternalAPI.twitter.prettyParseTwitterDate(a.created_at)+" </a></blockquote></div>");d.content=f;d.raw=a;b.push(d);b.length==c&&VMM.fireEvent(global,"TWEETSLOADED",{tweetdata:b})}).success(function(){trace("second success")}).error(function(){trace("error")}).complete(function(){trace("complete")})}},
  getTweetSearch:function(a,b){var c=40;null!=b&&""!=b&&(c=b);var d=[];VMM.getJSON("http://search.twitter.com/search.json?q="+a+"&rpp="+c+"&include_entities=true&result_type=mixed",function(a){for(var b=0;b<a.results.length;b++){var c={},g="<div class='twitter'><blockquote><p>",l=VMM.Util.linkify_with_twitter(a.results[b].text,"_blank"),g=g+l,g=g+"</p>",g=g+("\u2014 "+a.results[b].from_user_name+" (<a href='https://twitter.com/"+a.results[b].from_user+"'>@"+a.results[b].from_user+"</a>) <a href='https://twitter.com/"+
  a.results[b].from_user+"/status/"+a.id+"'>"+VMM.ExternalAPI.twitter.prettyParseTwitterDate(a.results[b].created_at)+" </a></blockquote></div>");c.content=g;c.raw=a.results[b];d.push(c)}VMM.fireEvent(global,"TWEETSLOADED",{tweetdata:d})})},prettyHTML:function(a,b){a=a.toString();var c="http://api.twitter.com/1/statuses/show.json?id="+a+"&include_entities=true&callback=?",d=setTimeout(VMM.ExternalAPI.twitter.errorTimeOut,VMM.master_config.timers.api,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,"<p>ERROR LOADING TWEET "+a+"</p>")}).success(function(a){clearTimeout(d);b&&VMM.ExternalAPI.twitter.secondaryMedia(a)})},formatJSON:function(a){var b=a.id_str,c="<blockquote><p>",d=VMM.Util.linkify_with_twitter(a.text,"_blank"),c=c+d+"</p></blockquote>",c=c+"<div class='vcard author'>",c=c+("<a class='screen-name url' href='https://twitter.com/"+a.user.screen_name+"' data-screen-name='"+a.user.screen_name+
  "' target='_blank'>"),c=c+("<span class='avatar'><img src=' "+a.user.profile_image_url+"'  alt=''></span>"),c=c+("<span class='fn'>"+a.user.name+"</span>"),c=c+("<span class='nickname'>@"+a.user.screen_name+"<span class='thumbnail-inline'></span></span>"),c=c+"</a>",c=c+"</div>";"undefined"!=typeof a.entities.media&&"photo"==a.entities.media[0].type&&(c+="<img src=' "+a.entities.media[0].media_url+"'  alt=''>");VMM.attachElement("#twitter_"+b.toString(),c);VMM.attachElement("#text_thumb_"+b.toString(),
  a.text)}},googlemaps:{maptype:"toner",setMapType:function(a){""!=a&&(VMM.ExternalAPI.googlemaps.maptype=a)},get:function(a){var b;a.vars=VMM.Util.getUrlVars(a.id);b="http://maps.googleapis.com/maps/api/js?key="+(""!=VMM.ExternalAPI.keys.google?VMM.ExternalAPI.keys.google:Aes.Ctr.decrypt(VMM.ExternalAPI.keys_master.google,VMM.ExternalAPI.keys_master.vp,256))+"&libraries=places&sensor=false&callback=VMM.ExternalAPI.googlemaps.onMapAPIReady";VMM.master_config.googlemaps.active?VMM.master_config.googlemaps.que.push(a):
  (VMM.master_config.googlemaps.que.push(a),VMM.master_config.googlemaps.api_loaded||LoadLib.js(b,function(){trace("Google Maps API Library Loaded")}))},create:function(a){VMM.ExternalAPI.googlemaps.createAPIMap(a)},createiFrameMap:function(a){var b=a.id+"&output=embed",c;c=""+("<div class='google-map' id='"+(a.uid.toString()+"_gmap")+"' style='width=100%;height=100%;'>");c=c+("<iframe width='100%' height='100%' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='"+b+"'></iframe>")+
  "</div>";VMM.attachElement("#"+a.uid,c)},createAPIMap:function(a){function b(a){if(a in VMM.ExternalAPI.googlemaps.map_providers)return e=VMM.ExternalAPI.googlemaps.map_attribution[VMM.ExternalAPI.googlemaps.map_providers[a].attribution],VMM.ExternalAPI.googlemaps.map_providers[a];if(VMM.ExternalAPI.googlemaps.defaultType(a))return trace("GOOGLE MAP DEFAULT TYPE"),google.maps.MapTypeId[a.toUpperCase()];trace("Not a maptype: "+a)}function c(){var b=new google.maps.Geocoder,c=VMM.Util.getUrlVars(a.id).q;
  if(c.match("loc:")){var e=c.split(":")[1].split("+");p=new google.maps.LatLng(parseFloat(e[0]),parseFloat(e[1]));y=!0}b.geocode({address:c},function(a,b){b==google.maps.GeocoderStatus.OK?(new google.maps.Marker({map:g,position:a[0].geometry.location}),"undefined"!=typeof a[0].geometry.viewport?g.fitBounds(a[0].geometry.viewport):"undefined"!=typeof a[0].geometry.bounds?g.fitBounds(a[0].geometry.bounds):g.setCenter(a[0].geometry.location),y&&g.panTo(p),q&&g.setZoom(w)):(trace("Geocode for "+c+" was not successful for the following reason: "+
  b),trace("TRYING PLACES SEARCH"),y&&g.panTo(p),q&&g.setZoom(w),d())})}function d(){var b,c,d;place_search=new google.maps.places.PlacesService(g);new google.maps.InfoWindow;b={query:"",types:["country","neighborhood","political","locality","geocode"]};"string"==type.of(VMM.Util.getUrlVars(a.id).q)&&(b.query=VMM.Util.getUrlVars(a.id).q);y?(b.location=p,b.radius="15000"):(c=new google.maps.LatLng(-89.999999,-179.999999),d=new google.maps.LatLng(89.999999,179.999999),new google.maps.LatLngBounds(c,d));
  place_search.textSearch(b,function(c,d){if(d==google.maps.places.PlacesServiceStatus.OK){for(var e=0;e<c.length;e++);y?g.panTo(p):1<=c.length&&(g.panTo(c[0].geometry.location),q&&g.setZoom(w))}else trace("Place search for "+b.query+" was not successful for the following reason: "+d),trace("YOU MAY NEED A GOOGLE MAPS API KEY IN ORDER TO USE THIS FEATURE OF TIMELINEJS"),trace("FIND OUT HOW TO GET YOUR KEY HERE: https://developers.google.com/places/documentation/#Authentication"),y?(g.panTo(p),q&&g.setZoom(w)):
  (trace("USING SIMPLE IFRAME MAP EMBED"),a.id[0].match("https")&&(a.id=a.url[0].replace("https","http")),VMM.ExternalAPI.googlemaps.createiFrameMap(a))})}function f(){var b,c,d,e;b=a.id+"&output=kml";b=b.replace("&output=embed","");c=new google.maps.KmlLayer(b,{preserveViewport:!0});d=new google.maps.InfoWindow;c.setMap(g);google.maps.event.addListenerOnce(c,"defaultviewport_changed",function(){y?g.panTo(p):g.fitBounds(c.getDefaultViewport());q&&g.setZoom(w)});google.maps.event.addListener(c,"click",
  function(a){e=a.featureData.description;d.setContent(e);d.open(g)})}var e="",h,g,l,r=a.uid.toString()+"_gmap",p=new google.maps.LatLng(41.875696,-87.624207),w=11,y=!1,q=!1;google.maps.VeriteMapType=function(a){if(VMM.ExternalAPI.googlemaps.defaultType(a))return google.maps.MapTypeId[a.toUpperCase()];var c=b(a);return google.maps.ImageMapType.call(this,{getTileUrl:function(a,b){return[c.url.replace("{S}",VMM.ExternalAPI.googlemaps.map_subdomains[(b+a.x+a.y)%VMM.ExternalAPI.googlemaps.map_subdomains.length]).replace("{Z}",
  b).replace("{X}",a.x).replace("{Y}",a.y).replace("{z}",b).replace("{x}",a.x).replace("{y}",a.y)]},tileSize:new google.maps.Size(256,256),name:a,minZoom:c.minZoom,maxZoom:c.maxZoom})};google.maps.VeriteMapType.prototype=new google.maps.ImageMapType("_");h=""!=VMM.ExternalAPI.googlemaps.maptype?VMM.ExternalAPI.googlemaps.defaultType(VMM.ExternalAPI.googlemaps.maptype)?google.maps.MapTypeId[VMM.ExternalAPI.googlemaps.maptype.toUpperCase()]:VMM.ExternalAPI.googlemaps.maptype:"toner";"string"==type.of(VMM.Util.getUrlVars(a.id).ll)?
  (y=!0,l=VMM.Util.getUrlVars(a.id).ll.split(","),p=new google.maps.LatLng(parseFloat(l[0]),parseFloat(l[1]))):"string"==type.of(VMM.Util.getUrlVars(a.id).sll)&&(l=VMM.Util.getUrlVars(a.id).sll.split(","),p=new google.maps.LatLng(parseFloat(l[0]),parseFloat(l[1])));"string"==type.of(VMM.Util.getUrlVars(a.id).z)&&(q=!0,w=parseFloat(VMM.Util.getUrlVars(a.id).z));l={zoom:w,draggable:!1,disableDefaultUI:!0,mapTypeControl:!1,zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL,position:google.maps.ControlPosition.TOP_RIGHT},
  center:p,mapTypeId:h,mapTypeControlOptions:{mapTypeIds:[h]}};VMM.attachElement("#"+a.uid,"<div class='google-map' id='"+r+"' style='width=100%;height=100%;'></div>");g=new google.maps.Map(document.getElementById(r),l);VMM.ExternalAPI.googlemaps.defaultType(VMM.ExternalAPI.googlemaps.maptype)||(g.mapTypes.set(h,new google.maps.VeriteMapType(h)),VMM.appendElement("#"+r,"<div class='map-attribution'><div class='attribution-text'>"+e+"</div></div>"));a.id[0].match("msid")?f():"string"==type.of(VMM.Util.getUrlVars(a.id).q)&&
  c()},pushQue:function(){for(var a=0;a<VMM.master_config.googlemaps.que.length;a++)VMM.ExternalAPI.googlemaps.create(VMM.master_config.googlemaps.que[a]);VMM.master_config.googlemaps.que=[]},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(){!VMM.master_config.googlemaps.active&&
  VMM.master_config.googlemaps.map_active&&VMM.master_config.googlemaps.places_active&&(VMM.master_config.googlemaps.active=!0,VMM.ExternalAPI.googlemaps.pushQue())},defaultType:function(a){return"satellite"==a.toLowerCase()||"hybrid"==a.toLowerCase()||"terrain"==a.toLowerCase()||"roadmap"==a.toLowerCase()?!0:!1},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 &copy; 2012  Apple, Imagery &copy; 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:14,attribution:"apple"},watercolor:{url:"http://{S}tile.stamen.com/watercolor/{Z}/{X}/{Y}.jpg",minZoom:3,maxZoom:16,attribution:"stamen"}}},googleplus:{get:function(a){VMM.master_config.googleplus.que.push({user:a.user,activity:a.id,id:a.uid});VMM.master_config.googleplus.active=!0},create:function(a,b){var c="",d="",f="",e="",h="",g,l;googleplus_timeout=
  setTimeout(VMM.ExternalAPI.googleplus.errorTimeOut,VMM.master_config.timers.api,a);callback_timeout=setTimeout(b,VMM.master_config.timers.api,a);d=""!=VMM.master_config.Timeline.api_keys.google?VMM.master_config.Timeline.api_keys.google:Aes.Ctr.decrypt(VMM.master_config.api_keys_master.google,VMM.master_config.vp,256);g="https://www.googleapis.com/plus/v1/people/"+a.user+"/activities/public?alt=json&maxResults=100&fields=items(id,url)&key="+d;c="GOOGLE PLUS API CALL";VMM.getJSON(g,function(b){for(var g=
  0;g<b.items.length;g++)if(trace("loop"),b.items[g].url.split("posts/")[1]==a.activity){trace("FOUND IT!!");f=b.items[g].id;l="https://www.googleapis.com/plus/v1/activities/"+f+"?alt=json&key="+d;VMM.getJSON(l,function(b){trace(b);"undefined"!=typeof b.annotation&&(e+="<div class='googleplus-annotation'>'"+b.annotation+"</div>");e+=b.object.content;if("undefined"!=typeof b.object.attachments){for(var d=0;d<b.object.attachments.length;d++)"photo"==b.object.attachments[d].objectType?h="<a href='"+b.object.url+
  "' target='_blank'><img src='"+b.object.attachments[d].image.url+"' class='article-thumb'></a>"+h:"video"==b.object.attachments[d].objectType?(h="<img src='"+b.object.attachments[d].image.url+"' class='article-thumb'>"+h,h+="<div>",h+="<a href='"+b.object.attachments[d].url+"' target='_blank'>",h+="<h5>"+b.object.attachments[d].displayName+"</h5>",h+="</a>",h+="</div>"):"article"==b.object.attachments[d].objectType&&(h+="<div>",h+="<a href='"+b.object.attachments[d].url+"' target='_blank'>",h+="<h5>"+
  b.object.attachments[d].displayName+"</h5>",h+="<p>"+b.object.attachments[d].content+"</p>",h+="</a>",h+="</div>"),trace(b.object.attachments[d]);h="<div class='googleplus-attachments'>"+h+"</div>"}c="<div class='googleplus-content'>"+e+h+"</div>";c+="<div class='vcard author'><a class='screen-name url' href='"+b.url+"' target='_blank'>";c+="<span class='avatar'><img src='"+b.actor.image.url+"' style='max-width: 32px; max-height: 32px;'></span>";c+="<span class='fn'>"+b.actor.displayName+"</span>";
  c+="<span class='nickname'><span class='thumbnail-inline'></span></span>";c+="</a></div>";VMM.attachElement("#googleplus_"+a.activity,c)});break}}).error(function(b,c,d){b=VMM.parseJSON(b.responseText);trace(b.error.message);VMM.attachElement("#googleplus_"+a.activity,VMM.MediaElement.loadingmessage("<p>ERROR LOADING GOOGLE+ </p><p>"+b.error.message+"</p>"))}).success(function(a){clearTimeout(googleplus_timeout);clearTimeout(callback_timeout);b()})},pushQue:function(){0<VMM.master_config.googleplus.que.length&&
  (VMM.ExternalAPI.googleplus.create(VMM.master_config.googleplus.que[0],VMM.ExternalAPI.googleplus.pushQue),VMM.master_config.googleplus.que.remove(0))},errorTimeOut:function(a){trace("GOOGLE+ JSON ERROR TIMEOUT "+a.activity);VMM.attachElement("#googleplus_"+a.activity,VMM.MediaElement.loadingmessage("<p>Still waiting on GOOGLE+ </p><p>"+a.activity+"</p>"))}},googledocs:{get:function(a){VMM.master_config.googledocs.que.push(a);VMM.master_config.googledocs.active=!0},create:function(a){var b="",b=a.id.match(/docs.google.com/i)?
  "<iframe class='doc' frameborder='0' width='100%' height='100%' src='"+a.id+"&amp;embedded=true'></iframe>":"<iframe class='doc' frameborder='0' width='100%' height='100%' src='http://docs.google.com/viewer?url="+a.id+"&amp;embedded=true'></iframe>";VMM.attachElement("#"+a.uid,b)},pushQue:function(){for(var a=0;a<VMM.master_config.googledocs.que.length;a++)VMM.ExternalAPI.googledocs.create(VMM.master_config.googledocs.que[a]);VMM.master_config.googledocs.que=[]}},flickr:{get:function(a){VMM.master_config.flickr.que.push(a);
  VMM.master_config.flickr.active=!0},create:function(a,b){var c,d=setTimeout(b,VMM.master_config.timers.api,a);c="undefined"!=typeof VMM.master_config.Timeline&&""!=VMM.master_config.Timeline.api_keys.flickr?VMM.master_config.Timeline.api_keys.flickr:Aes.Ctr.decrypt(VMM.master_config.api_keys_master.flickr,VMM.master_config.vp,256);VMM.getJSON("https://api.flickr.com/services/rest/?method=flickr.photos.getSizes&api_key="+c+"&photo_id="+a.id+"&format=json&jsoncallback=?",function(b){b.sizes.size[0].url.split("photos/")[1].split("/");
  for(var c="#"+a.uid,d="#"+a.uid+"_thumb",g,l=!1,r="Large",r=VMM.ExternalAPI.flickr.sizes(VMM.master_config.sizes.api.height),p=0;p<b.sizes.size.length;p++)b.sizes.size[p].label==r&&(l=!0,g=b.sizes.size[p].source);l||(g=b.sizes.size[b.sizes.size.length-2].source);b=b.sizes.size[0].source;VMM.Lib.attr(c,"src",g);VMM.attachElement(d,"<img src='"+b+"'>")}).error(function(a,b,c){trace("FLICKR error");trace("FLICKR ERROR: "+b+" "+a.responseText)}).success(function(a){clearTimeout(d);b()})},pushQue:function(){0<
  VMM.master_config.flickr.que.length&&(VMM.ExternalAPI.flickr.create(VMM.master_config.flickr.que[0],VMM.ExternalAPI.flickr.pushQue),VMM.master_config.flickr.que.remove(0))},sizes:function(a){return 75>=a?"Thumbnail":180>=a?"Small":240>=a?"Small 320":375>=a?"Medium":480>=a?"Medium 640":"Large"}},instagram:{get:function(a,b){return b?"http://instagr.am/p/"+a.id+"/media/?size=t":"http://instagr.am/p/"+a.id+"/media/?size="+VMM.ExternalAPI.instagram.sizes(VMM.master_config.sizes.api.height)},sizes:function(a){return 150>=
  a?"t":306>=a?"m":"l"}},soundcloud:{get:function(a){VMM.master_config.soundcloud.que.push(a);VMM.master_config.soundcloud.active=!0},create:function(a,b){VMM.getJSON("http://soundcloud.com/oembed?url="+a.id+"&format=js&callback=?",function(c){VMM.attachElement("#"+a.uid,c.html);b()})},pushQue:function(){0<VMM.master_config.soundcloud.que.length&&(VMM.ExternalAPI.soundcloud.create(VMM.master_config.soundcloud.que[0],VMM.ExternalAPI.soundcloud.pushQue),VMM.master_config.soundcloud.que.remove(0))}},wikipedia:{get:function(a){VMM.master_config.wikipedia.que.push(a);
  VMM.master_config.wikipedia.active=!0},create:function(a,b){var c="http://"+a.lang+".wikipedia.org/w/api.php?action=query&prop=extracts&redirects=&titles="+a.id+"&exintro=1&format=json&callback=?";callback_timeout=setTimeout(b,VMM.master_config.timers.api,a);if("Explorer"==VMM.Browser.browser&&7<=parseInt(VMM.Browser.version,10)&&window.XDomainRequest){var d="<h4><a href='http://"+VMM.master_config.language.api.wikipedia+".wikipedia.org/wiki/"+a.id+"' target='_blank'>"+a.url+"</a></h4>",d=d+("<span class='wiki-source'>"+
  VMM.master_config.language.messages.wikipedia+"</span>");VMM.attachElement("#"+a.uid,d+"<p>Wikipedia entry unable to load using Internet Explorer 8 or below.</p>")}VMM.getJSON(c,function(b){if(b.query){var c,d="",g="",d=[];c=VMM.Util.getObjectAttributeByIndex(b.query.pages,0).extract;b=VMM.Util.getObjectAttributeByIndex(b.query.pages,0).title;c.match("<p>")?d=c.split("<p>"):d.push(c);for(var l=0;l<d.length;l++)1>=l+1&&l+1<d.length&&(g+="<p>"+d[l+1]);d="<h4><a href='http://"+VMM.master_config.language.api.wikipedia+
  ".wikipedia.org/wiki/"+b+"' target='_blank'>"+b+"</a></h4>";d+="<span class='wiki-source'>"+VMM.master_config.language.messages.wikipedia+"</span>";d+=VMM.Util.linkify_wikipedia(g);c.match("REDIRECT")||VMM.attachElement("#"+a.uid,d)}}).error(function(c,d,h){trace("WIKIPEDIA error");trace("WIKIPEDIA ERROR: "+d+" "+c.responseText);trace(h);VMM.attachElement("#"+a.uid,VMM.MediaElement.loadingmessage("<p>Wikipedia is not responding</p>"));clearTimeout(callback_timeout);4>VMM.master_config.wikipedia.tries?
  (trace("WIKIPEDIA ATTEMPT "+VMM.master_config.wikipedia.tries),trace(a),VMM.master_config.wikipedia.tries++,VMM.ExternalAPI.wikipedia.create(a,b)):b()}).success(function(a){VMM.master_config.wikipedia.tries=0;clearTimeout(callback_timeout);b()})},pushQue:function(){0<VMM.master_config.wikipedia.que.length&&(trace("WIKIPEDIA PUSH QUE "+VMM.master_config.wikipedia.que.length),VMM.ExternalAPI.wikipedia.create(VMM.master_config.wikipedia.que[0],VMM.ExternalAPI.wikipedia.pushQue),VMM.master_config.wikipedia.que.remove(0))}},
  youtube:{get:function(a){var b="http://gdata.youtube.com/feeds/api/videos/"+a.id+"?v=2&alt=jsonc&callback=?";VMM.master_config.youtube.que.push(a);VMM.master_config.youtube.active||VMM.master_config.youtube.api_loaded||LoadLib.js("http://www.youtube.com/player_api",function(){trace("YouTube API Library Loaded")});VMM.getJSON(b,function(b){VMM.ExternalAPI.youtube.createThumb(b,a)})},create:function(a){if("undefined"!=typeof a.start){var b=a.start.toString(),c=0,d=0;b.match("m")?(c=parseInt(b.split("m")[0],
  10),d=parseInt(b.split("m")[1].split("s")[0],10),a.start=60*c+d):a.start=0}else a.start=0;b={active:!1,player:{},name:a.uid,playing:!1,hd:!1};"undefined"!=typeof a.hd&&(b.hd=!0);b.player[a.id]=new YT.Player(a.uid,{height:"390",width:"640",playerVars:{enablejsapi:1,color:"white",showinfo:0,theme:"light",start:a.start,rel:0},videoId:a.id,events:{onReady:VMM.ExternalAPI.youtube.onPlayerReady,onStateChange:VMM.ExternalAPI.youtube.onStateChange}});VMM.master_config.youtube.array.push(b)},createThumb:function(a,
  b){trace("CREATE THUMB");trace(a);trace(b);"undefined"!=typeof a.data&&VMM.attachElement("#"+b.uid+"_thumb","<img src='"+a.data.thumbnail.sqDefault+"'>")},pushQue:function(){for(var a=0;a<VMM.master_config.youtube.que.length;a++)VMM.ExternalAPI.youtube.create(VMM.master_config.youtube.que[a]);VMM.master_config.youtube.que=[]},onAPIReady:function(){VMM.master_config.youtube.active=!0;VMM.ExternalAPI.youtube.pushQue()},stopPlayers:function(){for(var a=0;a<VMM.master_config.youtube.array.length;a++)VMM.master_config.youtube.array[a].playing&&
  VMM.master_config.youtube.array[a].player[VMM.master_config.youtube.array[a].name].stopVideo()},onStateChange:function(a){for(var b=0;b<VMM.master_config.youtube.array.length;b++)VMM.master_config.youtube.array[b].player[VMM.master_config.youtube.array[b].name]==a.target&&a.data==YT.PlayerState.PLAYING&&(VMM.master_config.youtube.array[b].playing=!0,trace(VMM.master_config.youtube.array[b].hd))},onPlayerReady:function(a){}},vimeo:{get:function(a){VMM.master_config.vimeo.que.push(a);VMM.master_config.vimeo.active=
  !0},create:function(a,b){trace("VIMEO CREATE");var c="http://player.vimeo.com/video/"+a.id+"?title=0&amp;byline=0&amp;portrait=0&amp;color=ffffff";VMM.getJSON("http://vimeo.com/api/v2/video/"+a.id+".json",function(c){VMM.ExternalAPI.vimeo.createThumb(c,a);b()});VMM.attachElement("#"+a.uid,"<iframe autostart='false' frameborder='0' width='100%' height='100%' src='"+c+"'></iframe>")},createThumb:function(a,b){trace("VIMEO CREATE THUMB");VMM.attachElement("#"+b.uid+"_thumb","<img src='"+a[0].thumbnail_small+
  "'>")},pushQue:function(){0<VMM.master_config.vimeo.que.length&&(VMM.ExternalAPI.vimeo.create(VMM.master_config.vimeo.que[0],VMM.ExternalAPI.vimeo.pushQue),VMM.master_config.vimeo.que.remove(0))}},webthumb:{get:function(a,b){VMM.master_config.webthumb.que.push(a);VMM.master_config.webthumb.active=!0},sizes:function(a){return 150>=a?"t":306>=a?"m":"l"},create:function(a){trace("WEB THUMB CREATE");url=a.id.replace("http://","");VMM.attachElement("#"+a.uid,"<a href='"+a.id+"' target='_blank'><img src='http://pagepeeker.com/t/x/"+
  url+"'></a>");VMM.attachElement("#"+a.uid+"_thumb","<a href='"+a.id+"' target='_blank'><img src='http://pagepeeker.com/t/t/"+url+"'></a>")},pushQue:function(){for(var a=0;a<VMM.master_config.webthumb.que.length;a++)VMM.ExternalAPI.webthumb.create(VMM.master_config.webthumb.que[a]);VMM.master_config.webthumb.que=[]}}}.init());function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}
  "undefined"!=typeof VMM&&"undefined"==typeof VMM.MediaElement&&(VMM.MediaElement={init:function(){return this},loadingmessage:function(a){return"<div class='vco-loading'><div class='vco-loading-container'><div class='vco-loading-icon'></div><div class='vco-message'><p>"+a+"</p></div></div></div>"},thumbnail:function(a,b,c,d){if(null!=a.media&&""!=a.media)return b="",b=VMM.MediaType(a.media),null!=a.thumbnail&&""!=a.thumbnail?(trace("CUSTOM THUMB"),b="<div class='thumbnail thumb-custom' id='"+d+"_custom_thumb'><img src='"+
  a.thumbnail+"'></div>"):b="image"==b.type?"<div class='thumbnail thumb-photo'></div>":"flickr"==b.type?"<div class='thumbnail thumb-photo' id='"+d+"_thumb'></div>":"instagram"==b.type?"<div class='thumbnail thumb-instagram' id='"+d+"_thumb'><img src='"+VMM.ExternalAPI.instagram.get(b.id,!0)+"'></div>":"youtube"==b.type?"<div class='thumbnail thumb-youtube' id='"+d+"_thumb'></div>":"googledoc"==b.type?"<div class='thumbnail thumb-document'></div>":"vimeo"==b.type?"<div class='thumbnail thumb-vimeo' id='"+
  d+"_thumb'></div>":"dailymotion"==b.type?"<div class='thumbnail thumb-video'></div>":"twitter"==b.type?"<div class='thumbnail thumb-twitter'></div>":"twitter-ready"==b.type?"<div class='thumbnail thumb-twitter'></div>":"soundcloud"==b.type?"<div class='thumbnail thumb-audio'></div>":"google-map"==b.type?"<div class='thumbnail thumb-map'></div>":"googleplus"==b.type?"<div class='thumbnail thumb-googleplus'></div>":"wikipedia"==b.type?"<div class='thumbnail thumb-wikipedia'></div>":"storify"==b.type?
  "<div class='thumbnail thumb-storify'></div>":"quote"==b.type?"<div class='thumbnail thumb-quote'></div>":"unknown"==b.type?b.id.match("blockquote")?"<div class='thumbnail thumb-quote'></div>":"<div class='thumbnail thumb-plaintext'></div>":"website"==b.type?"<div class='thumbnail thumb-website' id='"+d+"_thumb'></div>":"<div class='thumbnail thumb-plaintext'></div>",b},create:function(a,b){var c=VMM.MediaElement.loadingmessage(VMM.master_config.language.messages.loading+"...");if(null!=a.media&&
  ""!=a.media){var d="",f="",e="",h="",h=!1,g;g=VMM.MediaType(a.media);g.uid=b;null!=a.credit&&""!=a.credit&&(e="<div class='credit'>"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"</div>");null!=a.caption&&""!=a.caption&&(f="<div class='caption'>"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"</div>");"image"==g.type?(g.id.match("https://")&&(g.id=g.id.replace("https://","http://")),d="<div class='media-image media-shadow'><img src='"+g.id+"' class='media-image'></div>"):"flickr"==g.type?
  (d="<div class='media-image media-shadow'><a href='"+g.link+"' target='_blank'><img id='"+b+"'></a></div>",VMM.ExternalAPI.flickr.get(g)):"instagram"==g.type?d="<div class='media-image media-shadow'><a href='"+g.link+"' target='_blank'><img src='"+VMM.ExternalAPI.instagram.get(g)+"'></a></div>":"googledoc"==g.type?(d="<div class='media-frame media-shadow doc' id='"+g.uid+"'>"+c+"</div>",VMM.ExternalAPI.googledocs.get(g)):"youtube"==g.type?(d="<div class='media-shadow'><div class='media-frame video youtube' id='"+
  g.uid+"'>"+c+"</div></div>",VMM.ExternalAPI.youtube.get(g)):"vimeo"==g.type?(d="<div class='media-shadow media-frame video vimeo' id='"+g.uid+"'>"+c+"</div>",VMM.ExternalAPI.vimeo.get(g)):"dailymotion"==g.type?d="<div class='media-shadow'><iframe class='media-frame video dailymotion' autostart='false' frameborder='0' width='100%' height='100%' src='http://www.dailymotion.com/embed/video/"+g.id+"'></iframe></div>":"twitter"==g.type?(d="<div class='twitter' id='"+g.uid+"'>"+c+"</div>",h=!0,VMM.ExternalAPI.twitter.get(g)):
  "twitter-ready"==g.type?(h=!0,d=g.id):"soundcloud"==g.type?(d="<div class='media-frame media-shadow soundcloud' id='"+g.uid+"'>"+c+"</div>",VMM.ExternalAPI.soundcloud.get(g)):"google-map"==g.type?(d="<div class='media-frame media-shadow map' id='"+g.uid+"'>"+c+"</div>",VMM.ExternalAPI.googlemaps.get(g)):"googleplus"==g.type?(h="googleplus_"+g.id,d="<div class='googleplus' id='"+h+"'>"+c+"</div>",h=!0,VMM.ExternalAPI.googleplus.get(g)):"wikipedia"==g.type?(d="<div class='wikipedia' id='"+g.uid+"'>"+
  c+"</div>",h=!0,VMM.ExternalAPI.wikipedia.get(g)):"storify"==g.type?(h=!0,d="<div class='plain-text-quote'>"+g.id+"</div>"):"quote"==g.type?(h=!0,d="<div class='plain-text-quote'>"+g.id+"</div>"):"unknown"==g.type?(trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML"),h=!0,d="<div class='plain-text'><div class='container'>"+VMM.Util.properQuotes(g.id)+"</div></div>"):"website"==g.type?(d="<div class='media-shadow website' id='"+g.uid+"'>"+c+"</div>",VMM.ExternalAPI.webthumb.get(g)):(trace("NO KNOWN MEDIA TYPE FOUND"),
  trace(g.type));d="<div class='media-container' >"+d+e+f+"</div>";return h?"<div class='text-media'><div class='media-wrapper'>"+d+"</div></div>":"<div class='media-wrapper'>"+d+"</div>"}}}.init());
  "undefined"!=typeof VMM&&"undefined"==typeof VMM.MediaType&&(VMM.MediaType=function(a){a=a.replace(/^\s\s*/,"").replace(/\s\s*$/,"");var b={type:"unknown",id:"",start:0,hd:!1,link:"",lang:VMM.Language.lang,uniqueid:VMM.Util.unique_ID(6)};if(a.match("div class='twitter'"))b.type="twitter-ready",b.id=a;else if(a.match("(www.)?youtube|youtu.be"))a.match("v=")?b.id=VMM.Util.getUrlVars(a).v:a.match("/embed/")?b.id=a.split("embed/")[1].split(/[?&]/)[0]:b.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0],
  b.start=VMM.Util.getUrlVars(a).t,b.hd=VMM.Util.getUrlVars(a).hd,b.type="youtube";else if(a.match("(player.)?vimeo.com"))b.type="vimeo",b.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];else if(a.match("(www.)?dailymotion.com"))b.id=a.split(/video\/|\/\/dailymotion\.com\//)[1],b.type="dailymotion";else if(a.match("(player.)?soundcloud.com"))b.type="soundcloud",b.id=a;else if(a.match("(www.)?twitter.com")&&a.match("status"))a.match("status/")?b.id=a.split("status/")[1]:a.match("statuses/")?
  b.id=a.split("statuses/")[1]:b.id="",b.type="twitter";else if(a.match("maps.google")&&!a.match("staticmap"))b.type="google-map",b.id=a.split(/src=['|"][^'|"]*?['|"]/gi);else if(a.match("plus.google"))b.type="googleplus",b.id=a.split("/posts/")[1],a.split("/posts/")[0].match("u/0/")?b.user=a.split("u/0/")[1].split("/posts")[0]:b.user=a.split("google.com/")[1].split("/posts/")[0];else if(a.match("flickr.com/photos"))b.type="flickr",b.id=a.split("photos/")[1].split("/")[1],b.link=a;else if(a.match("instagr.am/p/"))b.type=
  "instagram",b.link=a,b.id=a.split("/p/")[1].split("/")[0];else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")||a.match("yfrog.com")||a.match("twitpic.com"))b.type="image",b.id=a;else if(VMM.FileExtention.googleDocType(a))b.type="googledoc",b.id=a;else if(a.match("(www.)?wikipedia.org")){b.type="wikipedia";var c=a.split("wiki/")[1].split("#")[0].replace("_"," ");b.id=c.replace(" ","%20");b.lang=a.split("//")[1].split(".wikipedia")[0]}else 0==a.indexOf("http://")?b.type="website":a.match("storify")?
  b.type="storify":a.match("blockquote")?b.type="quote":(trace("unknown media"),b.type="unknown"),b.id=a;return b});"undefined"!=typeof VMM&&"undefined"==typeof VMM.TextElement&&(VMM.TextElement={init:function(){return this},create:function(a){return a}}.init());
  "undefined"!=typeof VMM&&"undefined"==typeof VMM.DragSlider&&(VMM.DragSlider=function(){function a(a){VMM.unbindEvent(a.data.delement,d,g.move);h.touch||a.preventDefault();a.stopPropagation();if(h.sliding){h.sliding=!1;var b=a.data.element;VMM.unbindEvent(a.data.delement,d,g.move);f(b,a);return!1}return!0}function b(a){var b=a.data.element,c=a.data.delement;h.touch?(trace("IS TOUCH"),VMM.Lib.css(b,"-webkit-transition-duration","0"),h.pagex.start=a.originalEvent.touches[0].screenX):h.pagex.start=a.pageX;
  h.left.start=e(b);h.time.start=(new Date).getTime();VMM.Lib.stop(b);VMM.bindEvent(c,d,g.move,{element:b});h.touch||a.preventDefault();a.stopPropagation();return!0}function c(a){h.touch||a.preventDefault();a.stopPropagation();if(h.sliding){h.sliding=!1;var b=a.data.element;VMM.unbindEvent(a.data.delement,d,g.move);f(b,a);return!1}return!0}function d(a){var b=a.data.element,c;h.sliding=!0;h.pagex.end=h.touch?a.originalEvent.touches[0].screenX:a.pageX;h.left.end=e(b);c=-(h.pagex.start-h.pagex.end-h.left.start);
  10<Math.abs(c-h.left.start)&&(VMM.Lib.css(b,"left",c),a.preventDefault(),a.stopPropagation());Math.abs(h.left.start);e(a.data.element);return!1}function f(a,b){var c={left:h.left.end,left_adjust:0,change:{x:0},time:10*((new Date).getTime()-h.time.start),time_adjust:10*((new Date).getTime()-h.time.start)},d=3E3;h.touch&&(d=6E3);c.change.x=d*(Math.abs(h.pagex.end)-Math.abs(h.pagex.start));c.left_adjust=Math.round(c.change.x/c.time);c.left=Math.min(c.left+c.left_adjust);h.constraint&&(c.left>h.constraint.left?
  (c.left=h.constraint.left,5E3<c.time&&(c.time=5E3)):c.left<h.constraint.right&&(c.left=h.constraint.right,5E3<c.time&&(c.time=5E3)));VMM.fireEvent(p,"DRAGUPDATE",[c]);w||0<c.time&&(h.touch?VMM.Lib.animate(a,c.time,"easeOutCirc",{left:c.left}):VMM.Lib.animate(a,c.time,h.ease,{left:c.left}))}function e(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}var h={element:"",element_move:"",constraint:"",sliding:!1,pagex:{start:0,end:0},left:{start:0,end:0},time:{start:0,
  end:0},touch:!1,ease:"easeOutExpo"},g={down:"mousedown",up:"mouseup",leave:"mouseleave",move:"mousemove"},l={down:"mousedown",up:"mouseup",leave:"mouseleave",move:"mousemove"},r={down:"touchstart",up:"touchend",leave:"mouseleave",move:"touchmove"},p=this,w=!1;this.createPanel=function(d,e,f,p,D){h.element=d;h.element_move=e;null!=D&&""!=D&&(w=D);h.constraint=null!=f&&""!=f?f:!1;h.touch=p?p:!1;trace("TOUCH"+h.touch);g=h.touch?r:l;d=h.element;e=h.element_move;VMM.bindEvent(d,b,g.down,{element:e,delement:d});
  VMM.bindEvent(d,c,g.up,{element:e,delement:d});VMM.bindEvent(d,a,g.leave,{element:e,delement:d})};this.updateConstraint=function(a){trace("updateConstraint");h.constraint=a};this.cancelSlide=function(a){VMM.unbindEvent(h.element,d,g.move);return!0}});
  "undefined"!=typeof VMM&&"undefined"==typeof VMM.Slider&&(VMM.Slider=function(a,b){function c(a,b){var c=!0,d=!1;null!=a&&(c=a);null!=b&&(d=b);A=q.slider.width;q.slider.nav.height=VMM.Lib.height(u.prevBtnContainer);q.slider.content.padding="mobile"==VMM.Browser.device||640>=A?10:q.slider.content.padding_default;q.slider.content.width=A-2*q.slider.content.padding;VMM.Lib.width(I,t.length*q.slider.content.width);d&&VMM.Lib.css(D,"left",t[v].leftpos());p();for(var e=d=0,e=0;e<t.length;e++)d=e*(q.slider.width+
  q.spacing),t[e].leftpos(d);VMM.Lib.css(u.nextBtn,"left",A-q.slider.nav.width);VMM.Lib.height(u.prevBtn,q.slider.height);VMM.Lib.height(u.nextBtn,q.slider.height);VMM.Lib.css(u.nextBtnContainer,"top",q.slider.height/2-q.slider.nav.height/2+10);VMM.Lib.css(u.prevBtnContainer,"top",q.slider.height/2-q.slider.nav.height/2+10);VMM.Lib.height(K,q.slider.height);VMM.Lib.width(K,A);c&&w(v,"linear",1);0==v&&VMM.Lib.visible(u.prevBtn,!1)}function d(a,b){trace("DRAG FINISH");trace(b.left_adjust);trace(q.slider.width/
  2);0>b.left_adjust?Math.abs(b.left_adjust)>q.slider.width/2?v==t.length-1?y():(w(v+1,"easeOutExpo"),l()):y():Math.abs(b.left_adjust)>q.slider.width/2?0==v?y():(w(v-1,"easeOutExpo"),l()):y()}function f(a){v==t.length-1?y():(w(v+1),l())}function e(a){0==v?y():(w(v-1),l())}function h(a){switch(a.keyCode){case 39:f(a);break;case 37:e(a)}}function g(a){VMM.Lib.detach(H)}function l(){q.current_slide=v;VMM.fireEvent(B,"UPDATE")}function r(){for(var a=0,a=0;a<t.length;a++)t[a].enqueue=!0;for(a=0;a<q.preload;a++)v+
  a>t.length-1||(t[v+a].show(),t[v+a].enqueue=!1),0>v-a||(t[v-a].show(),t[v-a].enqueue=!1);if(50<t.length)for(a=0;a<t.length;a++)t[a].enqueue&&t[a].hide();p();VMM.fireEvent(VMM,"EZGBUILDSLIDE")}function p(){var a=0,b=!1,a=q.slider.content.width/100*60,c=q.slider.height-60,d={width:0,height:0},e=q.slider.content.width/100*40-30,f=q.slider.content.width,g=q.slider.height-110,h={width:0,height:0};if("mobile"==VMM.Browser.device||640>=A)b=!0;VMM.master_config.sizes.api.width=f;VMM.master_config.sizes.api.height=
  g;d=VMM.Util.ratio.fit(a,c,16,9);h=VMM.Util.ratio.fit(f,g,16,9);VMM.Lib.css(".slider-item","width",q.slider.content.width);VMM.Lib.height(".slider-item",q.slider.height);b?(a=q.slider.content.width-2*q.slider.content.padding,f=q.slider.content.width-2*q.slider.content.padding,c=q.slider.height/100*50-50,g=q.slider.height/100*70-40,d=VMM.Util.ratio.fit(a,c,16,9),h=VMM.Util.ratio.fit(f,g,16,9),VMM.Lib.css(".slider-item .layout-text-media .text","width","100%"),VMM.Lib.css(".slider-item .layout-text-media .text",
  "display","block"),VMM.Lib.css(".slider-item .layout-text-media .text .container","display","block"),VMM.Lib.css(".slider-item .layout-text-media .text .container","width",f),VMM.Lib.css(".slider-item .layout-text-media .text .container .start","width","auto"),VMM.Lib.css(".slider-item .layout-text-media .media","float","none"),VMM.Lib.addClass(".slider-item .content-container","pad-top"),VMM.Lib.css(".slider-item .media blockquote p","line-height","18px"),VMM.Lib.css(".slider-item .media blockquote p",
  "font-size","16px")):(VMM.Lib.css(".slider-item .layout-text-media .text","width","40%"),VMM.Lib.css(".slider-item .layout-text-media .text","display","table-cell"),VMM.Lib.css(".slider-item .layout-text-media .text .container","display","table-cell"),VMM.Lib.css(".slider-item .layout-text-media .text .container","width","auto"),VMM.Lib.css(".slider-item .layout-text-media .text .container .start","width",e),VMM.Lib.removeClass(".slider-item .content-container","pad-top"),VMM.Lib.css(".slider-item .layout-text-media .media",
  "float","left"),VMM.Lib.css(".slider-item .layout-text-media","display","table"),VMM.Lib.css(".slider-item .media blockquote p","line-height","36px"),VMM.Lib.css(".slider-item .media blockquote p","font-size","28px"),VMM.Lib.css(".slider-item","display","table"));VMM.Lib.css(".slider-item","overflow-y","auto");VMM.Lib.css(".slider-item .layout-text-media .media .media-container .media-frame","max-width",a);VMM.Lib.height(".slider-item .layout-text-media .media .media-container .media-frame",c);VMM.Lib.width(".slider-item .layout-text-media .media .media-container .media-frame",
  a);VMM.Lib.css(".slider-item .layout-text-media .media .media-container img","max-height",c);VMM.Lib.css(".slider-item .layout-media .media .media-container img","max-height",g);VMM.Lib.css(".slider-item .layout-text-media .media .media-container img","max-width",a);VMM.Lib.css(".slider-item .layout-text-media .media .media-container .avatar img","max-width",32);VMM.Lib.css(".slider-item .layout-text-media .media .media-container .avatar img","max-height",32);VMM.Lib.css(".slider-item .layout-media .media .media-container .avatar img",
  "max-width",32);VMM.Lib.css(".slider-item .layout-media .media .media-container .avatar img","max-height",32);VMM.Lib.css(".slider-item .layout-text-media .media .media-container .article-thumb","max-width","50%");VMM.Lib.css(".slider-item .layout-media .media .media-container .article-thumb","max-width",200);VMM.Lib.width(".slider-item .layout-text-media .media .media-container .media-frame",d.width);VMM.Lib.height(".slider-item .layout-text-media .media .media-container .media-frame",d.height);
  VMM.Lib.width(".slider-item .layout-media .media .media-container .media-frame",h.width);VMM.Lib.height(".slider-item .layout-media .media .media-container .media-frame",h.height);VMM.Lib.css(".slider-item .layout-media .media .media-container .media-frame","max-height",h.height);VMM.Lib.css(".slider-item .layout-media .media .media-container .media-frame","max-width",h.width);VMM.Lib.height(".slider-item .layout-media .media .media-container .soundcloud",168);VMM.Lib.height(".slider-item .layout-text-media .media .media-container .soundcloud",
  168);VMM.Lib.width(".slider-item .layout-media .media .media-container .soundcloud",f);VMM.Lib.width(".slider-item .layout-text-media .media .media-container .soundcloud",a);VMM.Lib.css(".slider-item .media .media-container.soundcloud","max-height",168);VMM.Lib.height(".slider-item .layout-text-media .media .media-container .map",c);VMM.Lib.width(".slider-item .layout-text-media .media .media-container .map",a);VMM.Lib.css(".slider-item .layout-media .media .media-container .map","max-height",g);
  VMM.Lib.width(".slider-item .layout-media .media .media-container .map",f);VMM.Lib.height(".slider-item .layout-text-media .media .media-container .doc",c);VMM.Lib.width(".slider-item .layout-text-media .media .media-container .doc",a);VMM.Lib.height(".slider-item .layout-media .media .media-container .doc",g);VMM.Lib.width(".slider-item .layout-media .media .media-container .doc",f);VMM.Lib.width(".slider-item .layout-media .media .media-container .wikipedia",f);VMM.Lib.width(".slider-item .layout-media .media .media-container .twitter",
  f);VMM.Lib.width(".slider-item .layout-media .media .media-container .plain-text-quote",f);VMM.Lib.width(".slider-item .layout-media .media .media-container .plain-text",f);VMM.Lib.css(".slider-item .media .media-container","max-width",f);VMM.Lib.css(".slider-item .layout-text-media .media .media-container .caption","max-width",d.width);VMM.Lib.css(".slider-item .layout-media .media .media-container .caption","max-width",h.width);for(a=0;a<t.length;a++)t[a].layout(b),t[a].content_height()>q.slider.height+
  20?t[a].css("display","block"):t[a].css("display","table")}function w(a,b,c,d,e){var f=q.ease,g=q.duration,h=!1,k=!1,l="";VMM.ExternalAPI.youtube.stopPlayers();v=a;a=t[v].leftpos();0==v&&(k=!0);v+1>=t.length&&(h=!0);null!=b&&""!=b&&(f=b);null!=c&&""!=c&&(g=c);"mobile"==VMM.Browser.device?(VMM.Lib.visible(u.prevBtn,!1),VMM.Lib.visible(u.nextBtn,!1)):(k?VMM.Lib.visible(u.prevBtn,!1):(VMM.Lib.visible(u.prevBtn,!0),l=VMM.Util.unlinkify(F[v-1].title),"timeline"==q.type?"undefined"===typeof F[v-1].date?
  (VMM.attachElement(u.prevDate,l),VMM.attachElement(u.prevTitle,"")):(VMM.attachElement(u.prevDate,VMM.Date.prettyDate(F[v-1].startdate)),VMM.attachElement(u.prevTitle,l)):VMM.attachElement(u.prevTitle,l)),h?VMM.Lib.visible(u.nextBtn,!1):(VMM.Lib.visible(u.nextBtn,!0),l=VMM.Util.unlinkify(F[v+1].title),"timeline"==q.type?"undefined"===typeof F[v+1].date?(VMM.attachElement(u.nextDate,l),VMM.attachElement(u.nextTitle,"")):(VMM.attachElement(u.nextDate,VMM.Date.prettyDate(F[v+1].startdate)),VMM.attachElement(u.nextTitle,
  l)):VMM.attachElement(u.nextTitle,l)));d?VMM.Lib.css(D,"left",-(a-q.slider.content.padding)):(VMM.Lib.stop(D),VMM.Lib.animate(D,g,f,{left:-(a-q.slider.content.padding)}));e&&VMM.fireEvent(B,"LOADED");if(t[v].height()>q.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(B,"overflow-y","hidden");b=0;try{b=VMM.Lib.prop(B,"scrollHeight"),VMM.Lib.animate(B,g,f,{scrollTop:b-VMM.Lib.height(B)})}catch(p){VMM.Lib.height(B)}}for(f=f=0;f<t.length;f++)t[f].clearTimers();setTimeout(r,
  q.duration);VMM.fireEvent(C,"MESSAGE","TEST")}function y(){VMM.Lib.stop(D);VMM.Lib.animate(D,q.duration,"easeOutExpo",{left:-t[v].leftpos()+q.slider.content.padding})}var q,C,K,D,I,E,H,F=[],t=[],v=0,A=960,k=!1,B=a,u={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""};q="undefined"!=typeof b?b:{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:120,padding_default:120},nav:{width:100,height:200}}};this.ver="0.6";q.slider.width=q.width;q.slider.height=q.height;this.init=function(a){t=[];"undefined"!=typeof a?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(null!=a&&""!=a)q.slider.width=a,c();else return q.slider.width};this.height=function(a){if(null!=a&&""!=a)q.slider.height=a,c();else return q.slider.height};this.setData=function(a){if("undefined"!=typeof a){F=a;a=3E3;VMM.attachElement(B,"");C=VMM.getElement(B);
  K=VMM.appendAndGetElement(C,"<div>","slider-container-mask");D=VMM.appendAndGetElement(K,"<div>","slider-container");I=VMM.appendAndGetElement(D,"<div>","slider-item-container");u.nextBtn=VMM.appendAndGetElement(C,"<div>","nav-next");u.prevBtn=VMM.appendAndGetElement(C,"<div>","nav-previous");u.nextBtnContainer=VMM.appendAndGetElement(u.nextBtn,"<div>","nav-container","<div class='icon'>&nbsp;</div>");u.prevBtnContainer=VMM.appendAndGetElement(u.prevBtn,"<div>","nav-container","<div class='icon'>&nbsp;</div>");
  "timeline"==q.type&&(u.nextDate=VMM.appendAndGetElement(u.nextBtnContainer,"<div>","date",""),u.prevDate=VMM.appendAndGetElement(u.prevBtnContainer,"<div>","date",""));u.nextTitle=VMM.appendAndGetElement(u.nextBtnContainer,"<div>","title","");u.prevTitle=VMM.appendAndGetElement(u.prevBtnContainer,"<div>","title","");VMM.bindEvent(".nav-next",f);VMM.bindEvent(".nav-previous",e);VMM.bindEvent(window,h,"keydown");var b=F,l=0;VMM.attachElement(I,"");t=[];for(l=0;l<b.length;l++){var p=new VMM.Slider.Slide(b[l],
  I);t.push(p)}if("tablet"==VMM.Browser.device||"mobile"==VMM.Browser.device)q.duration=500,a=1E3,E=new VMM.DragSlider,E.createPanel(C,D,"",q.touch,!0),VMM.bindEvent(E,d,"DRAGUPDATE"),H=VMM.appendAndGetElement(K,"<div>","vco-feedback",""),trace("showMessege Swipe to Navigate"),VMM.attachElement(H,"<div class='vco-explainer'><div class='vco-explainer-container'><div class='vco-bezel'><div class='vco-gesture-icon'></div><div class='vco-message'><p>Swipe to Navigate</p></div></div></div></div>"),VMM.Lib.height(H,
  q.slider.height),VMM.bindEvent(H,g);c(!1,!0);VMM.Lib.visible(u.prevBtn,!1);w(q.current_slide,"easeOutExpo",a,!0,!0);k=!0}else trace("NO DATA")};this.getData=function(){return F};this.setConfig=function(a){"undefined"!=typeof a?q=a:trace("NO CONFIG DATA")};this.getConfig=function(){return q};this.setSize=function(a,b){null!=a&&(q.slider.width=a);null!=b&&(q.slider.height=b);k&&c()};this.active=function(){return k};this.getCurrentNumber=function(){return v};this.setSlide=function(a){w(a)}});
  "undefined"!=typeof VMM.Slider&&(VMM.Slider.Slide=function(a,b){var c,d,f,e,h,g,l,r,p,w;w="";var y=!1,q=!1,C=!1,K=!0,D=!1,I="slide_",E="",H="",F="",t=!1,I=I+a.uniqueid;this.enqueue=K;this.id=I;w=VMM.appendAndGetElement(b,"<div>","slider-item");e="";h="content-container layout";f=d=c=!1;this.show=function(b){K=!1;t=b;D=!1;clearTimeout(F);if(!y)if(q)clearTimeout(H),H=setTimeout(A,100);else{trace("RENDER "+I);q=y=!0;t=b;trace("BUILDSLIDE");p=VMM.appendAndGetElement(w,"<div>","content");r=VMM.appendAndGetElement(p,
  "<div>");if(null!=a.startdate&&""!=a.startdate&&"date"==type.of(a.startdate)&&"start"!=a.type){b=VMM.Date.prettyDate(a.startdate);var k=VMM.Date.prettyDate(a.enddate),m="";null!=a.tag&&""!=a.tag&&(m=VMM.createElement("span",a.tag,"slide-tag"));e=b!=k?e+VMM.createElement("h2",b+" &mdash; "+k+m,"date"):e+VMM.createElement("h2",b+m,"date")}null!=a.headline&&""!=a.headline&&(c=!0,e="start"==a.type?e+VMM.createElement("h2",VMM.Util.linkify_with_twitter(a.headline,"_blank"),"start"):e+VMM.createElement("h3",
  VMM.Util.linkify_with_twitter(a.headline,"_blank")));null!=a.text&&""!=a.text&&(d=!0,e+=VMM.createElement("p",VMM.Util.linkify_with_twitter(a.text,"_blank")));if(d||c)e=VMM.createElement("div",e,"container"),l=VMM.appendAndGetElement(r,"<div>","text",VMM.TextElement.create(e));null!=a.asset&&""!=a.asset&&null!=a.asset.media&&""!=a.asset.media&&(f=!0,g=VMM.appendAndGetElement(r,"<div>","media",VMM.MediaElement.create(a.asset,a.uniqueid)));d&&(h+="-text");f&&(h+="-media");d?t?(VMM.Lib.addClass(r,h),
  C=!0):(VMM.Lib.addClass(r,h),VMM.Lib.addClass(r,"pad-left"),VMM.Lib.detach(l),VMM.Lib.append(r,l)):VMM.Lib.addClass(r,h);clearTimeout(E);clearTimeout("");E=setTimeout(VMM.ExternalAPI.pushQues,500)}};this.hide=function(){y&&!D&&(D=!0,clearTimeout(F),F=setTimeout(v,3E4))};this.clearTimers=function(){clearTimeout(H);clearTimeout(E);clearTimeout("")};this.layout=function(a){y&&q&&k(a)};this.elem=function(){return w};this.position=function(){return VMM.Lib.position(w)};this.leftpos=function(a){if("undefined"!=
  typeof a)VMM.Lib.css(w,"left",a);else return VMM.Lib.position(w).left};this.animate=function(a,b,c){VMM.Lib.animate(w,a,b,c)};this.css=function(a,b){VMM.Lib.css(w,a,b)};this.opacity=function(a){VMM.Lib.css(w,"opacity",a)};this.width=function(){return VMM.Lib.width(w)};this.height=function(){return VMM.Lib.height(w)};this.content_height=function(){var a=VMM.Lib.find(w,".content")[0];return"undefined"!=a&&null!=a?VMM.Lib.height(a):0};var v=function(){trace("REMOVE SLIDE TIMER FINISHED");y=!1;VMM.Lib.detach(l);
  VMM.Lib.detach(g)},A=function(){y=!0;k(t,!0)},k=function(a,b){if(d)if(a){if(!C||b)VMM.Lib.removeClass(r,"pad-left"),VMM.Lib.detach(l),VMM.Lib.detach(g),VMM.Lib.append(r,l),VMM.Lib.append(r,g),C=!0}else{if(C||b)VMM.Lib.addClass(r,"pad-left"),VMM.Lib.detach(l),VMM.Lib.detach(g),VMM.Lib.append(r,g),VMM.Lib.append(r,l),C=!1}else b&&(c&&(VMM.Lib.detach(l),VMM.Lib.append(r,l)),VMM.Lib.detach(g),VMM.Lib.append(r,g))}});
  var Aes={cipher:function(a,b){for(var c=b.length/4-1,d=[[],[],[],[]],f=0;16>f;f++)d[f%4][Math.floor(f/4)]=a[f];d=Aes.addRoundKey(d,b,0,4);for(f=1;f<c;f++)d=Aes.subBytes(d,4),d=Aes.shiftRows(d,4),d=Aes.mixColumns(d,4),d=Aes.addRoundKey(d,b,f,4);d=Aes.subBytes(d,4);d=Aes.shiftRows(d,4);d=Aes.addRoundKey(d,b,c,4);c=Array(16);for(f=0;16>f;f++)c[f]=d[f%4][Math.floor(f/4)];return c},keyExpansion:function(a){for(var b=a.length/4,c=b+6,d=Array(4*(c+1)),f=Array(4),e=0;e<b;e++)d[e]=[a[4*e],a[4*e+1],a[4*e+2],
  a[4*e+3]];for(e=b;e<4*(c+1);e++){d[e]=Array(4);for(a=0;4>a;a++)f[a]=d[e-1][a];if(0==e%b)for(f=Aes.subWord(Aes.rotWord(f)),a=0;4>a;a++)f[a]^=Aes.rCon[e/b][a];else 6<b&&4==e%b&&(f=Aes.subWord(f));for(a=0;4>a;a++)d[e][a]=d[e-b][a]^f[a]}return d},subBytes:function(a,b){for(var c=0;4>c;c++)for(var d=0;d<b;d++)a[c][d]=Aes.sBox[a[c][d]];return a},shiftRows:function(a,b){for(var c=Array(4),d=1;4>d;d++){for(var f=0;4>f;f++)c[f]=a[d][(f+d)%b];for(f=0;4>f;f++)a[d][f]=c[f]}return a},mixColumns:function(a,b){for(var c=
  0;4>c;c++){for(var d=Array(4),f=Array(4),e=0;4>e;e++)d[e]=a[e][c],f[e]=a[e][c]&128?a[e][c]<<1^283:a[e][c]<<1;a[0][c]=f[0]^d[1]^f[1]^d[2]^d[3];a[1][c]=d[0]^f[1]^d[2]^f[2]^d[3];a[2][c]=d[0]^d[1]^f[2]^d[3]^f[3];a[3][c]=d[0]^f[0]^d[1]^d[2]^f[3]}return a},addRoundKey:function(a,b,c,d){for(var f=0;4>f;f++)for(var e=0;e<d;e++)a[f][e]^=b[4*c+e][f];return a},subWord:function(a){for(var b=0;4>b;b++)a[b]=Aes.sBox[a[b]];return a},rotWord:function(a){for(var b=a[0],c=0;3>c;c++)a[c]=a[c+1];a[3]=b;return a},sBox:[99,
  124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,
  25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],rCon:[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,
  0,0,0],[27,0,0,0],[54,0,0,0]],Ctr:{}};
  Aes.Ctr.encrypt=function(a,b,c){if(128!=c&&192!=c&&256!=c)return"";a=Utf8.encode(a);b=Utf8.encode(b);var d=c/8,f=Array(d);for(c=0;c<d;c++)f[c]=isNaN(b.charCodeAt(c))?0:b.charCodeAt(c);f=Aes.cipher(f,Aes.keyExpansion(f));f=f.concat(f.slice(0,d-16));b=Array(16);c=(new Date).getTime();var d=c%1E3,e=Math.floor(c/1E3),h=Math.floor(65535*Math.random());for(c=0;2>c;c++)b[c]=d>>>8*c&255;for(c=0;2>c;c++)b[c+2]=h>>>8*c&255;for(c=0;4>c;c++)b[c+4]=e>>>8*c&255;d="";for(c=0;8>c;c++)d+=String.fromCharCode(b[c]);
  for(var f=Aes.keyExpansion(f),e=Math.ceil(a.length/16),h=Array(e),g=0;g<e;g++){for(c=0;4>c;c++)b[15-c]=g>>>8*c&255;for(c=0;4>c;c++)b[15-c-4]=g/4294967296>>>8*c;var l=Aes.cipher(b,f),r=g<e-1?16:(a.length-1)%16+1,p=Array(r);for(c=0;c<r;c++)p[c]=l[c]^a.charCodeAt(16*g+c),p[c]=String.fromCharCode(p[c]);h[g]=p.join("")}a=d+h.join("");return a=Base64.encode(a)};
  Aes.Ctr.decrypt=function(a,b,c){if(128!=c&&192!=c&&256!=c)return"";a=Base64.decode(a);b=Utf8.encode(b);var d=c/8,f=Array(d);for(c=0;c<d;c++)f[c]=isNaN(b.charCodeAt(c))?0:b.charCodeAt(c);f=Aes.cipher(f,Aes.keyExpansion(f));f=f.concat(f.slice(0,d-16));b=Array(8);ctrTxt=a.slice(0,8);for(c=0;8>c;c++)b[c]=ctrTxt.charCodeAt(c);d=Aes.keyExpansion(f);f=Math.ceil((a.length-8)/16);c=Array(f);for(var e=0;e<f;e++)c[e]=a.slice(8+16*e,16*e+24);a=c;for(var h=Array(a.length),e=0;e<f;e++){for(c=0;4>c;c++)b[15-c]=
  e>>>8*c&255;for(c=0;4>c;c++)b[15-c-4]=(e+1)/4294967296-1>>>8*c&255;var g=Aes.cipher(b,d),l=Array(a[e].length);for(c=0;c<a[e].length;c++)l[c]=g[c]^a[e].charCodeAt(c),l[c]=String.fromCharCode(l[c]);h[e]=l.join("")}a=h.join("");return a=Utf8.decode(a)};
  var Base64={code:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a,b){var c,d,f,e,h=[],g="",l,r,p=Base64.code;r=("undefined"==typeof b?0:b)?a.encodeUTF8():a;l=r.length%3;if(0<l)for(;3>l++;)g+="=",r+="\x00";for(l=0;l<r.length;l+=3)c=r.charCodeAt(l),d=r.charCodeAt(l+1),f=r.charCodeAt(l+2),e=c<<16|d<<8|f,c=e>>18&63,d=e>>12&63,f=e>>6&63,e&=63,h[l/3]=p.charAt(c)+p.charAt(d)+p.charAt(f)+p.charAt(e);h=h.join("");return h=h.slice(0,h.length-g.length)+g},decode:function(a,
  b){b="undefined"==typeof b?!1:b;var c,d,f,e,h,g=[],l,r=Base64.code;l=b?a.decodeUTF8():a;for(var p=0;p<l.length;p+=4)c=r.indexOf(l.charAt(p)),d=r.indexOf(l.charAt(p+1)),e=r.indexOf(l.charAt(p+2)),h=r.indexOf(l.charAt(p+3)),f=c<<18|d<<12|e<<6|h,c=f>>>16&255,d=f>>>8&255,f&=255,g[p/4]=String.fromCharCode(c,d,f),64==h&&(g[p/4]=String.fromCharCode(c,d)),64==e&&(g[p/4]=String.fromCharCode(c));e=g.join("");return b?e.decodeUTF8():e}},Utf8={encode:function(a){a=a.replace(/[\u0080-\u07ff]/g,function(a){a=a.charCodeAt(0);
  return String.fromCharCode(192|a>>6,128|a&63)});return a=a.replace(/[\u0800-\uffff]/g,function(a){a=a.charCodeAt(0);return String.fromCharCode(224|a>>12,128|a>>6&63,128|a&63)})},decode:function(a){a=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){a=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(a)});return a=a.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){a=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(a)})}};
  !function(a){var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,d,f){this.type=b;this.$element=a(d);this.options=this.getOptions(f);this.enabled=!0;"manual"!=this.options.trigger&&(b="hover"==this.options.trigger?"mouseenter":"focus",d="hover"==this.options.trigger?"mouseleave":"blur",this.$element.on(b,this.options.selector,a.proxy(this.enter,this)),this.$element.on(d,this.options.selector,a.proxy(this.leave,this)));this.options.selector?this._options=a.extend({},
  this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){b=a.extend({},a.fn[this.type].defaults,b,this.$element.data());b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var d=a(b.currentTarget)[this.type](this._options).data(this.type);d.options.delay&&d.options.delay.show?(d.hoverState="in",setTimeout(function(){"in"==d.hoverState&&d.show()},d.options.delay.show)):d.show()},leave:function(b){var d=a(b.currentTarget)[this.type](this._options).data(this.type);
  d.options.delay&&d.options.delay.hide?(d.hoverState="out",setTimeout(function(){"out"==d.hoverState&&d.hide()},d.options.delay.hide)):d.hide()},show:function(){var a,b,f,e,h,g,l;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");g="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(g);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);
  f=this.getPosition(b);e=a[0].offsetWidth;h=a[0].offsetHeight;switch(b?g.split(" ")[1]:g){case "bottom":l={top:f.top+f.height,left:f.left+f.width/2-e/2};break;case "top":l={top:f.top-h,left:f.left+f.width/2-e/2};break;case "left":l={top:f.top+f.height/2-h/2,left:f.left-e};break;case "right":l={top:f.top+f.height/2-h/2,left:f.left+f.width}}a.css(l).addClass(g).addClass("in")}},setContent:function(){var a=this.tip();a.find(".tooltip-inner").html(this.getTitle());a.removeClass("fade in top bottom left right")},
  hide:function(){function b(){var c=setTimeout(function(){d.off(a.support.transition.end).remove()},500);d.one(a.support.transition.end,function(){clearTimeout(c);d.remove()})}var d=this.tip();d.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?b():d.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},
  getPosition:function(b){return a.extend({},b?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var a;a=this.$element;var b=this.options;a=a.attr("data-original-title")||("function"==typeof b.title?b.title.call(a[0]):b.title);return a=a.toString().replace(/(^\s*|\s*$)/,"")},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.options=
  this.$element=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()}};a.fn.tooltip=function(c){return this.each(function(){var d=a(this),f=d.data("tooltip"),e="object"==typeof c&&c;f||d.data("tooltip",f=new b(this,e));if("string"==typeof c)f[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",
  title:"",template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'}}(window.jQuery);"undefined"!=typeof VMM&&"undefined"==typeof VMM.StoryJS&&(VMM.StoryJS=function(){this.init=function(a){}});
  "undefined"!=typeof VMM&&"undefined"==typeof VMM.Timeline&&(VMM.Timeline=function(a,b,c){function d(a){"object"==typeof embed_config&&(timeline_config=embed_config);"object"==typeof timeline_config?(trace("HAS TIMELINE CONFIG"),n=VMM.Util.mergeConfig(n,timeline_config)):"object"==typeof a&&(n=VMM.Util.mergeConfig(n,a));if("mobile"==VMM.Browser.device||"tablet"==VMM.Browser.device)n.touch=!0;n.nav.width=n.width;n.nav.height=200;n.feature.width=n.width;n.feature.height=n.height-n.nav.height;n.nav.zoom.adjust=
  parseInt(n.start_zoom_adjust,10);VMM.Timeline.Config=n;VMM.master_config.Timeline=VMM.Timeline.Config;this.events=n.events;""!=n.gmap_key&&(n.api_keys.google=n.gmap_key);trace("VERSION "+n.version)}function f(a,b){trace("onDataReady");m=b.timeline;"array"!=type.of(m.era)&&(m.era=[]);I()}function e(){D();k.setSize(n.feature.width,n.feature.height);B.setSize(n.width,n.height);var a;a=q(window.orientation);a==n.orientation?a=!1:(n.orientation=a,a=!0);a&&y()}function h(a){n.loaded.slider=!0;g()}function g(a){n.loaded.percentloaded+=
  25;n.loaded.slider&&n.loaded.timenav&&VMM.Lib.animate(t,n.duration,4*n.ease,{opacity:0},K)}function l(a){n.loaded.timenav=!0;g()}function r(a){O=!0;n.current_slide=k.getCurrentNumber();n.hash_bookmark&&(window.location.hash="#"+n.current_slide.toString());B.setMarker(n.current_slide,n.ease,n.duration)}function p(a){O=!0;n.current_slide=B.getCurrentNumber();n.hash_bookmark&&(window.location.hash="#"+n.current_slide.toString());k.setSlide(n.current_slide)}function w(a){a<=L.length-1&&0<=a&&(n.current_slide=
  a,k.setSlide(n.current_slide),B.setMarker(n.current_slide,n.ease,n.duration))}function y(){q(window.orientation);document.getElementById("viewport")}function q(a){return 0==a||180==a?"portrait":90==a||-90==a?"landscape":"normal"}function C(a,b,c){trace("showMessege "+b);c?VMM.attachElement(t,b):VMM.attachElement(t,VMM.MediaElement.loadingmessage(b))}function K(){VMM.Lib.detach(t)}function D(){trace("UPDATE SIZE");n.width=VMM.Lib.width(E);n.height=VMM.Lib.height(E);n.nav.width=n.width;n.feature.width=
  n.width;n.feature.height=n.height-n.nav.height-3;640>n.width?VMM.Lib.addClass(E,"vco-skinny"):VMM.Lib.removeClass(E,"vco-skinny")}function I(){L=[];VMM.fireEvent(global,n.events.messege,"Building Dates");D();for(var a=0;a<m.date.length;a++)if(null!=m.date[a].startDate&&""!=m.date[a].startDate){var b={};b.startdate="tweets"==m.date[a].type?VMM.ExternalAPI.twitter.parseTwitterDate(m.date[a].startDate):VMM.Date.parse(m.date[a].startDate);isNaN(b.startdate)||(b.enddate=null!=m.date[a].endDate&&""!=m.date[a].endDate?
  "tweets"==m.date[a].type?VMM.ExternalAPI.twitter.parseTwitterDate(m.date[a].endDate):VMM.Date.parse(m.date[a].endDate):b.startdate,b.needs_slug=!1,""==m.date[a].headline&&null!=m.date[a].slug&&""!=m.date[a].slug&&(b.needs_slug=!0),b.title=m.date[a].headline,b.headline=m.date[a].headline,b.type=m.date[a].type,b.date=VMM.Date.prettyDate(b.startdate),b.asset=m.date[a].asset,b.fulldate=b.startdate.getTime(),b.text=m.date[a].text,b.content="",b.tag=m.date[a].tag,b.slug=m.date[a].slug,b.uniqueid=VMM.Util.unique_ID(7),
  L.push(b))}"storify"!=m.type&&L.sort(function(a,b){return a.fulldate-b.fulldate});null!=m.headline&&""!=m.headline&&null!=m.text&&""!=m.text&&(b={},a="undefined"!=typeof m.startDate?VMM.Date.parse(m.startDate):!1,trace("HAS STARTPAGE"),trace(a),a&&a<L[0].startdate?b.startdate=new Date(a):(a=L[0].startdate,b.startdate=new Date(L[0].startdate),0===a.getMonth()&&1==a.getDate()&&0===a.getHours()&&0===a.getMinutes()?b.startdate.setFullYear(a.getFullYear()-1):1>=a.getDate()&&0===a.getHours()&&0===a.getMinutes()?
  b.startdate.setMonth(a.getMonth()-1):0===a.getHours()&&0===a.getMinutes()?b.startdate.setDate(a.getDate()-1):0===a.getMinutes()?b.startdate.setHours(a.getHours()-1):b.startdate.setMinutes(a.getMinutes()-1)),b.uniqueid=VMM.Util.unique_ID(7),b.enddate=b.startdate,b.title=m.headline,b.headline=m.headline,b.text=m.text,b.type="start",b.date=VMM.Date.prettyDate(m.startDate),b.asset=m.asset,b.slug=!1,b.needs_slug=!1,b.fulldate=b.startdate.getTime(),n.embed&&VMM.fireEvent(global,n.events.headline,b.headline),
  L.unshift(b));"storify"!=m.type&&L.sort(function(a,b){return a.fulldate-b.fulldate});0<parseInt(n.start_at_slide)&&0==n.current_slide&&(n.current_slide=parseInt(n.start_at_slide));n.start_at_end&&0==n.current_slide&&(n.current_slide=L.length-1);M?(M=!0,VMM.fireEvent(global,n.events.messege,"Internet Explorer "+VMM.Browser.version+" is not supported by TimelineJS. Please update your browser to version 8 or higher.")):(K(),e(),VMM.bindEvent(v,h,"LOADED"),VMM.bindEvent(A,l,"LOADED"),VMM.bindEvent(v,
  r,"UPDATE"),VMM.bindEvent(A,p,"UPDATE"),k.init(L),B.init(L,m.era),VMM.bindEvent(global,e,n.events.resize))}var E,H,F,t,v,A,k,B,u="#timelinejs",m={},L=[],n={},U=!1,ba=!1,M=!1,O=!1,u="string"==type.of(a)?a.match("#")?a:"#"+a:"#timelinejs",n={embed:!1,events:{data_ready:"DATAREADY",messege:"MESSEGE",headline:"HEADLINE",slide_change:"SLIDE_CHANGE",resize:"resize"},id:u,source:"nothing",type:"timeline",touch:!1,orientation:"normal",maptype:"toner",version:"2.x",preload:4,current_slide:0,hash_bookmark:!1,
  start_at_end:!1,hide_container:!1,start_at_slide:0,start_zoom_adjust:0,start_page:!1,api_keys:{google:"",flickr:"",twitter:""},interval:10,something:0,width:960,height:540,spacing:15,loaded:{slider:!1,timenav:!1,percentloaded:0},nav:{start_page:!1,interval_width:200,density:4,minor_width:0,minor_left:0,constraint:{left:0,right:0,right_min:0,right_max:0},zoom:{adjust:0},multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:50}},feature:{width:960,height:540},
  slider:{width:720,height:400,content:{width:720,height:400,padding:130,padding_default:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1E3,gmap_key:"",language:VMM.Language};null!=b&&""!=b&&(n.width=b,U=!0);null!=c&&""!=c&&(n.height=c,ba=!0);window.location.hash&&(a=window.location.hash.substring(1),isNaN(a)||(n.current_slide=parseInt(a)));window.onhashchange=function(){var a=window.location.hash.substring(1);n.hash_bookmark?O?w(parseInt(a)):O=!1:w(parseInt(a))};this.init=function(a,
  b){trace("INIT");y();d(a);E=VMM.getElement(u);VMM.Lib.addClass(E,"vco-timeline");VMM.Lib.addClass(E,"vco-storyjs");H=VMM.appendAndGetElement(E,"<div>","vco-container vco-main");F=VMM.appendAndGetElement(H,"<div>","vco-feature");v=VMM.appendAndGetElement(F,"<div>","vco-slider");A=VMM.appendAndGetElement(H,"<div>","vco-navigation");t=VMM.appendAndGetElement(E,"<div>","vco-feedback","");n.hide_container&&$(v).css({visibility:"hidden","padding-top":"0"});"undefined"!=typeof n.language.right_to_left&&
  VMM.Lib.addClass(E,"vco-right-to-left");k=new VMM.Slider(v,n);B=new VMM.Timeline.TimeNav(A);U?VMM.Lib.width(E,n.width):n.width=VMM.Lib.width(E);ba?VMM.Lib.height(E,n.height):n.height=VMM.Lib.height(E);n.touch?VMM.Lib.addClass(E,"vco-touch"):VMM.Lib.addClass(E,"vco-notouch");"string"==type.of(b)&&(n.source=b);VMM.Date.setLanguage(n.language);VMM.master_config.language=n.language;VMM.ExternalAPI.setKeys(n.api_keys);VMM.ExternalAPI.googlemaps.setMapType(n.maptype);VMM.bindEvent(global,f,n.events.data_ready);
  VMM.bindEvent(global,C,n.events.messege);VMM.fireEvent(global,n.events.messege,n.language.messages.loading_timeline);("Explorer"==VMM.Browser.browser||"MSIE"==VMM.Browser.browser)&&7>=parseInt(VMM.Browser.version,10)&&(M=!0);"string"==type.of(n.source)||"object"==type.of(n.source)?VMM.Timeline.DataObj.getData(n.source):VMM.fireEvent(global,n.events.messege,"No data source provided")};this.iframeLoaded=function(){trace("iframeLoaded")};this.reload=function(a){trace("Load new timeline data"+a);VMM.fireEvent(global,
  n.events.messege,n.language.messages.loading_timeline);m={};VMM.Timeline.DataObj.getData(a);n.current_slide=0;k.setSlide(0);B.setMarker(0,n.ease,n.duration)}},VMM.Timeline.Config={});
  "undefined"!=typeof VMM.Timeline&&"undefined"==typeof VMM.Timeline.TimeNav&&(VMM.Timeline.TimeNav=function(a,b,c){function d(a){k.nav.constraint.left=k.width/2;k.nav.constraint.right=k.nav.constraint.right_min-k.width/2;A.updateConstraint(k.nav.constraint);VMM.Lib.css(I,"left",Math.round(k.width/2)+2);VMM.Lib.css(E,"left",Math.round(k.width/2)-8);ja(k.current_slide,k.ease,k.duration,!0,a)}function f(){A.cancelSlide();k.nav.multiplier.current>k.nav.multiplier.min&&(k.nav.multiplier.current=1>=k.nav.multiplier.current?
  k.nav.multiplier.current-.25:5<k.nav.multiplier.current?16<k.nav.multiplier.current?Math.round(k.nav.multiplier.current-10):Math.round(k.nav.multiplier.current-4):Math.round(k.nav.multiplier.current-1),0>=k.nav.multiplier.current&&(k.nav.multiplier.current=k.nav.multiplier.min),oa())}function e(){A.cancelSlide();k.nav.multiplier.current<k.nav.multiplier.max&&(k.nav.multiplier.current=4<k.nav.multiplier.current?16<k.nav.multiplier.current?Math.round(k.nav.multiplier.current+10):Math.round(k.nav.multiplier.current+
  4):Math.round(k.nav.multiplier.current+1),k.nav.multiplier.current>=k.nav.multiplier.max&&(k.nav.multiplier.current=k.nav.multiplier.max),oa())}function h(a){A.cancelSlide();ja(0);VMM.fireEvent(u,"UPDATE")}function g(a){var b=0,c=0;a||(a=window.event);a.originalEvent&&(a=a.originalEvent);a.wheelDelta?b=a.wheelDelta/6:a.detail&&(b=12*-a.detail);b&&(a.preventDefault&&a.preventDefault(),a.returnValue=!1);"undefined"!=typeof a.wheelDeltaX&&(b=Math.abs(a.wheelDeltaX)>Math.abs(a.wheelDeltaY)?a.wheelDeltaX/
  6:a.wheelDeltaY/6);c=VMM.Lib.position(p).left+b;c>k.nav.constraint.left?c=k.width/2:c<k.nav.constraint.right&&(c=k.nav.constraint.right);VMM.Lib.css(p,"left",c)}function l(a){A.cancelSlide();ja(a.data.number);VMM.fireEvent(u,"UPDATE");"function"==typeof window.parent.setblogcontainer&&window.parent.setblogcontainer(m[a.data.number])}function r(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}trace("VMM.Timeline.TimeNav");var p,w,y,q,C,K,D,I,E,H,F,t,v,A,k=VMM.Timeline.Config,B={},u=a,m=[],L=[],n=[],U=
  [],ba=[],M=[],O=0,na=!1,ea,fa="",ga="",la="",J={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},P={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},R={},S={},V={},W={},X={},ca={},Y={},Z={},da={};a=k.nav.marker.height/2;k.nav.rows={full:[1,2*a,4*a],half:[1,a,2*a,3*a,4*a,5*a],current:[]};null!=b&&""!=b&&(k.nav.width=b);null!=c&&""!=c&&(k.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");
  "undefined"!=typeof a?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if("undefined"!=typeof a){m={};m=a;ea=b;var c=0,c=0;VMM.attachElement(u,"");p=VMM.appendAndGetElement(u,"<div>","timenav");w=VMM.appendAndGetElement(p,"<div>","content");y=VMM.appendAndGetElement(p,"<div>","time");q=VMM.appendAndGetElement(y,"<div>","time-interval-minor");H=VMM.appendAndGetElement(q,"<div>","minor");K=VMM.appendAndGetElement(y,"<div>","time-interval-major");C=VMM.appendAndGetElement(y,"<div>",
  "time-interval");D=VMM.appendAndGetElement(u,"<div>","timenav-background");I=VMM.appendAndGetElement(D,"<div>","timenav-line");E=VMM.appendAndGetElement(D,"<div>","timenav-indicator");VMM.appendAndGetElement(D,"<div>","timenav-interval-background","<div class='top-highlight'></div>");F=VMM.appendAndGetElement(u,"<div>","vco-toolbar");var z=c=0;B=ha(m[m.length-1].enddate-m[0].startdate,!0);trace(B);c=ha(m[0].startdate);z=ha(m[m.length-1].enddate);da.type="millenium";da.first=c.milleniums;da.base=Math.floor(c.milleniums);
  da.last=z.milleniums;da.number=B.milleniums;da.multiplier=1E3;da.minor=1E3;Z.type="century";Z.first=c.centuries;Z.base=Math.floor(c.centuries);Z.last=z.centuries;Z.number=B.centuries;Z.multiplier=100;Z.minor=100;Y.type="decade";Y.first=c.decades;Y.base=Math.floor(c.decades);Y.last=z.decades;Y.number=B.decades;Y.multiplier=10;Y.minor=10;V.type="year";V.first=c.years;V.base=Math.floor(c.years);V.last=z.years;V.number=B.years;V.multiplier=1;V.minor=12;S.type="month";S.first=c.months;S.base=Math.floor(c.months);
  S.last=z.months;S.number=B.months;S.multiplier=1;S.minor=Math.round(4.34812141);R.type="day";R.first=c.days;R.base=Math.floor(c.days);R.last=z.days;R.number=B.days;R.multiplier=1;R.minor=24;W.type="hour";W.first=c.hours;W.base=Math.floor(c.hours);W.last=z.hours;W.number=B.hours;W.multiplier=1;W.minor=60;X.type="minute";X.first=c.minutes;X.base=Math.floor(c.minutes);X.last=z.minutes;X.number=B.minutes;X.multiplier=1;X.minor=60;ca.type="decade";ca.first=c.seconds;ca.base=Math.floor(c.seconds);ca.last=
  z.seconds;ca.number=B.seconds;ca.multiplier=1;ca.minor=10;B.centuries>m.length/k.nav.density?(J=Z,P=da):B.decades>m.length/k.nav.density?(J=Y,P=Z):B.years>m.length/k.nav.density?(J=V,P=Y):B.months>m.length/k.nav.density?(J=S,P=V):B.days>m.length/k.nav.density?(J=R,P=S):B.hours>m.length/k.nav.density?(J=W,P=R):B.minutes>m.length/k.nav.density?(J=X,P=W):B.seconds>m.length/k.nav.density?(J=ca,P=X):(trace("NO IDEA WHAT THE TYPE SHOULD BE"),J=R,P=S);trace("INTERVAL TYPE: "+J.type);trace("INTERVAL MAJOR TYPE: "+
  P.type);pa(J,U,C);pa(P,ba,K);for(c=0;c<U.length;c++)for(z=0;z<ba.length;z++)U[c].date_string==ba[z].date_string&&VMM.attachElement(U[c].element,"");c=c=c=0;n=[];L=[];for(c=0;c<m.length;c++){var G,aa,T,N="",Q=!1,z=VMM.appendAndGetElement(w,"<div>","marker");G=VMM.appendAndGetElement(z,"<div>","flag");aa=VMM.appendAndGetElement(G,"<div>","flag-content");VMM.appendAndGetElement(z,"<div>","dot");T=VMM.appendAndGetElement(z,"<div>","line");T=VMM.appendAndGetElement(T,"<div>","event-line");_marker_relative_pos=
  ma(J,m[c].startdate,m[c].enddate);_marker_thumb="";null!=m[c].asset&&""!=m[c].asset?VMM.appendElement(aa,VMM.MediaElement.thumbnail(m[c].asset,24,24,m[c].uniqueid)):VMM.appendElement(aa,"<div style='margin-right:7px;height:50px;width:2px;float:left;'></div>");""==m[c].title||" "==m[c].title?(trace("TITLE NOTHING"),"undefined"!=typeof m[c].slug&&""!=m[c].slug?(trace("SLUG"),N=VMM.Util.untagify(m[c].slug),Q=!0):(Q=VMM.MediaType(m[c].asset.media),"quote"==Q.type||"unknown"==Q.type?(N=VMM.Util.untagify(Q.id),
  Q=!0):Q=!1)):""!=m[c].title||" "!=m[c].title?(trace(m[c].title),N=VMM.Util.untagify(m[c].title),Q=!0):trace("TITLE SLUG NOT FOUND "+m[c].slug);Q?VMM.appendElement(aa,"<h3>"+N+"</h3>"):(VMM.appendElement(aa,"<h3>"+N+"</h3>"),VMM.appendElement(aa,"<h3 id='marker_content_"+m[c].uniqueid+"'>"+N+"</h3>"));VMM.Lib.attr(z,"id",("marker_"+m[c].uniqueid).toString());VMM.bindEvent(G,l,"",{number:c});VMM.bindEvent(G,r,"mouseenter mouseleave",{number:c,elem:G});z={marker:z,flag:G,lineevent:T,type:"marker",full:!0,
  relative_pos:_marker_relative_pos,tag:m[c].tag,pos_left:0};"start"==m[c].type&&(trace("BUILD MARKER HAS START PAGE"),k.start_page=!0,z.type="start");"storify"==m[c].type&&(z.type="storify");m[c].tag&&M.push(m[c].tag);n.push(z)}M=VMM.Util.deDupeArray(M);k.nav.rows.current=3<M.length?k.nav.rows.half:k.nav.rows.full;for(c=0;c<M.length;c++)c<k.nav.rows.current.length&&(z=VMM.appendAndGetElement(D,"<div>","timenav-tag"),VMM.Lib.addClass(z,"timenav-tag-row-"+(c+1)),3<M.length?VMM.Lib.addClass(z,"timenav-tag-size-half"):
  VMM.Lib.addClass(z,"timenav-tag-size-full"),VMM.appendElement(z,"<div><h3>"+M[c]+"</h3></div>"));if(3<M.length)for(c=0;c<n.length;c++)VMM.Lib.addClass(n[c].flag,"flag-small"),n[c].full=!1;for(z=z=c=0;z<ea.length;z++)G={content:VMM.appendAndGetElement(w,"<div>","era"),text_content:VMM.appendAndGetElement(C,"<div>","era"),startdate:VMM.Date.parse(ea[z].startDate),enddate:VMM.Date.parse(ea[z].endDate),title:ea[z].headline,uniqueid:VMM.Util.unique_ID(6),tag:"",relative_pos:""},VMM.Date.prettyDate(G.startdate),
  VMM.Date.prettyDate(G.enddate),"undefined"!=typeof ea[z].tag&&(G.tag=ea[z].tag),G.relative_pos=ma(J,G.startdate,G.enddate),VMM.Lib.attr(G.content,"id",G.uniqueid),VMM.Lib.attr(G.text_content,"id",G.uniqueid+"_text"),VMM.Lib.addClass(G.content,"era"+(c+1)),VMM.Lib.addClass(G.text_content,"era"+(c+1)),6>c?c++:c=0,VMM.appendElement(G.content,"<div>&nbsp;</div>"),VMM.appendElement(G.text_content,VMM.Util.unlinkify(G.title)),L.push(G);c=k.nav.multiplier.current;for(z=z=0;z<c;z++){T=G=T=0;aa=[];for(N=N=
  0;N<n.length;N++)"start"!=m[N].type&&(Q=ka(J,n[N].relative_pos),T=G,G=Q.begin,T=G-T,aa.push(T));75>VMM.Util.average(aa).mean&&1<k.nav.multiplier.current&&--k.nav.multiplier.current}qa(!1);ra();ia(C,U,!1,!0);ia(K,ba);k.start_page&&($backhome=VMM.appendAndGetElement(F,"<div>","back-home","<div class='icon'></div>"),VMM.bindEvent(".back-home",h,"click"),VMM.Lib.attribute($backhome,"title",VMM.master_config.language.messages.return_to_title),VMM.Lib.attribute($backhome,"rel","tooltip"));A=new VMM.DragSlider;
  A.createPanel(u,p,k.nav.constraint,k.touch);k.touch&&k.start_page?(VMM.Lib.addClass(F,"touch"),VMM.Lib.css(F,"top",55),VMM.Lib.css(F,"left",10)):(k.start_page&&VMM.Lib.css(F,"top",27),t=VMM.appendAndGetElement(F,"<div>","zoom-in","<div class='icon'></div>"),v=VMM.appendAndGetElement(F,"<div>","zoom-out","<div class='icon'></div>"),VMM.bindEvent(t,f,"click"),VMM.bindEvent(v,e,"click"),VMM.Lib.attribute(t,"title",VMM.master_config.language.messages.expand_timeline),VMM.Lib.attribute(t,"rel","tooltip"),
  VMM.Lib.attribute(v,"title",VMM.master_config.language.messages.contract_timeline),VMM.Lib.attribute(v,"rel","tooltip"),F.tooltip({selector:"div[rel=tooltip]",placement:"right"}),VMM.bindEvent(u,g,"DOMMouseScroll"),VMM.bindEvent(u,g,"mousewheel"));if(0!=k.nav.zoom.adjust)if(0>k.nav.zoom.adjust)for(c=0;c<Math.abs(k.nav.zoom.adjust);c++)e();else for(c=0;c<k.nav.zoom.adjust;c++)f();na=!0;d(!0);VMM.fireEvent(u,"LOADED")}else trace("NO DATA")};this.setSize=function(a,b){null!=a&&(k.width=a);null!=b&&(k.height=
  b);na&&d()};this.setMarker=function(a,b,c,d){ja(a,b,c)};this.getCurrentNumber=function(){return O};var oa=function(){trace("config.nav.multiplier "+k.nav.multiplier.current);qa(!0);ra(!0);ia(C,U,!0,!0);ia(K,ba,!0);k.nav.constraint.left=k.width/2;k.nav.constraint.right=k.nav.constraint.right_min-k.width/2;A.updateConstraint(k.nav.constraint)},ja=function(a,b,c,d,e){trace("GO TO MARKER");d=k.ease;e=k.duration;O=a;fa=k.width/2-n[O].pos_left;ga=Math.abs(fa)-100;la=Math.abs(fa)+k.width+100;null!=b&&""!=
  b&&(d=b);null!=c&&""!=c&&(e=c);for(a=0;a<n.length;a++)VMM.Lib.removeClass(n[a].marker,"active");k.start_page&&"start"==n[0].type&&(VMM.Lib.visible(n[0].marker,!1),VMM.Lib.addClass(n[0].marker,"start"));VMM.Lib.addClass(n[O].marker,"active");VMM.Lib.stop(p);VMM.Lib.animate(p,e,d,{left:fa})},ha=function(a,b){var c={};c.days=a/864E5;c.weeks=c.days/7;c.months=c.days/30.4166666667;c.years=c.months/12;c.hours=24*c.days;c.minutes=1440*c.days;c.seconds=86400*c.days;c.decades=c.years/10;c.centuries=c.years/
  100;c.milleniums=c.years/1E3;c.ages=c.years/1E6;c.epochs=c.years/1E7;c.eras=c.years/1E8;c.eons=c.years/5E8;return c},ma=function(a,b,c){var d;a=a.type;var e={start:"",end:"",type:a};d=ha(b);e.start=b.months;"eon"==a?e.start=d.eons:"era"==a?e.start=d.eras:"epoch"==a?e.start=d.epochs:"age"==a?e.start=d.ages:"millenium"==a?e.start=b.milleniums:"century"==a?e.start=d.centuries:"decade"==a?e.start=d.decades:"year"==a?e.start=d.years:"month"==a?e.start=d.months:"week"==a?e.start=d.weeks:"day"==a?e.start=
  d.days:"hour"==a?e.start=d.hours:"minute"==a&&(e.start=d.minutes);"date"==type.of(c)?(b=ha(c),e.end=c.months,"eon"==a?e.end=b.eons:"era"==a?e.end=b.eras:"epoch"==a?e.end=b.epochs:"age"==a?e.end=b.ages:"millenium"==a?e.end=c.milleniums:"century"==a?e.end=b.centuries:"decade"==a?e.end=b.decades:"year"==a?e.end=b.years:"month"==a?e.end=b.months:"week"==a?e.end=b.weeks:"day"==a?e.end=b.days:"hour"==a?e.end=b.hours:"minute"==a&&(e.end=b.minutes)):e.end=e.start;return e},ka=function(a,b){return{begin:k.nav.interval_width/
  k.nav.multiplier.current*(b.start-J.base),end:k.nav.interval_width/k.nav.multiplier.current*(b.end-J.base)}},qa=function(a){var b=2,c=0,d=0,e=0,f=k.width,g=[],h=ga-f,l=0,m=0;k.nav.minor_width=k.width;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(l=0;l<n.length;l++){var q=n[l],r=ka(J,n[l].relative_pos),m=0,t={id:l,pos:0,row:0};r.begin=Math.round(r.begin+-2);r.end=Math.round(r.end+-2);m=Math.round(r.end-r.begin);q.pos_left=r.begin;O==
  l&&(fa=k.width/2-r,ga=Math.abs(fa),la=Math.abs(fa)+k.width,h=ga-f);Math.abs(r.begin)>=h&&Math.abs(r.begin);a?(VMM.Lib.stop(q.marker),VMM.Lib.animate(q.marker,k.duration/2,k.ease,{left:r.begin})):(VMM.Lib.stop(q.marker),VMM.Lib.css(q.marker,"left",r.begin));l==O&&(e=r.begin);5<m&&(VMM.Lib.css(q.lineevent,"height",6),VMM.Lib.css(q.lineevent,"top",150),a?VMM.Lib.animate(q.lineevent,k.duration/2,k.ease,{width:m}):VMM.Lib.css(q.lineevent,"width",m));if(0<M.length)for(m=0;m<M.length;m++)m<k.nav.rows.current.length&&
  q.tag==M[m]&&(b=m,m==k.nav.rows.current.length-1&&(trace("ON LAST ROW"),VMM.Lib.addClass(q.flag,"flag-small-last")));else r.begin-c.begin<k.nav.marker.width+k.spacing?b<k.nav.rows.current.length-1?b++:(b=0,d++):b=d=1;m=k.nav.rows.current[b];c=r;t.pos=r;t.row=b;g.push(t);6<g.length&&g.remove(0);a?(VMM.Lib.stop(q.flag),VMM.Lib.animate(q.flag,k.duration,k.ease,{top:m})):(VMM.Lib.stop(q.flag),VMM.Lib.css(q.flag,"top",m));k.start_page&&"start"==n[l].type&&VMM.Lib.visible(q.marker,!1);r>k.nav.minor_width&&
  (k.nav.minor_width=r);r<k.nav.minor_left&&(k.nav.minor_left=r)}a&&(VMM.Lib.stop(p),VMM.Lib.animate(p,k.duration/2,k.ease,{left:k.width/2-e}))},ra=function(a){for(var b=0,c=0,b=0;b<L.length;b++){var d=L[b],e=ka(J,d.relative_pos),c=0,f=k.nav.marker.height*k.nav.rows.full.length,g=e.end-e.begin;if(""!=d.tag){f=k.nav.marker.height*k.nav.rows.full.length/k.nav.rows.current.length;for(c=0;c<M.length;c++)c<k.nav.rows.current.length&&d.tag==M[c]&&(row=c);c=k.nav.rows.current[row]}else c=-1;a?(VMM.Lib.stop(d.content),
  VMM.Lib.stop(d.text_content),VMM.Lib.animate(d.content,k.duration/2,k.ease,{top:c,left:e.begin,width:g,height:f}),VMM.Lib.animate(d.text_content,k.duration/2,k.ease,{left:e.begin})):(VMM.Lib.stop(d.content),VMM.Lib.stop(d.text_content),VMM.Lib.css(d.content,"left",e.begin),VMM.Lib.css(d.content,"width",g),VMM.Lib.css(d.content,"height",f),VMM.Lib.css(d.content,"top",c),VMM.Lib.css(d.text_content,"left",e.begin))}},ia=function(a,b,c,d){var e=0,f=k.width,g=ga-f,f=la+f;not_too_many=!0;i=0;k.nav.minor_left=
  0;100<b.length&&(not_too_many=!1,trace("TOO MANY "+b.length));for(i=0;i<b.length;i++){var h=b[i].element,l=b[i].visible,m=ka(J,b[i].relative_pos).begin,n=b[i].animation,q=!0,r=!1;n.pos=m;n.animate=!1;Math.abs(m)>=g&&Math.abs(m)<=f&&(r=!0);16<k.nav.multiplier.current&&d?q=!1:65>m-e&&(35>m-e?0==i%4?0==m&&(q=!1):q=!1:VMM.Util.isEven(i)||(q=!1));q?b[i].is_detached&&(VMM.Lib.append(a,h),b[i].is_detached=!1):(b[i].is_detached=!0,VMM.Lib.detach(h));l?q?(n.opacity="100",c&&r&&(n.animate=!0)):(n.opacity="0",
  c&&not_too_many&&(n.animate=!0),b[i].interval_visible=!1):(n.opacity="100",q?(c&&not_too_many?n.animate=!0:c&&r&&(n.animate=!0),b[i].interval_visible=!0):c&&not_too_many&&(n.animate=!0));e=m;m>k.nav.minor_width&&(k.nav.minor_width=m);m<k.nav.minor_left&&(k.nav.minor_left=m);n.animate?VMM.Lib.animate(h,k.duration/2,k.ease,{opacity:n.opacity,left:n.pos}):(VMM.Lib.css(h,"opacity",n.opacity),VMM.Lib.css(h,"left",m))}k.nav.constraint.right_min=-k.nav.minor_width+k.width;k.nav.constraint.right=k.nav.constraint.right_min+
  k.width/2;VMM.Lib.css(H,"left",k.nav.minor_left-k.width/2);VMM.Lib.width(H,k.nav.minor_width+k.width+Math.abs(k.nav.minor_left))},pa=function(a,b,c){var d=0,e=!0,f=0,g,h,k=Math.ceil(a.number)+2,l=!1,n=0,q=0;VMM.attachElement(c,"");a.date=new Date(m[0].startdate.getFullYear(),0,1,0,0,0);g=a.date.getTimezoneOffset();for(q=0;q<k;q++){trace(a.type);var r=!1,p={element:VMM.appendAndGetElement(c,"<div>",a.classname),date:new Date(m[0].startdate.getFullYear(),0,1,0,0,0),visible:!1,date_string:"",type:a.interval_type,
  relative_pos:0,is_detached:!1,animation:{animate:!1,pos:"",opacity:"100"}};"eon"==a.type?(e&&(h=5E8*Math.floor(m[0].startdate.getFullYear()/5E8)),p.date.setFullYear(h+5E8*d),r=!0):"era"==a.type?(e&&(h=1E8*Math.floor(m[0].startdate.getFullYear()/1E8)),p.date.setFullYear(h+1E8*d),r=!0):"epoch"==a.type?(e&&(h=1E7*Math.floor(m[0].startdate.getFullYear()/1E7)),p.date.setFullYear(h+1E7*d),r=!0):"age"==a.type?(e&&(h=1E6*Math.floor(m[0].startdate.getFullYear()/1E6)),p.date.setFullYear(h+1E6*d),r=!0):"millenium"==
  a.type?(e&&(h=1E3*Math.floor(m[0].startdate.getFullYear()/1E3)),p.date.setFullYear(h+1E3*d),r=!0):"century"==a.type?(e&&(h=100*Math.floor(m[0].startdate.getFullYear()/100)),p.date.setFullYear(h+100*d),r=!0):"decade"==a.type?(e&&(h=10*Math.floor(m[0].startdate.getFullYear()/10)),p.date.setFullYear(h+10*d),r=!0):"year"==a.type?(e&&(h=m[0].startdate.getFullYear()),p.date.setFullYear(h+d),r=!0):"month"==a.type?(e&&(h=m[0].startdate.getMonth()),p.date.setMonth(h+d)):"week"==a.type?(e&&(h=m[0].startdate.getMonth()),
  p.date.setMonth(m[0].startdate.getMonth()),p.date.setDate(h+7*d)):"day"==a.type?(e&&(h=m[0].startdate.getDate()),p.date.setMonth(m[0].startdate.getMonth()),p.date.setDate(h+d)):"hour"==a.type?(e&&(h=m[0].startdate.getHours()),p.date.setMonth(m[0].startdate.getMonth()),p.date.setDate(m[0].startdate.getDate()),p.date.setHours(h+d)):"minute"==a.type?(e&&(h=m[0].startdate.getMinutes()),p.date.setMonth(m[0].startdate.getMonth()),p.date.setDate(m[0].startdate.getDate()),p.date.setHours(m[0].startdate.getHours()),
  p.date.setMinutes(h+d)):"second"==a.type?(e&&(h=m[0].startdate.getSeconds()),p.date.setMonth(m[0].startdate.getMonth()),p.date.setDate(m[0].startdate.getDate()),p.date.setHours(m[0].startdate.getHours()),p.date.setMinutes(m[0].startdate.getMinutes()),p.date.setSeconds(h+d)):"millisecond"==a.type&&(e&&(h=m[0].startdate.getMilliseconds()),p.date.setMonth(m[0].startdate.getMonth()),p.date.setDate(m[0].startdate.getDate()),p.date.setHours(m[0].startdate.getHours()),p.date.setMinutes(m[0].startdate.getMinutes()),
  p.date.setSeconds(m[0].startdate.getSeconds()),p.date.setMilliseconds(h+d));"Firefox"==VMM.Browser.browser&&("1970"==p.date.getFullYear()&&p.date.getTimezoneOffset()!=g?(trace("FIREFOX 1970 TIMEZONE OFFSET "+p.date.getTimezoneOffset()+" SHOULD BE "+g),trace(a.type+" "+a.date),n=p.date.getTimezoneOffset()/60,l=!0,p.date.setHours(p.date.getHours()+n)):l&&(l=!1,p.date.setHours(p.date.getHours()+n),r&&(l=!0)));r?0>p.date.getFullYear()?p.date_string=Math.abs(p.date.getFullYear()).toString()+" B.C.":p.date_string=
  p.date.getFullYear():p.date_string=VMM.Date.prettyDate(p.date,!0);d+=1;e=!1;p.relative_pos=ma(J,p.date);p.relative_pos.begin>f&&(f=p.relative_pos.begin);VMM.appendElement(p.element,p.date_string);VMM.Lib.css(p.element,"text-indent",-(VMM.Lib.width(p.element)/2));VMM.Lib.css(p.element,"opacity","0");b.push(p)}VMM.Lib.width(H,f);ia(c,b)}});
  "undefined"!==typeof VMM.Timeline&&"undefined"==typeof VMM.Timeline.DataObj&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){VMM.Timeline.DataObj.data_obj={};VMM.fireEvent(global,VMM.Timeline.Config.events.messege,VMM.Timeline.Config.language.messages.loading_timeline);"object"==type.of(a)?(trace("DATA SOURCE: JSON OBJECT"),VMM.Timeline.DataObj.parseJSON(a)):"string"==type.of(a)?a.match("%23")?(trace("DATA SOURCE: TWITTER SEARCH"),VMM.Timeline.DataObj.model.tweets.getData("%23medill")):
  a.match("spreadsheet")?(trace("DATA SOURCE: GOOGLE SPREADSHEET"),VMM.Timeline.DataObj.model.googlespreadsheet.getData(a)):a.match("storify.com")?(trace("DATA SOURCE: STORIFY"),VMM.Timeline.DataObj.model.storify.getData(a)):a.match(".jsonp")?(trace("DATA SOURCE: JSONP"),LoadLib.js(a,VMM.Timeline.DataObj.onJSONPLoaded)):(trace("DATA SOURCE: JSON"),VMM.getJSON(a+"&callback=onJSONP_Data",VMM.Timeline.DataObj.parseJSON)):"html"==type.of(a)?(trace("DATA SOURCE: HTML"),VMM.Timeline.DataObj.parseHTML(a)):
  trace("DATA SOURCE: UNKNOWN")},onJSONPLoaded:function(){trace("JSONP IS LOADED");VMM.fireEvent(global,VMM.Timeline.Config.events.data_ready,storyjs_jsonp_data)},parseHTML:function(a){trace("parseHTML");trace("WARNING: THIS IS STILL ALPHA AND WILL NOT WORK WITH ID's other than #timeline");var b=VMM.Timeline.DataObj.data_template_obj;VMM.Lib.find("#timeline section","time")[0]&&(b.timeline.startDate=VMM.Lib.html(VMM.Lib.find("#timeline section","time")[0]),b.timeline.headline=VMM.Lib.html(VMM.Lib.find("#timeline section",
  "h2")),b.timeline.text=VMM.Lib.html(VMM.Lib.find("#timeline section","article")),a=!1,0!=VMM.Lib.find("#timeline section","figure img").length?(a=!0,b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")):0!=VMM.Lib.find("#timeline section","figure a").length&&(a=!0,b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")),a&&(0!=VMM.Lib.find("#timeline section","cite").length&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section",
  "cite"))),0!=VMM.Lib.find(this,"figcaption").length&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))));VMM.Lib.each("#timeline li",function(a,d){var f={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(0!=VMM.Lib.find(this,"time")){f.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(f.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[1]));f.headline=VMM.Lib.html(VMM.Lib.find(this,
  "h3"));f.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var e=!1;0!=VMM.Lib.find(this,"figure img").length?(e=!0,f.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")):0!=VMM.Lib.find(this,"figure a").length&&(e=!0,f.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href"));e&&(0!=VMM.Lib.find(this,"cite").length&&(f.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite"))),0!=VMM.Lib.find(this,"figcaption").length&&(f.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption"))));trace(f);
  b.timeline.date.push(f)}});VMM.fireEvent(global,VMM.Timeline.Config.events.data_ready,b)},parseJSON:function(a){trace("parseJSON");"default"==a.timeline.type?(trace("DATA SOURCE: JSON STANDARD TIMELINE"),VMM.fireEvent(global,VMM.Timeline.Config.events.data_ready,a)):"twitter"==a.timeline.type?(trace("DATA SOURCE: JSON TWEETS"),VMM.Timeline.DataObj.model_Tweets.buildData(a)):(trace("DATA SOURCE: UNKNOWN JSON"),trace(type.of(a.timeline)))},model:{googlespreadsheet:{getData:function(a){function b(){c=
  VMM.getJSON(d,function(a){clearTimeout(f);VMM.Timeline.DataObj.model.googlespreadsheet.buildData(a)}).error(function(a,b,c){trace("Google Docs ERROR");trace("Google Docs ERROR: "+b+" "+a.responseText)}).success(function(a){clearTimeout(f)})}var c,d,f,e=0;d="https://spreadsheets.google.com/feeds/list/"+VMM.Util.getUrlVars(a).key+"/od6/public/values?alt=json";f=setTimeout(function(){trace("Google Docs timeout "+d);trace(d);3>e?(VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Still waiting on Google Docs, trying again "+
  e),e++,c.abort(),b()):VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Google Docs is not responding")},16E3);b()},buildData:function(a){function b(a){return"undefined"!=typeof a?a.$t:""}var c=VMM.Timeline.DataObj.data_template_obj,d=!1;VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Parsing Google Doc Data");if("undefined"!=typeof a.feed.entry)for(var d=!0,f=0;f<a.feed.entry.length;f++){var e=a.feed.entry[f],h="";"undefined"!=typeof e.gsx$type?h=e.gsx$type.$t:"undefined"!=typeof e.gsx$titleslide&&
  (h=e.gsx$titleslide.$t);h.match("start")||h.match("title")?(c.timeline.startDate=b(e.gsx$startdate),c.timeline.headline=b(e.gsx$headline),c.timeline.asset.media=b(e.gsx$media),c.timeline.asset.caption=b(e.gsx$mediacaption),c.timeline.asset.credit=b(e.gsx$mediacredit),c.timeline.text=b(e.gsx$text),c.timeline.type="google spreadsheet"):h.match("era")?(e={startDate:b(e.gsx$startdate),endDate:b(e.gsx$enddate),headline:b(e.gsx$headline),text:b(e.gsx$text),tag:b(e.gsx$tag)},c.timeline.era.push(e)):(e={type:"google spreadsheet",
  startDate:b(e.gsx$startdate),endDate:b(e.gsx$enddate),headline:b(e.gsx$headline),text:b(e.gsx$text),tag:b(e.gsx$tag),asset:{media:b(e.gsx$media),credit:b(e.gsx$mediacredit),caption:b(e.gsx$mediacaption),thumbnail:b(e.gsx$mediathumbnail)}},c.timeline.date.push(e))}d?(VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Finished Parsing Data"),VMM.fireEvent(global,VMM.Timeline.Config.events.data_ready,c)):(VMM.fireEvent(global,VMM.Timeline.Config.events.messege,VMM.Language.messages.loading+" Google Doc Data (cells)"),
  trace("There may be too many entries. Still trying to load data. Now trying to load cells to avoid Googles limitation on cells"),VMM.Timeline.DataObj.model.googlespreadsheet.getDataCells(a.feed.link[0].href))},getDataCells:function(a){function b(){c=VMM.getJSON(d,function(a){clearTimeout(f);VMM.Timeline.DataObj.model.googlespreadsheet.buildDataCells(a)}).error(function(a,b,c){trace("Google Docs ERROR");trace("Google Docs ERROR: "+b+" "+a.responseText)}).success(function(a){clearTimeout(f)})}var c,
  d,f,e=0;d="https://spreadsheets.google.com/feeds/cells/"+VMM.Util.getUrlVars(a).key+"/od6/public/values?alt=json";f=setTimeout(function(){trace("Google Docs timeout "+d);trace(d);3>e?(VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Still waiting on Google Docs, trying again "+e),e++,c.abort(),b()):VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Google Docs is not responding")},16E3);b()},buildDataCells:function(a){var b=VMM.Timeline.DataObj.data_template_obj,c=!1,d=["timeline"],
  f=[],e=0,h=0;VMM.fireEvent(global,VMM.Timeline.Config.events.messege,VMM.Language.messages.loading_timeline+" Parsing Google Doc Data (cells)");if("undefined"!=typeof a.feed.entry){c=!0;for(h=0;h<a.feed.entry.length;h++){var g=a.feed.entry[h];parseInt(g.gs$cell.row)>e&&(e=parseInt(g.gs$cell.row))}for(h=0;h<e+1;h++)g={type:"",startDate:"",endDate:"",headline:"",text:"",tag:"",asset:{media:"",credit:"",caption:"",thumbnail:""}},f.push(g);for(h=0;h<a.feed.entry.length;h++){var g=a.feed.entry[h],e="",
  l;l=g.gs$cell;l="undefined"!=typeof l?l.$t:"";var r=g.gs$cell.col,g=g.gs$cell.row,p="";1==g?("Start Date"==l?e="startDate":"End Date"==l?e="endDate":"Headline"==l?e="headline":"Text"==l?e="text":"Media"==l?e="media":"Media Credit"==l?e="credit":"Media Caption"==l?e="caption":"Media Thumbnail"==l?e="thumbnail":"Type"==l?e="type":"Tag"==l&&(e="tag"),d.push(e)):(p=d[r],f[g][p]=l)}for(h=0;h<f.length;h++)g=f[h],g.type.match("start")||g.type.match("title")?(b.timeline.startDate=g.startDate,b.timeline.headline=
  g.headline,b.timeline.asset.media=g.media,b.timeline.asset.caption=g.caption,b.timeline.asset.credit=g.credit,b.timeline.text=g.text,b.timeline.type="google spreadsheet"):g.type.match("era")?b.timeline.era.push({startDate:g.startDate,endDate:g.endDate,headline:g.headline,text:g.text,tag:g.tag}):(g={type:"google spreadsheet",startDate:g.startDate,endDate:g.endDate,headline:g.headline,text:g.text,tag:g.tag,asset:{media:g.media,credit:g.credit,caption:g.caption,thumbnail:g.thumbnail}},b.timeline.date.push(g))}c?
  (VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Finished Parsing Data"),VMM.fireEvent(global,VMM.Timeline.Config.events.data_ready,b)):VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Unable to load Google Doc data source")}},storify:{getData:function(a){var b;VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Loading Storify...");a="http://api.storify.com/v1/stories/"+a.split("storify.com/")[1]+"?per_page=300&callback=?";b=setTimeout(function(){trace("STORIFY timeout");VMM.fireEvent(global,
  VMM.Timeline.Config.events.messege,"Storify is not responding")},6E3);VMM.getJSON(a,VMM.Timeline.DataObj.model.storify.buildData).error(function(a,b,f){trace("STORIFY error");trace("STORIFY ERROR: "+b+" "+a.responseText)}).success(function(a){clearTimeout(b)})},buildData:function(a){VMM.fireEvent(global,VMM.Timeline.Config.events.messege,"Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;b.timeline.startDate=new Date(a.content.date.created);b.timeline.headline=a.content.title;trace(a);var c=
  "",d=a.content.author.username,f="";"undefined"!=typeof a.content.author.name&&(d=a.content.author.name,f=a.content.author.username+"&nbsp;");"undefined"!=typeof a.content.description&&null!=a.content.description&&(c+=a.content.description);c=c+"<div class='storify'>"+("<div class='vcard author'><a class='screen-name url' href='"+a.content.author.permalink+"' target='_blank'>");c+="<span class='avatar'><img src='"+a.content.author.avatar+"' style='max-width: 32px; max-height: 32px;'></span>";c+="<span class='fn'>"+
  d+"</span>";c+="<span class='nickname'>"+f+"<span class='thumbnail-inline'></span></span>";c+="</a>";c+="</div>";c+="</div>";b.timeline.text=c;b.timeline.asset.media=a.content.thumbnail;b.timeline.type="storify";for(c=0;c<a.content.elements.length;c++){var e=a.content.elements[c],h=!1;trace(e.type);var g={type:"storify",startDate:e.posted_at,endDate:e.posted_at,headline:" ",slug:"",text:"",asset:{media:"",credit:"",caption:""}};if("image"==e.type)"undefined"!=typeof e.source.name?"flickr"==e.source.name?
  (g.asset.media="http://flickr.com/photos/"+e.meta.pathalias+"/"+e.meta.id+"/",g.asset.credit="<a href='"+g.asset.media+"'>"+e.attribution.name+"</a>",g.asset.credit+=" on <a href='"+e.source.href+"'>"+e.source.name+"</a>"):"instagram"==e.source.name?(g.asset.media=e.permalink,g.asset.credit="<a href='"+e.permalink+"'>"+e.attribution.name+"</a>",g.asset.credit+=" on <a href='"+e.source.href+"'>"+e.source.name+"</a>"):(g.asset.credit="<a href='"+e.permalink+"'>"+e.attribution.name+"</a>","undefined"!=
  typeof e.source.href&&(g.asset.credit+=" on <a href='"+e.source.href+"'>"+e.source.name+"</a>"),g.asset.media=e.data.image.src):(g.asset.credit="<a href='"+e.permalink+"'>"+e.attribution.name+"</a>",g.asset.media=e.data.image.src),g.slug=e.attribution.name,"undefined"!=typeof e.data.image.caption&&"undefined"!=e.data.image.caption&&(g.asset.caption=e.data.image.caption,g.slug=e.data.image.caption);else if("quote"==e.type)e.permalink.match("twitter")?(g.asset.media=e.permalink,g.slug=VMM.Util.untagify(e.data.quote.text)):
  e.permalink.match("storify")&&(h=!0,g.asset.media="<blockquote>"+e.data.quote.text.replace(/<\s*\/?\s*b\s*.*?>/g,"")+"</blockquote>");else if("link"==e.type)g.headline=e.data.link.title,g.text=e.data.link.description,g.asset.media="undefined"!=e.data.link.thumbnail&&""!=e.data.link.thumbnail?e.data.link.thumbnail:e.permalink,g.asset.caption="<a href='"+e.permalink+"' target='_blank'>"+e.data.link.title+"</a>",g.slug=e.data.link.title;else if("text"==e.type){if(e.permalink.match("storify")){h=!0;"undefined"!=
  typeof e.attribution.name&&(d=e.attribution.name,f=e.attribution.username+"&nbsp;");var l="<div class='storify'>",l=l+("<blockquote><p>"+e.data.text.replace(/<\s*\/?\s*b\s*.*?>/g,"")+"</p></blockquote>"),l=l+("<div class='vcard author'><a class='screen-name url' href='"+e.attribution.href+"' target='_blank'>"),l=l+("<span class='avatar'><img src='"+e.attribution.thumbnail+"' style='max-width: 32px; max-height: 32px;'></span>"),l=l+("<span class='fn'>"+d+"</span>"),l=l+("<span class='nickname'>"+f+
  "<span class='thumbnail-inline'></span></span>"),l=l+"</a></div></div>";g.text=l;c+1>=a.content.elements.length?g.startDate=a.content.elements[c-1].posted_at:"text"==a.content.elements[c+1].type&&a.content.elements[c+1].permalink.match("storify")?c+2>=a.content.elements.length?g.startDate=a.content.elements[c-1].posted_at:"text"==a.content.elements[c+2].type&&a.content.elements[c+2].permalink.match("storify")?c+3>=a.content.elements.length?g.startDate=a.content.elements[c-1].posted_at:"text"==a.content.elements[c+
  3].type&&a.content.elements[c+3].permalink.match("storify")?g.startDate=a.content.elements[c-1].posted_at:(trace("LEVEL 3"),g.startDate=a.content.elements[c+3].posted_at):(trace("LEVEL 2"),g.startDate=a.content.elements[c+2].posted_at):(trace("LEVEL 1"),g.startDate=a.content.elements[c+1].posted_at);g.endDate=g.startDate}}else"video"==e.type?(g.headline=e.data.video.title,g.asset.caption=e.data.video.description,g.asset.caption=e.source.username,g.asset.media=e.data.video.src):(trace("NO MATCH "),
  trace(e));h&&(g.slug=VMM.Util.untagify(e.data.text));b.timeline.date.push(g)}VMM.fireEvent(global,VMM.Timeline.Config.events.data_ready,b)}},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){for(var c=VMM.Timeline.DataObj.data_template_obj,d=0;d<b.tweetdata.length;d++){var f={type:"tweets",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};f.startDate=b.tweetdata[d].raw.created_at;type.of(b.tweetdata[d].raw.from_user_name)?f.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>)":f.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>)";f.asset.media=b.tweetdata[d].content;c.timeline.date.push(f)}VMM.fireEvent(global,VMM.Timeline.Config.events.data_ready,c)}}},data_template_obj:{timeline:{headline:"",description:"",asset:{media:"",credit:"",caption:""},date:[],era:[]}},date_obj:{startDate:"2012,2,2,11,30",headline:"",text:"",asset:{media:"http://youtu.be/vjVfu8-Wp6s",credit:"",caption:""},tags:"Optional"}});