/*! TimelineJS 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 * Copyright 2012 Verite unless part of Verite Timeline, * if part of Timeline then it inherits Timeline's license. * Designed and built by Zach Wise digitalartwork.net * ----------------------------------------------------- *//* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. ================================================== */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},sizes:{api:{width:0,height:0}},vp:"Pellentesque nibh felis, eleifend id, commodo in, interdum vitae, leo",api_keys_master:{flickr:"RAIvxHY4hE/Elm5cieh4X5ptMyDpj7MYIxziGxi0WGCcy1s+yr7rKQ==",google:"jwNGnYw4hE9lmAez4ll0QD+jo6SKBJFknkopLS4FrSAuGfIwyj57AusuR0s8dAo=",twitter:""},timers:{api:7e3},api:{pushques:[]},twitter:{active:!1,array:[],api_loaded:!1,que:[]},flickr:{active:!1,array:[],api_loaded:!1,que:[]},youtube:{active:!1,array:[],api_loaded:!1,que:[]},vimeo:{active:!1,array:[],api_loaded:!1,que:[]},googlemaps:{active:!1,map_active:!1,places_active:!1,array:[],api_loaded:!1,que:[]},googledocs:{active:!1,array:[],api_loaded:!1,que:[]},googleplus:{active:!1,array:[],api_loaded:!1,que:[]},wikipedia:{active:!1,array:[],api_loaded:!1,que:[],tries:0},soundcloud:{active:!1,array:[],api_loaded:!1,que:[]}}.init();VMM.createElement=function(a,b,c,d,e){var f="";if(a!=null&&a!=""){f+="<"+a;c!=null&&c!=""&&(f+=" class='"+c+"'");d!=null&&d!=""&&(f+=" "+d);e!=null&&e!=""&&(f+=" style='"+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)}}}Array.prototype.remove=function(a,b){var c=this.slice((b||a)+1||this.length);this.length=a<0?this.length+a:a;return this.push.apply(this,c)};Date.prototype.getWeek=function(){var a=new Date(this.getFullYear(),0,1);return Math.ceil(((this-a)/864e5+a.getDay()+1)/7)};Date.prototype.getDayOfYear=function(){var a=new Date(this.getFullYear(),0,1);return Math.ceil((this-a)/864e5)};var is={Null:function(a){return 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"){jQuery.ajaxSetup({timeout:3e3});if(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest){trace("IE JSON");var d=a;if(d.match("^http://"))return jQuery.getJSON(d,b,c);if(d.match("^https://")){d=d.replace("https://","http://");return jQuery.getJSON(d,b,c)}return jQuery.getJSON(a,b,c)}return jQuery.getJSON(a,b,c)}};VMM.parseJSON=function(a){if(typeof jQuery!="undefined")return jQuery.parseJSON(a)};VMM.appendAndGetElement=function(a,b,c,d){var e,f="
",g="",h="",i="";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)},prepend:function(a,b){typeof jQuery!="undefined"&&jQuery(a).prepend(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()},delay_animate:function(a,b,c,d,e,f){if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var g=Math.round(c/1500*10)/10,h=g+"s";VMM.Lib.css(b,"-webkit-transition","all "+h+" ease");VMM.Lib.css(b,"-moz-transition","all "+h+" ease");VMM.Lib.css(b,"-o-transition","all "+h+" ease");VMM.Lib.css(b,"-ms-transition","all "+h+" ease");VMM.Lib.css(b,"transition","all "+h+" ease");VMM.Lib.cssmultiple(b,_att)}else typeof jQuery!="undefined"&&jQuery(b).delay(a).animate(e,{duration:c,easing:d})},animate:function(a,b,c,d,e,f){var g="easein",h=!1,i=1e3,j={};b!=null&&(b<1?i=1:i=Math.round(b));c!=null&&c!=""&&(g=c);e!=null&&e!=""&&(h=e);d!=null?j=d:j={opacity:0};if(VMM.Browser.device=="mobile"||VMM.Browser.device=="tablet"){var k=Math.round(i/1500*10)/10,l=k+"s";VMM.Lib.css(a,"-webkit-transition","all "+l+" ease");VMM.Lib.css(a,"-moz-transition","all "+l+" ease");VMM.Lib.css(a,"-o-transition","all "+l+" ease");VMM.Lib.css(a,"-ms-transition","all "+l+" ease");VMM.Lib.css(a,"transition","all "+l+" ease");VMM.Lib.cssmultiple(a,j)}else typeof jQuery!="undefined"&&(f!=null&&f!=""?jQuery(a).animate(j,{queue:h,duration:i,easing:g,complete:f}):jQuery(a).animate(j,{queue:h,duration:i,easing:g}))}}}if(typeof jQuery!="undefined"){(function(a){window.XDomainRequest&&a.ajaxTransport(function(b){if(b.crossDomain&&b.async){if(b.timeout){b.xdrTimeout=b.timeout;delete b.timeout}var c;return{send:function(d,e){function f(b,d,f,g){c.onload=c.onerror=c.ontimeout=a.noop;c=undefined;e(b,d,f,g)}c=new XDomainRequest;c.open(b.type,b.url);c.onload=function(){f(200,"OK",{text:c.responseText},"Content-Type: "+c.contentType)};c.onerror=function(){f(404,"Not Found")};if(b.xdrTimeout){c.ontimeout=function(){f(0,"timeout")};c.timeout=b.xdrTimeout}c.send(b.hasContent&&b.data||null)},abort:function(){if(c){c.onerror=a.noop();c.abort()}}}}})})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,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'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.Date.dateformats=a.dateformats;VMM.Date.month=a.date.month;VMM.Date.month_abbr=a.date.month_abbr;VMM.Date.day=a.date.day;VMM.Date.day_abbr=a.date.day_abbr;dateFormat.i18n.dayNames=a.date.day_abbr.concat(a.date.day);dateFormat.i18n.monthNames=a.date.month_abbr.concat(a.date.month)},parse:function(a){if(type.of(a)=="date")return a;var b=new Date(0,0,1,0,0,0,0),c,d,e,f;if(a.match(/,/gi)){c=a.split(",");for(var g=0;g1&&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("/")){if(a.match(" ")){e=a.split(" ");if(a.match(":")){d=e[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=e[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 if(a.match("T"))if(navigator.userAgent.match(/MSIE\s(?!9.0)/)){e=a.split("T");if(a.match(":")){d=e[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=e[0].split("-");c[0]&&b.setFullYear(c[0]);c[1]>1&&b.setMonth(c[1]-1);c[2]>1&&b.setDate(c[2])}else b=new Date(Date.parse(a));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.Date.dateformats.year:a.getDate()<=1&&a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Date.dateformats.month_short:f=VMM.Date.dateformats.month:a.getHours()===0&&a.getMinutes()===0?b?f=VMM.Date.dateformats.full_short:f=VMM.Date.dateformats.full:a.getMinutes()===0?b?f=VMM.Date.dateformats.time_no_seconds_short:f=VMM.Date.dateformats.time_no_seconds_small_date:b?f=VMM.Date.dateformats.time_no_seconds_short:f=VMM.Date.dateformats.full_long;d=dateFormat(a,f);g=d.split(" ");for(var i=0;i99?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)}}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]},getObjectAttributeByIndex:function(a,b){if(typeof a!="undefined"){var c=0;for(var d in a){if(b===c)return a[d];c++}return""}return""},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},deDupeArray:function(a){var b,c=a.length,d=[],e={};for(b=0;bb){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)}},doubledigit:function(a){return(a<10?"0":"")+a},truncateWords:function(a,b,c){b||(b=30);c||(c=b);var d=/^[^A-Za-z0-9\'\-]+/gi,e=a.replace(d,""),f=e.split(" "),g=[];b=Math.min(f.length,b);c=Math.min(f.length,c);for(var h=0;h$&").replace(e,"$1$2").replace(f,"$1")},linkify_with_twitter:function(a,b,c){function h(a){var b=/(\b(https?|ftp|file):\/\/([-A-Z0-9+&@#%?=~_|!:,.;]*)([-A-Z0-9+&@#%?\/=~_|!:,.;]*)[-A-Z0-9+&@#\/%=~_|])/ig;return a.replace(b,"$3")}var d=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,e=/(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(>|&(?:gt|#62|#x3e);)|((?:^|[^=\s'"\]])\s*['"]?|[^=\s]\s+)(\b(?:ht|f)tps?:\/\/[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]+(?:(?!&(?:gt|#0*62|#x0*3e);|&(?:amp|apos|quot|#0*3[49]|#x0*2[27]);[.!&',:?;]?(?:[^a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]|$))&[a-z0-9\-._~!$'()*+,;=:\/?#[\]@%]*)*[a-z0-9\-_~$()*+=\/#[\]@%])/img,f='$1$4$7$10$13$2$5$8$11$14$3$6$9$12',g=/(^|[^\/])(www\.[\S]+(\b|$))/gim,i=/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,j=/\B@([\w-]+)/gm,k=/(#([\w]+))/g;return a.replace(e,f).replace(g,"$1$2").replace(i,"$1").replace(j,"@$1").replace(k,"$1")},linkify_wikipedia:function(a){var b=/]*>(.*?)<\/i>/gim;return a.replace(b,"$&").replace(/]*>/gim,"").replace(/<\/i>/gim,"").replace(/]*>/gim,"").replace(/<\/b>/gim,"")},unlinkify:function(a){if(!a)return a;a=a.replace(/]*>/i,"");a=a.replace(/<\/a>/i,"");return a},untagify:function(a){if(!a)return a;a=a.replace(/<\s*\w.*?>/g,"");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=7)return a.replace("_","%20");var b={__smallWords:["a","an","and","as","at","but","by","en","for","if","in","of","on","or","the","to","v[.]?","via","vs[.]?"],init:function(){this.__smallRE=this.__smallWords.join("|");this.__lowerCaseWordsRE=new RegExp("\\b("+this.__smallRE+")\\b","gi");this.__firstWordRE=new RegExp("^([^a-zA-Z0-9 \\r\\n\\t]*)("+this.__smallRE+")\\b","gi");this.__lastWordRE=new RegExp("\\b("+this.__smallRE+")([^a-zA-Z0-9 \\r\\n\\t]*)$","gi")},toTitleCase:function(a){var b="",c=a.split(/([:.;?!][ ]|(?:[ ]|^)["“])/);for(var d=0;d=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.ExternalAPI=="undefined"&&(VMM.ExternalAPI={pushQues:function(){VMM.master_config.googlemaps.active&&VMM.ExternalAPI.googlemaps.pushQue();VMM.master_config.youtube.active&&VMM.ExternalAPI.youtube.pushQue();VMM.master_config.soundcloud.active&&VMM.ExternalAPI.soundcloud.pushQue();VMM.master_config.googledocs.active&&VMM.ExternalAPI.googledocs.pushQue();VMM.master_config.googleplus.active&&VMM.ExternalAPI.googleplus.pushQue();VMM.master_config.wikipedia.active&&VMM.ExternalAPI.wikipedia.pushQue();VMM.master_config.vimeo.active&&VMM.ExternalAPI.vimeo.pushQue();VMM.master_config.twitter.active&&VMM.ExternalAPI.twitter.pushQue();VMM.master_config.flickr.active&&VMM.ExternalAPI.flickr.pushQue()},twitter:{tweetArray:[],get:function(a,b){var c={mid:a,id:b};VMM.master_config.twitter.que.push(c);VMM.master_config.twitter.active=!0},create:function(a,b){var c=a.mid.toString(),d={twitterid:a.mid},e="http://api.twitter.com/1/statuses/show.json?id="+a.mid+"&include_entities=true&callback=?",f=setTimeout(VMM.ExternalAPI.twitter.errorTimeOut,VMM.master_config.timers.api,a),g=setTimeout(b,VMM.master_config.timers.api,a);VMM.getJSON(e,function(b){var c=b.id_str,d="

",e=VMM.Util.linkify_with_twitter(b.text,"_blank");d+=e;d+="

";typeof b.entities.media!="undefined"&&b.entities.media[0].type=="photo"&&(d+="");d+="";VMM.attachElement("#tweet_"+a.id.toString(),d);VMM.attachElement("#text_thumb_"+a.id.toString(),b.text)}).error(function(b,c,d){trace("TWITTER error");trace("TWITTER ERROR: "+c+" "+b.responseText);VMM.attachElement("#tweet_"+a.id,"

ERROR LOADING TWEET "+a.mid+"

")}).success(function(a){clearTimeout(f);clearTimeout(g);b()})},errorTimeOut:function(a){trace("TWITTER JSON ERROR TIMEOUT "+a.mid);VMM.attachElement("#tweet_"+a.id,"

Still waiting on Twitter: "+a.mid+"

");VMM.getJSON("http://api.twitter.com/1/account/rate_limit_status.json",function(a){trace("REMAINING TWITTER API CALLS "+a.remaining_hits);trace("TWITTER RATE LIMIT WILL RESET AT "+a.reset_time);var b="";if(a.remaining_hits==0){b="

You've reached the maximum number of tweets you can load in an hour.

";b+="

You can view tweets again starting at:
"+a.reset_time+"

"}else b="

Still waiting on Twitter. "+id+"

";VMM.attachElement("#twitter_"+id,""+b+"")})},pushQue:function(){if(VMM.master_config.twitter.que.length>0){VMM.ExternalAPI.twitter.create(VMM.master_config.twitter.que[0],VMM.ExternalAPI.twitter.pushQue);VMM.master_config .twitter.que.remove(0)}},getHTML:function(a){var b="http://api.twitter.com/1/statuses/oembed.json?id="+a+"&callback=?";VMM.getJSON(b,VMM.ExternalAPI.twitter.onJSONLoaded)},onJSONLoaded:function(a){trace("TWITTER JSON LOADED");var b=a.id;VMM.attachElement("#"+b,VMM.Util.linkify_with_twitter(a.html))},parseTwitterDate:function(a){var b=new Date(Date.parse(a));return b},prettyParseTwitterDate:function(a){var b=new Date(Date.parse(a));return VMM.Date.prettyDate(b,!0)},getTweets:function(a){var b=[],c=a.length;for(var d=0;d
";d.content=e;d.raw=a;b.push(d);if(b.length==c){var g={tweetdata:b};VMM.fireEvent(global,"TWEETSLOADED",g)}}).success(function(){trace("second success")}).error(function(){trace("error")}).complete(function(){trace("complete")})}},getTweetSearch:function(a,b){var c=40;b!=null&&b!=""&&(c=b);var d="http://search.twitter.com/search.json?q="+a+"&rpp="+c+"&include_entities=true&result_type=mixed",e=[];VMM.getJSON(d,function(a){for(var b=0;b

",f=VMM.Util.linkify_with_twitter(a.results[b].text,"_blank");d+=f;d+="

";d+="— "+a.results[b].from_user_name+" (@"+a.results[b].from_user+") "+VMM.ExternalAPI.twitter.prettyParseTwitterDate(a.results[b].created_at)+"
";c.content=d;c.raw=a.results[b];e.push(c)}var g={tweetdata:e};VMM.fireEvent(global,"TWEETSLOADED",g)})},prettyHTML:function(a,b){var a=a.toString(),c={twitterid:a},d="http://api.twitter.com/1/statuses/show.json?id="+a+"&include_entities=true&callback=?",e=setTimeout(VMM.ExternalAPI.twitter.errorTimeOut,VMM.master_config.timers.api,a);VMM.getJSON(d,VMM.ExternalAPI.twitter.formatJSON).error(function(b,c,d){trace("TWITTER error");trace("TWITTER ERROR: "+c+" "+b.responseText);VMM.attachElement("#twitter_"+a,"

ERROR LOADING TWEET "+a+"

")}).success(function(a){clearTimeout(e);b&&VMM.ExternalAPI.twitter.secondaryMedia(a)})},formatJSON:function(a){var b=a.id_str,c="

",d=VMM.Util.linkify_with_twitter(a.text,"_blank");c+=d;c+="

";c+="
";c+="";c+="";c+=""+a.user.name+"";c+="@"+a.user.screen_name+"";c+="";c+="
";typeof a.entities.media!="undefined"&&a.entities.media[0].type=="photo"&&(c+="");VMM.attachElement("#twitter_"+b.toString(),c);VMM.attachElement("#text_thumb_"+b.toString(),a.text)}},googlemaps:{get:function(a,b){var c,d,e;e=VMM.Util.getUrlVars(a);VMM.master_config.Timeline.api_keys.google!=""?d=VMM.master_config.Timeline.api_keys.google:d=Aes.Ctr.decrypt(VMM.master_config.api_keys_master.google,VMM.master_config.vp,256);var f="http://maps.googleapis.com/maps/api/js?key="+d+"&libraries=places&sensor=false&callback=VMM.ExternalAPI.googlemaps.onMapAPIReady",g={url:a,vars:e,id:b};if(VMM.master_config.googlemaps.active)VMM.master_config.googlemaps.que.push(g);else{VMM.master_config.googlemaps.que.push(g);VMM.master_config.googlemaps.api_loaded||VMM.LoadLib.js(f,function(){trace("Google Maps API Library Loaded")})}},create:function(a){function e(a){if(a in VMM.ExternalAPI.googlemaps.map_providers){b=VMM.ExternalAPI.googlemaps.map_attribution[VMM.ExternalAPI.googlemaps.map_providers[a].attribution];return VMM.ExternalAPI.googlemaps.map_providers[a]}if(VMM.ExternalAPI.googlemaps.defaultType(a)){trace("GOOGLE MAP DEFAULT TYPE");return google.maps.MapTypeId[a.toUpperCase()]}trace("Not a maptype: "+a)}function o(){var b=a.url+"&output=kml";b=b.replace("&output=embed","");var c=new google.maps.KmlLayer(b,{preserveViewport:!0}),e=new google.maps.InfoWindow;c.setMap(d);google.maps.event.addListenerOnce(c,"defaultviewport_changed",function(){d.fitBounds(c.getDefaultViewport());i&&d.panTo(f);j&&d.setZoom(h)});google.maps.event.addListener(c,"click",function(a){function c(a){e.setContent(a);e.open(d)}var b=a.featureData.description;c(b)})}var b="",c,d;google.maps.VeriteMapType=function(a){if(VMM.ExternalAPI.googlemaps.defaultType(a))return google.maps.MapTypeId[a.toUpperCase()];var b=e(a);return google.maps.ImageMapType.call(this,{getTileUrl:function(a,c){var d=(c+a.x+a.y)%VMM.ExternalAPI.googlemaps.map_subdomains.length;return[b.url.replace("{S}",VMM.ExternalAPI.googlemaps.map_subdomains[d]).replace("{Z}",c).replace("{X}",a.x).replace("{Y}",a.y).replace("{z}",c).replace("{x}",a.x).replace("{y}",a.y)]},tileSize:new google.maps.Size(256,256),name:a,minZoom:b.minZoom,maxZoom:b.maxZoom})};google.maps.VeriteMapType.prototype=new google.maps.ImageMapType("_");type.of(VMM.master_config.Timeline.maptype)=="string"?VMM.ExternalAPI.googlemaps.defaultType(VMM.master_config.Timeline.maptype)?c=google.maps.MapTypeId[VMM.master_config.Timeline.maptype.toUpperCase()]:c=VMM.master_config.Timeline.maptype:c="toner";var f=new google.maps.LatLng(41.875696,-87.624207),g,h=11,i=!1,j=!1,k;if(type.of(VMM.Util.getUrlVars(a.url)["ll"])=="string"){i=!0;g=VMM.Util.getUrlVars(a.url).ll.split(",");f=new google.maps.LatLng(parseFloat(g[0]),parseFloat(g[1]))}else if(type.of(VMM.Util.getUrlVars(a.url)["sll"])=="string"){g=VMM.Util.getUrlVars(a.url).sll.split(",");f=new google.maps.LatLng(parseFloat(g[0]),parseFloat(g[1]))}if(type.of(VMM.Util.getUrlVars(a.url)["z"])=="string"){j=!0;h=parseFloat(VMM.Util.getUrlVars(a.url).z)}var l={zoom:h,disableDefaultUI:!0,mapTypeControl:!1,zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL,position:google.maps.ControlPosition.TOP_RIGHT},center:f,mapTypeId:c,mapTypeControlOptions:{mapTypeIds:[c]}},m=a.id.toString()+"_gmap";VMM.attachElement("#"+a.id,"
");var d=new google.maps.Map(document.getElementById(m),l);if(!VMM.ExternalAPI.googlemaps.defaultType(VMM.master_config.Timeline.maptype)){d.mapTypes.set(c,new google.maps.VeriteMapType(c));var n="
"+b+"
";VMM.appendElement("#"+m,n)}o()},pushQue:function(){for(var a=0;aStamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.",apple:"Map data © 2012 Apple, Imagery © 2012 Apple"},map_providers:{toner:{url:"http://{S}tile.stamen.com/toner/{Z}/{X}/{Y}.png",minZoom:0,maxZoom:20,attribution:"stamen"},"toner-lines":{url:"http://{S}tile.stamen.com/toner-lines/{Z}/{X}/{Y}.png",minZoom:0,maxZoom:20,attribution:"stamen"},"toner-labels":{url:"http://{S}tile.stamen.com/toner-labels/{Z}/{X}/{Y}.png",minZoom:0,maxZoom:20,attribution:"stamen"},sterrain:{url:"http://{S}tile.stamen.com/terrain/{Z}/{X}/{Y}.jpg",minZoom:4,maxZoom:20,attribution:"stamen"},apple:{url:"http://gsp2.apple.com/tile?api=1&style=slideshow&layers=default&lang=en_US&z={z}&x={x}&y={y}&v=9",minZoom:4,maxZoom:14,attribution:"apple"},watercolor:{url:"http://{S}tile.stamen.com/watercolor/{Z}/{X}/{Y}.jpg",minZoom:3,maxZoom:16,attribution:"stamen"}}},googleplus:{get:function(a,b){var c,d={user:a,activity:b};VMM.master_config.googleplus.que.push(d);VMM.master_config.googleplus.active=!0},create:function(a,b){var c="",d="",e="",f="",g="",h,i;googleplus_timeout=setTimeout(VMM.ExternalAPI.googleplus.errorTimeOut,VMM.master_config.timers.api,a),callback_timeout=setTimeout(b,VMM.master_config.timers.api,a);VMM.master_config.Timeline.api_keys.google!=""?d=VMM.master_config.Timeline.api_keys.google:d=Aes.Ctr.decrypt(VMM.master_config.api_keys_master.google,VMM.master_config.vp,256);h="https://www.googleapis.com/plus/v1/people/"+a.user+"/activities/public?alt=json&maxResults=100&fields=items(id,url)&key="+d;c="GOOGLE PLUS API CALL";VMM.getJSON(h,function(b){for(var h=0;h";f+=b.object.content}else f+=b.object.content;if(typeof b.object.attachments!="undefined"){for(var d=0;d"+""+g;else if(b.object.attachments[d].objectType=="video"){g=""+g;g+="
";g+="";g+="
"+b.object.attachments[d].displayName+"
";g+="
";g+="
"}else if(b.object.attachments[d].objectType=="article"){g+="
";g+="";g+="
"+b.object.attachments[d].displayName+"
";g+="

"+b.object.attachments[d].content+"

";g+="
";g+="
"}trace(b.object.attachments[d])}g="
"+g+"
"}c="
"+f+g+"
";c+="";VMM.attachElement("#googleplus_"+a.activity,c)});break}}}).error(function(b,c,d){var e=VMM.parseJSON(b.responseText);trace(e.error.message);VMM.attachElement("#googleplus_"+a.activity,"

ERROR LOADING GOOGLE+

"+e.error.message+"

")}).success(function(a){clearTimeout(googleplus_timeout);clearTimeout(callback_timeout);b()})},pushQue:function(){if(VMM.master_config.googleplus.que.length>0){VMM.ExternalAPI.googleplus.create(VMM.master_config.googleplus.que[0],VMM.ExternalAPI.googleplus.pushQue);VMM.master_config.googleplus.que.remove(0)}},errorTimeOut:function(a){trace("GOOGLE+ JSON ERROR TIMEOUT "+a.activity);VMM.attachElement("#googleplus_"+a.activity,"

Still waiting on GOOGLE+

"+a.activity+"

")}},googledocs:{get:function(a,b){var c={url:a,id:b};VMM.master_config.googledocs.que.push(c);VMM.master_config.googledocs.active=!0},create:function(a){var b="";a.url.match(/docs.google.com/i)?b="":b="";VMM.attachElement("#"+a.id,b)},pushQue:function(){for(var a=0;a")}).error(function(a,b,c){trace("FLICKR error");trace("FLICKR ERROR: "+b+" "+a.responseText)}).success(function(a){clearTimeout(d);b()})},pushQue:function(){if(VMM.master_config.flickr.que.length>0){VMM.ExternalAPI.flickr.create(VMM.master_config.flickr.que[0],VMM.ExternalAPI.flickr.pushQue);VMM.master_config.flickr.que.remove(0)}},sizes:function(a){var b="";a<=75?b="Thumbnail":a<=180?b="Small":a<=240?b="Small 320":a<=375?b="Medium":a<=480?b="Medium 640":a<=600?b="Medium 800":b="Large";return b}},instagram:{get:function(a,b){return b?"http://instagr.am/p/"+a+"/media/?size=t":"http://instagr.am/p/"+a+"/media/?size="+VMM.ExternalAPI.instagram.sizes(VMM.master_config.sizes.api.height)},sizes:function(a){var b="";a<=150?b="t":a<=306?b="m":b="l";return b}},soundcloud:{get:function(a,b){var c={url:a,id:b};VMM.master_config.soundcloud.que.push(c);VMM.master_config.soundcloud.active=!0},create:function(a,b){var c="http://soundcloud.com/oembed?url="+a.url+"&format=js&callback=?";VMM.getJSON(c,function(c){VMM.attachElement("#"+a.id,c.html);b()})},pushQue:function(){if(VMM.master_config.soundcloud.que.length>0){VMM.ExternalAPI.soundcloud.create(VMM.master_config.soundcloud.que[0],VMM.ExternalAPI.soundcloud.pushQue);VMM.master_config.soundcloud.que.remove(0)}}},wikipedia:{get:function(a,b,c){var d={url:a,id:b,lang:c};VMM.master_config.wikipedia.que.push(d);VMM.master_config.wikipedia.active=!0},create:function(a,b){var c="http://"+a.lang+".wikipedia.org/w/api.php?action=query&prop=extracts&redirects=&titles="+a.url+"&exintro=1&format=json&callback=?";callback_timeout=setTimeout(b,VMM.master_config.timers.api,a);if(VMM.Browser.browser=="Explorer"&&parseInt(VMM.Browser.version,10)>=7&&window.XDomainRequest){var d="

"+a.url+"

";d+=""+VMM.master_config.language.messages.wikipedia+"";d+="

Wikipedia entry unable to load using Internet Explorer 8 or below.

";VMM.attachElement("#"+a.id,d)}VMM.getJSON(c,function(b){if(b.query){var c,d,e="",f="",g=1,h=[];c=VMM.Util.getObjectAttributeByIndex(b.query.pages,0).extract;d=VMM.Util.getObjectAttributeByIndex(b.query.pages,0).title;c.match("

")?h=c.split("

"):h.push(c);for(var i=0;i"+h[i+1]);e="

"+d+"

";e+=""+VMM.master_config.language.messages.wikipedia+"";e+=VMM.Util.linkify_wikipedia(f);c.match("REDIRECT")||VMM.attachElement("#"+a.id,e)}}).error(function(c,d,e){trace("WIKIPEDIA error");trace("WIKIPEDIA ERROR: "+d+" "+c.responseText);trace(e);VMM.attachElement("#"+a.id,"

Wikipedia is not responding

");clearTimeout(callback_timeout);if(VMM.master_config.wikipedia.tries<4){trace("WIKIPEDIA ATTEMPT "+VMM.master_config.wikipedia.tries);trace(a);VMM.master_config.wikipedia.tries++;VMM.ExternalAPI.wikipedia.create(a,b)}else b()}).success(function(a){VMM.master_config.wikipedia.tries=0;clearTimeout(callback_timeout);b()})},pushQue:function(){if(VMM.master_config.wikipedia.que.length>0){trace("WIKIPEDIA PUSH QUE "+VMM.master_config.wikipedia.que.length);VMM.ExternalAPI.wikipedia.create(VMM.master_config.wikipedia.que[0],VMM.ExternalAPI.wikipedia.pushQue);VMM.master_config.wikipedia.que.remove(0)}}},youtube:{get:function(a){var b="http://gdata.youtube.com/feeds/api/videos/"+a+"?v=2&alt=jsonc&callback=?";if(VMM.master_config.youtube.active)VMM.master_config.youtube.que.push(a);else{VMM.master_config.youtube.que.push(a);VMM.master_config.youtube.api_loaded||VMM.LoadLib.js("http://www.youtube.com/player_api",function(){trace("YouTube API Library Loaded")})}VMM.getJSON(b,VMM.ExternalAPI.youtube.createThumb)},create:function(a){var b={active:!1,player:{},name:"youtube_"+a,playing:!1};b.player["youtube_"+a]=new YT.Player("youtube_"+a,{height:"390",width:"640",playerVars:{enablejsapi:1,color:"white",showinfo:0,theme:"light",rel:0},videoId:a,events:{onReady:VMM.ExternalAPI.youtube.onPlayerReady,onStateChange:VMM.ExternalAPI.youtube.onStateChange}});VMM.master_config.youtube.array.push(b)},createThumb:function(a){if(typeof a.data!="undefined"){var b="youtube_"+a.data.id+"_thumb";VMM.attachElement("#"+b,"")}},pushQue:function(){for(var a=0;a")},pushQue:function(){if(VMM.master_config.vimeo.que.length>0){VMM.ExternalAPI.vimeo.create(VMM.master_config.vimeo.que[0],VMM.ExternalAPI.vimeo.pushQue);VMM.master_config.vimeo.que.remove(0)}}}});typeof VMM!="undefined"&&typeof VMM.MediaElement=="undefined"&&(VMM.MediaElement={init:function(){return this},thumbnail:function(a,b,c,d){var e=16,f=24,g="";b!=null&&b!=""&&(e=b);c!=null&&c!=""&&(f=c);d!=null&&d!=""&&(g=d);if(a.media!=null&&a.media!=""){var h=!0,i="",j=VMM.MediaType(a.media);if(j.type=="image"){i="
";return i}if(j.type=="flickr"){i="
";return i}if(j.type=="instagram"){i="
";return i}if(j.type=="youtube"){i="
";return i}if(j.type=="googledoc"){i="
";return i}if(j.type=="vimeo"){i="
";return i}if(j.type=="dailymotion"){i="
";return i}if(j.type=="twitter"){i="
";return i}if(j.type=="twitter-ready"){i="
";return i}if(j.type=="soundcloud"){i="
";return i}if(j.type=="google-map"){i="
";return i}if(j.type=="googleplus"){i="
";return i}if(j.type=="wikipedia"){i="
";return i}if(j.type=="storify"){i="
";return i}if(j.type=="quote"){i="
";return i}if(j.type=="unknown"){j.id.match("blockquote")?i="
":i="
";return i}if(j.type=="website"){i="
";return i}i="
";return i}},create:function(a,b){var c=!1,d="

"+VMM.master_config.language.messages.loading+"

";if(a.media!=null&&a.media!=""){var e="",f="",g="",h="",i=!1,j;j=VMM.MediaType(a.media);c=!0;a.credit!=null&&a.credit!=""&&(g="
"+VMM.Util.linkify_with_twitter(a.credit,"_blank")+"
");a.caption!=null&&a.caption!=""&&(f="
"+VMM.Util.linkify_with_twitter(a.caption,"_blank")+"
");if(j.type=="image")e="
";else if(j.type=="flickr"){h="flickr_"+b;e="
";VMM.ExternalAPI.flickr.get(j.id,b)}else if(j.type=="instagram")e="
";else if(j.type=="googledoc"){e="
"+d+"
";VMM.ExternalAPI.googledocs.get(j.id,b)}else if(j.type=="youtube"){e="
"+d+"
";VMM.ExternalAPI.youtube.get(j.id)}else if(j.type=="vimeo"){e="
";VMM.ExternalAPI.vimeo.get(j.id)}else if(j.type=="dailymotion")e="
";else if(j.type=="twitter"){e="";i=!0;VMM.ExternalAPI.twitter.get(j.id,b)}else if(j.type=="twitter-ready"){i=!0;e=j.id}else if(j.type=="soundcloud"){e="
"+d+"
";VMM.ExternalAPI.soundcloud.get(j.id,b)}else if(j.type=="google-map"){e="
"+d+"
";VMM.ExternalAPI.googlemaps.get(j.id,b)}else if(j.type=="googleplus"){h="googleplus_"+j.id;e="
"+d+"
";i=!0;VMM.ExternalAPI.googleplus.get(j.user,j.id)}else if(j.type=="wikipedia"){e="
"+d+"
";i=!0;VMM.ExternalAPI.wikipedia.get(j.id,j.uniqueid,j.lang)}else if(j.type=="storify"){i=!0;e="
"+j.id+"
"}else if(j.type=="quote"){i=!0;e="
"+j.id+"
"}else if(j.type=="unknown"){trace("NO KNOWN MEDIA TYPE FOUND TRYING TO JUST PLACE THE HTML");i=!0;e="
"+VMM.Util.properQuotes(j.id)+"
"}else if(j.type=="website")e="";else{trace("NO KNOWN MEDIA TYPE FOUND");trace(j.type)}e="
"+e+g+f+"
";return i?"
"+e+"
":"
"+e+"
"}}}.init());typeof VMM!="undefined"&&typeof VMM.MediaType=="undefined"&&(VMM.MediaType=function(a){var b=!1,c={type:"unknown",id:"",link:"",lang:"",uniqueid:VMM.Util.unique_ID(6)};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:a.match("/embed/")?c.id=a.split("embed/")[1].split(/[?&]/)[0]: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")){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("plus.google")){c.type="googleplus";c.id=a.split("/posts/")[1];a.split("/posts/")[0].match("u/0/")?c.user=a.split("u/0/")[1].split("/posts")[0]:c.user=a.split("google.com/")[1].split("/posts/")[0];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("instagr.am/p/")){c.type="instagram";c.link=a;c.id=a.split("/p/")[1].split("/")[0];b=!0}else if(a.match(/jpg|jpeg|png|gif/i)||a.match("staticmap")||a.match("yfrog.com")||a.match("twitpic.com")){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.match("(www.)?wikipedia.org")){c.type="wikipedia";var d=a.split("wiki/")[1].split("#")[0].replace("_"," ");c.id=d.replace(" ","%20");c.lang=a.split("//")[1].split(".wikipedia")[0];b=!0}else if(a.indexOf("http://")==0){c.type="website";c.id=a;b=!0}else if(a.match("storify")){c.type="storify";c.id=a;b=!0}else if(a.match("blockquote")){c.type="quote";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,"