function filterInputLinks(e,t){var n=$(e).attr("href"),r="https://docs.google.com/viewer?url=";if(!n){n=$(e).attr("src")}if(n&&n.startsWith(r)){this.doesMatchType=function(e,t){return t.indexOf("."+e+"?X-Amz-Content-")>=0||t.indexOf("."+e+"%3FX-Amz-Content-")>=0||t.indexOf("."+e+"%3Fresponse-content-type%3Dapplication%252Foctet-stream")>=0},this.cleanURL=function(){var e=n.replace(r,"");return e=e.replace("&embedded=true",""),decodeURIComponent(e)},this.doesMatchModule=function(){var e=window.location.pathname.split("/")[1];for(i in shadow_box_gv_ignore.modules)if(1!=shadow_box_gv_ignore.modules[i].indexOf(e))return!0},this.doesMatchTenant=function(){return-1!=shadow_box_gv_ignore.tenants.indexOf(shadow_box_gv_ignore.tenant_id)};for(it in shadow_box_gv_ignore.ext)if(this.doesMatchModule()&&this.doesMatchTenant()&&this.doesMatchType(shadow_box_gv_ignore.ext[it],n))return void $(e).attr("href",this.cleanURL()).attr("src",this.cleanURL())}}!function(e,t){var n={version:"3.0.3"},i=navigator.userAgent.toLowerCase();i.indexOf("windows")>-1||i.indexOf("win32")>-1?n.isWindows=!0:i.indexOf("macintosh")>-1||i.indexOf("mac os x")>-1?n.isMac=!0:i.indexOf("linux")>-1&&(n.isLinux=!0),n.isIE=i.indexOf("msie")>-1,n.isIE6=i.indexOf("msie 6")>-1,n.isIE7=i.indexOf("msie 7")>-1,n.isGecko=i.indexOf("gecko")>-1&&-1==i.indexOf("safari"),n.isWebKit=i.indexOf("applewebkit/")>-1;var r,o,a=/#(.+)$/,s=/^(light|shadow)box\[(.*?)\]/i,l=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,u=/[0-9a-z]+$/i,c=/(.+\/)shadowbox\.js/i,d=!1,f=!1,p={},h=0;function m(e){n.options.enableKeys&&(e?H:z)(document,"keydown",v)}function v(e){if(!(e.metaKey||e.shiftKey||e.altKey||e.ctrlKey)){var t,i;switch((i=e).which?i.which:i.keyCode){case 81:case 88:case 27:t=n.close;break;case 37:t=n.previous;break;case 39:t=n.next;break;case 32:t="number"==typeof o?n.pause:n.play}t&&(N(e),t())}}function y(e){m(!1);var t=n.getCurrent(),i="inline"==t.player?"html":t.player;if("function"!=typeof n[i])throw"unknown player "+i;if(e&&(n.player.remove(),n.revertOptions(),n.applyOptions(t.options||{})),n.player=new n[i](t,n.playerId),n.gallery.length>1){var r=n.gallery[n.current+1]||n.gallery[0];if("img"==r.player)(new Image).src=r.content;var o=n.gallery[n.current-1]||n.gallery[n.gallery.length-1];if("img"==o.player)(new Image).src=o.content}n.skin.onLoad(e,g)}function g(){if(d)if(void 0!==n.player.ready)var e=setInterval(function(){d?n.player.ready&&(clearInterval(e),e=null,n.skin.onReady(b)):(clearInterval(e),e=null)},10);else n.skin.onReady(b)}function b(){d&&(n.player.append(n.skin.body,n.dimensions),n.skin.onShow(w))}function w(){d&&(n.player.onLoad&&n.player.onLoad(),n.options.onFinish(n.getCurrent()),n.isPaused()||n.play(),m(!0))}function x(){return(new Date).getTime()}function T(e,t){for(var n in t)e[n]=t[n];return e}function k(e,t){for(var n=0,i=e.length,r=e[0];n<i&&!1!==t.call(r,n,r);r=e[++n]);}function C(e,t){return e.replace(/\{(\w+?)\}/g,function(e,n){return t[n]})}function E(){}function O(e){return document.getElementById(e)}function S(e){e.parentNode.removeChild(e)}n.current=-1,n.dimensions=null,n.ease=function(e){return 1+Math.pow(e-1,3)},n.errorInfo={fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}},n.gallery=[],n.onReady=E,n.path=null,n.player=null,n.playerId="sb-player",n.options={animate:!0,animateFade:!0,autoplayMovies:!0,continuous:!1,enableKeys:!0,flashParams:{bgcolor:"#000000",allowfullscreen:!0},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",onChange:E,onClose:E,onFinish:E,onOpen:E,showMovieControls:!0,skipSetup:!1,slideshowDelay:0,viewportPadding:20},n.getCurrent=function(){return n.current>-1?n.gallery[n.current]:null},n.hasNext=function(){return n.gallery.length>1&&(n.current!=n.gallery.length-1||n.options.continuous)},n.isOpen=function(){return d},n.isPaused=function(){return"pause"==o},n.applyOptions=function(e){p=T({},n.options),T(n.options,e)},n.revertOptions=function(){T(n.options,p)},n.init=function(t,i){if(!f){if(f=!0,n.skin.options&&T(n.options,n.skin.options),t&&T(n.options,t),!n.path)for(var r,o=document.getElementsByTagName("script"),a=0,s=o.length;a<s;++a)if(r=c.exec(o[a].src)){n.path=r[1];break}i&&(n.onReady=i),function(){if("complete"===document.readyState)return n.load();if(document.addEventListener)document.addEventListener("DOMContentLoaded",F,!1),e.addEventListener("load",n.load,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",F),e.attachEvent("onload",n.load);var t=!1;try{t=null===e.frameElement}catch(e){}document.documentElement.doScroll&&t&&_()}}()}},n.open=function(e){if(!d){var t=n.makeGallery(e);if(n.gallery=t[0],n.current=t[1],null!=(e=n.getCurrent())&&(n.applyOptions(e.options||{}),function(){for(var e,t,i,r,o,s,l,u,c=n.errorInfo,d=n.plugins,f=0;f<n.gallery.length;++f){switch(e=n.gallery[f],t=!1,i=null,e.player){case"flv":case"swf":d.fla||(i="fla");break;case"qt":d.qt||(i="qt");break;case"wmp":n.isMac?d.qt&&d.f4m?e.player="qt":i="qtf4m":d.wmp||(i="wmp");break;case"qtwmp":d.qt?e.player="qt":d.wmp?e.player="wmp":i="qtwmp"}if(i)if("link"==n.options.handleUnsupported){switch(i){case"qtf4m":o="shared",s=[c.qt.url,c.qt.name,c.f4m.url,c.f4m.name];break;case"qtwmp":o="either",s=[c.qt.url,c.qt.name,c.wmp.url,c.wmp.name];break;default:o="single",s=[c[i].url,c[i].name]}e.player="html",e.content='<div class="sb-message">'+C(n.lang.errors[o],s)+"</div>"}else t=!0;else"inline"==e.player?(r=a.exec(e.content))&&(l=O(r[1]))?e.content=l.innerHTML:t=!0:"swf"!=e.player&&"flv"!=e.player||(u=e.options&&e.options.flashVersion||n.options.flashVersion,n.flash&&!n.flash.hasFlashPlayerVersion(u)&&(e.width=310,e.height=177));t&&(n.gallery.splice(f,1),f<n.current?--n.current:f==n.current&&(n.current=f>0?f-1:f),--f)}}(),n.gallery.length)){if(e=n.getCurrent(),!1===n.options.onOpen(e))return;d=!0,n.skin.onOpen(e,y)}}},n.close=function(){d&&(d=!1,n.player&&(n.player.remove(),n.player=null),"number"==typeof o&&(clearTimeout(o),o=null),h=0,m(!1),n.options.onClose(n.getCurrent()),n.skin.onClose(),n.revertOptions())},n.play=function(){n.hasNext()&&(h||(h=1e3*n.options.slideshowDelay),h&&(r=x(),o=setTimeout(function(){h=r=0,n.next()},h),n.skin.onPlay&&n.skin.onPlay()))},n.pause=function(){"number"==typeof o&&(h=Math.max(0,h-(x()-r)))&&(clearTimeout(o),o="pause",n.skin.onPause&&n.skin.onPause())},n.change=function(e){if(!(e in n.gallery)){if(!n.options.continuous)return;if(!((e=e<0?n.gallery.length+e:0)in n.gallery))return}n.current=e,"number"==typeof o&&(clearTimeout(o),o=null,h=r=0),n.options.onChange(n.getCurrent()),y(!0)},n.next=function(){n.change(n.current+1)},n.previous=function(){n.change(n.current-1)},n.setDimensions=function(e,t,i,r,o,a,s,l){var u=e,c=t,d=2*s+o;e+d>i&&(e=i-d);var f=2*s+a;t+f>r&&(t=r-f);var p=(u-e)/u,h=(c-t)/c,m=p>0||h>0;return l&&m&&(p>h?t=Math.round(c/u*e):h>p&&(e=Math.round(u/c*t))),n.dimensions={height:e+o,width:t+a,innerHeight:e,innerWidth:t,top:Math.floor((i-(e+d))/2+s),left:Math.floor((r-(t+f))/2+s),oversized:m},n.dimensions},n.makeGallery=function(e){var t=[],i=-1;if("string"==typeof e&&(e=[e]),"number"==typeof e.length)k(e,function(e,n){n.content?t[e]=n:t[e]={content:n}}),i=0;else{if(e.tagName){var r=n.getCache(e);e=r||n.makeObject(e)}if(e.gallery){var o;t=[];for(var a in n.cache)(o=n.cache[a]).gallery&&o.gallery==e.gallery&&(-1==i&&o.content==e.content&&(i=t.length),t.push(o));-1==i&&(t.unshift(e),i=0)}else t=[e],i=0}return k(t,function(e,n){t[e]=T({},n)}),[t,i]},n.makeObject=function(e,t){var i={content:e.href,title:e.getAttribute("title")||"",link:e};t?(t=T({},t),k(["player","title","height","width","gallery"],function(e,n){void 0!==t[n]&&(i[n]=t[n],delete t[n])}),i.options=t):i.options={},i.player||(i.player=n.getPlayer(i.content));var r=e.getAttribute("rel");if(r){var o=r.match(s);o&&(i.gallery=escape(o[2])),k(r.split(";"),function(e,t){(o=t.match(l))&&(i[o[1]]=o[2])})}return i},n.getPlayer=function(e){if(e.indexOf("#")>-1&&0==e.indexOf(document.location.href))return"inline";var t=e.indexOf("?");t>-1&&(e=e.substring(0,t));var i,r=e.match(u);if(r&&(i=r[0].toLowerCase()),i){if(n.img&&n.img.ext.indexOf(i)>-1)return"img";if(n.swf&&n.swf.ext.indexOf(i)>-1)return"swf";if(n.flv&&n.flv.ext.indexOf(i)>-1)return"flv";if(n.qt&&n.qt.ext.indexOf(i)>-1)return n.wmp&&n.wmp.ext.indexOf(i)>-1?"qtwmp":"qt";if(n.wmp&&n.wmp.ext.indexOf(i)>-1)return"wmp"}return"iframe"},Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n=this.length>>>0;for((t=t||0)<0&&(t+=n);t<n;++t)if(t in this&&this[t]===e)return t;return-1});var I,L,M=!0,D=!0;function A(e){return[e.pageX||e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft),e.pageY||e.clientY+(document.documentElement.scrollTop||document.body.scrollTop)]}function N(e){e.preventDefault()}function H(t,n,i){if(t.addEventListener)t.addEventListener(n,i,!1);else{if(3===t.nodeType||8===t.nodeType)return;t.setInterval&&t!==e&&!t.frameElement&&(t=e),i.__guid||(i.__guid=H.guid++),t.events||(t.events={});var r=t.events[n];r||(r=t.events[n]={},t["on"+n]&&(r[0]=t["on"+n])),r[i.__guid]=i,t["on"+n]=H.handleEvent}}function z(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.events&&e.events[t]&&delete e.events[t][n.__guid]}n.getStyle=(I=/opacity=([^)]*)/,L=document.defaultView&&document.defaultView.getComputedStyle,function(e,t){var n;if(!M&&"opacity"==t&&e.currentStyle)return""==(n=I.test(e.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"")?"1":n;if(L){var i=L(e,null);i&&(n=i[t]),"opacity"==t&&""==n&&(n="1")}else n=e.currentStyle[t];return n}),n.appendHTML=function(e,t){if(e.insertAdjacentHTML)e.insertAdjacentHTML("BeforeEnd",t);else if(e.lastChild){var n=e.ownerDocument.createRange();n.setStartAfter(e.lastChild);var i=n.createContextualFragment(t);e.appendChild(i)}else e.innerHTML=t},n.getWindowSize=function(e){return"CSS1Compat"===document.compatMode?document.documentElement["client"+e]:document.body["client"+e]},n.setOpacity=function(e,t){var n=e.style;M?n.opacity=1==t?"":t:(n.zoom=1,1==t?"string"==typeof n.filter&&/alpha/i.test(n.filter)&&(n.filter=n.filter.replace(/\s*[\w\.]*alpha\([^\)]*\);?/gi,"")):n.filter=(n.filter||"").replace(/\s*[\w\.]*alpha\([^\)]*\)/gi,"")+" alpha(opacity="+100*t+")")},n.clearOpacity=function(e){n.setOpacity(e,1)},H.guid=1,H.handleEvent=function(t){var n=!0;t=t||H.fixEvent(((this.ownerDocument||this.document||this).parentWindow||e).event);var i=this.events[t.type];for(var r in i)this.__handleEvent=i[r],!1===this.__handleEvent(t)&&(n=!1);return n},H.preventDefault=function(){this.returnValue=!1},H.stopPropagation=function(){this.cancelBubble=!0},H.fixEvent=function(e){return e.preventDefault=H.preventDefault,e.stopPropagation=H.stopPropagation,e};var F,P=!1;function _(){if(!P){try{document.documentElement.doScroll("left")}catch(e){return void setTimeout(_,1)}n.load()}}if(document.addEventListener?F=function(){document.removeEventListener("DOMContentLoaded",F,!1),n.load()}:document.attachEvent&&(F=function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",F),n.load())}),n.load=function(){if(!P){if(!document.body)return setTimeout(n.load,13);var e,t;P=!0,e=document.body,t=document.createElement("div"),M="string"==typeof t.style.opacity,t.style.position="fixed",t.style.margin=0,t.style.top="20px",e.appendChild(t,e.firstChild),D=20==t.offsetTop,e.removeChild(t),n.onReady(),n.options.skipSetup||n.setup(),n.skin.init()}},n.plugins={},navigator.plugins&&navigator.plugins.length){var q=[];k(navigator.plugins,function(e,t){q.push(t.name)});var W=(q=q.join(",")).indexOf("Flip4Mac")>-1;n.plugins={fla:q.indexOf("Shockwave Flash")>-1,qt:q.indexOf("QuickTime")>-1,wmp:!W&&q.indexOf("Windows Media")>-1,f4m:W}}else{var R=function(e){var t;try{t=new ActiveXObject(e)}catch(e){}return!!t};n.plugins={fla:R("ShockwaveFlash.ShockwaveFlash"),qt:R("QuickTime.QuickTime"),wmp:R("wmplayer.ocx"),f4m:!1}}var B=/^(light|shadow)box/i,j="shadowboxCacheKey",G=1;function V(e){n.open(this),n.gallery.length&&N(e)}n.cache={},n.select=function(e){var t=[];if(e){var i=e.length;if(i)if("string"==typeof e)n.find&&(t=n.find(e));else if(2==i&&"string"==typeof e[0]&&e[1].nodeType)n.find&&(t=n.find(e[0],e[1]));else for(var r=0;r<i;++r)t[r]=e[r];else t.push(e)}else{var o;k(document.getElementsByTagName("a"),function(e,n){(o=n.getAttribute("rel"))&&B.test(o)&&t.push(n)})}return t},n.setup=function(e,t){filterInputLinks(e,t),k(n.select(e),function(e,i){n.addCache(i,t)})},n.teardown=function(e){k(n.select(e),function(e,t){n.removeCache(t)})},n.addCache=function(e,i){var r=e[j];r==t&&(r=G++,e[j]=r,H(e,"click",V)),n.cache[r]=n.makeObject(e,i)},n.removeCache=function(e){z(e,"click",V),delete n.cache[e[j]],e[j]=null},n.getCache=function(e){var t=e[j];return t in n.cache&&n.cache[t]},n.clearCache=function(){for(var e in n.cache)n.removeCache(n.cache[e].link);n.cache={}},n.find=function(){var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,n=0,i=Object.prototype.toString,r=!1,o=!0;[0,0].sort(function(){return o=!1,0});var a=function(t,n,r,o){r=r||[];var u=n=n||document;if(1!==n.nodeType&&9!==n.nodeType)return[];if(!t||"string"!=typeof t)return r;for(var c,d,f,h,m=[],b=!0,w=y(n),x=t;null!==(e.exec(""),c=e.exec(x));)if(x=c[3],m.push(c[1]),c[2]){h=c[3];break}if(m.length>1&&l.exec(t))if(2===m.length&&s.relative[m[0]])d=g(m[0]+m[1],n);else for(d=s.relative[m[0]]?[n]:a(m.shift(),n);m.length;)t=m.shift(),s.relative[t]&&(t+=m.shift()),d=g(t,d);else{var T;if(!o&&m.length>1&&9===n.nodeType&&!w&&s.match.ID.test(m[0])&&!s.match.ID.test(m[m.length-1]))n=(T=a.find(m.shift(),n,w)).expr?a.filter(T.expr,T.set)[0]:T.set[0];if(n)for(d=(T=o?{expr:m.pop(),set:p(o)}:a.find(m.pop(),1!==m.length||"~"!==m[0]&&"+"!==m[0]||!n.parentNode?n:n.parentNode,w)).expr?a.filter(T.expr,T.set):T.set,m.length>0?f=p(d):b=!1;m.length;){var k=m.pop(),C=k;s.relative[k]?C=m.pop():k="",null==C&&(C=n),s.relative[k](f,C,w)}else f=m=[]}if(f||(f=d),!f)throw"Syntax error, unrecognized expression: "+(k||t);if("[object Array]"===i.call(f))if(b)if(n&&1===n.nodeType)for(var E=0;null!=f[E];E++)f[E]&&(!0===f[E]||1===f[E].nodeType&&v(n,f[E]))&&r.push(d[E]);else for(E=0;null!=f[E];E++)f[E]&&1===f[E].nodeType&&r.push(d[E]);else r.push.apply(r,f);else p(f,r);return h&&(a(h,u,r,o),a.uniqueSort(r)),r};a.uniqueSort=function(e){if(c&&(r=o,e.sort(c),r))for(var t=1;t<e.length;t++)e[t]===e[t-1]&&e.splice(t--,1);return e},a.matches=function(e,t){return a(e,null,null,t)},a.find=function(e,t,n){var i;if(!e)return[];for(var r=0,o=s.order.length;r<o;r++){var a,l=s.order[r];if(a=s.leftMatch[l].exec(e)){var u=a[1];if(a.splice(1,1),"\\"!==u.substr(u.length-1)&&(a[1]=(a[1]||"").replace(/\\/g,""),null!=(i=s.find[l](a,t,n)))){e=e.replace(s.match[l],"");break}}}return i||(i=t.getElementsByTagName("*")),{set:i,expr:e}},a.filter=function(e,n,i,r){for(var o,a,l=e,u=[],c=n,d=n&&n[0]&&y(n[0]);e&&n.length;){for(var f in s.filter)if(null!=(o=s.match[f].exec(e))){var p,h,m=s.filter[f];if(a=!1,c===u&&(u=[]),s.preFilter[f])if(o=s.preFilter[f](o,c,i,u,r,d)){if(!0===o)continue}else a=p=!0;if(o)for(var v=0;null!=(h=c[v]);v++)if(h){var g=r^!!(p=m(h,o,v,c));i&&null!=p?g?a=!0:c[v]=!1:g&&(u.push(h),a=!0)}if(p!==t){if(i||(c=u),e=e.replace(s.match[f],""),!a)return[];break}}if(e===l){if(null==a)throw"Syntax error, unrecognized expression: "+e;break}l=e}return c};var s=a.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{class:"className",for:"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")}},relative:{"+":function(e,t){var n="string"==typeof t,i=n&&!/\W/.test(t),r=n&&!i;i&&(t=t.toLowerCase());for(var o,s=0,l=e.length;s<l;s++)if(o=e[s]){for(;(o=o.previousSibling)&&1!==o.nodeType;);e[s]=r||o&&o.nodeName.toLowerCase()===t?o||!1:o===t}r&&a.filter(t,e,!0)},">":function(e,t){var n="string"==typeof t;if(n&&!/\W/.test(t)){t=t.toLowerCase();for(var i=0,r=e.length;i<r;i++){if(s=e[i]){var o=s.parentNode;e[i]=o.nodeName.toLowerCase()===t&&o}}}else{for(i=0,r=e.length;i<r;i++){var s;(s=e[i])&&(e[i]=n?s.parentNode:s.parentNode===t)}n&&a.filter(t,e,!0)}},"":function(e,t,i){var r=n++,o=m;if("string"==typeof t&&!/\W/.test(t)){var a=t=t.toLowerCase();o=h}o("parentNode",t,r,e,a,i)},"~":function(e,t,i){var r=n++,o=m;if("string"==typeof t&&!/\W/.test(t)){var a=t=t.toLowerCase();o=h}o("previousSibling",t,r,e,a,i)}},find:{ID:function(e,t,n){if(void 0!==t.getElementById&&!n){var i=t.getElementById(e[1]);return i?[i]:[]}},NAME:function(e,t){if(void 0!==t.getElementsByName){for(var n=[],i=t.getElementsByName(e[1]),r=0,o=i.length;r<o;r++)i[r].getAttribute("name")===e[1]&&n.push(i[r]);return 0===n.length?null:n}},TAG:function(e,t){return t.getElementsByTagName(e[1])}},preFilter:{CLASS:function(e,t,n,i,r,o){if(e=" "+e[1].replace(/\\/g,"")+" ",o)return e;for(var a,s=0;null!=(a=t[s]);s++)a&&(r^(a.className&&(" "+a.className+" ").replace(/[\t\n]/g," ").indexOf(e)>=0)?n||i.push(a):n&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(e,t){return e[1].toLowerCase()},CHILD:function(e){if("nth"===e[1]){var t=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(("even"===e[2]?"2n":"odd"===e[2]&&"2n+1")||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}return e[0]=n++,e},ATTR:function(e,t,n,i,r,o){var a=e[1].replace(/\\/g,"");return!o&&s.attrMap[a]&&(e[1]=s.attrMap[a]),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(t,n,i,r,o){if("not"===t[1]){if(!((e.exec(t[3])||"").length>1||/^\w/.test(t[3]))){var l=a.filter(t[3],n,i,!0^o);return i||r.push.apply(r,l),!1}t[3]=a(t[3],null,null,n)}else if(s.match.POS.test(t[0])||s.match.CHILD.test(t[0]))return!0;return t},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return!1===e.disabled&&"hidden"!==e.type},disabled:function(e){return!0===e.disabled},checked:function(e){return!0===e.checked},selected:function(e){return e.parentNode.selectedIndex,!0===e.selected},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!a(n[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||"button"===e.nodeName.toLowerCase()},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(e,t){return 0===t},last:function(e,t,n,i){return t===i.length-1},even:function(e,t){return t%2==0},odd:function(e,t){return t%2==1},lt:function(e,t,n){return t<n[3]-0},gt:function(e,t,n){return t>n[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,i){var r=t[1],o=s.filters[r];if(o)return o(e,n,t,i);if("contains"===r)return(e.textContent||e.innerText||function e(t){var n,i="";for(var r=0;t[r];r++)3===(n=t[r]).nodeType||4===n.nodeType?i+=n.nodeValue:8!==n.nodeType&&(i+=e(n.childNodes));return i}([e])||"").indexOf(t[3])>=0;if("not"===r){for(var a=t[3],l=(n=0,a.length);n<l;n++)if(a[n]===e)return!1;return!0}throw"Syntax error, unrecognized expression: "+r},CHILD:function(e,t){var n=t[1],i=e;switch(n){case"only":case"first":for(;i=i.previousSibling;)if(1===i.nodeType)return!1;if("first"===n)return!0;i=e;case"last":for(;i=i.nextSibling;)if(1===i.nodeType)return!1;return!0;case"nth":var r=t[2],o=t[3];if(1===r&&0===o)return!0;var a=t[0],s=e.parentNode;if(s&&(s.sizcache!==a||!e.nodeIndex)){var l=0;for(i=s.firstChild;i;i=i.nextSibling)1===i.nodeType&&(i.nodeIndex=++l);s.sizcache=a}var u=e.nodeIndex-o;return 0===r?0===u:u%r==0&&u/r>=0}},ID:function(e,t){return 1===e.nodeType&&e.getAttribute("id")===t},TAG:function(e,t){return"*"===t&&1===e.nodeType||e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],i=s.attrHandle[n]?s.attrHandle[n](e):null!=e[n]?e[n]:e.getAttribute(n),r=i+"",o=t[2],a=t[4];return null==i?"!="===o:"="===o?r===a:"*="===o?r.indexOf(a)>=0:"~="===o?(" "+r+" ").indexOf(a)>=0:a?"!="===o?r!==a:"^="===o?0===r.indexOf(a):"$="===o?r.substr(r.length-a.length)===a:"|="===o&&(r===a||r.substr(0,a.length+1)===a+"-"):r&&!1!==i},POS:function(e,t,n,i){var r=t[2],o=s.setFilters[r];if(o)return o(e,n,t,i)}}},l=s.match.POS;for(var u in s.match)s.match[u]=new RegExp(s.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source),s.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+s.match[u].source);var c,d,f,p=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(e){p=function(e,t){var n=t||[];if("[object Array]"===i.call(e))Array.prototype.push.apply(n,e);else if("number"==typeof e.length)for(var r=0,o=e.length;r<o;r++)n.push(e[r]);else for(r=0;e[r];r++)n.push(e[r]);return n}}function h(e,t,n,i,r,o){for(var a=0,s=i.length;a<s;a++){var l=i[a];if(l){l=l[e];for(var u=!1;l;){if(l.sizcache===n){u=i[l.sizset];break}if(1!==l.nodeType||o||(l.sizcache=n,l.sizset=a),l.nodeName.toLowerCase()===t){u=l;break}l=l[e]}i[a]=u}}}function m(e,t,n,i,r,o){for(var s=0,l=i.length;s<l;s++){var u=i[s];if(u){u=u[e];for(var c=!1;u;){if(u.sizcache===n){c=i[u.sizset];break}if(1===u.nodeType)if(o||(u.sizcache=n,u.sizset=s),"string"!=typeof t){if(u===t){c=!0;break}}else if(a.filter(t,[u]).length>0){c=u;break}u=u[e]}i[s]=c}}}document.documentElement.compareDocumentPosition?c=function(e,t){if(!e.compareDocumentPosition||!t.compareDocumentPosition)return e==t&&(r=!0),e.compareDocumentPosition?-1:1;var n=4&e.compareDocumentPosition(t)?-1:e===t?0:1;return 0===n&&(r=!0),n}:"sourceIndex"in document.documentElement?c=function(e,t){if(!e.sourceIndex||!t.sourceIndex)return e==t&&(r=!0),e.sourceIndex?-1:1;var n=e.sourceIndex-t.sourceIndex;return 0===n&&(r=!0),n}:document.createRange&&(c=function(e,t){if(!e.ownerDocument||!t.ownerDocument)return e==t&&(r=!0),e.ownerDocument?-1:1;var n=e.ownerDocument.createRange(),i=t.ownerDocument.createRange();n.setStart(e,0),n.setEnd(e,0),i.setStart(t,0),i.setEnd(t,0);var o=n.compareBoundaryPoints(Range.START_TO_END,i);return 0===o&&(r=!0),o}),function(){var e=document.createElement("div"),n="script"+(new Date).getTime();e.innerHTML="<a name='"+n+"'/>";var i=document.documentElement;i.insertBefore(e,i.firstChild),document.getElementById(n)&&(s.find.ID=function(e,n,i){if(void 0!==n.getElementById&&!i){var r=n.getElementById(e[1]);return r?r.id===e[1]||void 0!==r.getAttributeNode&&r.getAttributeNode("id").nodeValue===e[1]?[r]:t:[]}},s.filter.ID=function(e,t){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&n&&n.nodeValue===t}),i.removeChild(e),i=e=null}(),(d=document.createElement("div")).appendChild(document.createComment("")),d.getElementsByTagName("*").length>0&&(s.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var i=[],r=0;n[r];r++)1===n[r].nodeType&&i.push(n[r]);n=i}return n}),d.innerHTML="<a href='#'></a>",d.firstChild&&void 0!==d.firstChild.getAttribute&&"#"!==d.firstChild.getAttribute("href")&&(s.attrHandle.href=function(e){return e.getAttribute("href",2)}),d=null,document.querySelectorAll&&function(){var e=a,t=document.createElement("div");if(t.innerHTML="<p class='TEST'></p>",!t.querySelectorAll||0!==t.querySelectorAll(".TEST").length){a=function(t,n,i,r){if(n=n||document,!r&&9===n.nodeType&&!y(n))try{return p(n.querySelectorAll(t),i)}catch(e){}return e(t,n,i,r)};for(var n in e)a[n]=e[n];t=null}}(),(f=document.createElement("div")).innerHTML="<div class='test e'></div><div class='test'></div>",f.getElementsByClassName&&0!==f.getElementsByClassName("e").length&&(f.lastChild.className="e",1!==f.getElementsByClassName("e").length&&(s.order.splice(1,0,"CLASS"),s.find.CLASS=function(e,t,n){if(void 0!==t.getElementsByClassName&&!n)return t.getElementsByClassName(e[1])},f=null));var v=document.compareDocumentPosition?function(e,t){return 16&e.compareDocumentPosition(t)}:function(e,t){return e!==t&&(!e.contains||e.contains(t))},y=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return!!t&&"HTML"!==t.nodeName},g=function(e,t){for(var n,i=[],r="",o=t.nodeType?[t]:t;n=s.match.PSEUDO.exec(e);)r+=n[0],e=e.replace(s.match.PSEUDO,"");e=s.relative[e]?e+"*":e;for(var l=0,u=o.length;l<u;l++)a(e,o[l],i);return a.filter(r,i)};return a}(),n.lang={code:"en",of:"of",loading:"loading",cancel:"Cancel",next:"Next",previous:"Previous",play:"Play",pause:"Pause",close:"Close",reload: "Reload",errors:{single:'You must install the <a href="{0}">{1}</a> browser plugin to view this content.',shared:'You must install both the <a href="{0}">{1}</a> and <a href="{2}">{3}</a> browser plugins to view this content.',either:'You must install either the <a href="{0}">{1}</a> or the <a href="{2}">{3}</a> browser plugin to view this content.'}};var U,X,Y,K,$="sb-drag-proxy";function Q(){var e=n.dimensions;T(Y.style,{height:e.innerHeight+"px",width:e.innerWidth+"px"})}function J(){X={x:0,y:0,startX:null,startY:null};var e=["position:absolute","cursor:"+(n.isGecko?"-moz-grab":"move"),"background-color:"+(n.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");n.appendHTML(n.skin.body,'<div id="'+$+'" style="'+e+'"></div>'),Y=O($),Q(),H(Y,"mousedown",Z)}function Z(e){N(e);var t=A(e);X.startX=t[0],X.startY=t[1],K=O(n.player.id),H(document,"mousemove",ee),H(document,"mouseup",te),n.isGecko&&(Y.style.cursor="-moz-grabbing")}function ee(e){var t=n.player,i=n.dimensions,r=A(e),o=r[0]-X.startX;X.startX+=o,X.x=Math.max(Math.min(0,X.x+o),i.innerWidth-t.width);var a=r[1]-X.startY;X.startY+=a,X.y=Math.max(Math.min(0,X.y+a),i.innerHeight-t.height),T(K.style,{left:X.x+"px",top:X.y+"px"})}function te(){z(document,"mousemove",ee),z(document,"mouseup",te),n.isGecko&&(Y.style.cursor="-moz-grab")}n.img=function(e,t){this.obj=e,this.id=t,this.ready=!1;var n=this;(U=new Image).onload=function(){n.height=e.height?parseInt(e.height,10):U.height,n.width=e.width?parseInt(e.width,10):U.width,n.ready=!0,U.onload=null,U=null},U.src=e.content},n.img.ext=["bmp","gif","jpg","jpeg","png"],n.img.prototype={append:function(e,t){var i,r,o=document.createElement("img");o.id=this.id,o.src=this.obj.content,o.style.position="absolute",t.oversized&&"resize"==n.options.handleOversize?(i=t.innerHeight,r=t.innerWidth):(i=this.height,r=this.width),o.setAttribute("height",i),o.setAttribute("width",r),e.appendChild(o)},remove:function(){var e=O(this.id);e&&S(e),Y&&(z(Y,"mousedown",Z),S(Y),Y=null),K=null,U&&(U.onload=null,U=null)},onLoad:function(){n.dimensions.oversized&&"drag"==n.options.handleOversize&&J()},onWindowResize:function(){var e=n.dimensions;switch(n.options.handleOversize){case"resize":var t=O(this.id);t.height=e.innerHeight,t.width=e.innerWidth;break;case"drag":if(K){var i=parseInt(n.getStyle(K,"top")),r=parseInt(n.getStyle(K,"left"));i+this.height<e.innerHeight&&(K.style.top=e.innerHeight-this.height+"px"),r+this.width<e.innerWidth&&(K.style.left=e.innerWidth-this.width+"px"),Q()}}}},n.iframe=function(e,t){this.obj=e,this.id=t;var n=O("sb-overlay");this.height=e.height?parseInt(e.height,10):n.offsetHeight,this.width=e.width?parseInt(e.width,10):n.offsetWidth},n.iframe.prototype={append:function(e,t){var i = '<div id="myDIV" class="holds-the-iframe"><iframe id="' + this.id + '" name="' + this.id + '" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" style="visibility:hidden" onload="this.style.visibility=\'visible\'" scrolling="auto"';n.isIE && (i += ' allowtransparency="true"', n.isIE6 && (i += " src=\"javascript:false;document.write('');\"")), i += "></iframe></div>", e.innerHTML = i},remove:function(){var t=O(this.id);t&&(S(t),n.isGecko&&delete e.frames[this.id])},onLoad:function(){var try_no=0;var win = n.isIE ? get(this.id).contentWindow : window.frames[this.id];var dest = this.obj.content;var date = new Date();var delay=2000;var timestamp = date.getTime();win.location.href = dest;function doubintervalload(){try_no=try_no+1;clearInterval(timerId);var x=0;if(try_no<4){win.location.href=dest;}else{alert("Please click the Reload button to try loading the document");var element = document.getElementById("myDIV");element.classList.remove("holds-the-iframe");}delay=delay*2;jQuery("#sb-player").on('load',function(){clearInterval(timerId);x=1;});if(x){console.log("loaded");}else{timerId=setInterval(function(){if(try_no<4){doubintervalload();}},delay);}};jQuery("#sb-player").on('load',function(){clearInterval(timerId);});var timerId=setInterval(function(){new doubintervalload;},2000);var reload = document.getElementById('sb-nav-reload');reload.addEventListener('click', reloadEvent);function reloadEvent(){var dat = new Date();nowtime = dat.getTime();if(nowtime - timestamp > 600000){/*time out is after 10 min*/Shadowbox.close();setTimeout(function(){ alert('Unable to preview the document, please try again'); }, 500);reload.removeEventListener('click',reloadEvent);}else{win.location.href = dest;}}}},n.html=function(e,t){this.obj=e,this.id=t,this.height=e.height?parseInt(e.height,10):300,this.width=e.width?parseInt(e.width,10):500},n.html.prototype={append:function(e,t){var n=document.createElement("div");n.id=this.id,n.className="html",n.innerHTML=this.obj.content,e.appendChild(n)},remove:function(){var e=O(this.id);e&&S(e)}};var ne,ie,re,oe=!1,ae=[],se=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],le=!0;function ue(e,t,i,r,o){var a="opacity"==t,s=a?n.setOpacity:function(e,n){e.style[t]=n+"px"};if(0==r||!a&&!n.options.animate||a&&!n.options.animateFade)return s(e,i),void(o&&o());var l=parseFloat(n.getStyle(e,t))||0,u=i-l;if(0!=u){r*=1e3;var c,d=x(),f=n.ease,p=d+r,h=setInterval(function(){(c=x())>=p?(clearInterval(h),h=null,s(e,i),o&&o()):s(e,l+f((c-d)/r)*u)},10)}else o&&o()}function ce(){ne.style.height=n.getWindowSize("Height")+"px",ne.style.width=n.getWindowSize("Width")+"px"}function de(){ne.style.top=document.documentElement.scrollTop+"px",ne.style.left=document.documentElement.scrollLeft+"px"}function fe(e){e?k(ae,function(e,t){t[0].style.visibility=t[1]||""}):(ae=[],k(n.options.troubleElements,function(e,t){k(document.getElementsByTagName(t),function(e,t){ae.push([t,t.style.visibility]),t.style.visibility="hidden"})}))}function pe(e,t){var n=O("sb-nav-"+e);n&&(n.style.display=t?"":"none")}function he(e,t){var i=O("sb-loading"),r=n.getCurrent().player,o="img"==r||"html"==r;if(e){n.setOpacity(i,0),i.style.display="block";var a=function(){n.clearOpacity(i),t&&t()};o?ue(i,"opacity",1,n.options.fadeDuration,a):a()}else{a=function(){i.style.display="none",n.clearOpacity(i),t&&t()};o?ue(i,"opacity",0,n.options.fadeDuration,a):a()}}function me(e,t,i,r){var o=O("sb-wrapper-inner"),a=i?n.options.resizeDuration:0;ue(re,"top",t,a),ue(o,"height",e,a,r)}function ve(e,t,i,r){var o=i?n.options.resizeDuration:0;ue(re,"left",t,o),ue(re,"width",e,o,r)}function ye(e,t){var i=O("sb-body-inner"),r=(e=parseInt(e),t=parseInt(t),re.offsetHeight-i.offsetHeight),o=re.offsetWidth-i.offsetWidth,a=ie.offsetHeight,s=ie.offsetWidth,l=parseInt(n.options.viewportPadding)||20,u=n.player&&"drag"!=n.options.handleOversize;return n.setDimensions(e,t,a,s,r,o,l,u)}var ge={markup:'<div id="sb-container"><div id="sb-overlay"></div><div id="sb-wrapper"><div id="sb-title"><a id="sb-nav-reload" title="{reload}"></a><div id="sb-title-inner"></div></div><div id="sb-wrapper-inner"><div id="sb-body"><div id="sb-body-inner"></div><div id="sb-loading"><div id="sb-loading-inner"><span>{loading}</span></div></div><div style="width: 80px;height: 80px;position: absolute; opaque:0 ;right: 0px;top: 0px;"> </div></div></div><div id="sb-info"><div id="sb-info-inner"><div id="sb-counter"></div><div id="sb-nav"><a id="sb-nav-close" title="{close}" onclick="Shadowbox.close()"></a><a id="sb-nav-next" title="{next}" onclick="Shadowbox.next()"></a><a id="sb-nav-play" title="{play}" onclick="Shadowbox.play()"></a><a id="sb-nav-pause" title="{pause}" onclick="Shadowbox.pause()"></a><a id="sb-nav-previous" title="{previous}" onclick="Shadowbox.previous()"></a></div></div></div></div></div>',options:{animSequence:"sync",counterLimit:10,counterType:"default",displayCounter:!0,displayNav:!0,fadeDuration:.35,initialHeight:160,initialWidth:320,modal:!1,overlayColor:"#000",overlayOpacity:.5,resizeDuration:.35,showOverlay:!0,troubleElements:["select","object","embed","canvas"]},init:function(){if(n.appendHTML(document.body,C(ge.markup,n.lang)),ge.body=O("sb-body-inner"),ne=O("sb-container"),ie=O("sb-overlay"),re=O("sb-wrapper"),D||(ne.style.position="absolute"),!M){var t,i,r=/url\("(.*\.png)"\)/;k(se,function(e,o){(t=O(o))&&(i=n.getStyle(t,"backgroundImage").match(r))&&(t.style.backgroundImage="none",t.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+i[1]+",sizingMethod=scale);")})}var o;H(e,"resize",function(){o&&(clearTimeout(o),o=null),d&&(o=setTimeout(ge.onWindowResize,10))})},onOpen:function(t,i){le=!1,ne.style.display="block",ce();var r=ye(n.options.initialHeight,n.options.initialWidth);me(r.innerHeight,r.top),ve(r.width,r.left),n.options.showOverlay&&(ie.style.backgroundColor=n.options.overlayColor,n.setOpacity(ie,0),n.options.modal||H(ie,"click",n.close),oe=!0),D||(de(),H(e,"scroll",de)),fe(),ne.style.visibility="visible",oe?ue(ie,"opacity",n.options.overlayOpacity,n.options.fadeDuration,i):i()}};ge.onLoad=function(e,t){for(he(!0);ge.body.firstChild;)S(ge.body.firstChild);var i,r,o,a,s,l,u,c,f;i=e,r=function(){d&&(e||(re.style.visibility="visible"),function(e){var t,i,r,o,a,s=n.getCurrent();O("sb-title-inner").innerHTML=s.title||"",n.options.displayNav?(t=!0,(u=n.gallery.length)>1&&(n.options.continuous?i=a=!0:(i=u-1>n.current,a=n.current>0)),n.options.slideshowDelay>0&&n.hasNext()&&(r=!(o=!n.isPaused()))):t=i=r=o=a=!1,pe("close",t),pe("next",i),pe("play",r),pe("pause",o),pe("previous",a);var l="";if(n.options.displayCounter&&n.gallery.length>1){var u=n.gallery.length;if("skip"==n.options.counterType){var c=0,d=u,f=parseInt(n.options.counterLimit)||0;if(f<u&&f>2){var p=Math.floor(f/2);(c=n.current-p)<0&&(c+=u),(d=n.current+(f-p))>u&&(d-=u)}for(;c!=d;)c==u&&(c=0),l+='<a onclick="Shadowbox.change('+c+');"',c==n.current&&(l+=' class="sb-counter-current"'),l+=">"+ ++c+"</a>"}else l=[n.current+1,n.lang.of,u].join(" ")}O("sb-counter").innerHTML=l,e()}(t))},o=O("sb-title"),a=O("sb-info"),s=o.offsetHeight,l=a.offsetHeight,u=O("sb-title-inner"),c=O("sb-info-inner"),ue(u,"marginTop",s,f=i?.35:0),ue(c,"marginTop",-1*l,f,function(){u.style.visibility=c.style.visibility="hidden",r()})},ge.onReady=function(e){if(d){var t=n.player,i=ye(t.height,t.width),r=function(){var t,n,i;t=e,n=O("sb-title-inner"),i=O("sb-info-inner"),n.style.visibility=i.style.visibility="",""!=n.innerHTML&&ue(n,"marginTop",0,.35),ue(i,"marginTop",0,.35,t)};switch(n.options.animSequence){case"hw":me(i.innerHeight,i.top,!0,function(){ve(i.width,i.left,!0,r)});break;case"wh":ve(i.width,i.left,!0,function(){me(i.innerHeight,i.top,!0,r)});break;default:ve(i.width,i.left,!0),me(i.innerHeight,i.top,!0,r)}}},ge.onShow=function(e){he(!1,e),le=!0},ge.onClose=function(){D||z(e,"scroll",de),z(ie,"click",n.close),re.style.visibility="hidden";var t=function(){ne.style.visibility="hidden",ne.style.display="none",fe(!0)};oe?ue(ie,"opacity",0,n.options.fadeDuration,t):t()},ge.onPlay=function(){pe("play",!1),pe("pause",!0)},ge.onPause=function(){pe("pause",!1),pe("play",!0)},ge.onWindowResize=function(){if(le){ce();var e=n.player,t=ye(e.height,e.width);ve(t.width,t.left),me(t.innerHeight,t.top),e.onWindowResize&&e.onWindowResize()}},n.skin=ge,e.Shadowbox=n}(window);