").css({width:"100%"}).appendTo(b).outerWidth();return b.remove(),100-c}if(!document.documentMode&&!window.StyleMedia&&!/Mobi/i.test(navigator.userAgent)){var c=this,d=k();if(b=a.extend({whiteSpace:"pre-wrap",lang:c.data("lang")},b),b.lang)var e=b.lang;else var e=c.closest('div[class^="markItUpSet"]').attr("class").replace("markItUpSet-","");var f=document.createElement("div");a(f).addClass("markItUpHighlight"),a(c).wrap(f);var g=document.createElement("pre");a(g).addClass("markItUpSyntax").appendTo(c.parent());var h=document.createElement("code");a(h).addClass(e).appendTo(a(g)),a(g).css("white-space",b.whiteSpace),c.css("white-space",b.whiteSpace),c.attr("spellcheck",!1),c[0].scrollHeight>c[0].clientHeight?a(h).css("right",d):a(h).css("right",0),i(c,h),c.on("input mouseup",function(){this.scrollHeight>this.clientHeight?a(h).css("right",d):a(h).css("right",0),i(this,h)}),c.scroll(function(){a(h).css({top:-c.scrollTop(),left:-c.scrollLeft()})})}}}(jQuery);
\ No newline at end of file
diff --git a/inc/jscripts/editor/markitup.min.css b/inc/jscripts/editor/markitup.min.css
new file mode 100644
index 0000000..effecb7
--- /dev/null
+++ b/inc/jscripts/editor/markitup.min.css
@@ -0,0 +1 @@
+.markItUp *{margin:0;padding:0;outline:0;box-sizing:border-box}.markItUpContainer{font:11px Verdana,Arial,Helvetica,sans-serif}.markItUpEditor{font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace;font-size:12px;padding:5px;width:100%;height:320px;clear:both;line-height:22px;overflow:auto;color:#000}.markItUpEditor.nowrap{white-space:nowrap}.markItUpFooter{width:100%}.markItUpResizeHandle{overflow:hidden;width:22px;height:5px;margin-left:auto;margin-right:auto;background-image:url(images/handle.png);cursor:n-resize}.markItUpHeader ul{margin-bottom:5px}.markItUpHeader ul li{list-style:none;display:inline-block;position:relative;margin:0 4px;vertical-align:middle}.markItUpHeader ul li:first-of-type{margin-left:0}.markItUpHeader ul li:hover>ul{display:block}.markItUpHeader ul .markItUpDropMenu{background:url(images/menu.png) 115% 50% no-repeat;margin-right:5px}.markItUpHeader ul .markItUpDropMenu li{margin-right:0}.markItUpHeader ul ul{display:none;position:absolute;top:18px;left:0;background:#FFF;border:1px solid #000}.markItUpHeader ul ul li{float:none;border-bottom:1px solid #000}.markItUpHeader ul ul .markItUpDropMenu{background:url(images/submenu.png) 100% 50% no-repeat #FFF}.markItUpHeader ul .markItUpSeparator{margin:0 10px;width:1px;height:16px;overflow:hidden;background-color:#CCC}.markItUpHeader ul ul .markItUpSeparator{width:auto;height:1px;margin:0}.markItUpHeader ul ul ul{position:absolute;top:-1px;left:150px}.markItUpHeader ul ul ul li{float:none}.markItUpHeader ul a{display:block;width:16px;height:16px;text-indent:-10000px;background-repeat:no-repeat;padding:3px;margin:0}.markItUpHeader ul ul a{display:block;text-indent:0;width:120px;padding:5px 5px 5px 25px;background-position:2px 50%}.markItUpHeader ul ul a:hover{color:#FFF;background-color:#000}
\ No newline at end of file
diff --git a/inc/jscripts/editor/markitup.min.js b/inc/jscripts/editor/markitup.min.js
new file mode 100644
index 0000000..ecdc88f
--- /dev/null
+++ b/inc/jscripts/editor/markitup.min.js
@@ -0,0 +1,27 @@
+// ----------------------------------------------------------------------------
+// markItUp! Universal MarkUp Engine, JQuery plugin
+// v 1.1.x
+// Dual licensed under the MIT and GPL licenses.
+// ----------------------------------------------------------------------------
+// Copyright (C) 2007-2012 Jay Salvat
+// http://markitup.jaysalvat.com/
+// ----------------------------------------------------------------------------
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+// ----------------------------------------------------------------------------
+!function($){$.fn.markItUp=function(settings,extraSettings){var method,params,options,ctrlKey,shiftKey,altKey;ctrlKey=shiftKey=altKey=!1,"string"==typeof settings&&(method=settings,params=extraSettings),options={id:"",nameSpace:"",root:"",previewHandler:!1,previewInWindow:"",previewInElement:"",previewAutoRefresh:!0,previewPosition:"after",previewTemplatePath:"~/templates/preview.html",previewParser:!1,previewParserPath:"",previewParserVar:"data",resizeHandle:!0,beforeInsert:"",afterInsert:"",onEnter:{},onShiftEnter:{},onCtrlEnter:{},onTab:{},markupSet:[{}]},$.extend(options,settings,extraSettings),options.root||$("script").each(function(a,b){miuScript=$(b).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/),null!==miuScript&&(options.root=miuScript[1])});var uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},matched=uaMatch(navigator.userAgent),browser={};return matched.browser&&(browser[matched.browser]=!0,browser.version=matched.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0),this.each(function(){function localize(a,b){return b?a.replace(/("|')~\//g,"$1"+options.root):a.replace(/^~\//,options.root)}function init(){id="",nameSpace="",options.id?id='id="'+options.id+'"':$$.attr("id")&&(id='id="markItUp'+$$.attr("id").substr(0,1).toUpperCase()+$$.attr("id").substr(1)+'"'),options.nameSpace&&(nameSpace='class="'+options.nameSpace+'"'),$$.wrap("
"),$$.wrap("
'),$$.wrap('
'),$$.addClass("markItUpEditor"),header=$('').insertBefore($$),$(dropMenus(options.markupSet)).appendTo(header),footer=$('').insertAfter($$),!0===options.resizeHandle&&!0!==browser.safari&&(resizeHandle=$('
').insertAfter($$).bind("mousedown.markItUp",function(a){var d,e,b=$$.height(),c=a.clientY;d=function(a){return $$.css("height",Math.max(20,a.clientY+b-c)+"px"),!1},e=function(a){return $("html").unbind("mousemove.markItUp",d).unbind("mouseup.markItUp",e),!1},$("html").bind("mousemove.markItUp",d).bind("mouseup.markItUp",e)}),footer.append(resizeHandle)),$$.bind("keydown.markItUp",keyPressed).bind("keyup",keyPressed),$$.bind("insertion.markItUp",function(a,b){!1!==b.target&&get(),textarea===$.markItUp.focused&&markup(b)}),$$.bind("focus.markItUp",function(){$.markItUp.focused=this}),options.previewInElement&&refreshPreview()}function dropMenus(markupSet){var ul=$("
"),i=0;return $("li:hover > ul",ul).css("display","block"),$.each(markupSet,function(){var button=this,t="",title,li,j;if(title=button.key?(button.name||"")+" [Ctrl+"+button.key+"]":button.name||"",key=button.key?'accesskey="'+button.key+'"':"",button.separator)li=$('
'+(button.separator||"")+"").appendTo(ul);else{for(i++,j=levels.length-1;j>=0;j--)t+=levels[j]+"-";li=$('
'+(button.name||"")+"").bind("contextmenu.markItUp",function(){return!1}).bind("click.markItUp",function(a){a.preventDefault()}).bind("focusin.markItUp",function(){$$.focus()}).bind("mouseup",function(){return button.call&&eval(button.call)(),setTimeout(function(){markup(button)},1),!1}).bind("mouseenter.markItUp",function(){$("> ul",this).show(),$(document).one("click",function(){$("ul ul",header).hide()})}).bind("mouseleave.markItUp",function(){$("> ul",this).hide()}).appendTo(ul),button.dropMenu&&(levels.push(i),$(li).addClass("markItUpDropMenu").append(dropMenus(button.dropMenu)))}}),levels.pop(),ul}function magicMarkups(a){return a?(a=a.toString(),a=a.replace(/\(\!\(([\s\S]*?)\)\!\)/g,function(a,b){var c=b.split("|!|");return!0===altKey?void 0!==c[1]?c[1]:c[0]:void 0===c[1]?"":c[0]}),a=a.replace(/\[\!\[([\s\S]*?)\]\!\]/g,function(a,b){var c=b.split(":!:");return!0!==abort&&(value=prompt(c[0],c[1]?c[1]:""),null===value&&(abort=!0),value)})):""}function prepare(a){return $.isFunction(a)&&(a=a(hash)),magicMarkups(a)}function build(a){var b=prepare(clicked.openWith),c=prepare(clicked.placeHolder),d=prepare(clicked.replaceWith),e=prepare(clicked.closeWith),f=prepare(clicked.openBlockWith),g=prepare(clicked.closeBlockWith),h=clicked.multiline;if(""!==d)block=b+d+e;else if(""===selection&&""!==c)block=b+c+e;else{a=a||selection;var i=[a],j=[];!0===h&&(i=a.split(/\r?\n/));for(var k=0;k
=9.5&&0==b)return!1;range=textarea.createTextRange(),range.collapse(!0),range.moveStart("character",a),range.moveEnd("character",b),range.select()}else textarea.setSelectionRange&&textarea.setSelectionRange(a,a+b);textarea.scrollTop=scrollPosition,textarea.focus()}function get(){if(textarea.focus(),scrollPosition=textarea.scrollTop,document.selection)if(selection=document.selection.createRange().text,browser.msie){var a=document.selection.createRange(),b=a.duplicate();for(b.moveToElementText(textarea),caretPosition=-1;b.inRange(a);)b.moveStart("character"),caretPosition++}else caretPosition=textarea.selectionStart;else caretPosition=textarea.selectionStart,selection=textarea.value.substring(caretPosition,textarea.selectionEnd);return selection}function preview(){"function"==typeof options.previewHandler?previewWindow=!0:options.previewInElement?previewWindow=$(options.previewInElement):!previewWindow||previewWindow.closed?options.previewInWindow?(previewWindow=window.open("","preview",options.previewInWindow),$(window).unload(function(){previewWindow.close()})):(iFrame=$(''),"after"==options.previewPosition?iFrame.insertAfter(footer):iFrame.insertBefore(header),previewWindow=iFrame[iFrame.length-1].contentWindow||frame[iFrame.length-1]):!0===altKey&&(iFrame?iFrame.remove():previewWindow.close(),previewWindow=iFrame=!1),options.previewAutoRefresh||refreshPreview(),options.previewInWindow&&previewWindow.focus()}function refreshPreview(){renderPreview()}function renderPreview(){if(options.previewHandler&&"function"==typeof options.previewHandler)options.previewHandler($$.val());else if(options.previewParser&&"function"==typeof options.previewParser){var b=options.previewParser($$.val());writeInPreview(localize(b,1))}else""!==options.previewParserPath?$.ajax({type:"POST",dataType:"text",global:!1,url:options.previewParserPath,data:options.previewParserVar+"="+encodeURIComponent($$.val()),success:function(a){writeInPreview(localize(a,1))}}):template||$.ajax({url:options.previewTemplatePath,dataType:"text",global:!1,success:function(a){writeInPreview(localize(a,1).replace(//g,$$.val()))}});return!1}function writeInPreview(a){if(options.previewInElement)$(options.previewInElement).html(a);else if(previewWindow&&previewWindow.document){try{sp=previewWindow.document.documentElement.scrollTop}catch(a){sp=0}previewWindow.document.open(),previewWindow.document.write(a),previewWindow.document.close(),previewWindow.document.documentElement.scrollTop=sp}}function keyPressed(a){if(shiftKey=a.shiftKey,altKey=a.altKey,ctrlKey=(!a.altKey||!a.ctrlKey)&&(a.ctrlKey||a.metaKey),"keydown"===a.type){if(!0===ctrlKey&&(li=$('a[accesskey="'+(13==a.keyCode?"\\n":String.fromCharCode(a.keyCode))+'"]',header).parent("li"),0!==li.length))return ctrlKey=!1,setTimeout(function(){li.triggerHandler("mouseup")},1),!1;if(13===a.keyCode||10===a.keyCode)return!0===ctrlKey?(ctrlKey=!1,markup(options.onCtrlEnter),options.onCtrlEnter.keepDefault):!0===shiftKey?(shiftKey=!1,markup(options.onShiftEnter),options.onShiftEnter.keepDefault):(markup(options.onEnter),options.onEnter.keepDefault);if(9===a.keyCode)return 1!=shiftKey&&1!=ctrlKey&&1!=altKey&&(-1!==caretOffset?(get(),caretOffset=$$.val().length-caretOffset,set(caretOffset,0),caretOffset=-1,!1):(markup(options.onTab),options.onTab.keepDefault))}}function remove(){$$.unbind(".markItUp").removeClass("markItUpEditor"),$$.parent("div").closest("div.markItUp").parent("div").replaceWith($$),$$.data("markItUp",null)}var $$,textarea,levels,scrollPosition,caretPosition,caretOffset,clicked,hash,header,footer,previewWindow,template,iFrame,abort;if($$=$(this),textarea=this,levels=[],abort=!1,scrollPosition=caretPosition=0,caretOffset=-1,options.previewParserPath=localize(options.previewParserPath),options.previewTemplatePath=localize(options.previewTemplatePath),method)switch(method){case"remove":remove();break;case"insert":markup(params);break;default:$.error("Method "+method+" does not exist on jQuery.markItUp")}else init()})},$.fn.markItUpRemove=function(){return this.each(function(){$(this).markItUp("remove")})},$.markItUp=function(a){var b={target:!1};if($.extend(b,a),b.target)return $(b.target).each(function(){$(this).focus(),$(this).trigger("insertion",[b])});$("textarea").trigger("insertion",[b])}}(jQuery);
diff --git a/inc/jscripts/editor/sets/html/set.min.css b/inc/jscripts/editor/sets/html/set.min.css
new file mode 100644
index 0000000..213d13a
--- /dev/null
+++ b/inc/jscripts/editor/sets/html/set.min.css
@@ -0,0 +1 @@
+.markItUpSet-html .markItUpButton1 a{background-image:url(../../images/h1.png)}.markItUpSet-html .markItUpButton2 a{background-image:url(../../images/h2.png)}.markItUpSet-html .markItUpButton3 a{background-image:url(../../images/h3.png)}.markItUpSet-html .markItUpButton4 a{background-image:url(../../images/paragraph.png)}.markItUpSet-html .markItUpButton5 a{background-image:url(../../images/bold.png)}.markItUpSet-html .markItUpButton6 a{background-image:url(../../images/italic.png)}.markItUpSet-html .markItUpButton7 a{background-image:url(../../images/stroke.png)}.markItUpSet-html .markItUpButton8 a{background-image:url(../../images/list-bullet.png)}.markItUpSet-html .markItUpButton9 a{background-image:url(../../images/list-numeric.png)}.markItUpSet-html .markItUpButton10 a{background-image:url(../../images/list-item.png)}.markItUpSet-html .markItUpButton11 a{background-image:url(../../images/picture.png)}.markItUpSet-html .markItUpButton12 a{background-image:url(../../images/link.png)}.markItUpSet-html .markItUpButton13 a{background-image:url(../../images/clean.png)}
\ No newline at end of file
diff --git a/inc/jscripts/editor/sets/html/set.min.js b/inc/jscripts/editor/sets/html/set.min.js
new file mode 100644
index 0000000..a724158
--- /dev/null
+++ b/inc/jscripts/editor/sets/html/set.min.js
@@ -0,0 +1 @@
+var markItUp_html={nameSpace:"markItUpSet-html",onShiftEnter:{keepDefault:!1,replaceWith:"
\n"},onCtrlEnter:{keepDefault:!1,openWith:"\n",closeWith:"
"},onTab:{keepDefault:!1,replaceWith:" "},markupSet:[{key:"1",openWith:'',closeWith:"
"},{key:"2",openWith:'',closeWith:"
"},{key:"3",openWith:'',closeWith:"
"},{openWith:'',closeWith:"
"},{separator:"---------------"},{key:"B",openWith:"(!(|!|)!)",closeWith:"(!(|!|)!)"},{key:"I",openWith:"(!(|!|)!)",closeWith:"(!(|!|)!)"},{key:"S",openWith:"",closeWith:""},{separator:"---------------"},{openWith:" ",closeWith:"",multiline:!0,openBlockWith:""},{openWith:" ",closeWith:"",multiline:!0,openBlockWith:"\n",closeBlockWith:"\n
"},{openWith:"",closeWith:""},{separator:"---------------"},{key:"P",replaceWith:'
'},{key:"L",openWith:'[![Name]!]',closeWith:""},{separator:"---------------"},{className:"clean",replaceWith:function(a){return a.selection.replace(/<(.*?)>/g,"")}}],afterInsert:function(a){$(a.textarea).trigger("input")}};
\ No newline at end of file
diff --git a/inc/jscripts/editor/sets/markdown/set.min.css b/inc/jscripts/editor/sets/markdown/set.min.css
new file mode 100644
index 0000000..d327539
--- /dev/null
+++ b/inc/jscripts/editor/sets/markdown/set.min.css
@@ -0,0 +1 @@
+.markItUpSet-markdown .markItUpButton1 a{background-image:url(../../images/h1.png)}.markItUpSet-markdown .markItUpButton2 a{background-image:url(../../images/h2.png)}.markItUpSet-markdown .markItUpButton3 a{background-image:url(../../images/h3.png)}.markItUpSet-markdown .markItUpButton4 a{background-image:url(../../images/bold.png)}.markItUpSet-markdown .markItUpButton5 a{background-image:url(../../images/italic.png)}.markItUpSet-markdown .markItUpButton6 a{background-image:url(../../images/list-bullet.png)}.markItUpSet-markdown .markItUpButton7 a{background-image:url(../../images/list-numeric.png)}.markItUpSet-markdown .markItUpButton8 a{background-image:url(../../images/picture.png)}.markItUpSet-markdown .markItUpButton9 a{background-image:url(../../images/link.png)}.markItUpSet-markdown .markItUpButton10 a{background-image:url(../../images/quotes.png)}.markItUpSet-markdown .markItUpButton11 a{background-image:url(../../images/code.png)}
\ No newline at end of file
diff --git a/inc/jscripts/editor/sets/markdown/set.min.js b/inc/jscripts/editor/sets/markdown/set.min.js
new file mode 100644
index 0000000..8a057b5
--- /dev/null
+++ b/inc/jscripts/editor/sets/markdown/set.min.js
@@ -0,0 +1 @@
+var markItUp_markdown={nameSpace:"markItUpSet-markdown",onShiftEnter:{keepDefault:!1,openWith:"\n\n"},onTab:{keepDefault:!1,replaceWith:" "},markupSet:[{key:"1",placeHolder:"H1",closeWith:function(a){return miu.markdownTitle(a,"=")}},{key:"2",placeHolder:"H2",closeWith:function(a){return miu.markdownTitle(a,"-")}},{openWith:"### ",placeHolder:"H3"},{separator:"---------------"},{key:"B",openWith:"**",closeWith:"**"},{key:"I",openWith:"_",closeWith:"_"},{separator:"---------------"},{openWith:"- "},{openWith:function(a){return a.line+". "}},{separator:"---------------"},{key:"P",replaceWith:"![[![Alternative text]!]]([![Url:!:http://]!])"},{key:"L",openWith:"[[![Name]!]",closeWith:"]([![Url:!:http://]!])"},{separator:"---------------"},{openWith:"> "},{openWith:"(!(\t|!|`)!)",closeWith:"(!(`)!)"}],afterInsert:function(a){$(a.textarea).trigger("input")}},miu={markdownTitle:function(a,b){for(heading="",n=$.trim(a.selection||a.placeHolder).length,i=0;it){var c=i-t,f=p(this).top;if(ld&&a.pageY>f+i-c)return}void 0===e.oldDisplay&&(e.oldDisplay=e.style.display),e.style.display="none",l'+d+''+f+'
'+c+'
')}b(h).each(function(i){b(this).on("click",function(j){j.preventDefault();g.updatePictureInLightbox(b(this),h,i);b("#bootstrap-media-lightbox").modal("show")})})};a.prototype.updatePictureInLightbox=function(f,i,d){var e=this;if(this.options.gallery===false||i.size()<2){b("#bootstrap-media-lightbox-backward").hide();b("#bootstrap-media-lightbox-forward").hide()}else{if(d==0){b("#bootstrap-media-lightbox-backward").hide();b("#bootstrap-media-lightbox-forward").show()}else{if(d==i.size()-1){b("#bootstrap-media-lightbox-backward").show();b("#bootstrap-media-lightbox-forward").hide()}else{b("#bootstrap-media-lightbox-backward").show();b("#bootstrap-media-lightbox-forward").show()}}}var g=f.attr("href");var c=["png","jpg","jpeg","bmp"];var h=g.split(".").pop().toLowerCase();if(f.data("target")!==undefined){}if(b.inArray(h,c)>-1){this.addImage(g)}else{if(g.substr(0,22)=="http://www.youtube.com"){this.addYoutubeVideo(g)}else{if(g.substr(0,16)=="http://vimeo.com"){this.addVimeoVideo(g)}else{if(g.substr(0,4)=="http"){this.addIframe(g)}}}}this.addCaption(f);b("#bootstrap-media-lightbox-forward").unbind("click");b("#bootstrap-media-lightbox-forward").click(function(){e.updatePictureInLightbox(i.eq(d+1),i,d+1)});b("#bootstrap-media-lightbox-backward").unbind("click");b("#bootstrap-media-lightbox-backward").click(function(){e.updatePictureInLightbox(i.eq(d-1),i,d-1)});b("#bootstrap-media-lightbox-close").click(function(){b("#bootstrap-media-lightbox-iframe").attr("src","")})};a.prototype.addImage=function(e){var d=this;var c=new Image();c.onload=function(){if(d.options.width===undefined&&d.options.height===undefined){d.contentWidth=c.width;d.contentHeight=c.height}else{if(d.options.width===undefined){d.contentWidth=d.options.height/c.height*c.width;d.contentHeight=d.options.height}else{if(d.options.height===undefined){d.contentHeight=d.options.width/c.width*c.height;d.contentWidth=d.options.width}}}d.validateSize();var f=b("#bootstrap-media-lightbox-content-container");f.html('
');d.setMargins(f)};c.src=e};a.prototype.addIframe=function(d){if(this.options.width===undefined&&this.options.height===undefined){this.contentWidth=420;this.contentHeight=315}else{if(this.options.width===undefined){this.contentWidth=420/(315/this.options.height);this.contentHeight=this.options.height}else{if(this.options.height===undefined){this.contentHeight=315/(420/this.options.width);this.contentWidth=this.options.width}}}var e=b("#bootstrap-media-lightbox-content-container");var c='
';this.setMargins(e);e.html(c)};a.prototype.addYoutubeVideo=function(e){if(this.options.width===undefined&&this.options.height===undefined){this.contentWidth=420;this.contentHeight=315}else{if(this.options.width===undefined){this.contentWidth=420/(315/this.options.height);this.contentHeight=this.options.height}else{if(this.options.height===undefined){this.contentHeight=315/(420/this.options.width);this.contentWidth=this.options.width}}}this.validateSize();var f=b("#bootstrap-media-lightbox-content-container");var d=e.substr(31);var c='
';f.html(c);this.setMargins(f)};a.prototype.addVimeoVideo=function(e){if(this.options.width===undefined&&this.options.height===undefined){this.contentWidth=420;this.contentHeight=315}else{if(this.options.width===undefined){this.contentWidth=420/(315/this.options.height);this.contentHeight=this.options.height}else{if(this.options.height===undefined){this.contentHeight=315/(420/this.options.width);this.contentWidth=this.options.width}}}this.validateSize();var f=b("#bootstrap-media-lightbox-content-container");var d=e.substr(17);var c='
';f.html(c);this.setMargins(f)};a.prototype.addCaption=function(d){var c=d.attr("title");if(c!==""&&c!==undefined&&this.options.caption===true){b("#bootstrap-media-lightbox-caption-container").show();b("#bootstrap-media-lightbox-caption").text(c)}else{b("#bootstrap-media-lightbox-caption-container").hide()}};a.prototype.getFontSet=function(){var c=b('
');if(c.css("font-family")==="FontAwesome"){return"fa"}return"glyphicon"};a.prototype.validateSize=function(e){var g=b(window).height();var d=b(window).width();if(this.contentWidth+50>d){var c=this.contentWidth;this.contentWidth=d-50;this.contentHeight=this.contentHeight*this.contentWidth/c}if(this.contentHeight+80>g){var f=this.contentHeight;this.contentHeight=g-80;this.contentWidth=this.contentWidth*this.contentHeight/f}};a.prototype.setMargins=function(c){var e=b(window).height();var d=b(window).width();c.css({"margin-top":(e-50-this.contentHeight)/2});c.css({"margin-left":(d-this.contentWidth)/2})};b.fn.lightbox=function(c){new a(b(this),c)};b(".lightbox").lightbox()})(jQuery);
\ No newline at end of file
diff --git a/inc/jscripts/tinynav.min.js b/inc/jscripts/tinynav.min.js
new file mode 100644
index 0000000..74a0405
--- /dev/null
+++ b/inc/jscripts/tinynav.min.js
@@ -0,0 +1,3 @@
+/*! http://tinynav.viljamis.com v1.2 by @viljamis */
+(function(a,k,g){a.fn.tinyNav=function(l){var c=a.extend({active:"selected",header:"",indent:"- ",label:""},l);return this.each(function(){g++;var h=a(this),b="tinynav"+g,f=".l_"+b,e=a("
").attr("id",b).addClass("tinynav "+b);if(h.is("ul,ol")){""!==c.header&&e.append(a("