diff --git a/.gitignore b/.gitignore index f38e663..a1c817b 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,4 @@ dev_examples/ tmtags -source/gfx/Sprites/.DS_Store +source/gfx/Sprites/ diff --git a/locale/de.js b/locale/de.js index e85110e..3e05df1 100644 --- a/locale/de.js +++ b/locale/de.js @@ -1,4 +1,22 @@ -/* Verite +/*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*//*********************************************** + Begin VMM.js +***********************************************//* Verite * Verite JS Master * Version: 0.6 * Date: April 26, 2012 @@ -8,7 +26,7 @@ * ----------------------------------------------------- *//* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. -================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);d.type=="timeline"&&VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,VMM.Util.unlinkify(i[m-1].title))}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);d.type=="timeline"&&VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,VMM.Util.unlinkify(i[m+1].title))}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","1957");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","1957")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent -(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("raw_data "+a);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=window.parent.document.location.toString(),c="";b.match("http")?c=b:c="https://";var d=VMM.Util.getUrlVars(a).key,e="https://spreadsheets.google.com/feeds/list/"+d+"/od6/public/values?alt=json";VMM.getJSON(e,VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd. mmmm yyyy''",full_long:"dddd',' d. mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d. mmm yyyy''"},messages:{loading_timeline:"Chronologie wird geladen...",return_to_title:"Zurück zum Anfang",expand_timeline:"Chronologie vergrößern",contract_timeline:"Chronologie verkleinern"}}}; \ No newline at end of file +================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);trace(i[m]);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);p=VMM.Util.unlinkify(i[m-1].title);if(d.type=="timeline")if(typeof i[m-1].date=="undefined"){VMM.attachElement(s.prevDate,p);VMM.attachElement(s.prevTitle,"")}else{VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,p)}else VMM.attachElement(s.prevTitle,p)}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);p=VMM.Util.unlinkify(i[m+1].title);if(d.type=="timeline")if(typeof i[m+1].date=="undefined"){VMM.attachElement(s.nextDate,p);VMM.attachElement(s.nextTitle,"")}else{VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,p)}else VMM.attachElement(s.nextTitle,p)}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="",d=a.split("://",2);b.match("http")?c=b:c="https";return c+"://"+d[1]},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age" +){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=VMM.Util.getUrlVars(a).key,c="https://spreadsheets.google.com/feeds/list/"+b+"/od6/public/values?alt=json";VMM.getJSON(VMM.Util.correctProtocol(c),VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd. mmmm yyyy''",full_long:"dddd',' d. mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d. mmm yyyy''"},messages:{loading_timeline:"Chronologie wird geladen...",return_to_title:"Zurück zum Anfang",expand_timeline:"Chronologie vergrößern",contract_timeline:"Chronologie verkleinern"}}}; \ No newline at end of file diff --git a/locale/en.js b/locale/en.js index 61a0a03..a313ffc 100644 --- a/locale/en.js +++ b/locale/en.js @@ -1,4 +1,22 @@ -/* Verite +/*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*//*********************************************** + Begin VMM.js +***********************************************//* Verite * Verite JS Master * Version: 0.6 * Date: April 26, 2012 @@ -8,7 +26,7 @@ * ----------------------------------------------------- *//* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. -================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);d.type=="timeline"&&VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,VMM.Util.unlinkify(i[m-1].title))}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);d.type=="timeline"&&VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,VMM.Util.unlinkify(i[m+1].title))}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","1957");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","1957")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent -(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("raw_data "+a);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=window.parent.document.location.toString(),c="";b.match("http")?c=b:c="https://";var d=VMM.Util.getUrlVars(a).key,e="https://spreadsheets.google.com/feeds/list/"+d+"/od6/public/values?alt=json";VMM.getJSON(e,VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}}}; \ No newline at end of file +================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);trace(i[m]);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);p=VMM.Util.unlinkify(i[m-1].title);if(d.type=="timeline")if(typeof i[m-1].date=="undefined"){VMM.attachElement(s.prevDate,p);VMM.attachElement(s.prevTitle,"")}else{VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,p)}else VMM.attachElement(s.prevTitle,p)}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);p=VMM.Util.unlinkify(i[m+1].title);if(d.type=="timeline")if(typeof i[m+1].date=="undefined"){VMM.attachElement(s.nextDate,p);VMM.attachElement(s.nextTitle,"")}else{VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,p)}else VMM.attachElement(s.nextTitle,p)}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="",d=a.split("://",2);b.match("http")?c=b:c="https";return c+"://"+d[1]},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age" +){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=VMM.Util.getUrlVars(a).key,c="https://spreadsheets.google.com/feeds/list/"+b+"/od6/public/values?alt=json";VMM.getJSON(VMM.Util.correctProtocol(c),VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}}}; \ No newline at end of file diff --git a/locale/es.js b/locale/es.js index ff330ec..0e406bb 100644 --- a/locale/es.js +++ b/locale/es.js @@ -1,4 +1,22 @@ -/* Verite +/*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*//*********************************************** + Begin VMM.js +***********************************************//* Verite * Verite JS Master * Version: 0.6 * Date: April 26, 2012 @@ -8,7 +26,7 @@ * ----------------------------------------------------- *//* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. -================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);d.type=="timeline"&&VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,VMM.Util.unlinkify(i[m-1].title))}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);d.type=="timeline"&&VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,VMM.Util.unlinkify(i[m+1].title))}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","1957");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","1957")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent -(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("raw_data "+a);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=window.parent.document.location.toString(),c="";b.match("http")?c=b:c="https://";var d=VMM.Util.getUrlVars(a).key,e="https://spreadsheets.google.com/feeds/list/"+d+"/od6/public/values?alt=json";VMM.getJSON(e,VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Cronología esta cargando",return_to_title:"Volver al título",expand_timeline:"Enlargar la cronología",contract_timeline:"Reducir la cronología"}}}; \ No newline at end of file +================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);trace(i[m]);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);p=VMM.Util.unlinkify(i[m-1].title);if(d.type=="timeline")if(typeof i[m-1].date=="undefined"){VMM.attachElement(s.prevDate,p);VMM.attachElement(s.prevTitle,"")}else{VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,p)}else VMM.attachElement(s.prevTitle,p)}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);p=VMM.Util.unlinkify(i[m+1].title);if(d.type=="timeline")if(typeof i[m+1].date=="undefined"){VMM.attachElement(s.nextDate,p);VMM.attachElement(s.nextTitle,"")}else{VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,p)}else VMM.attachElement(s.nextTitle,p)}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="",d=a.split("://",2);b.match("http")?c=b:c="https";return c+"://"+d[1]},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age" +){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=VMM.Util.getUrlVars(a).key,c="https://spreadsheets.google.com/feeds/list/"+b+"/od6/public/values?alt=json";VMM.getJSON(VMM.Util.correctProtocol(c),VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Cronología esta cargando",return_to_title:"Volver al título",expand_timeline:"Enlargar la cronología",contract_timeline:"Reducir la cronología"}}}; \ No newline at end of file diff --git a/locale/fr.js b/locale/fr.js index f87c669..8811689 100644 --- a/locale/fr.js +++ b/locale/fr.js @@ -1,4 +1,22 @@ -/* Verite +/*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*//*********************************************** + Begin VMM.js +***********************************************//* Verite * Verite JS Master * Version: 0.6 * Date: April 26, 2012 @@ -8,7 +26,7 @@ * ----------------------------------------------------- *//* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. -================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);d.type=="timeline"&&VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,VMM.Util.unlinkify(i[m-1].title))}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);d.type=="timeline"&&VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,VMM.Util.unlinkify(i[m+1].title))}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","1957");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","1957")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent -(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("raw_data "+a);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=window.parent.document.location.toString(),c="";b.match("http")?c=b:c="https://";var d=VMM.Util.getUrlVars(a).key,e="https://spreadsheets.google.com/feeds/list/"+d+"/od6/public/values?alt=json";VMM.getJSON(e,VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Chargement de la frise en cours... ",return_to_title:"Retour à la page d'accueil",expand_timeline:"Elargir la frise",contract_timeline:"Réduire la frise"}}}; \ No newline at end of file +================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);trace(i[m]);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);p=VMM.Util.unlinkify(i[m-1].title);if(d.type=="timeline")if(typeof i[m-1].date=="undefined"){VMM.attachElement(s.prevDate,p);VMM.attachElement(s.prevTitle,"")}else{VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,p)}else VMM.attachElement(s.prevTitle,p)}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);p=VMM.Util.unlinkify(i[m+1].title);if(d.type=="timeline")if(typeof i[m+1].date=="undefined"){VMM.attachElement(s.nextDate,p);VMM.attachElement(s.nextTitle,"")}else{VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,p)}else VMM.attachElement(s.nextTitle,p)}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="",d=a.split("://",2);b.match("http")?c=b:c="https";return c+"://"+d[1]},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age" +){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=VMM.Util.getUrlVars(a).key,c="https://spreadsheets.google.com/feeds/list/"+b+"/od6/public/values?alt=json";VMM.getJSON(VMM.Util.correctProtocol(c),VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Chargement de la frise en cours... ",return_to_title:"Retour à la page d'accueil",expand_timeline:"Elargir la frise",contract_timeline:"Réduire la frise"}}}; \ No newline at end of file diff --git a/locale/is.js b/locale/is.js index 073a697..622c741 100644 --- a/locale/is.js +++ b/locale/is.js @@ -1,4 +1,22 @@ -/* Verite +/*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*//*********************************************** + Begin VMM.js +***********************************************//* Verite * Verite JS Master * Version: 0.6 * Date: April 26, 2012 @@ -8,7 +26,7 @@ * ----------------------------------------------------- *//* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. -================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);d.type=="timeline"&&VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,VMM.Util.unlinkify(i[m-1].title))}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);d.type=="timeline"&&VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,VMM.Util.unlinkify(i[m+1].title))}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","1957");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","1957")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent -(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("raw_data "+a);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=window.parent.document.location.toString(),c="";b.match("http")?c=b:c="https://";var d=VMM.Util.getUrlVars(a).key,e="https://spreadsheets.google.com/feeds/list/"+d+"/od6/public/values?alt=json";VMM.getJSON(e,VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},messages:{loading_timeline:"Raða upp tímalínu... ",return_to_title:"Til baka á forsíðu",expand_timeline:"Stækka tímalínu",contract_timeline:"Minnka tímalínu"}}}; \ No newline at end of file +================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);trace(i[m]);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);p=VMM.Util.unlinkify(i[m-1].title);if(d.type=="timeline")if(typeof i[m-1].date=="undefined"){VMM.attachElement(s.prevDate,p);VMM.attachElement(s.prevTitle,"")}else{VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,p)}else VMM.attachElement(s.prevTitle,p)}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);p=VMM.Util.unlinkify(i[m+1].title);if(d.type=="timeline")if(typeof i[m+1].date=="undefined"){VMM.attachElement(s.nextDate,p);VMM.attachElement(s.nextTitle,"")}else{VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,p)}else VMM.attachElement(s.nextTitle,p)}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="",d=a.split("://",2);b.match("http")?c=b:c="https";return c+"://"+d[1]},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age" +){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=VMM.Util.getUrlVars(a).key,c="https://spreadsheets.google.com/feeds/list/"+b+"/od6/public/values?alt=json";VMM.getJSON(VMM.Util.correctProtocol(c),VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},messages:{loading_timeline:"Raða upp tímalínu... ",return_to_title:"Til baka á forsíðu",expand_timeline:"Stækka tímalínu",contract_timeline:"Minnka tímalínu"}}}; \ No newline at end of file diff --git a/locale/it.js b/locale/it.js index d1855b3..7d86588 100644 --- a/locale/it.js +++ b/locale/it.js @@ -1,4 +1,22 @@ -/* Verite +/*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*//*********************************************** + Begin VMM.js +***********************************************//* Verite * Verite JS Master * Version: 0.6 * Date: April 26, 2012 @@ -8,7 +26,7 @@ * ----------------------------------------------------- *//* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. -================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);d.type=="timeline"&&VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,VMM.Util.unlinkify(i[m-1].title))}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);d.type=="timeline"&&VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,VMM.Util.unlinkify(i[m+1].title))}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","1957");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","1957")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent -(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("raw_data "+a);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=window.parent.document.location.toString(),c="";b.match("http")?c=b:c="https://";var d=VMM.Util.getUrlVars(a).key,e="https://spreadsheets.google.com/feeds/list/"+d+"/od6/public/values?alt=json";VMM.getJSON(e,VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}}}; \ No newline at end of file +================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);trace(i[m]);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);p=VMM.Util.unlinkify(i[m-1].title);if(d.type=="timeline")if(typeof i[m-1].date=="undefined"){VMM.attachElement(s.prevDate,p);VMM.attachElement(s.prevTitle,"")}else{VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,p)}else VMM.attachElement(s.prevTitle,p)}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);p=VMM.Util.unlinkify(i[m+1].title);if(d.type=="timeline")if(typeof i[m+1].date=="undefined"){VMM.attachElement(s.nextDate,p);VMM.attachElement(s.nextTitle,"")}else{VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,p)}else VMM.attachElement(s.nextTitle,p)}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="",d=a.split("://",2);b.match("http")?c=b:c="https";return c+"://"+d[1]},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age" +){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=VMM.Util.getUrlVars(a).key,c="https://spreadsheets.google.com/feeds/list/"+b+"/od6/public/values?alt=json";VMM.getJSON(VMM.Util.correctProtocol(c),VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}}}; \ No newline at end of file diff --git a/locale/kr.js b/locale/kr.js index 47dfc0a..2862d04 100644 --- a/locale/kr.js +++ b/locale/kr.js @@ -1,4 +1,22 @@ -/* Verite +/*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*//*********************************************** + Begin VMM.js +***********************************************//* Verite * Verite JS Master * Version: 0.6 * Date: April 26, 2012 @@ -8,7 +26,7 @@ * ----------------------------------------------------- *//* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. -================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);d.type=="timeline"&&VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,VMM.Util.unlinkify(i[m-1].title))}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);d.type=="timeline"&&VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,VMM.Util.unlinkify(i[m+1].title))}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","1957");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","1957")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent -(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("raw_data "+a);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=window.parent.document.location.toString(),c="";b.match("http")?c=b:c="https://";var d=VMM.Util.getUrlVars(a).key,e="https://spreadsheets.google.com/feeds/list/"+d+"/od6/public/values?alt=json";VMM.getJSON(e,VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}}}; \ No newline at end of file +================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);trace(i[m]);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);p=VMM.Util.unlinkify(i[m-1].title);if(d.type=="timeline")if(typeof i[m-1].date=="undefined"){VMM.attachElement(s.prevDate,p);VMM.attachElement(s.prevTitle,"")}else{VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,p)}else VMM.attachElement(s.prevTitle,p)}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);p=VMM.Util.unlinkify(i[m+1].title);if(d.type=="timeline")if(typeof i[m+1].date=="undefined"){VMM.attachElement(s.nextDate,p);VMM.attachElement(s.nextTitle,"")}else{VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,p)}else VMM.attachElement(s.nextTitle,p)}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="",d=a.split("://",2);b.match("http")?c=b:c="https";return c+"://"+d[1]},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age" +){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=VMM.Util.getUrlVars(a).key,c="https://spreadsheets.google.com/feeds/list/"+b+"/od6/public/values?alt=json";VMM.getJSON(VMM.Util.correctProtocol(c),VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}}}; \ No newline at end of file diff --git a/locale/nl.js b/locale/nl.js index fd9973a..1912156 100644 --- a/locale/nl.js +++ b/locale/nl.js @@ -1,4 +1,22 @@ -/* Verite +/*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*//*********************************************** + Begin VMM.js +***********************************************//* Verite * Verite JS Master * Version: 0.6 * Date: April 26, 2012 @@ -8,7 +26,7 @@ * ----------------------------------------------------- *//* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. -================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);d.type=="timeline"&&VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,VMM.Util.unlinkify(i[m-1].title))}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);d.type=="timeline"&&VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,VMM.Util.unlinkify(i[m+1].title))}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","1957");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","1957")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent -(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("raw_data "+a);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=window.parent.document.location.toString(),c="";b.match("http")?c=b:c="https://";var d=VMM.Util.getUrlVars(a).key,e="https://spreadsheets.google.com/feeds/list/"+d+"/od6/public/values?alt=json";VMM.getJSON(e,VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Tijdlijn laden ... ",return_to_title:"Terug naar het begin",expand_timeline:"Tijdlijn uitzoomen",contract_timeline:"Tijdlijn inzoomen"}}}; \ No newline at end of file +================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);trace(i[m]);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);p=VMM.Util.unlinkify(i[m-1].title);if(d.type=="timeline")if(typeof i[m-1].date=="undefined"){VMM.attachElement(s.prevDate,p);VMM.attachElement(s.prevTitle,"")}else{VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,p)}else VMM.attachElement(s.prevTitle,p)}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);p=VMM.Util.unlinkify(i[m+1].title);if(d.type=="timeline")if(typeof i[m+1].date=="undefined"){VMM.attachElement(s.nextDate,p);VMM.attachElement(s.nextTitle,"")}else{VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,p)}else VMM.attachElement(s.nextTitle,p)}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="",d=a.split("://",2);b.match("http")?c=b:c="https";return c+"://"+d[1]},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age" +){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=VMM.Util.getUrlVars(a).key,c="https://spreadsheets.google.com/feeds/list/"+b+"/od6/public/values?alt=json";VMM.getJSON(VMM.Util.correctProtocol(c),VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Tijdlijn laden ... ",return_to_title:"Terug naar het begin",expand_timeline:"Tijdlijn uitzoomen",contract_timeline:"Tijdlijn inzoomen"}}}; \ No newline at end of file diff --git a/locale/pt-br.js b/locale/pt-br.js index 518bf2d..a45b963 100644 --- a/locale/pt-br.js +++ b/locale/pt-br.js @@ -1,4 +1,22 @@ -/* Verite +/*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*//*********************************************** + Begin VMM.js +***********************************************//* Verite * Verite JS Master * Version: 0.6 * Date: April 26, 2012 @@ -8,7 +26,7 @@ * ----------------------------------------------------- *//* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. -================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);d.type=="timeline"&&VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,VMM.Util.unlinkify(i[m-1].title))}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);d.type=="timeline"&&VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,VMM.Util.unlinkify(i[m+1].title))}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","1957");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","1957")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent -(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("raw_data "+a);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=window.parent.document.location.toString(),c="";b.match("http")?c=b:c="https://";var d=VMM.Util.getUrlVars(a).key,e="https://spreadsheets.google.com/feeds/list/"+d+"/od6/public/values?alt=json";VMM.getJSON(e,VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd 'de' mmmm',' yyyy''",full_long:"dddd',' d 'de' mmm',' yyyy 'às' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' d 'de' mmm',' yyyy''"},messages:{loading_timeline:"Carregando Timeline... ",return_to_title:"Voltar para o título",expand_timeline:"Expandir Timeline",contract_timeline:"Contratar Timeline"}}}; \ No newline at end of file +================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);trace(i[m]);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);p=VMM.Util.unlinkify(i[m-1].title);if(d.type=="timeline")if(typeof i[m-1].date=="undefined"){VMM.attachElement(s.prevDate,p);VMM.attachElement(s.prevTitle,"")}else{VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,p)}else VMM.attachElement(s.prevTitle,p)}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);p=VMM.Util.unlinkify(i[m+1].title);if(d.type=="timeline")if(typeof i[m+1].date=="undefined"){VMM.attachElement(s.nextDate,p);VMM.attachElement(s.nextTitle,"")}else{VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,p)}else VMM.attachElement(s.nextTitle,p)}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="",d=a.split("://",2);b.match("http")?c=b:c="https";return c+"://"+d[1]},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age" +){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=VMM.Util.getUrlVars(a).key,c="https://spreadsheets.google.com/feeds/list/"+b+"/od6/public/values?alt=json";VMM.getJSON(VMM.Util.correctProtocol(c),VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd 'de' mmmm',' yyyy''",full_long:"dddd',' d 'de' mmm',' yyyy 'às' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' d 'de' mmm',' yyyy''"},messages:{loading_timeline:"Carregando Timeline... ",return_to_title:"Voltar para o título",expand_timeline:"Expandir Timeline",contract_timeline:"Contratar Timeline"}}}; \ No newline at end of file diff --git a/locale/zh-ch.js b/locale/zh-ch.js index 7e313ad..e2117c2 100644 --- a/locale/zh-ch.js +++ b/locale/zh-ch.js @@ -1,4 +1,22 @@ -/* Verite +/*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*//*********************************************** + Begin VMM.js +***********************************************//* Verite * Verite JS Master * Version: 0.6 * Date: April 26, 2012 @@ -8,7 +26,7 @@ * ----------------------------------------------------- *//* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. -================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);d.type=="timeline"&&VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,VMM.Util.unlinkify(i[m-1].title))}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);d.type=="timeline"&&VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,VMM.Util.unlinkify(i[m+1].title))}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","1957");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","1957")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent -(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("raw_data "+a);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=window.parent.document.location.toString(),c="";b.match("http")?c=b:c="https://";var d=VMM.Util.getUrlVars(a).key,e="https://spreadsheets.google.com/feeds/list/"+d+"/od6/public/values?alt=json";VMM.getJSON(e,VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}}}; \ No newline at end of file +================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);trace(i[m]);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);p=VMM.Util.unlinkify(i[m-1].title);if(d.type=="timeline")if(typeof i[m-1].date=="undefined"){VMM.attachElement(s.prevDate,p);VMM.attachElement(s.prevTitle,"")}else{VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,p)}else VMM.attachElement(s.prevTitle,p)}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);p=VMM.Util.unlinkify(i[m+1].title);if(d.type=="timeline")if(typeof i[m+1].date=="undefined"){VMM.attachElement(s.nextDate,p);VMM.attachElement(s.nextTitle,"")}else{VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,p)}else VMM.attachElement(s.nextTitle,p)}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="",d=a.split("://",2);b.match("http")?c=b:c="https";return c+"://"+d[1]},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age" +){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=VMM.Util.getUrlVars(a).key,c="https://spreadsheets.google.com/feeds/list/"+b+"/od6/public/values?alt=json";VMM.getJSON(VMM.Util.correctProtocol(c),VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}}}; \ No newline at end of file diff --git a/locale/zh-tw.js b/locale/zh-tw.js index fb66f53..74b917c 100644 --- a/locale/zh-tw.js +++ b/locale/zh-tw.js @@ -1,4 +1,22 @@ -/* Verite +/*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*//*********************************************** + Begin VMM.js +***********************************************//* Verite * Verite JS Master * Version: 0.6 * Date: April 26, 2012 @@ -8,7 +26,7 @@ * ----------------------------------------------------- *//* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. -================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);d.type=="timeline"&&VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,VMM.Util.unlinkify(i[m-1].title))}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);d.type=="timeline"&&VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,VMM.Util.unlinkify(i[m+1].title))}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","1957");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","1957")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent -(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("raw_data "+a);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=window.parent.document.location.toString(),c="";b.match("http")?c=b:c="https://";var d=VMM.Util.getUrlVars(a).key,e="https://spreadsheets.google.com/feeds/list/"+d+"/od6/public/values?alt=json";VMM.getJSON(e,VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}}}; \ No newline at end of file +================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);trace(i[m]);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);p=VMM.Util.unlinkify(i[m-1].title);if(d.type=="timeline")if(typeof i[m-1].date=="undefined"){VMM.attachElement(s.prevDate,p);VMM.attachElement(s.prevTitle,"")}else{VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,p)}else VMM.attachElement(s.prevTitle,p)}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);p=VMM.Util.unlinkify(i[m+1].title);if(d.type=="timeline")if(typeof i[m+1].date=="undefined"){VMM.attachElement(s.nextDate,p);VMM.attachElement(s.nextTitle,"")}else{VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,p)}else VMM.attachElement(s.nextTitle,p)}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="",d=a.split("://",2);b.match("http")?c=b:c="https";return c+"://"+d[1]},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age" +){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=VMM.Util.getUrlVars(a).key,c="https://spreadsheets.google.com/feeds/list/"+b+"/od6/public/values?alt=json";VMM.getJSON(VMM.Util.correctProtocol(c),VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c'd mmmm yyyy''",full_long:"dddd',' d mmm yyyy 'um' HH:MM",full_long_small_date:"HH:MM'
'dddd',' d mmm yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}}}; \ No newline at end of file diff --git a/source/js/VMM.ExternalAPI.js b/source/js/VMM.ExternalAPI.js index 300eb92..bacd46a 100644 --- a/source/js/VMM.ExternalAPI.js +++ b/source/js/VMM.ExternalAPI.js @@ -148,7 +148,7 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { trace("id " + id); var twitter_timeout = setTimeout(VMM.ExternalAPI.twitter.notFoundError, 4000, id); - VMM.getJSON(the_url, VMM.ExternalAPI.twitter.formatJSON) + VMM.getJSON(VMM.Util.correctProtocol(the_url), VMM.ExternalAPI.twitter.formatJSON) .error(function(jqXHR, textStatus, errorThrown) { trace("TWITTER error"); trace("TWITTER ERROR: " + textStatus + " " + jqXHR.responseText); @@ -481,9 +481,9 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { create: function(doc) { var mediaElem = ""; if (doc.url.match(/docs.google.com/i)) { - mediaElem = ""; + mediaElem = ""; } else { - mediaElem = ""; + mediaElem = ""; } VMM.attachElement("#"+doc.id, mediaElem); }, @@ -560,6 +560,36 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { }, + wikipedia: { + //http://en.wikipedia.org/w/api.php?action=query&prop=extracts&titles=Beastie%20Boys&format=json&exintro=1 + + get: function(url, id) { + var wiki = {url: url, id: id}; + VMM.master_config.wikipedia.que.push(wiki); + VMM.master_config.wikipedia.active = true; + }, + + create: function(wiki) { + /* + var the_url = "http://en.wikipedia.org/w/api.php?action=query&prop=extracts&titles=" + wiki.url + "&format=json&exintro=1&callback=?"; + VMM.getJSON(the_url, function(d) { + if (d.query.pages[0].extract.match("REDIRECT")) { + + } + VMM.attachElement("#"+wiki.id, d.html); + }); + */ + }, + + pushQue: function() { + for(var i = 0; i < VMM.master_config.wikipedia.que.length; i++) { + VMM.ExternalAPI.wikipedia.create(VMM.master_config.wikipedia.que[i]); + } + VMM.master_config.wikipedia.que = []; + }, + + }, + youtube: { get: function(id) { diff --git a/source/js/VMM.Slider.js b/source/js/VMM.Slider.js index f512563..4dce3b9 100644 --- a/source/js/VMM.Slider.js +++ b/source/js/VMM.Slider.js @@ -474,6 +474,7 @@ if(typeof VMM != 'undefined' && typeof VMM.Slider == 'undefined') { var is_last = false; var is_first = false; var _pos = slides[current_slide].leftpos(); + var _title = ""; //var _pos = VMM.Lib.position(slides[current_slide]); if (current_slide == 0) {is_first = true}; @@ -483,23 +484,42 @@ if(typeof VMM != 'undefined' && typeof VMM.Slider == 'undefined') { /* set proper nav titles and dates etc. ================================================== */ + trace(data[current_slide]); if (is_first) { VMM.Lib.visible(navigation.prevBtn, false); } else { VMM.Lib.visible(navigation.prevBtn, true); + _title = VMM.Util.unlinkify(data[current_slide - 1].title) if (config.type == "timeline") { - VMM.attachElement(navigation.prevDate, data[current_slide - 1].date); + if(typeof data[current_slide - 1].date === "undefined") { + VMM.attachElement(navigation.prevDate, _title); + VMM.attachElement(navigation.prevTitle, ""); + } else { + VMM.attachElement(navigation.prevDate, data[current_slide - 1].date); + VMM.attachElement(navigation.prevTitle, _title); + } + } else { + VMM.attachElement(navigation.prevTitle, _title); } - VMM.attachElement(navigation.prevTitle, VMM.Util.unlinkify(data[current_slide - 1].title)); + } if (is_last) { VMM.Lib.visible(navigation.nextBtn, false); } else { VMM.Lib.visible(navigation.nextBtn, true); + _title = VMM.Util.unlinkify(data[current_slide + 1].title); if (config.type == "timeline") { - VMM.attachElement(navigation.nextDate, data[current_slide + 1].date); + if(typeof data[current_slide + 1].date === "undefined") { + VMM.attachElement(navigation.nextDate, _title); + VMM.attachElement(navigation.nextTitle, ""); + } else { + VMM.attachElement(navigation.nextDate, data[current_slide + 1].date); + VMM.attachElement(navigation.nextTitle, _title); + } + } else { + VMM.attachElement(navigation.nextTitle, _title); } - VMM.attachElement(navigation.nextTitle, VMM.Util.unlinkify(data[current_slide + 1].title) ); + } /* ANIMATE SLIDE @@ -541,8 +561,8 @@ if(typeof VMM != 'undefined' && typeof VMM.Slider == 'undefined') { navigation.nextBtnContainer = VMM.appendAndGetElement(navigation.nextBtn, "
", "nav-container", temp_icon); navigation.prevBtnContainer = VMM.appendAndGetElement(navigation.prevBtn, "
", "nav-container", temp_icon); if (config.type == "timeline") { - navigation.nextDate = VMM.appendAndGetElement(navigation.nextBtnContainer, "
", "date", "1957"); - navigation.prevDate = VMM.appendAndGetElement(navigation.prevBtnContainer, "
", "date", "1957"); + navigation.nextDate = VMM.appendAndGetElement(navigation.nextBtnContainer, "
", "date", ""); + navigation.prevDate = VMM.appendAndGetElement(navigation.prevBtnContainer, "
", "date", ""); } navigation.nextTitle = VMM.appendAndGetElement(navigation.nextBtnContainer, "
", "title", "Title Goes Here"); navigation.prevTitle = VMM.appendAndGetElement(navigation.prevBtnContainer, "
", "title", "Title Goes Here"); diff --git a/source/js/VMM.TImeline.Min.js b/source/js/VMM.TImeline.Min.js index e748980..cdff4d6 100644 --- a/source/js/VMM.TImeline.Min.js +++ b/source/js/VMM.TImeline.Min.js @@ -1,10 +1,26 @@ -/* Timeline Minified -================================================== */ +/*! + Timeline Minified + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*/ + /* CodeKit Import http://incident57.com/codekit/ ================================================== */ - +// @codekit-prepend "VMM.Timeline.License.js"; // @codekit-prepend "VMM.Timeline.js"; VMM.debug = false; \ No newline at end of file diff --git a/source/js/VMM.Timeline.DataObj.js b/source/js/VMM.Timeline.DataObj.js index 6239b83..9b50db2 100644 --- a/source/js/VMM.Timeline.DataObj.js +++ b/source/js/VMM.Timeline.DataObj.js @@ -22,8 +22,7 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.DataObj == 'undefin VMM.Timeline.DataObj.model_Tweets.getData("%23medill"); } else if ( raw_data.match("spreadsheet") ) { - trace("raw_data " + raw_data) - //VMM.fireEvent(global, "MESSEGE", VMM.Timeline.Config.language.messages.loading_timeline); + VMM.fireEvent(global, "MESSEGE", VMM.Timeline.Config.language.messages.loading_timeline); trace("DATA SOURCE: GOOGLE SPREADSHEET"); VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(raw_data); @@ -225,17 +224,11 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.DataObj == 'undefin getData: function(raw_data) { - var loc = (window.parent.document.location).toString(); - var prefix = ""; - if (loc.match("http")) { - prefix = loc; - } else { - prefix = "https://"; - } var _key = VMM.Util.getUrlVars(raw_data)["key"]; - var _url ="https://spreadsheets.google.com/feeds/list/" + _key + "/od6/public/values?alt=json"; - VMM.getJSON(_url, VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData); + var _url = "https://spreadsheets.google.com/feeds/list/" + _key + "/od6/public/values?alt=json"; + + VMM.getJSON(VMM.Util.correctProtocol(_url), VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData); }, buildData: function(d) { diff --git a/source/js/VMM.Timeline.License.js b/source/js/VMM.Timeline.License.js new file mode 100644 index 0000000..ea20a73 --- /dev/null +++ b/source/js/VMM.Timeline.License.js @@ -0,0 +1,17 @@ +/*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*/ \ No newline at end of file diff --git a/source/js/VMM.Timeline.js b/source/js/VMM.Timeline.js index 107dbb3..e52bc6a 100755 --- a/source/js/VMM.Timeline.js +++ b/source/js/VMM.Timeline.js @@ -20,6 +20,8 @@ http://incident57.com/codekit/ ================================================== */ +// @codekit-prepend "VMM.Timeline.License.js"; + // @codekit-prepend "VMM.js"; // @codekit-prepend "VMM.Library.js"; // @codekit-prepend "VMM.Browser.js"; @@ -35,12 +37,13 @@ // @codekit-prepend "VMM.Util.js"; // @codekit-prepend "VMM.LoadLib.js"; // @codekit-prepend "VMM.Language.js"; -// @codekit-prepend "bootstrap-tooltip.js"; -// @codekit-prepend "AES.js"; // @codekit-append "VMM.Timeline.TimeNav.js"; // @codekit-append "VMM.Timeline.DataObj.js"; +// @codekit-prepend "lib/AES.js"; +// @codekit-prepend "lib/bootstrap-tooltip.js"; + /* Timeline ================================================== */ diff --git a/source/js/VMM.Util.js b/source/js/VMM.Util.js index 6b3e283..121438b 100644 --- a/source/js/VMM.Util.js +++ b/source/js/VMM.Util.js @@ -7,6 +7,23 @@ if(typeof VMM != 'undefined' && typeof VMM.Util == 'undefined') { init: function() { return this; }, + + /* CORRECT PROTOCOL + ================================================== */ + correctProtocol: function(url) { + var loc = (window.parent.location.protocol).toString(); + var prefix = ""; + var _url = url.split("://", 2); + + if (loc.match("http")) { + prefix = loc; + } else { + prefix = "https"; + } + + return prefix + "://" + _url[1]; + + }, /* RANDOM BETWEEN ================================================== */ diff --git a/source/js/VMM.js b/source/js/VMM.js index 6b8fab8..142d1bc 100644 --- a/source/js/VMM.js +++ b/source/js/VMM.js @@ -134,6 +134,13 @@ if (typeof VMM == 'undefined') { que: [] }, + wikipedia: { + active: false, + array: [], + api_loaded: false, + que: [] + }, + soundcloud: { active: false, array: [], diff --git a/timeline-min.js b/timeline-min.js index c4edbfb..b30b166 100644 --- a/timeline-min.js +++ b/timeline-min.js @@ -1,4 +1,40 @@ -/* Verite +/*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*//*********************************************** + Begin VMM.Timeline.License.js +***********************************************//*! + Timeline + Designed and built by Zach Wise at VéritéCo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + http://www.gnu.org/licenses/ + +*//*********************************************** + Begin VMM.js +***********************************************//* Verite * Verite JS Master * Version: 0.6 * Date: April 26, 2012 @@ -8,7 +44,7 @@ * ----------------------------------------------------- *//* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. -================================================== */function trace(a){VMM.debug&&(window.console?console.log(a):typeof jsTrace!="undefined"&&jsTrace.send(a))}function onYouTubePlayerAPIReady(){trace("GLOBAL YOUTUBE API CALLED");VMM.ExternalAPI.youtube.onAPIReady()}(function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){!a&&this.init&&this.init.apply(this,arguments)}var d=this.prototype;a=!0;var e=new this;a=!1;for(var f in c)e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e}}(f,c[f]):c[f];g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g}})();var global=function(){return this||(1,eval)("this")}();if(typeof VMM=="undefined"){var VMM=Class.extend({});VMM.debug=!0;VMM.master_config={init:function(){return this},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},youtube:{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:[]},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" "+e);f+=">";b!=null&&b!=""&&(f+=b);f=f+""}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);d.type=="timeline"&&VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,VMM.Util.unlinkify(i[m-1].title))}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);d.type=="timeline"&&VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,VMM.Util.unlinkify(i[m+1].title))}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","1957");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","1957")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS=[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent -(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){trace("raw_data "+a);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=window.parent.document.location.toString(),c="";b.match("http")?c=b:c="https://";var d=VMM.Util.getUrlVars(a).key,e="https://spreadsheets.google.com/feeds/list/"+d+"/od6/public/values?alt=json";VMM.getJSON(e,VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c"}return f};VMM.createMediaElement=function(a,b,c){var d="",e=!1;d+="
";if(a!=null&&a!=""){valid=!0;d+="";c!=null&&c!=""&&(d+=VMM.createElement("div",c,"credit"));b!=null&&b!=""&&(d+=VMM.createElement("div",b,"caption"))}d+="
";return d};VMM.hideUrlBar=function(){var a=window,b=a.document;if(!location.hash||!a.addEventListener){window.scrollTo(0,1);var c=1,d=setInterval(function(){if(b.body){clearInterval(d);c="scrollTop"in b.body?b.body.scrollTop:1;a.scrollTo(0,c===1?0:1)}},15);a.addEventListener("load",function(){setTimeout(function(){a.scrollTo(0,c===1?0:1)},0)},!1)}}}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 a===null},Undefined:function(a){return a===undefined},nt:function(a){return a===null||a===undefined},Function:function(a){return typeof a=="function"?a.constructor.toString().match(/Function/)!==null:!1},String:function(a){return typeof a=="string"?!0:typeof a=="object"?a.constructor.toString().match(/string/i)!==null:!1},Array:function(a){return typeof a=="object"?a.constructor.toString().match(/array/i)!==null||a.length!==undefined:!1},Boolean:function(a){return typeof a=="boolean"?!0:typeof a=="object"?a.constructor.toString().match(/boolean/i)!==null:!1},Date:function(a){return typeof a=="date"?!0:typeof a=="object"?a.constructor.toString().match(/date/i)!==null:!1},HTML:function(a){return typeof a=="object"?a.constructor.toString().match(/html/i)!==null:!1},Number:function(a){return typeof a=="number"?!0:typeof a=="object"?a.constructor.toString().match(/Number/)!==null:!1},Object:function(a){return typeof a=="object"?a.constructor.toString().match(/object/i)!==null:!1},RegExp:function(a){return typeof a=="function"?a.constructor.toString().match(/regexp/i)!==null:!1}},type={of:function(a){for(var b in is)if(is[b](a))return b.toLowerCase()}};if(typeof VMM!="undefined"){VMM.attachElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).html(b)};VMM.appendElement=function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)};VMM.getHTML=function(a){var b;if(typeof jQuery!="undefined"){b=jQuery(a).html();return b}};VMM.getElement=function(a,b){var c;if(typeof jQuery!="undefined"){b?c=jQuery(a).parent().get(0):c=jQuery(a).get(0);return c}};VMM.bindEvent=function(a,b,c,d){var e,f="click",g={};c!=null&&c!=""&&(f=c);g!=null&&g!=""&&(g=d);typeof jQuery!="undefined"&&jQuery(a).bind(f,g,b)};VMM.unbindEvent=function(a,b,c){var d,e="click",f={};c!=null&&c!=""&&(e=c);typeof jQuery!="undefined"&&jQuery(a).unbind(e,b)};VMM.fireEvent=function(a,b,c){var d,e="click",f=[];b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);typeof jQuery!="undefined"&&jQuery(a).trigger(e,f)};VMM.getJSON=function(a,b,c){if(typeof jQuery!="undefined"){if(!(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest))return jQuery.getJSON(a,b,c);trace("it's ie");var d=a;if(d.match("^http://")){trace("RUNNING GET JSON");d=d.replace("http://","//");return jQuery.getJSON(a,b,c)}if(!d.match("^https://"))return jQuery.getJSON(a,b,c);trace("RUNNING XDR");d=d.replace("https://","http://");var e=new XDomainRequest;e.open("get",d);e.onload=function(){var a=VMM.parseJSON(e.responseText);trace(e.responseText);if(type.of(a)!="null"&&type.of(a)!="undefined")return b(a);trace("IE JSON ERROR")};e.send()}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="";b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);d!=null&&d!=""&&(h=d);if(typeof jQuery!="undefined"){e=jQuery(b);e.addClass(g);e.html(h);jQuery(a).append(e)}return e};VMM.Lib={init:function(){return this},hide:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).hide(b):typeof jQuery!="undefined"&&jQuery(a).hide()},remove:function(a){typeof jQuery!="undefined"&&jQuery(a).remove()},detach:function(a){typeof jQuery!="undefined"&&jQuery(a).detach()},append:function(a,b){typeof jQuery!="undefined"&&jQuery(a).append(b)},show:function(a,b){b!=null&&b!=""?typeof jQuery!="undefined"&&jQuery(a).show(b):typeof jQuery!="undefined"&&jQuery(a).show()},load:function(a,b,c){var d={elem:a};d!=null&&d!=""&&(d=c);typeof jQuery!="undefined"&&jQuery(a).load(d,b)},addClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).addClass(b)},removeClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).removeClass(b)},attr:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},prop:function(a,b,c){typeof jQuery=="undefined"||!/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)?VMM.Lib.attribute(a,b,c):jQuery(a).prop(b,c)},attribute:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).attr(b,c);else if(typeof jQuery!="undefined")return jQuery(a).attr(b)},visible:function(a,b){if(b!=null)typeof jQuery!="undefined"&&(b?jQuery(a).show(0):jQuery(a).hide(0));else if(typeof jQuery!="undefined")return jQuery(a).is(":visible")?!0:!1},css:function(a,b,c){if(c!=null&&c!="")typeof jQuery!="undefined"&&jQuery(a).css(b,c);else if(typeof jQuery!="undefined")return jQuery(a).css(b)},cssmultiple:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).css(b)},offset:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).offset());return b},position:function(a){var b;typeof jQuery!="undefined"&&(b=jQuery(a).position());return b},width:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).width(b);else if(typeof jQuery!="undefined")return jQuery(a).width()},height:function(a,b){if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).height(b);else if(typeof jQuery!="undefined")return jQuery(a).height()},toggleClass:function(a,b){typeof jQuery!="undefined"&&jQuery(a).toggleClass(b)},each:function(a,b){typeof jQuery!="undefined"&&jQuery(a).each(b)},html:function(a,b){var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}if(b!=null&&b!="")typeof jQuery!="undefined"&&jQuery(a).html(b);else{var c;if(typeof jQuery!="undefined"){c=jQuery(a).html();return c}}},find:function(a,b){if(typeof jQuery!="undefined")return jQuery(a).find(b)},stop:function(a){typeof jQuery!="undefined"&&jQuery(a).stop()},animate:function(a,b,c,d,e){var f="easein",g=1e3,h={};b!=null&&(b<1?g=1:g=Math.round(b));c!=null&&c!=""&&(f=c);d!=null?h=d:h={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var i=Math.round(g/1500*10)/10,j=i+"s";VMM.Lib.css(a,"-webkit-transition","all "+j+" ease");VMM.Lib.css(a,"-moz-transition","all "+j+" ease");VMM.Lib.css(a,"-o-transition","all "+j+" ease");VMM.Lib.css(a,"-ms-transition","all "+j+" ease");VMM.Lib.css(a,"transition","all "+j+" ease");VMM.Lib.cssmultiple(a,h)}else typeof jQuery!="undefined"&&(e!=null&&e!=""?jQuery(a).animate(h,{queue:!1,duration:g,easing:f,complete:e}):jQuery(a).animate(h,{queue:!1,duration:g,easing:f}))}}.init()}if(typeof jQuery!="undefined"){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c}})}if(typeof VMM!="undefined"&&typeof VMM.Browser=="undefined"){VMM.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.device=this.searchDevice(navigator.userAgent);this.orientation=this.searchOrientation(window.orientation)},searchOrientation:function(a){return a==0||a==180?"portrait":a==90||a==-90?"landscape":"normal"},searchDevice:function(a){return a.match(/Android/i)||a.match(/iPhone|iPod/i)?"mobile":a.match(/iPad/i)?"tablet":a.match(/BlackBerry/i)||a.match(/IEMobile/i)?"other mobile":"desktop"},searchString:function(a){for(var b=0;b
";return d}if(e.type=="flickr"){d="
";return d}if(e.type=="youtube"){d="
";return d}if(e.type=="googledoc"){d="
";return d}if(e.type=="vimeo"){d="
";return d}if(e.type=="dailymotion"){d="
";return d}if(e.type=="twitter"){d="
";return d}if(e.type=="twitter-ready"){d="
";return d}if(e.type=="soundcloud"){d="
";return d}if(e.type=="google-map"){d="
";return d}if(e.type=="unknown"){e.id.match("blockquote")?d="
":d="
";return d}if(e.type=="website"){d="
";return d}d="
";return d}},create:function(a){var b=!1;if(a.media!=null&&a.media!=""){var c="",d="",e="",f=VMM.MediaType(a.media),g=!1;b=!0;a.credit!=null&&a.credit!=""&&(e="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(d="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(f.type=="image")c="";else if(f.type=="flickr"){var h="flickr_"+f.id;c="";VMM.ExternalAPI.flickr.get(f.id,"#"+h)}else if(f.type=="googledoc"){var i="googledoc_"+VMM.Util.unique_ID(5);c="

Loading Document

";VMM.ExternalAPI.googledocs.get(f.id,i)}else if(f.type=="youtube"){c="

Loading YouTube video

";VMM.ExternalAPI.youtube.get(f.id)}else if(f.type=="vimeo")c="";else if(f.type=="dailymotion")c="";else if(f.type=="twitter"){c="";g=!0;VMM.ExternalAPI.twitter.prettyHTML(f.id)}else if(f.type=="twitter-ready")c=f.id;else if(f.type=="soundcloud"){var j="soundcloud_"+VMM.Util.unique_ID(5);c="

Loading Sound

";VMM.ExternalAPI.soundcloud.get(f.id,j)}else if(f.type=="google-map"){var k="googlemap_"+VMM.Util.unique_ID(7);c="

Loading Map

";VMM.ExternalAPI.googlemaps.get(f.id,k)}else if(f.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");c="
"+VMM.Util.properQuotes(f.id)+"
"}else if(f.type=="website")c="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(f.type)}c="
"+c+e+d+"
";return g?"
"+c+"
":"
"+c+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={};if(a.match("div class='twitter'")){c.type="twitter-ready";c.id=a;b=!0}else if(a.match("(www.)?youtube|youtu.be")){a.match("v=")?c.id=VMM.Util.getUrlVars(a).v:c.id=a.split(/v\/|v=|youtu\.be\//)[1].split(/[?&]/)[0];c.type="youtube";b=!0}else if(a.match("(player.)?vimeo.com")){c.type="vimeo";c.id=a.split(/video\/|\/\/vimeo\.com\//)[1].split(/[?&]/)[0];b=!0}else if(a.match("(www.)?dailymotion.com")){c.id=a.split(/video\/|\/\/dailymotion\.com\//)[1];c.type="dailymotion";b=!0}else if(a.match("(player.)?soundcloud.com")){c.type="soundcloud";c.id=a;b=!0}else if(a.match("(www.)?twitter.com")){a.match("status/")?c.id=a.split("status/")[1]:a.match("statuses/")?c.id=a.split("statuses/")[1]:c.id="";c.type="twitter";b=!0}else if(a.match("maps.google")&&!a.match("staticmap")){c.type="google-map";c.id=a.split(/src=['|"][^'|"]*?['|"]/gi);b=!0}else if(a.match("flickr.com/photos")){c.type="flickr";c.id=a.split("photos/")[1].split("/")[1];c.link=a;b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")){c.type="image";c.id=a;b=!0}else if(VMM.FileExtention.googleDocType(a)){c.type="googledoc";c.id=a;b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else{trace("unknown media");c.type="unknown";c.id=a;b=!0}if(b)return c;trace("No valid media id detected");trace(a);return!1});if(typeof VMM!="undefined"&&typeof VMM.Media=="undefined"){VMM.Media=function(a,b,c,d){function n(){}var e={},f=!1,g={width:720,height:400,content_width:720,content_height:400,ease:"easeInOutExpo",duration:1e3,spacing:15},h="",i="",j="",k="",l=a;b!=null&&b!=""&&(g.width=b);c!=null&&c!=""&&(g.height=c);this.init=function(a){typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};var m=function(a,b,c){h=VMM.appendAndGetElement(l,"
","media");i=VMM.appendAndGetElement(h,"
","container");j=VMM.appendAndGetElement(i,"
","media-container");if(e.media!=null&&e.media!=""){f=!0;var d={};d=VMM.MediaType(e.media);d.type=="image"?VMM.appendElement(j,""):d.type=="youtube"?VMM.appendElement(j,"":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a0){VMM.TouchSlider.vertical?VMM.Lib.animate(a,1e3,"",{top:0}):VMM.Lib.animate(a,1e3,"",{left:0});VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null;VMM.fireEvent(a,"TOUCHUPDATE",[0])}else VMM.TouchSlider.slideMomentum(a,b)},slideMomentum:function(a,b){var c=((new Date).getTime()-VMM.TouchSlider.touchStartTime)*10,d=c,e=VMM.TouchSlider.getLeft(a),f=VMM.TouchSlider.getTop(a),g=6e3*(Math.abs(VMM.TouchSlider.startLeft)-Math.abs(e)),h=6e3*(Math.abs(VMM.TouchSlider.startTop)-Math.abs(f));c=Math.round(g/c);slideAdjustY=Math.round(h/c);var i=c+e,j=slideAdjustY+f,k=j%VMM.TouchSlider.height,l=i%VMM.TouchSlider.width,m={top:Math.min(0,j),left:Math.min(0,i),time:d};VMM.fireEvent(a,"TOUCHUPDATE",[m]);VMM.TouchSlider.startX=null;VMM.TouchSlider.startY=null},doSlide:function(a,b,c){VMM.Lib.css(a,"-webkit-transition-property","left");VMM.Lib.css(a,"-webkit-transition-duration",c);VMM.Lib.css(a,"left",b)},touchMove:function(a,b){!!VMM.TouchSlider.sliding;VMM.TouchSlider.sliding=!0;if(VMM.TouchSlider.vertical)if(VMM.TouchSlider.startY>b.originalEvent.touches[0].screenY){VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!0}else{var c=b.originalEvent.touches[0].screenY-VMM.TouchSlider.startY+VMM.TouchSlider.startTop;VMM.Lib.css(a,"top",-(VMM.TouchSlider.startY-b.originalEvent.touches[0].screenY-VMM.TouchSlider.startTop));VMM.TouchSlider.slidingTop=!1}else if(VMM.TouchSlider.startX>b.originalEvent.touches[0].screenX){VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!0}else{var d=b.originalEvent.touches[0].screenX-VMM.TouchSlider.startX+VMM.TouchSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.TouchSlider.startX-b.originalEvent.touches[0].screenX-VMM.TouchSlider.startLeft));VMM.TouchSlider.slidingLeft=!1}}});typeof VMM!="undefined"&&typeof VMM.DragSlider=="undefined"&&(VMM.DragSlider={createPanel:function(a,b,c,d,e){var f=d;VMM.DragSlider.width=c;VMM.DragSlider.makeDraggable(a,b);VMM.DragSlider.drag_elem=a;VMM.DragSlider.sticky=e},makeDraggable:function(a,b){VMM.bindEvent(a,VMM.DragSlider.onDragStart,"mousedown",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragEnd,"mouseup",{element:b,delement:a});VMM.bindEvent(a,VMM.DragSlider.onDragLeave,"mouseleave",{element:b,delement:a})},cancelSlide:function(a){VMM.unbindEvent(VMM.DragSlider.drag_elem,VMM.DragSlider.onDragMove,"mousemove");return!0},onDragLeave:function(a){VMM.unbindEvent(a.data.delement,VMM.DragSlider.onDragMove,"mousemove");a.preventDefault();a.stopPropagation();return!0},onDragStart:function(a){VMM.DragSlider.dragStart(a.data.element,a.data.delement,a);a.preventDefault();a.stopPropagation();return!0},onDragEnd:function(a){a.preventDefault();a.stopPropagation();if(VMM.DragSlider.sliding){VMM.DragSlider.sliding=!1;VMM.DragSlider.dragEnd(a.data.element,a.data.delement,a);return!1}return!0},onDragMove:function(a){VMM.DragSlider.dragMove(a.data.element,a);a.preventDefault();a.stopPropagation();return!1},dragStart:function(a,b,c){VMM.DragSlider.startX=c.pageX;VMM.DragSlider.startLeft=VMM.DragSlider.getLeft(a);VMM.DragSlider.dragStartTime=(new Date).getTime();VMM.DragSlider.dragWidth=VMM.Lib.width(b);var d=Math.round(VMM.DragSlider.startX-c.pageX-VMM.DragSlider.startLeft);VMM.Lib.stop(a);VMM.bindEvent(b,VMM.DragSlider.onDragMove,"mousemove",{element:a})},dragEnd:function(a,b,c){VMM.unbindEvent(b,VMM.DragSlider.onDragMove,"mousemove");VMM.DragSlider.getLeft(a)>0||VMM.DragSlider.dragMomentum(a,c)},dragMove:function(a,b){!!VMM.DragSlider.sliding;VMM.DragSlider.sliding=!0;if(VMM.DragSlider.startX>b.pageX){VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!0}else{var c=b.pageX-VMM.DragSlider.startX+VMM.DragSlider.startLeft;VMM.Lib.css(a,"left",-(VMM.DragSlider.startX-b.pageX-VMM.DragSlider.startLeft));VMM.DragSlider.slidingLeft=!1}},dragMomentum:function(a,b){var c=((new Date).getTime()-VMM.DragSlider.dragStartTime)*10,d=c,e=VMM.DragSlider.getLeft(a),f=6e3*(Math.abs(VMM.DragSlider.startLeft)-Math.abs(e));c=Math.round(f/c);var g=e+c,h=g%VMM.DragSlider.width,i={left:Math.min(g),time:d};VMM.fireEvent(a,"DRAGUPDATE",[i]);var j="easeOutExpo";i.time>0&&VMM.Lib.animate(a,i.time,j,{left:i.left})},getLeft:function(a){return parseInt(VMM.Lib.css(a,"left").substring(0,VMM.Lib.css(a,"left").length-2),10)}});typeof VMM!="undefined"&&typeof VMM.Slider=="undefined"&&(VMM.Slider=function(a,b){function u(){trace("onConfigSet")}function v(a,b){var c=!0,e=!1;a!=null&&(c=a);b!=null&&(e=b);n=d.slider.width;d.slider.nav.height=VMM.Lib.height(s.prevBtnContainer);d.slider.content.width=n-d.slider.content.padding*2;VMM.Lib.width(h,j.length*d.slider.content.width);if(e){var i=j[m].leftpos();VMM.Lib.css(g,"left",i)}F();G();VMM.Lib.css(s.nextBtn,"left",n-d.slider.nav.width);VMM.Lib.height(s.prevBtn,d.slider.height);VMM.Lib.height(s.nextBtn,d.slider.height);VMM.Lib.css(s.nextBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.css(s.prevBtnContainer,"top",d.slider.height/2-d.slider.nav.height/2);VMM.Lib.height(f,d.slider.height);VMM.Lib.width(f,n);c&&I(m,"linear",1);m==0&&VMM.Lib.visible(s.prevBtn,!1)}function w(a){if(m==j.length-1)VMM.Lib.animate(g,d.duration,d.ease,{left:-j[m].leftpos()});else{I(m+1);A()}}function x(a){if(m==0)I(m);else{I(m-1);A()}}function y(a){switch(a.keyCode){case 39:w(a);break;case 37:x(a)}}function z(a,b){if(k.length==0)for(var c=0;cf+d.slider_width/3?x():VMM.Lib.animate(g,d.duration,d.ease,{left:f})}else VMM.Lib.animate(g,d.duration,d.ease,{left:f});typeof b.top=="number"&&VMM.Lib.animate(g,d.duration,d.ease,{top:-b.top})}function A(){d.current_slide=m;VMM.fireEvent(r,"UPDATE")}var c={},d,e,f,g,h,i=[],j=[],k=[],l="",m=0,n=960,o={move:!1,x:10,y:0,off:0,dampen:48},p="",q=!1,r=a,s={nextBtn:"",prevBtn:"",nextDate:"",prevDate:"",nextTitle:"",prevTitle:""},t;typeof VMM.Timeline!="undefined"?d=VMM.Timeline.Config:d={preload:4,current_slide:0,interval:10,something:0,width:720,height:400,ease:"easeInOutExpo",duration:1e3,timeline:!1,spacing:15,slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}}};this.ver="0.6";d.slider.width=d.width;d.slider.height=d.height;this.init=function(a){j=[];k=[];typeof a!="undefined"?this.setData(a):trace("WAITING ON DATA")};this.width=function(a){if(a==null||a=="")return d.slider.width;d.slider.width=a;v()};this.height=function(a){if(a==null||a=="")return d.slider.height;d.slider.height=a;v()};this.setData=function(a){if(typeof a!="undefined"){i=a;K()}else trace("NO DATA")};this.getData=function(){return i};this.setConfig=function(a){typeof a!="undefined"?d=a:trace("NO CONFIG DATA")};this.getConfig=function(){return d};this.setSize=function(a,b){a!=null&&(d.slider.width=a);b!=null&&(d.slider.height=b);q&&v()};this.active=function(){return q};this.getCurrentNumber=function(){return m};this.setSlide=function(a){I(a)};var B=function(a){i=a},C=function(a){VMM.attachElement(h,"");j=[];for(var b=0;b=j.length-1||j[m+a].show();m-a<0||j[m-a].show()}F()},F=function(){var a=".slider-item .layout-text-media .media .media-container ",b=".slider-item .layout-media .media .media-container ",c=".slider-item .media .media-container",e={text_media:{width:d.slider.content.width/100*60,height:d.slider.height-60,video:{width:0,height:0}},media:{width:d.slider.content.width,height:d.slider.height-110,video:{width:0,height:0}}};e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,16,9);VMM.Lib.css(".slider-item","width",d.slider.content.width);VMM.Lib.height(".slider-item",d.slider.height);var f=!1;n<=650?f=!0:VMM.Browser.device=="mobile"&&VMM.Browser.orientation=="portrait"?f=!0:VMM.Browser.device!="tablet"||VMM.Browser.orientation!="portrait";if(f){e.text_media.width=d.slider.content.width;e.text_media.height=d.slider.height/100*50-50;e.media.height=d.slider.height/100*70-40;e.text_media.video=VMM.Util.ratio.fit(e.text_media.width,e.text_media.height,16,9);e.media.video=VMM.Util.ratio.fit(e.media.width,e.media.height,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",d.slider.content.width);VMM.Lib.css(".slider-item .layout-text-media .media","float","none");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","overflow-y","auto");for(var g=0;gd.slider.height?j[g].css("display","block"):j[g].css("display","table")}else{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 .media","float","left");VMM.Lib.css(".slider-item .layout-text-media","display","table");VMM.Lib.css(".slider-item .media blockquote p","line-height","36px");VMM.Lib.css(".slider-item .media blockquote p","font-size","28px");VMM.Lib.css(".slider-item","display","table");VMM.Lib.css(".slider-item","overflow-y","auto")}VMM.Lib.css(a+".media-frame","max-width",e.text_media.width);VMM.Lib.height(a+".media-frame",e.text_media.height);VMM.Lib.width(a+".media-frame",e.text_media.width);VMM.Lib.css(a+"img","max-height",e.text_media.height);VMM.Lib.css(b+"img","max-height",e.media.height);VMM.Lib.css(a+"img","max-width",e.text_media.width);VMM.Lib.css(a+".twitter .avatar img","max-width",32);VMM.Lib.css(a+".twitter .avatar img","max-height",32);VMM.Lib.css(b+".twitter .avatar img","max-width",32);VMM.Lib.css(b+".twitter .avatar img","max-height",32);VMM.Lib.width(a+".media-frame",e.text_media.video.width);VMM.Lib.height(a+".media-frame",e.text_media.video.height);VMM.Lib.width(b+".media-frame",e.media.video.width);VMM.Lib.height(b+".media-frame",e.media.video.height);VMM.Lib.css(b+".media-frame","max-height",e.media.video.height);VMM.Lib.css(b+".media-frame","max-width",e.media.video.width);VMM.Lib.height(b+".soundcloud",168);VMM.Lib.height(a+".soundcloud",168);VMM.Lib.width(b+".soundcloud",e.media.width);VMM.Lib.width(a+".soundcloud",e.text_media.width);VMM.Lib.css(c+".soundcloud","max-height",168);VMM.Lib.height(a+".map",e.text_media.height);VMM.Lib.css(b+".map","max-height",e.media.height);VMM.Lib.width(b+".map",e.media.width);VMM.Lib.height(a+".doc",e.text_media.height);VMM.Lib.height(b+".doc",e.media.height);trace(e)},G=function(){var a=0;for(var b=0;b=j.length&&(l=!0);b!=null&&b!=""&&(h=b);c!=null&&c!=""&&(k=c);trace(i[m]);if(n)VMM.Lib.visible(s.prevBtn,!1);else{VMM.Lib.visible(s.prevBtn,!0);p=VMM.Util.unlinkify(i[m-1].title);if(d.type=="timeline")if(typeof i[m-1].date=="undefined"){VMM.attachElement(s.prevDate,p);VMM.attachElement(s.prevTitle,"")}else{VMM.attachElement(s.prevDate,i[m-1].date);VMM.attachElement(s.prevTitle,p)}else VMM.attachElement(s.prevTitle,p)}if(l)VMM.Lib.visible(s.nextBtn,!1);else{VMM.Lib.visible(s.nextBtn,!0);p=VMM.Util.unlinkify(i[m+1].title);if(d.type=="timeline")if(typeof i[m+1].date=="undefined"){VMM.attachElement(s.nextDate,p);VMM.attachElement(s.nextTitle,"")}else{VMM.attachElement(s.nextDate,i[m+1].date);VMM.attachElement(s.nextTitle,p)}else VMM.attachElement(s.nextTitle,p)}if(e)VMM.Lib.css(g,"left",-(o-d.slider.content.padding));else{VMM.Lib.stop(g);VMM.Lib.animate(g,k,h,{left:-(o-d.slider.content.padding)})}f&&VMM.fireEvent(r,"LOADED");if(j[m].height()>d.slider_height)VMM.Lib.css(".slider","overflow-y","scroll");else{VMM.Lib.css(r,"overflow-y","hidden");VMM.Lib.animate(r,k,h,{scrollTop:VMM.Lib.prop(r,"scrollHeight")-VMM.Lib.height(r)})}D()},J=function(){var a="
 
";s.nextBtn=VMM.appendAndGetElement(e,"
","nav-next");s.prevBtn=VMM.appendAndGetElement(e,"
","nav-previous");s.nextBtnContainer=VMM.appendAndGetElement(s.nextBtn,"
","nav-container",a);s.prevBtnContainer=VMM.appendAndGetElement(s.prevBtn,"
","nav-container",a);if(d.type=="timeline"){s.nextDate=VMM.appendAndGetElement(s.nextBtnContainer,"
","date","");s.prevDate=VMM.appendAndGetElement(s.prevBtnContainer,"
","date","")}s.nextTitle=VMM.appendAndGetElement(s.nextBtnContainer,"
","title","Title Goes Here");s.prevTitle=VMM.appendAndGetElement(s.prevBtnContainer,"
","title","Title Goes Here");VMM.bindEvent(".nav-next",w);VMM.bindEvent(".nav-previous",x);VMM.bindEvent(window,y,"keydown")},K=function(){VMM.attachElement(r,"");e=VMM.getElement("div.slider");f=VMM.appendAndGetElement(e,"
","slider-container-mask");g=VMM.appendAndGetElement(f,"
","slider-container");h=VMM.appendAndGetElement(g,"
","slider-item-container");J();C(i);var a=3e3;if(VMM.Browser.device=="tablet"||VMM.Browser.device=="mobile"){d.duration=500;a=1e3;VMM.TouchSlider.createPanel(g,g,j[0].width(),d.spacing,!0);VMM.bindEvent(g,z,"TOUCHUPDATE")}else VMM.Browser.device!="mobile";v(!1,!0);VMM.Lib.visible(s.prevBtn,!1);trace("config.current_slide "+d.current_slide);I(d.current_slide,"easeOutExpo",a,!0,!0);q=!0}});typeof VMM.Slider!="undefined"&&(VMM.Slider.Slide=function(a,b){var c=a,d={},e="",f=!1,g=VMM.appendAndGetElement(b,"
","slider-item");this.show=function(){f||h()};this.hide=function(){f&&i()};this.elem=function(){return g};this.position=function(){return VMM.Lib.position(g)};this.leftpos=function(a){if(typeof a=="undefined"){trace("LEFT: "+VMM.Lib.position(g).left);return VMM.Lib.position(g).left}VMM.Lib.css(g,"left",a)};this.animate=function(a,b,c){VMM.Lib.animate(g,a,b,c)};this.css=function(a,b){VMM.Lib.css(g,a,b)};this.opacity=function(a){VMM.Lib.css(g,"opacity",a)};this.width=function(){return VMM.Lib.width(g)};this.height=function(){return VMM.Lib.height(g)};var h=function(){VMM.attachElement(g,"");VMM.appendElement(g,j());f=!0;var a=setTimeout(VMM.ExternalAPI.pushQues,500)},i=function(){VMM.attachElement(g,"");f=!1},j=function(){var a={slide:"",text:"",media:"",layout:"content-container layout",has:{headline:!1,text:!1,media:!1}},b,d;if(c.startdate!=null&&c.startdate!=""&&type.of(c.startdate)=="date"&&c.type!="start"){var e=VMM.Util.date.prettyDate(c.startdate),f=VMM.Util.date.prettyDate(c.enddate);e!=f?a.text+=VMM.createElement("h2",e+" — "+f+"","date"):a.text+=VMM.createElement("h2",e,"date")}if(c.headline!=null&&c.headline!=""){a.has.headline=!0;c.type=="start"?a.text+=VMM.createElement("h2",VMM.Util.linkify_with_twitter(c.headline,"_blank"),"start"):a.text+=VMM.createElement("h3",VMM.Util.linkify_with_twitter(c.headline,"_blank"))}if(c.text!=null&&c.text!=""){a.has.text=!0;a.text+=VMM.createElement("p",VMM.Util.linkify_with_twitter(c.text,"_blank"))}if(a.has.text||a.has.headline){a.text=VMM.createElement("div",a.text,"container");a.text=VMM.createElement("div",a.text,"text")}if(c.asset!=null&&c.asset!=""&&c.asset.media!=null&&c.asset.media!=""){a.has.media=!0;a.media=VMM.MediaElement.create(c.asset)}a.has.text&&(a.layout+="-text");a.has.media&&(a.layout+="-media");a.slide=VMM.createElement("div",a.text+a.media,a.layout);d=VMM.createElement("div",a.slide,"content");return d}});if(typeof VMM!="undefined"&&typeof VMM.Util=="undefined"){VMM.Util={init:function(){return this},correctProtocol:function(a){var b=window.parent.location.protocol.toString(),c="",d=a.split("://",2);b.match("http")?c=b:c="https";return c+"://"+d[1]},randomBetween:function(a,b){return Math.floor(Math.random()*(b-a+1)+a)},average:function(a){var b={mean:0,variance:0,deviation:0},c=a.length;for(var d,e=0,f=c;f--;e+=a[f]);for(d=b.mean=e/c,f=c,e=0;f--;e+=Math.pow(a[f]-d,2));return b.deviation=Math.sqrt(b.variance=e/c),b},customSort:function(a,b){var c=a,d=b;return c==d?0:c>d?1:-1},number2money:function(a,b,c){var b=b!==null?b:!0,c=c!==null?c:!1,d=VMM.Math2.floatPrecision(a,2),e=this.niceNumber(d);!e.split(/\./g)[1]&&c&&(e+=".00");b&&(e="$"+e);return e},wordCount:function(a){var b=a+" ",c=/^[^A-Za-z0-9\'\-]+/gi,d=b.replace(c,""),e=/[^A-Za-z0-9\'\-]+/gi,f=d.replace(e," "),g=f.split(" "),h=g.length-1;b.length<2&&(h=0);return h},ratio:{fit:function(a,b,c,d){var e={width:0,height:0};e.width=a;e.height=Math.round(a/c*d);if(e.height>b){e.height=b;e.width=Math.round(b/d*c);e.width>a&&trace("FIT: DIDN'T FIT!!! ")}return e},r16_9:function(a,b){if(a!==null&&a!=="")return Math.round(b/16*9);if(b!==null&&b!=="")return Math.round(a/9*16)},r4_3:function(a,b){if(a!==null&&a!=="")return Math.round(b/4*3);if(b!==null&&b!=="")return Math.round(a/3*4)}},date:{dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."],hour:[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12],hour_suffix:["am"],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'
'mmmm d',' yyyy''",full_long:"dddd',' mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
'dddd',' mmm d',' yyyy''"},setLanguage:function(a){trace("SET DATE LANGUAGE");VMM.Util.date.dateformats=a.dateformats;VMM.Util.date.month=a.date.month;VMM.Util.date.month_abbr=a.date.month_abbr;VMM.Util.date.day=a.date.day;VMM.Util.date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d;if(a.match(/,/gi)){c=a.split(",");for(var e=0;e1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2]);c[3]>1&&b.setHours(c[3]);c[4]>1&&b.setMinutes(c[4]);c[5]>1&&b.setSeconds(c[5]);c[6]>1&&b.setMilliseconds(c[6])}else if(a.match("/")){var f,g;if(a.match(" ")){f=a.split(" ");if(a.match(":")){d=f[1].split(":");d[0]>=1&&b.setHours(d[0]);d[1]>=1&&b.setMinutes(d[1]);d[2]>=1&&b.setSeconds(d[2]);d[3]>=1&&b.setMilliseconds(d[3])}c=f[0].split("/")}else c=a.split("/");c[2]&&b.setFullYear(c[2]);c[0]>1&&b.setMonth(c[0]-1);c[1]>1&&b.setDate(c[1])}else if(a.length<5){b.setFullYear(parseInt(a));b.setMonth(0);b.setDate(1);b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}else b=new Date(parseInt(a.slice(0,4)),parseInt(a.slice(4,6))-1,parseInt(a.slice(6,8)),parseInt(a.slice(8,10)),parseInt(a.slice(10,12)));return b},prettyDate:function(a,b,c){var d,e,f,g,h=!1;c!=null&&(h=!0);if(type.of(a)=="date"){a.getMonth()===0&&a.getDate()==1&&a.getHours()===0&&a.getMinutes()===0?f=VMM.Util.date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.month_short:f=VMM.Util.date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Util.date.dateformats.full_short:f=VMM.Util.date.dateformats.full:a.getMinutes()===0?b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.time_no_seconds_small_date:b?f=VMM.Util.date.dateformats.time_no_seconds_short:f=VMM.Util.date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/(@([\w]+))/g,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"$1").replace(k,"$1")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},nl2br:function(a){return a.replace(/(\r\n|[\r\n]|\\n|\\r)/g,"
")},unique_ID:function(a){var b=function(a){return Math.floor(Math.random()*a)},c=function(){var a="abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ";return a.substr(b(62),1)},d=function(a){var b="";for(var d=0;d$&').replace(b,'$1$2').replace(c,'$1').replace(d,"$1").replace(e,"$1")});var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)}}window.loadedJS= +[];typeof VMM!="undefined"&&typeof VMM.LoadLib=="undefined"&&(VMM.LoadLib=function(a){function i(a){var b=!1;for(var c=0;c=0)if(g[b].href===a.urls[0]){k("css");break}e+=1;a&&(e<200?setTimeout(o,50):k("css"))}}var b,c,d={},e=0,f={css:[],js:[]},g=a.styleSheets,h=[];return{css:function(a,b,c,d){if(i(a))return b;m("css",a,b,c,d)},js:function(a,b,c,d){if(i(a))return b;m("js",a,b,c,d)}}}(this.document));typeof VMM!="undefined"&&typeof VMM.Language=="undefined"&&(VMM.Language={date:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],month_abbr:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],day:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day_abbr:["Sun.","Mon.","Tues.","Wed.","Thurs.","Fri.","Sat."]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"mmm d",full:"mmmm d',' yyyy",time_no_seconds_short:"h:MM TT",time_no_seconds_small_date:"h:MM TT'
'mmmm d',' yyyy''",full_long:"mmm d',' yyyy 'at' hh:MM TT",full_long_small_date:"hh:MM TT'
mmm d',' yyyy''"},messages:{loading_timeline:"Loading Timeline... ",return_to_title:"Return to Title",expand_timeline:"Expand Timeline",contract_timeline:"Contract Timeline"}});var Aes={};Aes.cipher=function(a,b){var c=4,d=b.length/c-1,e=[[],[],[],[]];for(var f=0;f<4*c;f++)e[f%4][Math.floor(f/4)]=a[f];e=Aes.addRoundKey(e,b,0,c);for(var g=1;g6&&g%c==4&&(f=Aes.subWord(f));for(var i=0;i<4;i++)e[g][i]=e[g-c][i]^f[i]}return e};Aes.subBytes=function(a,b){for(var c=0;c<4;c++)for(var d=0;d>>g*8&255;for(var g=0;g<2;g++)i[g+2]=m>>>g*8&255;for(var g=0;g<4;g++)i[g+4]=l>>>g*8&255;var n="";for(var g=0;g<8;g++)n+=String.fromCharCode(i[g]);var o=Aes.keyExpansion(h),p=Math.ceil(a.length/d),q=new Array(p);for(var r=0;r>>s*8&255;for(var s=0;s<4;s++)i[15-s-4]=r/4294967296>>>s*8;var t=Aes.cipher(i,o),u=r>>o*8&255;for(var o=0;o<4;o++)i[15-o-4]=(m+1)/4294967296-1>>>o*8&255;var p=Aes.cipher(i,j),q=new Array(a[m].length);for(var g=0;g0)while(m++<3){l+="=";n+="\0"}for(m=0;m>18&63;h=f>>12&63;i=f>>6&63;j=f&63;k[m/3]=p.charAt(g)+p.charAt(h)+p.charAt(i)+p.charAt(j)}o=k.join("");o=o.slice(0,o.length-l.length)+l;return o};Base64.decode=function(a,b){b=typeof b=="undefined"?!1:b;var c,d,e,f,g,h,i,j,k=[],l,m,n=Base64.code;m=b?a.decodeUTF8():a;for(var o=0;o>>16&255;d=j>>>8&255;e=j&255;k[o/4]=String.fromCharCode(c,d,e);i==64&&(k[o/4]=String.fromCharCode(c,d));h==64&&(k[o/4]=String.fromCharCode(c))}l=k.join("");return b?l.decodeUTF8():l};var Utf8={};Utf8.encode=function(a){var b=a.replace(/[\u0080-\u07ff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(192|b>>6,128|b&63)});b=b.replace(/[\u0800-\uffff]/g,function(a){var b=a.charCodeAt(0);return String.fromCharCode(224|b>>12,128|b>>6&63,128|b&63)});return b};Utf8.decode=function(a){var b=a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});b=b.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return b};!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);!function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.enabled=!0;if(this.options.trigger!="manual"){e=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(e,this.options.selector,a.proxy(this.enter,this));this.$element.on(f,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&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay});return b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)c.show();else{c.hoverState="in";setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)}},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)c.hide();else{c.hoverState="out";setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)}},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip();this.setContent();this.options.animation&&a.addClass("fade");f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement;b=/in/.test(f);a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body);c=this.getPosition(b);d=a[0].offsetWidth;e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).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 d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b);c.remove()})}var b=this,c=this.tip();c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&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,b=this.$element,c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);a=a.toString().replace(/(^\s*|\s*$)/,"");return a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=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),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f));typeof c=="string"&&e[c]()})};a.fn.tooltip.Constructor=b;a.fn.tooltip.defaults={animation:!0,delay:0,selector:!1,placement:"top",trigger:"hover",title:"",template:'
'}}(window.jQuery);if(typeof VMM!="undefined"&&typeof VMM.Timeline=="undefined"){VMM.Timeline=function(a,b,c,d){function w(a,b){m=b.timeline;type.of(m.era)!="array"&&(m.era=[]);M()}function x(){K()}function y(){L();h.setSize(o.feature.width,o.feature.height);i.setSize(o.width,o.height)}function z(a){o.loaded.slider=!0;A()}function A(a){o.loaded.percentloaded=o.loaded.percentloaded+25;o.loaded.slider&&o.loaded.timenav&&I()}function B(a){o.loaded.timenav=!0;A()}function C(a){s=!0;o.current_slide=h.getCurrentNumber();F(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}function D(a){s=!0;o.current_slide=i.getCurrentNumber();F(o.current_slide);h.setSlide(o.current_slide)}function F(a){o.hash_bookmark&&(window.location.hash="#"+a.toString())}var e,f,g,h,i,j,k,l={},m={},n=[],o={},p=!1,q=!1,r=!1,s=!1;type.of(d)=="string"?k=d:k="#timeline";j="1.02";trace("TIMELINE VERSION "+j);o={id:k,type:"timeline",maptype:"toner",preload:4,current_slide:0,hash_bookmark:!1,start_at_end:!1,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,multiplier:{current:6,min:.1,max:50},rows:[1,1,1],width:960,height:200,marker:{width:150,height:48}},feature:{width:960,height:540},slider:{width:720,height:400,content:{width:720,height:400,padding:130},nav:{width:100,height:200}},ease:"easeInOutExpo",duration:1e3,language:VMM.Language};if(a!=null&&a!=""){o.width=a;p=!0}if(b!=null&&b!=""){o.height=b;q=!0}if(window.location.hash){var t=window.location.hash.substring(1);isNaN(t)||(o.current_slide=parseInt(t))}window.onhashchange=function(){if(o.hash_bookmark)if(s){var a=window.location.hash.substring(1);E(parseInt(a))}else s=!1};var u=function(a){if(typeof timeline_config=="object"){trace("HAS TIMELINE CONFIG");var b;for(b in timeline_config)Object.prototype.hasOwnProperty.call(timeline_config,b)&&(o[b]=timeline_config[b])}else if(typeof a=="object"){var b;for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&(o[b]=a[b])}o.nav.width=o.width;o.nav.height=200;o.feature.width=o.width;o.feature.height=o.height-o.nav.height;VMM.Timeline.Config=o;VMM.master_config.Timeline=VMM.Timeline.Config},v=function(a,b){e=VMM.getElement(k);VMM.Lib.addClass(k,"vmm-timeline");f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege","Timeline");h=new VMM.Slider(k+" div.slider",o);i=new VMM.Timeline.TimeNav(k+" div.navigation");p?VMM.Lib.width(e,o.width):o.width=VMM.Lib.width(e);q?VMM.Lib.height(e,o.height):o.height=VMM.Lib.height(e)},E=function(a){if(a<=n.length-1&&a>=0){o.current_slide=a;h.setSlide(o.current_slide);i.setMarker(o.current_slide,o.ease,o.duration)}};this.init=function(c,d,h){type.of(d)=="string"&&(d.match("#")?k=d:k="#"+d);u(h);v(a,b);trace("TIMELINE INIT");VMM.Util.date.setLanguage(VMM.Timeline.Config.language);f=VMM.appendAndGetElement(e,"
","feedback","");g=VMM.appendAndGetElement(f,"
","messege",VMM.Timeline.Config.language.messages.loading_timeline);VMM.bindEvent(global,w,"DATAREADY");VMM.bindEvent(global,H,"MESSEGE");if(VMM.Browser.browser=="MSIE"&&parseInt(VMM.Browser.version,10)==7){r=!0;VMM.fireEvent(global,"MESSEGE","Internet Explorer 7 is not supported by #Timeline.")}else if(type.of(c)=="string"||type.of(c)=="object"){trace("GET DATA 1");VMM.Timeline.DataObj.getData(c)}else VMM.Timeline.DataObj.getData(VMM.getElement(k))};this.iframeLoaded=function(){trace("iframeLoaded")};var G=function(a){VMM.getJSON(a,function(a){m=VMM.Timeline.DataObj.getData(a);VMM.fireEvent(global,"DATAREADY")})},H=function(a,b){trace("showMessege "+b);VMM.attachElement(g,b)},I=function(){VMM.Lib.animate(f,o.duration,o.ease*4,{opacity:0},J)},J=function(){VMM.Lib.detach(f)},K=function(){o.start_at_end&&(o.current_slide=n.length-1);VMM.attachElement(e,"");VMM.appendElement(e,"
");y();VMM.bindEvent("div.slider",z,"LOADED");VMM.bindEvent("div.navigation",B,"LOADED");VMM.bindEvent("div.slider",C,"UPDATE");VMM.bindEvent("div.navigation",D,"UPDATE");h.init(n);i.init(n,m.era);VMM.bindEvent(global,y,"resize")},L=function(){trace("UPDATE SIZE");o.width=VMM.Lib.width(e);o.height=VMM.Lib.height(e);o.nav.width=o.width;o.feature.width=o.width;VMM.Browser.device!="mobile";o.feature.height=o.height-o.nav.height-3},M=function(){L();VMM.fireEvent(global,"MESSEGE","Building Dates");for(var a=0;aI.nav.multiplier.min){I.nav.multiplier.current<=1?I.nav.multiplier.current=I.nav.multiplier.current-.25:I.nav.multiplier.current>5?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current-10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current-1);I.nav.multiplier.current<=0&&(I.nav.multiplier.current=I.nav.multiplier.min);P()}}function N(){VMM.DragSlider.cancelSlide();if(I.nav.multiplier.current4?I.nav.multiplier.current>16?I.nav.multiplier.current=Math.round(I.nav.multiplier.current+10):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+4):I.nav.multiplier.current=Math.round(I.nav.multiplier.current+1);I.nav.multiplier.current>=I.nav.multiplier.max&&(I.nav.multiplier.current=I.nav.multiplier.max);P()}}function O(a){VMM.DragSlider.cancelSlide();S(0);L()}function Q(a){VMM.DragSlider.cancelSlide();S(a.data.number);L()}function R(a){VMM.Lib.toggleClass(a.data.elem,"zFront")}function T(a,b){VMM.Lib.animate(v,b.time/2,I.ease,{left:b.left})}trace("VMM.Timeline.TimeNav");var d={},e={},f=a,g=[],h=[],i=[],j=[],k=[],l,m,n=0,o=!1,p={day:24,month:12,year:10,hour:60,minute:60,second:1e3,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8,week:4.34812141,days_in_month:30.4368499,days_in_week:7,weeks_in_month:4.34812141,weeks_in_year:52.177457,days_in_year:365.242199,hours_in_day:24},q={day:864e5,week:7,month:30.4166666667,year:12,hour:24,minute:1440,second:86400,decade:10,century:100,millenium:1e3,age:1e6,epoch:1e7,era:1e8,eon:5e8},r={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_idd",interval_type:"interval"},s={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"major",interval_type:"interval major"},t={type:"year",number:10,first:1970,last:2011,multiplier:100,classname:"_dd_minor",interval_type:"interval minor"},u={day:{},month:{},year:{},hour:{},minute:{},second:{},decade:{},century:{},millenium:{},week:{},age:{},epoch:{},era:{},eon:{}},v,w,x,y,z,A,B,C,D,E,F,G,H,I=VMM.Timeline.Config;I.nav.rows=[I.nav.marker.height,I.nav.marker.height*2,1];b!=null&&b!=""&&(I.nav.width=b);c!=null&&c!=""&&(I.nav.height=c);this.init=function(a,b){trace("VMM.Timeline.TimeNav init");typeof a!="undefined"?this.setData(a,b):trace("WAITING ON DATA")};this.setData=function(a,b){if(typeof a!="undefined"){g={};g=a;l=b;bb()}else trace("NO DATA")};this.setSize=function(a,b){a!=null&&(I.width=a);b!=null&&(I.height=b);o&&K()};this.setMarker=function(a,b,c,d){S(a,b,c)};this.getCurrentNumber=function(){return n};var P=function(){trace("config.nav.multiplier "+I.nav.multiplier.current);$(!0);_(j,!0,!0);_(k,!0)},S=function(a,b,c,d,e){n=a;var f=I.ease,g=I.duration,h=!1,j=!1,k=VMM.Lib.position(i[n].marker);n==0&&(j=!0);n+1==i.length&&(h=!0);b!=null&&b!=""&&(f=b);c!=null&&c!=""&&(g=c);for(var l=0;l1&&(I.nav.multiplier.current=I.nav.multiplier.current-1)},X=function(){var a=Y(g[0].startdate),b=Y(g[g.length-1].enddate);u.eon.type="eon";u.eon.first=a.eons;u.eon.base=Math.floor(a.eons);u.eon.last=b.eons;u.eon.number=e.eons;u.eon.multiplier=p.eons;u.eon.minor=p.eons;u.era.type="era";u.era.first=a.eras;u.era.base=Math.floor(a.eras);u.era.last=b.eras;u.era.number=e.eras;u.era.multiplier=p.eras;u.era.minor=p.eras;u.epoch.type="epoch";u.epoch.first=a.epochs;u.epoch.base=Math.floor(a.epochs);u.epoch.last=b.epochs;u.epoch.number=e.epochs;u.epoch.multiplier=p.epochs;u.epoch.minor=p.epochs;u.age.type="age";u.age.first=a.ages;u.age.base=Math.floor(a.ages);u.age.last=b.ages;u.age.number=e.ages;u.age.multiplier=p.ages;u.age.minor=p.ages;u.millenium.type="millenium";u.millenium.first=a.milleniums;u.millenium.base=Math.floor(a.milleniums);u.millenium.last=b.milleniums;u.millenium.number=e.milleniums;u.millenium.multiplier=p.millenium;u.millenium.minor=p.millenium;u.century.type="century";u.century.first=a.centuries;u.century.base=Math.floor(a.centuries);u.century.last=b.centuries;u.century.number=e.centuries;u.century.multiplier=p.century;u.century.minor=p.century;u.decade.type="decade";u.decade.first=a.decades;u.decade.base=Math.floor(a.decades);u.decade.last=b.decades;u.decade.number=e.decades;u.decade.multiplier=p.decade;u.decade.minor=p.decade;u.year.type="year";u.year.first=a.years;u.year.base=Math.floor(a.years);u.year.last=b.years;u.year.number=e.years;u.year.multiplier=1;u.year.minor=p.month;u.month.type="month";u.month.first=a.months;u.month.base=Math.floor(a.months);u.month.last=b.months;u.month.number=e.months;u.month.multiplier=1;u.month.minor=Math.round(p.week);u.week.type="week";u.week.first=a.weeks;u.week.base=Math.floor(a.weeks);u.week.last=b.weeks;u.week.number=e.weeks;u.week.multiplier=1;u.week.minor=7;u.day.type="day";u.day.first=a.days;u.day.base=Math.floor(a.days);u.day.last=b.days;u.day.number=e.days;u.day.multiplier=1;u.day.minor=24;u.hour.type="hour";u.hour.first=a.hours;u.hour.base=Math.floor(a.hours);u.hour.last=b.hours;u.hour.number=e.hours;u.hour.multiplier=1;u.hour.minor=60;u.minute.type="minute";u.minute.first=a.minutes;u.minute.base=Math.floor(a.minutes);u.minute.last=b.minutes;u.minute.number=e.minutes;u.minute.multiplier=1;u.minute.minor=60;u.second.type="decade";u.second.first=a.seconds;u.second.base=Math.floor(a.seconds);u.second.last=b.seconds;u.second.number=e.seconds;u.second.multiplier=1;u.second.minor=10},Y=function(a,b){var c={};c.days=a/q.day;c.weeks=c.days/q.week;c.months=c.days/q.month;c.years=c.months/q.year;c.hours=c.days*q.hour;c.minutes=c.days*q.minute;c.seconds=c.days*q.second;c.decades=c.years/q.decade;c.centuries=c.years/q.century;c.milleniums=c.years/q.millenium;c.ages=c.years/q.age;c.epochs=c.years/q.epoch;c.eras=c.years/q.era;c.eons=c.years/q.eon;return c},Z=function(a,b,c){var d=a.type,e=a.multiplier,f=Y(b),g,h,i;h=b.months;if(type.of(c)=="date"){g=Y(c);i=c.months;if(d=="eon"){h=f.eons;i=g.eons}else if(d=="era"){h=f.eras;i=g.eras}else if(d=="epoch"){h=f.epochs;i=g.epochs}else if(d=="age"){h=f.ages;i=g.ages}else if(d=="millenium"){h=b.milleniums;i=c.milleniums}else if(d=="century"){h=f.centuries;i=g.centuries}else if(d=="decade"){h=f.decades;i=g.decades}else if(d=="year"){h=f.years;i=g.years}else if(d=="month"){h=f.months;i=g.months}else if(d=="week"){h=f.weeks;i=g.weeks}else if(d=="day"){h=f.days;i=g.days}else if(d=="hour"){h=f.hours;i=g.hours}else if(d=="minute"){h=f.minutes;i=g.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=(i-r.base)*(I.nav.interval_width/I.nav.multiplier.current)}else{if(d=="eon"){h=f.eons;i=f.eons}else if(d=="era"){h=f.eras;i=f.eras}else if(d=="epoch"){h=f.epochs;i=f.epochs}else if(d=="age"){h=f.ages;i=f.ages}else if(d=="millenium"){h=b.milleniums;i=b.milleniums}else if(d=="century"){h=f.centuries;i=f.centuries}else if(d=="decade"){h=f.decades;i=f.decades}else if(d=="year"){h=f.years;i=f.years}else if(d=="month"){h=f.months;i=f.months}else if(d=="week"){h=f.weeks;i=f.weeks}else if(d=="day"){h=f.days;i=f.days}else if(d=="hour"){h=f.hours;i=f.hours}else if(d=="minute"){h=f.minutes;i=f.minutes}_pos=(h-r.base)*(I.nav.interval_width/I.nav.multiplier.current);_pos_end=_pos}return pos={begin:_pos,end:_pos_end}},$=function(a){var b=r.type,c=r.multiplier,d=2,e=0,f=0,j=150,k=6,l=0;VMM.Lib.removeClass(".flag","row1");VMM.Lib.removeClass(".flag","row2");VMM.Lib.removeClass(".flag","row3");for(var m=0;m5){VMM.Lib.css(s,"height",k);VMM.Lib.css(s,"width",o);VMM.Lib.css(s,"top",j)}if(z-e16&&c?n=!1:m-f<65&&(m-f<35?h%4==0?m==0&&(n=!1):n=!1:VMM.Util.isEven(h)||(n=!1));if(k){if(!n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:0}):VMM.Lib.css(i,"opacity",0);a[h].interval_visible=!1}}else if(n){b?VMM.Lib.animate(i,I.duration*2,I.ease,{opacity:100}):VMM.Lib.css(i,"opacity",100);a[h].interval_visible=!0}f=m;m>I.nav.minor_width&&(I.nav.minor_width=m)}VMM.Lib.css(E,"left",-(I.width/2 +));VMM.Lib.width(E,I.nav.minor_width+I.width)},ab=function(a,b,c){var d=0,e=!0,f=0,h=0;VMM.attachElement(c,"");a.date=new Date(g[0].startdate.getFullYear(),0,1,0,0,0);for(var i=0;i",a.classname),n,o=!1;if(a.type=="eon"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/5e8)*5e8);a.date.setFullYear(a.date.getFullYear()+d*5e8)}else if(a.type=="era"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e8)*1e8);a.date.setFullYear(a.date.getFullYear()+d*1e8)}else if(a.type=="epoch"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e7)*1e7);a.date.setFullYear(a.date.getFullYear()+d*1e7)}else if(a.type=="age"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e6)*1e6);a.date.setFullYear(a.date.getFullYear()+d*1e6)}else if(a.type=="millenium"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/1e3)*1e3);a.date.setFullYear(a.date.getFullYear()+d*1e3)}else if(a.type=="century"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/100)*100);a.date.setFullYear(a.date.getFullYear()+d*100)}else if(a.type=="decade"){e&&a.date.setFullYear(Math.floor(g[0].startdate.getFullYear()/10)*10);a.date.setFullYear(a.date.getFullYear()+d*10)}else if(r.type=="year"){!e;a.date.setFullYear(a.date.getFullYear()+d)}else if(a.type=="month"){e&&a.date.setMonth(g[0].startdate.getMonth());a.date.setMonth(a.date.getMonth()+d)}else if(a.type=="week"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(Math.floor(g[0].startdate.getDate()*7))}a.date.setDate(a.date.getDate()+d*7)}else if(a.type=="day"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate())}a.date.setDate(a.date.getDate()+d)}else if(a.type=="hour"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours())}a.date.setHours(a.date.getHours()+d)}else if(a.type=="minute"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes())}a.date.setMinutes(a.date.getMinutes()+d)}else if(a.type=="second"){if(e){a.date.setMonth(g[0].startdate.getMonth());a.date.setDate(g[0].startdate.getDate());a.date.setHours(g[0].startdate.getHours());a.date.setMinutes(g[0].startdate.getMinutes());a.date.setSeconds(g[0].startdate.getSeconds())}a.date.setSeconds(a.date.getSeconds()+d)}j=VMM.Util.date.prettyDate(a.date,!0);d=1;e=!1;k=Z(a,a.date);l=k.begin;VMM.appendElement(m,j);VMM.Lib.css(m,"text-indent",-(VMM.Lib.width(m)/2));VMM.Lib.css(m,"opacity","0");f=l;l>h&&(h=l);n=new Date(a.date);var p={interval_element:m,interval_date:n,interval_visible:o,type:a.interval_type};b.push(p)}VMM.Lib.width(E,h);_(b)},bb=function(){VMM.attachElement(f,"");v=VMM.appendAndGetElement(f,"
","timenav");w=VMM.appendAndGetElement(v,"
","content");x=VMM.appendAndGetElement(v,"
","time");y=VMM.appendAndGetElement(x,"
","time-interval-minor");E=VMM.appendAndGetElement(y,"
","minor");A=VMM.appendAndGetElement(x,"
","time-interval-major");z=VMM.appendAndGetElement(x,"
","time-interval");B=VMM.appendAndGetElement(f,"
","timenav-background");D=VMM.appendAndGetElement(B,"
","timenav-line");C=VMM.appendAndGetElement(B,"
","timenav-interval-background","
");F=VMM.appendAndGetElement(f,"
","toolbar");cb();db();W();$();_(j,!1,!0);_(k);if(I.start_page){$backhome=VMM.appendAndGetElement(F,"
","back-home","
");VMM.bindEvent(".back-home",O,"click");VMM.Lib.css(F,"top",27);VMM.Lib.attribute($backhome,"title",VMM.Timeline.Config.language.messages.return_to_title);VMM.Lib.attribute($backhome,"rel","tooltip")}G=VMM.appendAndGetElement(F,"
","zoom-in","
");H=VMM.appendAndGetElement(F,"
","zoom-out","
");VMM.Lib.attribute(G,"title",VMM.Timeline.Config.language.messages.expand_timeline);VMM.Lib.attribute(G,"rel","tooltip");VMM.Lib.attribute(H,"title",VMM.Timeline.Config.language.messages.contract_timeline);VMM.Lib.attribute(H,"rel","tooltip");F.tooltip({selector:"div[rel=tooltip]",placement:"right"});if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){VMM.TouchSlider.createPanel(B,v,I.width,I.spacing,!1);VMM.bindEvent(v,T,"TOUCHUPDATE")}else VMM.DragSlider.createPanel(f,v,I.width,I.spacing,!1);VMM.bindEvent(".zoom-in",M,"click");VMM.bindEvent(".zoom-out",N,"click");VMM.fireEvent(f,"LOADED");o=!0;K(!0)},cb=function(){e=Y(g[g.length-1].enddate-g[0].startdate,!0);trace(e);X();if(e.centuries>g.length/I.nav.density){r=u.century;s=u.millenium;t=u.decade}else if(e.decades>g.length/I.nav.density){r=u.decade;s=u.century;t=u.year}else if(e.years>g.length/I.nav.density){r=u.year;s=u.decade;t=u.month}else if(e.months>g.length/I.nav.density){r=u.month;s=u.year;t=u.day}else if(e.days>g.length/I.nav.density){r=u.day;s=u.month;t=u.hour}else if(e.hours>g.length/I.nav.density){r=u.hour;s=u.day;t=u.minute}else if(e.minutes>g.length/I.nav.density){r=u.minute;s=u.hour;t=u.second}else if(e.seconds>g.length/I.nav.density){r=u.second;s=u.minute;t=u.second}else{trace("NO IDEA WHAT THE TYPE SHOULD BE");r=u.day;s=u.month;t=u.hour}trace("INTERVAL TYPE: "+r.type);trace("INTERVAL MAJOR TYPE: "+s.type);ab(r,j,z);ab(s,k,A)},db=function(){var a=2,b=0,c=0;i=[];h=[];for(var d=0;d","marker");f=VMM.appendAndGetElement(e,"
","flag");j=VMM.appendAndGetElement(f,"
","flag-content");k=VMM.appendAndGetElement(e,"
","dot");m=VMM.appendAndGetElement(e,"
","line");n=VMM.appendAndGetElement(m,"
","event-line");g[d].asset!=null&&g[d].asset!=""?VMM.appendElement(j,VMM.MediaElement.thumbnail(g[d].asset,24,24)):VMM.appendElement(j,"
");VMM.appendElement(j,"

"+VMM.Util.unlinkify(g[d].title)+"

"+g[d].date+"

");VMM.Lib.attr(e,"id",g[d].uniqueid.toString());VMM.bindEvent(f,Q,"",{number:d});VMM.bindEvent(f,R,"mouseenter mouseleave",{number:d,elem:f});var o={marker:e,flag:f,lineevent:n,type:"marker"};if(g[d].type=="start"){trace("BUILD MARKER HAS START PAGE");I.start_page=!0;o.type="start"}i.push(o)}for(var p=0;p","era"),startdate:VMM.Util.parseDate(l[p].startDate),enddate:VMM.Util.parseDate(l[p].endDate),title:l[p].headline,uniqueid:VMM.Util.unique_ID(4),color:l[p].color};VMM.Lib.attr(q.content,"id",q.uniqueid);VMM.Lib.css(q.content,"background",q.color);VMM.appendElement(q.content,"

"+VMM.Util.unlinkify(q.title)+"

");h.push(q)}}});typeof VMM.Timeline!="undefined"&&typeof VMM.Timeline.DataObj=="undefined"&&(VMM.Timeline.DataObj={data_obj:{},model_array:[],getData:function(a){data=VMM.Timeline.DataObj.data_obj;if(type.of(a)=="object"){trace("DATA SOURCE: JSON OBJECT");VMM.Timeline.DataObj.parseJSON(a)}else if(type.of(a)=="string")if(a.match("%23")){trace("DATA SOURCE: TWITTER SEARCH");VMM.Timeline.DataObj.model_Tweets.getData("%23medill")}else if(a.match("spreadsheet")){VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: GOOGLE SPREADSHEET");VMM.Timeline.DataObj.model_GoogleSpreadsheet.getData(a)}else{VMM.fireEvent(global,"MESSEGE",VMM.Timeline.Config.language.messages.loading_timeline);trace("DATA SOURCE: JSON");VMM.getJSON(a,VMM.Timeline.DataObj.parseJSON)}else if(type.of(a)=="html"){trace("DATA SOURCE: HTML");VMM.Timeline.DataObj.parseHTML(a)}else trace("DATA SOURCE: UNKNOWN")},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;if(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"));var c=!1;if(VMM.Lib.find("#timeline section","figure img").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure img"),"src")}else if(VMM.Lib.find("#timeline section","figure a").length!=0){c=!0;b.timeline.asset.media=VMM.Lib.attr(VMM.Lib.find("#timeline section","figure a"),"href")}if(c){VMM.Lib.find("#timeline section","cite").length!=0&&(b.timeline.asset.credit=VMM.Lib.html(VMM.Lib.find("#timeline section","cite")));VMM.Lib.find(this,"figcaption").length!=0&&(b.timeline.asset.caption=VMM.Lib.html(VMM.Lib.find("#timeline section","figcaption")))}}VMM.Lib.each("#timeline li",function(a,c){var d=!1,e={type:"default",startDate:"",headline:"",text:"",asset:{media:"",credit:"",caption:""},tags:"Optional"};if(VMM.Lib.find(this,"time")!=0){d=!0;e.startDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]);VMM.Lib.find(this,"time")[1]&&(e.endDate=VMM.Lib.html(VMM.Lib.find(this,"time")[0]));e.headline=VMM.Lib.html(VMM.Lib.find(this,"h3"));e.text=VMM.Lib.html(VMM.Lib.find(this,"article"));var f=!1;if(VMM.Lib.find(this,"figure img").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure img"),"src")}else if(VMM.Lib.find(this,"figure a").length!=0){f=!0;e.asset.media=VMM.Lib.attr(VMM.Lib.find(this,"figure a"),"href")}if(f){VMM.Lib.find(this,"cite").length!=0&&(e.asset.credit=VMM.Lib.html(VMM.Lib.find(this,"cite")));VMM.Lib.find(this,"figcaption").length!=0&&(e.asset.caption=VMM.Lib.html(VMM.Lib.find(this,"figcaption")))}trace(e);b.timeline.date.push(e)}});VMM.fireEvent(global,"DATAREADY",b)},parseJSON:function(a){if(a.timeline.type=="default"){trace("DATA SOURCE: JSON STANDARD TIMELINE");VMM.fireEvent(global,"DATAREADY",a)}else if(a.timeline.type=="twitter"){trace("DATA SOURCE: JSON TWEETS");VMM.Timeline.DataObj.model_Tweets.buildData(a)}else{trace("DATA SOURCE: UNKNOWN JSON");trace(type.of(a.timeline))}},model_Tweets:{type:"twitter",buildData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweets(a.timeline.tweets)},getData:function(a){VMM.bindEvent(global,VMM.Timeline.DataObj.model_Tweets.onTwitterDataReady,"TWEETSLOADED");VMM.ExternalAPI.twitter.getTweetSearch(a)},onTwitterDataReady:function(a,b){var c=VMM.Timeline.DataObj.data_template_obj;for(var d=0;d"+"@"+b.tweetdata[d].raw.from_user+")":e.headline=b.tweetdata[d].raw.user.name+" ("+"@"+b.tweetdata[d].raw.user.screen_name+")";e.asset.media=b.tweetdata[d].content;c.timeline.date.push(e)}VMM.fireEvent(global,"DATAREADY",c)}},model_GoogleSpreadsheet:{type:"google spreadsheet",getData:function(a){var b=VMM.Util.getUrlVars(a).key,c="https://spreadsheets.google.com/feeds/list/"+b+"/od6/public/values?alt=json";VMM.getJSON(VMM.Util.correctProtocol(c),VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData)},buildData:function(a){VMM.fireEvent(global,"MESSEGE","Parsing Data");var b=VMM.Timeline.DataObj.data_template_obj;for(var c=0;c= 7 && window.XDomainRequest) { + trace("it's ie"); + var ie_url = url; - , leave: function ( e ) { - var self = $(e.currentTarget)[this.type](this._options).data(this.type) + if (ie_url.match('^http://')){ + trace("RUNNING GET JSON") + ie_url = ie_url.replace("http://","//"); + return jQuery.getJSON(url, data, callback); + } else if (ie_url.match('^https://')) { + trace("RUNNING XDR"); + ie_url = ie_url.replace("https://","http://"); + var xdr = new XDomainRequest(); + xdr.open("get", ie_url); + xdr.onload = function() { + var ie_json = VMM.parseJSON(xdr.responseText); + trace(xdr.responseText); + if (type.of(ie_json) == "null" || type.of(ie_json) == "undefined") { + trace("IE JSON ERROR") + } else { + return data(ie_json) + } + + } + xdr.send(); + } else { + return jQuery.getJSON(url, data, callback); + } + } else { + return jQuery.getJSON(url, data, callback); + } + } + } + + VMM.parseJSON = function(the_json) { + if( typeof( jQuery ) != 'undefined' ){ + return jQuery.parseJSON(the_json); + } + } + + // ADD ELEMENT AND RETURN IT + VMM.appendAndGetElement = function(append_to_element, tag, cName, content) { + var e; + var _tag = "
"; + var _class = ""; + var _content = ""; - if (!self.options.delay || !self.options.delay.hide) { - self.hide() - } else { - self.hoverState = 'out' - setTimeout(function() { - if (self.hoverState == 'out') { - self.hide() - } - }, self.options.delay.hide) - } - } - - , show: function () { - var $tip - , inside - , pos - , actualWidth - , actualHeight - , placement - , tp - - if (this.hasContent() && this.enabled) { - $tip = this.tip() - this.setContent() - - if (this.options.animation) { - $tip.addClass('fade') - } - - placement = typeof this.options.placement == 'function' ? - this.options.placement.call(this, $tip[0], this.$element[0]) : - this.options.placement - - inside = /in/.test(placement) - - $tip - .remove() - .css({ top: 0, left: 0, display: 'block' }) - .appendTo(inside ? this.$element : document.body) - - pos = this.getPosition(inside) - - actualWidth = $tip[0].offsetWidth - actualHeight = $tip[0].offsetHeight - - switch (inside ? placement.split(' ')[1] : placement) { - case 'bottom': - tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2} - break - case 'top': - tp = {top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2} - break - case 'left': - tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth} - break - case 'right': - tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width} - break - } - - $tip - .css(tp) - .addClass(placement) - .addClass('in') - } - } - - , setContent: function () { - var $tip = this.tip() - $tip.find('.tooltip-inner').html(this.getTitle()) - $tip.removeClass('fade in top bottom left right') - } - - , hide: function () { - var that = this - , $tip = this.tip() - - $tip.removeClass('in') - - function removeWithAnimation() { - var timeout = setTimeout(function () { - $tip.off($.support.transition.end).remove() - }, 500) - - $tip.one($.support.transition.end, function () { - clearTimeout(timeout) - $tip.remove() - }) - } + + if (tag != null && tag != "") { + _tag = tag; + } + + if (cName != null && cName != "") { + _class = cName; + } + + if (content != null && content != "") { + _content = content; + } + + if( typeof( jQuery ) != 'undefined' ){ + + e = jQuery(tag); + + e.addClass(_class); + e.html(_content); + + jQuery(append_to_element).append(e); + + } + + return e; + + }; + + VMM.Lib = ({ + + init: function() { + return this; + }, + + hide: function(element, duration) { + if (duration != null && duration != "") { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).hide(duration); + } + } else { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).hide(); + } + } + + }, + + remove: function(element) { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).remove(); + } + }, + + detach: function(element) { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).detach(); + } + }, + + append: function(element, value) { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).append(value); + } + }, + + show: function(element, duration) { + if (duration != null && duration != "") { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).show(duration); + } + } else { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).show(); + } + } + + }, + + load: function(element, callback_function, event_data) { + var _event_data = {elem:element}; // return element by default + if (_event_data != null && _event_data != "") { + _event_data = event_data; + } + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).load(_event_data, callback_function); + } + }, + + addClass: function(element, cName) { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).addClass(cName); + } + }, + + removeClass: function(element, cName) { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).removeClass(cName); + } + }, + + attr: function(element, aName, value) { + if (value != null && value != "") { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).attr(aName, value); + } + } else { + if( typeof( jQuery ) != 'undefined' ){ + return jQuery(element).attr(aName); + } + } + }, + + prop: function(element, aName, value) { + if (typeof jQuery == 'undefined' || !/[1-9]\.[3-9].[1-9]/.test(jQuery.fn.jquery)) { + VMM.Lib.attribute(element, aName, value); + } else { + jQuery(element).prop(aName, value); + } + }, + + attribute: function(element, aName, value) { + + if (value != null && value != "") { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).attr(aName, value); + } + } else { + if( typeof( jQuery ) != 'undefined' ){ + return jQuery(element).attr(aName); + } + } + }, + + visible: function(element, show) { + if (show != null) { + if( typeof( jQuery ) != 'undefined' ){ + if (show) { + jQuery(element).show(0); + } else { + jQuery(element).hide(0); + } + } + } else { + if( typeof( jQuery ) != 'undefined' ){ + if ( jQuery(element).is(':visible')){ + return true; + } else { + return false; + } + } + } + }, + + css: function(element, prop, value) { - $.support.transition && this.$tip.hasClass('fade') ? - removeWithAnimation() : - $tip.remove() - } + if (value != null && value != "") { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).css(prop, value); + } + } else { + if( typeof( jQuery ) != 'undefined' ){ + return jQuery(element).css(prop); + } + } + }, + + cssmultiple: function(element, propval) { - , fixTitle: function () { - var $e = this.$element - if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') { - $e.attr('data-original-title', $e.attr('title') || '').removeAttr('title') - } - } - - , hasContent: function () { - return this.getTitle() - } - - , getPosition: function (inside) { - return $.extend({}, (inside ? {top: 0, left: 0} : this.$element.offset()), { - width: this.$element[0].offsetWidth - , height: this.$element[0].offsetHeight - }) - } - - , getTitle: function () { - var title - , $e = this.$element - , o = this.options - - title = $e.attr('data-original-title') - || (typeof o.title == 'function' ? o.title.call($e[0]) : o.title) - - title = title.toString().replace(/(^\s*|\s*$)/, "") - - return title - } - - , tip: function () { - return this.$tip = this.$tip || $(this.options.template) - } - - , validate: function () { - if (!this.$element[0].parentNode) { - this.hide() - this.$element = null - this.options = null - } - } - - , enable: function () { - this.enabled = true - } - - , disable: function () { - this.enabled = false - } + if( typeof( jQuery ) != 'undefined' ){ + return jQuery(element).css(propval); + } + }, + + offset: function(element) { + var p; + if( typeof( jQuery ) != 'undefined' ){ + p = jQuery(element).offset(); + } + return p; + }, + + position: function(element) { + var p; + if( typeof( jQuery ) != 'undefined' ){ + p = jQuery(element).position(); + } + return p; + }, + + width: function(element, s) { + if (s != null && s != "") { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).width(s); + } + } else { + if( typeof( jQuery ) != 'undefined' ){ + return jQuery(element).width(); + } + } + }, + + height: function(element, s) { + if (s != null && s != "") { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).height(s); + } + } else { + if( typeof( jQuery ) != 'undefined' ){ + return jQuery(element).height(); + } + } + }, + + toggleClass: function(element, cName) { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).toggleClass(cName); + } + }, + + each:function(element, return_function) { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).each(return_function); + } + + }, + + html: function(element, str) { + var e; + if( typeof( jQuery ) != 'undefined' ){ + e = jQuery(element).html(); + return e; + } + + if (str != null && str != "") { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).html(str); + } + } else { + var e; + if( typeof( jQuery ) != 'undefined' ){ + e = jQuery(element).html(); + return e; + } + } - , toggleEnabled: function () { - this.enabled = !this.enabled - } + }, + + find: function(element, selec) { + if( typeof( jQuery ) != 'undefined' ){ + return jQuery(element).find(selec); + } + }, + + stop: function(element) { + if( typeof( jQuery ) != 'undefined' ){ + jQuery(element).stop(); + } + }, + + animate: function(element, duration, ease, att, callback_function) { + + var _ease = "easein"; + var _duration = 1000; + var _att = {}; + + if (duration != null) { + if (duration < 1) { + _duration = 1; + } else { + _duration = Math.round(duration); + } + + } + + if (ease != null && ease != "") { + _ease = ease; + } + + if (att != null) { + _att = att + } else { + _att = {opacity: 0} + } + + + if (VMM.Browser.device == "mobile" || VMM.Browser.device == "tablet") { + + var _tdd = Math.round((_duration/1500)*10)/10 + var __duration = _tdd + 's'; + VMM.Lib.css(element, '-webkit-transition', 'all '+ __duration + ' ease'); + VMM.Lib.css(element, '-moz-transition', 'all '+ __duration + ' ease'); + VMM.Lib.css(element, '-o-transition', 'all '+ __duration + ' ease'); + VMM.Lib.css(element, '-ms-transition', 'all '+ __duration + ' ease'); + VMM.Lib.css(element, 'transition', 'all '+ __duration + ' ease'); + VMM.Lib.cssmultiple(element, _att); + + //callback_function(); + /* + if( typeof( jQuery ) != 'undefined' ){ + if (callback_function != null && callback_function != "") { + jQuery(element).animate(_att, {queue:false, duration:_duration, easing:_ease, complete:callback_function} ); + } else { + jQuery(element).animate(_att, {queue:false, duration:_duration, easing:_ease} ); + } + } + */ + + } else { + if( typeof( jQuery ) != 'undefined' ){ + if (callback_function != null && callback_function != "") { + jQuery(element).animate(_att, {queue:false, duration:_duration, easing:_ease, complete:callback_function} ); + } else { + jQuery(element).animate(_att, {queue:false, duration:_duration, easing:_ease} ); + } + } + } + + }, + + }).init(); +} - , toggle: function () { - this[this.tip().hasClass('in') ? 'hide' : 'show']() - } +/* jQuery Easing v1.3 + http://gsgd.co.uk/sandbox/jquery/easing/ +================================================== */ +if( typeof( jQuery ) != 'undefined' ){ + + jQuery.easing['jswing'] = jQuery.easing['swing']; - } + jQuery.extend( jQuery.easing, { + def: 'easeOutQuad', + swing: function (x, t, b, c, d) { + //alert(jQuery.easing.default); + return jQuery.easing[jQuery.easing.def](x, t, b, c, d); + }, + easeInExpo: function (x, t, b, c, d) { + return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; + }, + easeOutExpo: function (x, t, b, c, d) { + return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; + }, + easeInOutExpo: function (x, t, b, c, d) { + if (t==0) return b; + if (t==d) return b+c; + if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; + return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; + }, + easeInQuad: function (x, t, b, c, d) { + return c*(t/=d)*t + b; + }, + easeOutQuad: function (x, t, b, c, d) { + return -c *(t/=d)*(t-2) + b; + }, + easeInOutQuad: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t + b; + return -c/2 * ((--t)*(t-2) - 1) + b; + }, + }); +} - /* TOOLTIP PLUGIN DEFINITION - * ========================= */ +/*********************************************** + Begin VMM.Browser.js +***********************************************/ - $.fn.tooltip = function ( option ) { - return this.each(function () { - var $this = $(this) - , data = $this.data('tooltip') - , options = typeof option == 'object' && option - if (!data) $this.data('tooltip', (data = new Tooltip(this, options))) - if (typeof option == 'string') data[option]() - }) - } - - $.fn.tooltip.Constructor = Tooltip - - $.fn.tooltip.defaults = { - animation: true - , delay: 0 - , selector: false - , placement: 'top' - , trigger: 'hover' - , title: '' - , template: '
' - } +/* DEVICE AND BROWSER DETECTION +================================================== */ +if(typeof VMM != 'undefined' && typeof VMM.Browser == 'undefined') { + + VMM.Browser = { + init: function () { + this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; + this.version = this.searchVersion(navigator.userAgent) + || this.searchVersion(navigator.appVersion) + || "an unknown version"; + this.OS = this.searchString(this.dataOS) || "an unknown OS"; + this.device = this.searchDevice(navigator.userAgent); + this.orientation = this.searchOrientation(window.orientation); + }, + searchOrientation: function(orientation) { + if ( orientation == 0 || orientation == 180) { + return "portrait"; + } else if ( orientation == 90 || orientation == -90) { + return "landscape"; + } else { + return "normal"; + } + }, + searchDevice: function(d) { + if (d.match(/Android/i) || d.match(/iPhone|iPod/i)) { + return "mobile"; + } else if (d.match(/iPad/i)) { + return "tablet"; + } else if (d.match(/BlackBerry/i) || d.match(/IEMobile/i)) { + return "other mobile"; + } else { + return "desktop"; + } + }, + searchString: function (data) { + for (var i=0;i 6 && i%Nk == 4) { - temp = Aes.subWord(temp); - } - for (var t=0; t<4; t++) w[i][t] = w[i-Nk][t] ^ temp[t]; - } - - return w; -} - -/* - * ---- remaining routines are private, not called externally ---- - */ - -Aes.subBytes = function(s, Nb) { // apply SBox to state S [§5.1.1] - for (var r=0; r<4; r++) { - for (var c=0; c
"; + mediaElem = "
"; + return mediaElem; + } else if (m.type == "flickr") { + //mediaElem = "
"; + mediaElem = "
"; + return mediaElem; + } else if (m.type == "youtube") { + mediaElem = "
"; + return mediaElem; + } else if (m.type == "googledoc") { + mediaElem = "
"; + return mediaElem; + } else if (m.type == "vimeo") { + mediaElem = "
"; + return mediaElem; + } else if (m.type == "dailymotion") { + mediaElem = "
"; + return mediaElem; + } else if (m.type == "twitter"){ + mediaElem = "
"; + return mediaElem; + } else if (m.type == "twitter-ready") { + mediaElem = "
"; + return mediaElem; + } else if (m.type == "soundcloud") { + mediaElem = "
"; + return mediaElem; + } else if (m.type == "google-map") { + mediaElem = "
"; + return mediaElem; + } else if (m.type == "unknown") { + if (m.id.match("blockquote")) { + mediaElem = "
"; + } else { + mediaElem = "
"; + } + return mediaElem; + } else if (m.type == "website") { + mediaElem = "
"; + //mediaElem = "
"; + return mediaElem; + } else { + mediaElem = "
"; + return mediaElem; + } + } + }, + + create: function(data) { + //$mediacontainer = element; + var _valid = false; + + if (data.media != null && data.media != "") { + var mediaElem = ""; + var captionElem = ""; + var creditElem = ""; + var m = VMM.MediaType(data.media); //returns an object with .type and .id + var isTextMedia = false; + _valid = true; + + // CREDIT + if (data.credit != null && data.credit != "") { + creditElem = "
" + VMM.Util.linkify_with_twitter(data.credit, "_blank") + "
"; + } + // CAPTION + if (data.caption != null && data.caption != "") { + captionElem = "
" + VMM.Util.linkify_with_twitter(data.caption, "_blank") + "
"; + } + // IMAGE + if (m.type == "image") { + mediaElem = ""; + // FLICKR + } else if (m.type == "flickr") { + var flickr_id = "flickr_" + m.id; + mediaElem = ""; + VMM.ExternalAPI.flickr.get(m.id, "#" + flickr_id); + // GOOGLE DOCS + } else if (m.type == "googledoc") { + var googledocs_id = "googledoc_" + VMM.Util.unique_ID(5); + mediaElem = "

Loading Document

"; + VMM.ExternalAPI.googledocs.get(m.id, googledocs_id); + // YOUTUBE + } else if (m.type == "youtube") { + mediaElem = "

Loading YouTube video

"; + VMM.ExternalAPI.youtube.get(m.id); + // VIMEO + } else if (m.type == "vimeo") { + mediaElem = ""; + // DAILYMOTION + } else if (m.type == "dailymotion") { + mediaElem = ""; + // TWITTER + } else if (m.type == "twitter"){ + mediaElem = ""; + isTextMedia = true; + VMM.ExternalAPI.twitter.prettyHTML(m.id); + // TWITTER + } else if (m.type == "twitter-ready") { + mediaElem = m.id; + // SOUNDCLOUD + } else if (m.type == "soundcloud") { + var soundcloud_id = "soundcloud_" + VMM.Util.unique_ID(5); + mediaElem = "

Loading Sound

"; + VMM.ExternalAPI.soundcloud.get(m.id, soundcloud_id); + // GOOGLE MAPS + } else if (m.type == "google-map") { + var map_id = "googlemap_" + VMM.Util.unique_ID(7); + mediaElem = "

Loading Map

"; + VMM.ExternalAPI.googlemaps.get(m.id, map_id); + // UNKNOWN + } else if (m.type == "unknown") { + trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML"); + mediaElem = "
" + VMM.Util.properQuotes(m.id) + "
"; + // WEBSITE + } else if (m.type == "website") { + mediaElem = ""; + //mediaElem = "" + ""; + // NO MATCH + } else { + trace("NO KNOWN MEDIA TYPE FOUND"); + trace(m.type); + } + + // WRAP THE MEDIA ELEMENT + mediaElem = "
" + mediaElem + creditElem + captionElem + "
"; + // RETURN + if (isTextMedia) { + return "
" + mediaElem + "
"; + } else { + return "
" + mediaElem + "
"; + } + + /* + if (_return) { + if (isTextMedia) { + return "
" + mediaElem + "
"; + } else { + return "
" + mediaElem + "
"; + } + } else { + VMM.appendElement($mediacontainer, mediaElem); + VMM.appendElement($mediacontainer, creditElem); + VMM.appendElement($mediacontainer, captionElem); + } + */ + }; + + }, + + }).init(); } -// sBox is pre-computed multiplicative inverse in GF(2^8) used in subBytes and keyExpansion [§5.1.1] -Aes.sBox = [0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76, - 0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0, - 0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15, - 0x04,0xc7,0x23,0xc3,0x18,0x96,0x05,0x9a,0x07,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75, - 0x09,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0,0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84, - 0x53,0xd1,0x00,0xed,0x20,0xfc,0xb1,0x5b,0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf, - 0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85,0x45,0xf9,0x02,0x7f,0x50,0x3c,0x9f,0xa8, - 0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5,0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2, - 0xcd,0x0c,0x13,0xec,0x5f,0x97,0x44,0x17,0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73, - 0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88,0x46,0xee,0xb8,0x14,0xde,0x5e,0x0b,0xdb, - 0xe0,0x32,0x3a,0x0a,0x49,0x06,0x24,0x5c,0xc2,0xd3,0xac,0x62,0x91,0x95,0xe4,0x79, - 0xe7,0xc8,0x37,0x6d,0x8d,0xd5,0x4e,0xa9,0x6c,0x56,0xf4,0xea,0x65,0x7a,0xae,0x08, - 0xba,0x78,0x25,0x2e,0x1c,0xa6,0xb4,0xc6,0xe8,0xdd,0x74,0x1f,0x4b,0xbd,0x8b,0x8a, - 0x70,0x3e,0xb5,0x66,0x48,0x03,0xf6,0x0e,0x61,0x35,0x57,0xb9,0x86,0xc1,0x1d,0x9e, - 0xe1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94,0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf, - 0x8c,0xa1,0x89,0x0d,0xbf,0xe6,0x42,0x68,0x41,0x99,0x2d,0x0f,0xb0,0x54,0xbb,0x16]; - -// rCon is Round Constant used for the Key Expansion [1st col is 2^(r-1) in GF(2^8)] [§5.2] -Aes.rCon = [ [0x00, 0x00, 0x00, 0x00], - [0x01, 0x00, 0x00, 0x00], - [0x02, 0x00, 0x00, 0x00], - [0x04, 0x00, 0x00, 0x00], - [0x08, 0x00, 0x00, 0x00], - [0x10, 0x00, 0x00, 0x00], - [0x20, 0x00, 0x00, 0x00], - [0x40, 0x00, 0x00, 0x00], - [0x80, 0x00, 0x00, 0x00], - [0x1b, 0x00, 0x00, 0x00], - [0x36, 0x00, 0x00, 0x00] ]; - - -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ -/* AES Counter-mode implementation in JavaScript (c) Chris Veness 2005-2011 */ -/* - see http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf */ -/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - -Aes.Ctr = {}; // Aes.Ctr namespace: a subclass or extension of Aes +/*********************************************** + Begin VMM.MediaType.js +***********************************************/ -/** - * Encrypt a text using AES encryption in Counter mode of operation - * - * Unicode multi-byte character safe - * - * @param {String} plaintext Source text to be encrypted - * @param {String} password The password to use to generate a key - * @param {Number} nBits Number of bits to be used in the key (128, 192, or 256) - * @returns {string} Encrypted text - */ -Aes.Ctr.encrypt = function(plaintext, password, nBits) { - var blockSize = 16; // block size fixed at 16 bytes / 128 bits (Nb=4) for AES - if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys - plaintext = Utf8.encode(plaintext); - password = Utf8.encode(password); - //var t = new Date(); // timer +/* MediaType +================================================== */ +if(typeof VMM != 'undefined' && typeof VMM.MediaType == 'undefined') { - // use AES itself to encrypt password to get cipher key (using plain password as source for key - // expansion) - gives us well encrypted key (though hashed key might be preferred for prod'n use) - var nBytes = nBits/8; // no bytes in key (16/24/32) - var pwBytes = new Array(nBytes); - for (var i=0; i