window.log=function(){log.history=log.history||[];log.history.push(arguments);arguments.callee=arguments.callee.caller;this.console&&console.log(Array.prototype.slice.call(arguments))},function(n){function i(){}for(var r="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),t;t=r.pop();)n[t]=n[t]||i}(window.console=window.console||{}),function(n){function r(t,r,u){var f=this,h=t.add(this),e=t.find(u.tabs),o=r.jquery?r:t.children(r),s;e.length||(e=t.children());o.length||(o=t.parent().find(r));o.length||(o=n(r));n.extend(this,{click:function(t,r){var o=e.eq(t),c;if(typeof t=="string"&&t.replace("#","")&&(o=e.filter("[href*="+t.replace("#","")+"]"),t=Math.max(e.index(o),0)),u.rotate){if(c=e.length-1,t<0)return f.click(c,r);if(t>c)return f.click(0,r)}if(!o.length){if(s>=0)return f;t=u.initialIndex;o=e.eq(t)}return t===s?f:(r=r||n.Event(),r.type="onBeforeClick",h.trigger(r,[t]),r.isDefaultPrevented()?void 0:(i[u.effect].call(f,t,function(){r.type="onClick";h.trigger(r,[t])}),s=t,e.removeClass(u.current),o.addClass(u.current),f))},getConf:function(){return u},getTabs:function(){return e},getPanes:function(){return o},getCurrentPane:function(){return o.eq(s)},getCurrentTab:function(){return e.eq(s)},getIndex:function(){return s},next:function(){return f.click(s+1)},prev:function(){return f.click(s-1)},destroy:function(){return e.unbind(u.event).removeClass(u.current),o.find("a[href^='#']").unbind("click.T"),f}});n.each("onBeforeClick,onClick".split(","),function(t,i){n.isFunction(u[i])&&n(f).bind(i,u[i]);f[i]=function(t){return t&&n(f).bind(i,t),f}});u.history&&n.fn.history&&(n.tools.history.init(e),u.event="history");e.each(function(t){n(this).bind(u.event,function(n){return f.click(t,n),n.preventDefault()})});o.find("a[href^='#']").bind("click.T",function(t){f.click(n(this).attr("href"),t)});location.hash&&u.tabs=="a"&&t.find("[href="+location.hash+"]").length?f.click(location.hash):(u.initialIndex===0||u.initialIndex>0)&&f.click(u.initialIndex)}n.tools=n.tools||{version:"v1.2.5"};n.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:!1,history:!1},addEffect:function(n,t){i[n]=t}};var i={"default":function(n,t){this.getPanes().hide().eq(n).show();t.call()},fade:function(n,t){var r=this.getConf(),u=r.fadeOutSpeed,i=this.getPanes();u?i.fadeOut(u):i.hide();i.eq(n).fadeIn(r.fadeInSpeed,t)},slide:function(n,t){this.getPanes().slideUp(200);this.getPanes().eq(n).slideDown(400,t)},ajax:function(n,t){this.getPanes().eq(0).load(this.getTabs().eq(n).attr("href"),t)}},t;n.tools.tabs.addEffect("horizontal",function(i,r){t||(t=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){n(this).hide()});this.getPanes().eq(i).animate({width:t},function(){n(this).show();r.call()})});n.fn.tabs=function(t,i){var u=this.data("tabs");return u&&(u.destroy(),this.removeData("tabs")),n.isFunction(i)&&(i={onBeforeClick:i}),i=n.extend({},n.tools.tabs.conf,i),this.each(function(){u=new r(n(this),t,i);n(this).data("tabs",u)}),i.api?u:this}}(jQuery),function(n){n.fn.ticker=function(t){var i=n.extend({},n.fn.ticker.defaults,t),r,u;return n(this).length==0?(window.console&&window.console.log?window.console.log("Element does not exist in DOM!"):alert("Element does not exist in DOM!"),!1):(r="#"+n(this).attr("id"),u=n(this).get(0).tagName,this.each(function(){function e(n){var t=0;for(var i in n)n.hasOwnProperty(i)&&t++;return t}function v(){var n=new Date;return n.getTime()}function o(n){i.debugMode&&(window.console&&window.console.log?window.console.log(n):alert(n))}function y(){if(p(),n(r).wrap('<div id="'+t.dom.wrapperID.replace("#","")+'"><\/div>'),n(t.dom.wrapperID).children().remove(),n(t.dom.wrapperID).append('<div id="'+t.dom.tickerID.replace("#","")+'" class="ticker"><div id="'+t.dom.titleID.replace("#","")+'" class="ticker-title"><span><!-- --><\/span><\/div><p id="'+t.dom.contentID.replace("#","")+'" class="ticker-content"><\/p><div id="'+t.dom.revealID.replace("#","")+'" class="ticker-swipe"><span><!-- --><\/span><\/div><\/div>'),n(t.dom.wrapperID).removeClass("no-js").addClass("ticker-wrapper has-js "+i.direction),n(t.dom.tickerElem+","+t.dom.contentID).hide(),i.controls){n(t.dom.controlsID).on("click mouseover mousedown mouseout mouseup",function(i){var r=i.target.id;if(i.type=="click")switch(r){case t.dom.prevID.replace("#",""):t.paused=!0;n(t.dom.playPauseID).addClass("paused");a("prev");break;case t.dom.nextID.replace("#",""):t.paused=!0;n(t.dom.playPauseID).addClass("paused");a("next");break;case t.dom.playPauseID.replace("#",""):t.play==!0?(t.paused=!0,n(t.dom.playPauseID).addClass("paused"),c()):(t.paused=!1,n(t.dom.playPauseID).removeClass("paused"),l())}else i.type=="mouseover"&&n("#"+r).hasClass("controls")?n("#"+r).addClass("over"):i.type=="mousedown"&&n("#"+r).hasClass("controls")?n("#"+r).addClass("down"):i.type=="mouseup"&&n("#"+r).hasClass("controls")?n("#"+r).removeClass("down"):i.type=="mouseout"&&n("#"+r).hasClass("controls")&&n("#"+r).removeClass("over")});n(t.dom.wrapperID).append('<ul id="'+t.dom.controlsID.replace("#","")+'" class="ticker-controls"><li id="'+t.dom.playPauseID.replace("#","")+'" class="jnt-play-pause controls"><a href=""><!-- --><\/a><\/li><li id="'+t.dom.prevID.replace("#","")+'" class="jnt-prev controls"><a href=""><!-- --><\/a><\/li><li id="'+t.dom.nextID.replace("#","")+'" class="jnt-next controls"><a href=""><!-- --><\/a><\/li><\/ul>')}i.displayType!="fade"&&n(t.dom.contentID).mouseover(function(){t.paused==!1&&c()}).mouseout(function(){t.paused==!1&&l()});i.ajaxFeed||s()}function p(){if(t.contentLoaded==!1)if(i.ajaxFeed)i.feedType=="xml"?n.ajax({url:i.feedUrl,cache:!1,dataType:i.feedType,async:!0,success:function(n){var u,f,h,c,l,r;for(count=0,u=0;u<n.childNodes.length;u++)n.childNodes[u].nodeName=="rss"&&(xmlContent=n.childNodes[u]);for(f=0;f<xmlContent.childNodes.length;f++)xmlContent.childNodes[f].nodeName=="channel"&&(xmlChannel=xmlContent.childNodes[f]);for(h=0;h<xmlChannel.childNodes.length;h++)if(xmlChannel.childNodes[h].nodeName=="item")for(xmlItems=xmlChannel.childNodes[h],l=!1,r=0;r<xmlItems.childNodes.length;r++)xmlItems.childNodes[r].nodeName=="title"?c=xmlItems.childNodes[r].lastChild.nodeValue:xmlItems.childNodes[r].nodeName=="link"&&(l=xmlItems.childNodes[r].lastChild.nodeValue),c!==!1&&c!=""&&l!==!1&&(t.newsArr["item-"+count]={type:i.titleText,content:'<a href="'+l+'">'+c+"<\/a>"},count++,c=!1,l=!1);if(e(t.newsArr<1))return o("Couldn't find any content from the XML feed for the ticker to use!"),!1;t.contentLoaded=!0;s()}}):o("Code Me!");else if(i.htmlFeed)if(n(r+" LI").length>0)n(r+" LI").each(function(r){t.newsArr["item-"+r]={type:i.titleText,content:n(this).html()}});else return o("Couldn't find HTML any content for the ticker to use!"),!1;else return o("The ticker is set to not use any types of content! Check the settings for the ticker."),!1}function s(){t.contentLoaded=!0;n(t.dom.titleElem).html(t.newsArr["item-"+t.position].type);n(t.dom.contentID).html(t.newsArr["item-"+t.position].content);t.position==e(t.newsArr)-1?t.position=0:t.position++;distance=n(t.dom.contentID).width();time=distance/i.speed;w()}function w(){if(n(t.dom.contentID).css("opacity","1"),t.play){var r=n(t.dom.titleID).width()+20;n(t.dom.revealID).css(i.direction,r+"px");i.displayType=="fade"?n(t.dom.revealID).hide(0,function(){n(t.dom.contentID).css(i.direction,r+"px").fadeIn(i.fadeInSpeed,h)}):i.displayType=="scroll"||n(t.dom.revealElem).show(0,function(){n(t.dom.contentID).css(i.direction,r+"px").show();animationAction=i.direction=="right"?{marginRight:distance+"px"}:{marginLeft:distance+"px"};n(t.dom.revealID).css("margin-"+i.direction,"0px").delay(20).animate(animationAction,time,"linear",h)})}else return!1}function h(){t.play?(n(t.dom.contentID).delay(i.pauseOnItems).fadeOut(i.fadeOutSpeed),i.displayType=="fade"?n(t.dom.contentID).fadeOut(i.fadeOutSpeed,function(){n(t.dom.wrapperID).find(t.dom.revealElem+","+t.dom.contentID).hide().end().find(t.dom.tickerID+","+t.dom.revealID).show().end().find(t.dom.tickerID+","+t.dom.revealID).removeAttr("style");s()}):n(t.dom.revealID).hide(0,function(){n(t.dom.contentID).fadeOut(i.fadeOutSpeed,function(){n(t.dom.wrapperID).find(t.dom.revealElem+","+t.dom.contentID).hide().end().find(t.dom.tickerID+","+t.dom.revealID).show().end().find(t.dom.tickerID+","+t.dom.revealID).removeAttr("style");s()})})):n(t.dom.revealElem).hide()}function c(){t.play=!1;n(t.dom.tickerID+","+t.dom.revealID+","+t.dom.titleID+","+t.dom.titleElem+","+t.dom.revealElem+","+t.dom.contentID).stop(!0,!0);n(t.dom.revealID+","+t.dom.revealElem).hide();n(t.dom.wrapperID).find(t.dom.titleID+","+t.dom.titleElem).show().end().find(t.dom.contentID).show()}function l(){t.play=!0;t.paused=!1;h()}function a(i){c();switch(i){case"prev":t.position=t.position==0?e(t.newsArr)-2:t.position==1?e(t.newsArr)-1:t.position-2;n(t.dom.titleElem).html(t.newsArr["item-"+t.position].type);n(t.dom.contentID).html(t.newsArr["item-"+t.position].content);break;case"next":n(t.dom.titleElem).html(t.newsArr["item-"+t.position].type);n(t.dom.contentID).html(t.newsArr["item-"+t.position].content)}t.position==e(t.newsArr)-1?t.position=0:t.position++}var f=v(),t={position:0,time:0,distance:0,newsArr:{},play:!0,paused:!1,contentLoaded:!1,dom:{contentID:"#ticker-content-"+f,titleID:"#ticker-title-"+f,titleElem:"#ticker-title-"+f+" SPAN",tickerID:"#ticker-"+f,wrapperID:"#ticker-wrapper-"+f,revealID:"#ticker-swipe-"+f,revealElem:"#ticker-swipe-"+f+" SPAN",controlsID:"#ticker-controls-"+f,prevID:"#prev-"+f,nextID:"#next-"+f,playPauseID:"#play-pause-"+f}};if(u!="UL"&&u!="OL"&&i.htmlFeed===!0)return o("Cannot use <"+u.toLowerCase()+"> type of element for this plugin - must of type <ul> or <ol>"),!1;i.direction=i.direction=="rtl"?"right":"left";y()}))};n.fn.ticker.defaults={speed:.1,ajaxFeed:!1,feedUrl:"",feedType:"xml",displayType:"reveal",htmlFeed:!0,debugMode:!0,controls:!0,titleText:"Latest",direction:"ltr",pauseOnItems:3e3,fadeInSpeed:600,fadeOutSpeed:300}}(jQuery);var IJTwitter=function(){var n=this;n.twitterRetryCount=20;n.twitterRefreshResizeDelay=null;n.width=window.innerWidth;n.height=window.innerHeight;n.ReloadTwitter=function(){try{if(typeof twttr=="undefined"||typeof twttr.widgets=="undefined"){--n.twitterRetryCount>0&&window.setTimeout(n.ReloadTwitter,1e3);return}$("section.tweets > section.twitter-timeline").empty().each(function(){twttr.widgets.createTimeline("594060584213155840",this,null,{width:$(this).parent().width(),height:800,tweetLimit:7,chrome:"noborder noheader transparent"})});n.width=window.innerWidth;n.height=window.innerHeight}catch(t){}};n.init=function(){$(window).resize(function(){(window.innerWidth!=n.width||window.innerHeight!=n.height)&&(n.twitterRefreshResizeDelay&&window.clearTimeout(n.twitterRefreshResizeDelay),n.twitterRefreshResizeDelay=window.setTimeout(n.ReloadTwitter,300))});n.ReloadTwitter()}};$(document).ready(function(){(new IJTwitter).init()})