(function(F,da){function Ba(){for(var b=c.errorInfo,e=c.plugins,f,i,l,p,m=0;m<c.gallery.length;++m){f=c.gallery[m];i=false;l=null;switch(f.player){case "flv":case "swf":e.fla||(l="fla");break;case "qt":e.qt||(l="qt");break;case "wmp":if(c.isMac)if(e.qt&&e.f4m)f.player="qt";else l="qtf4m";else e.wmp||(l="wmp");break;case "qtwmp":if(e.qt)f.player="qt";else if(e.wmp)f.player="wmp";else l="qtwmp";break}if(l)if(c.options.handleUnsupported=="link"){switch(l){case "qtf4m":p="shared";l=[b.qt.url,b.qt.name,
b.f4m.url,b.f4m.name];break;case "qtwmp":p="either";l=[b.qt.url,b.qt.name,b.wmp.url,b.wmp.name];break;default:p="single";l=[b[l].url,b[l].name]}f.player="html";f.content='<div class="sb-message">'+oa(c.lang.errors[p],l)+"</div>"}else i=true;else if(f.player=="inline")if(p=Ca.exec(f.content))if(p=t(p[1]))f.content=p.innerHTML;else i=true;else i=true;else if(f.player=="swf"||f.player=="flv"){p=f.options&&f.options.flashVersion||c.options.flashVersion;if(c.flash&&!c.flash.hasFlashPlayerVersion(p)){f.width=
310;f.height=177}}if(i){c.gallery.splice(m,1);if(m<c.current)--c.current;else if(m==c.current)c.current=m>0?m-1:m;--m}}}function ea(b){if(c.options.enableKeys)(b?T:X)(document,"keydown",Da)}function Da(b){if(!(b.metaKey||b.shiftKey||b.altKey||b.ctrlKey)){var e;switch(Ea(b)){case 81:case 88:case 27:e=c.close;break;case 37:e=c.previous;break;case 39:e=c.next;break;case 32:e=typeof x=="number"?c.pause:c.play;break}if(e){pa(b);e()}}}function qa(b){ea(false);var e=c.getCurrent(),f=e.player=="inline"?"html":
e.player;if(typeof c[f]!="function")throw"unknown player "+f;if(b){c.player.remove();c.revertOptions();c.applyOptions(e.options||{})}c.player=new c[f](e,c.playerId);if(c.gallery.length>1){e=c.gallery[c.current+1]||c.gallery[0];if(e.player=="img")(new Image).src=e.content;e=c.gallery[c.current-1]||c.gallery[c.gallery.length-1];if(e.player=="img")(new Image).src=e.content}c.skin.onLoad(b,Fa)}function Fa(){if(y)if(typeof c.player.ready!="undefined")var b=setInterval(function(){if(y){if(c.player.ready){clearInterval(b);
b=null;c.skin.onReady(ra)}}else{clearInterval(b);b=null}},10);else c.skin.onReady(ra)}function ra(){if(y){c.player.append(c.skin.body,c.dimensions);c.skin.onShow(Ga)}}function Ga(){if(y){c.player.onLoad&&c.player.onLoad();c.options.onFinish(c.getCurrent());c.isPaused()||c.play();ea(true)}}function Y(){return(new Date).getTime()}function M(b,e){for(var f in e)b[f]=e[f];return b}function z(b,e){for(var f=0,i=b.length,l=b[0];f<i&&e.call(l,f,l)!==false;l=b[++f]);}function oa(b,e){return b.replace(/\{(\w+?)\}/g,
function(f,i){return e[i]})}function Z(){}function t(b){return document.getElementById(b)}function fa(b){b.parentNode.removeChild(b)}function Ha(){var b=document.body,e=document.createElement("div");$=typeof e.style.opacity==="string";e.style.position="fixed";e.style.margin=0;e.style.top="20px";b.appendChild(e,b.firstChild);aa=e.offsetTop==20;b.removeChild(e)}function pa(b){b.preventDefault()}function Ea(b){return b.keyCode}function T(b,e,f){jQuery(b).bind(e,f)}function X(b,e,f){jQuery(b).unbind(e,
f)}function sa(){if(!ga){try{document.documentElement.doScroll("left")}catch(b){setTimeout(sa,1);return}c.load()}}function Ia(){if(document.readyState==="complete")return c.load();if(document.addEventListener){document.addEventListener("DOMContentLoaded",Q,false);F.addEventListener("load",c.load,false)}else if(document.attachEvent){document.attachEvent("onreadystatechange",Q);F.attachEvent("onload",c.load);var b=false;try{b=F.frameElement===null}catch(e){}document.documentElement.doScroll&&b&&sa()}}
function ta(b){c.open(this);c.gallery.length&&pa(b)}function A(b,e,f,i,l){var p=e=="opacity",m=p?c.setOpacity:function(N,ha){N.style[e]=""+ha+"px"};if(i==0||!p&&!c.options.animate||p&&!c.options.animateFade){m(b,f);l&&l()}else{var B=parseFloat(c.getStyle(b,e))||0,s=f-B;if(s==0)l&&l();else{i*=1E3;var o=Y(),O=c.ease,C=o+i,w,R=setInterval(function(){w=Y();if(w>=C){clearInterval(R);R=null;m(b,f);l&&l()}else m(b,B+O((w-o)/i)*s)},10)}}}function ua(){D.style.height=c.getWindowSize("Height")+"px";D.style.width=
c.getWindowSize("Width")+"px"}function ia(){D.style.top=document.documentElement.scrollTop+"px";D.style.left=document.documentElement.scrollLeft+"px"}function va(b){if(b)z(ja,function(e,f){f[0].style.visibility=f[1]||""});else{ja=[];z(c.options.troubleElements,function(e){z(document.getElementsByTagName(e),function(f){ja.push([f,f.style.visibility]);f.style.visibility="hidden"})})}}function G(b,e){if(b=t("sb-nav-"+b))b.style.display=e?"":"none"}function wa(b,e){var f=t("sb-loading"),i=c.getCurrent().player;
i=i=="img"||i=="html";if(b){c.setOpacity(f,0);f.style.display="block";b=function(){c.clearOpacity(f);e&&e()};i?A(f,"opacity",1,c.options.fadeDuration,b):b()}else{b=function(){f.style.display="none";c.clearOpacity(f);e&&e()};i?A(f,"opacity",0,c.options.fadeDuration,b):b()}}function Ja(b){var e=c.getCurrent();t("sb-title-inner").innerHTML=e.title||"";var f,i,l,p,m;if(c.options.displayNav){f=true;e=c.gallery.length;if(e>1)if(c.options.continuous)i=m=true;else{i=e-1>c.current;m=c.current>0}if(c.options.slideshowDelay>
0&&c.hasNext()){p=!c.isPaused();l=!p}}else f=i=l=p=m=false;G("close",f);G("next",i);G("play",l);G("pause",p);G("previous",m);i="";if(c.options.displayCounter&&c.gallery.length>1){e=c.gallery.length;if(c.options.counterType=="skip"){l=0;m=e;p=parseInt(c.options.counterLimit)||0;if(p<e&&p>2){m=Math.floor(p/2);l=c.current-m;if(l<0)l+=e;m=c.current+(p-m);if(m>e)m-=e}for(;l!=m;){if(l==e)l=0;i+='<a onclick="Shadowbox.change('+l+');"';if(l==c.current)i+=' class="sb-counter-current"';i+=">"+l++ +"</a>"}}else i=
[c.current+1,c.lang.of,e].join(" ")}t("sb-counter").innerHTML=i;b()}function Ka(b){var e=t("sb-title-inner"),f=t("sb-info-inner");e.style.visibility=f.style.visibility="";e.innerHTML!=""&&A(e,"marginTop",0,0.35);A(f,"marginTop",0,0.35,b)}function La(b,e){var f=t("sb-title"),i=t("sb-info");f=f.offsetHeight;i=i.offsetHeight;var l=t("sb-title-inner"),p=t("sb-info-inner");b=b?0.35:0;A(l,"marginTop",f,b);A(p,"marginTop",i*-1,b,function(){l.style.visibility=p.style.visibility="hidden";e()})}function U(b,
e,f,i){var l=t("sb-wrapper-inner");f=f?c.options.resizeDuration:0;A(J,"top",e,f);A(l,"height",b,f,i)}function V(b,e,f,i){f=f?c.options.resizeDuration:0;A(J,"left",e,f);A(J,"width",b,f,i)}function ka(b,e){var f=t("sb-body-inner");b=parseInt(b);e=parseInt(e);var i=J.offsetHeight-f.offsetHeight;f=J.offsetWidth-f.offsetWidth;var l=parseInt(c.options.viewportPadding)||20;return c.setDimensions(b,e,H.offsetHeight,H.offsetWidth,i,f,l)}var c={version:"3.0"},u=navigator.userAgent.toLowerCase();if(u.indexOf("windows")>
-1||u.indexOf("win32")>-1)c.isWindows=true;else if(u.indexOf("macintosh")>-1||u.indexOf("mac os x")>-1)c.isMac=true;else if(u.indexOf("linux")>-1)c.isLinux=true;c.isIE=u.indexOf("msie")>-1;c.isIE6=u.indexOf("msie 6")>-1;c.isIE7=u.indexOf("msie 7")>-1;c.isGecko=u.indexOf("gecko")>-1&&u.indexOf("safari")==-1;c.isWebKit=u.indexOf("applewebkit/")>-1;var Ca=/#(.+)$/,Ma=/^(light|shadow)box\[(.*?)\]/i,Na=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,Oa=/[0-9a-z]+$/i,Pa=/(.+\/)shadowbox\.js/i,y=false,xa=false,ya={},I=0,
ba,x;c.playerId="sb-player";c.current=-1;c.dimensions=null;c.ease=function(b){return 1+Math.pow(b-1,3)};c.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"}};c.gallery=[];c.path=null;c.player=null;c.options={animate:true,animateFade:true,autoplayMovies:true,
continuous:false,enableKeys:true,flashParams:{bgcolor:"#000000",allowfullscreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",onChange:Z,onClose:Z,onFinish:Z,onOpen:Z,showMovieControls:true,skipSetup:false,slideshowDelay:0,viewportPadding:20};c.getCurrent=function(){return c.current>-1?c.gallery[c.current]:null};c.hasNext=function(){return c.gallery.length>1&&(c.current!=c.gallery.length-1||c.options.continuous)};c.isOpen=function(){return y};c.isPaused=
function(){return x=="pause"};c.applyOptions=function(b){ya=M({},c.options);M(c.options,b)};c.revertOptions=function(){M(c.options,ya)};c.init=function(b){if(!xa){xa=true;c.skin.options&&M(c.options,c.skin.options);b&&M(c.options,b);if(!c.path)for(var e=document.getElementsByTagName("script"),f=0,i=e.length;f<i;++f)if(b=Pa.exec(e[f].src)){c.path=b[1];break}Ia()}};c.open=function(b){if(!y){b=c.makeGallery(b);c.gallery=b[0];c.current=b[1];b=c.getCurrent();if(b!=null){c.applyOptions(b.options||{});Ba();
if(c.gallery.length){b=c.getCurrent();if(c.options.onOpen(b)!==false){y=true;c.skin.onOpen(b,qa)}}}}};c.close=function(){if(y){y=false;if(c.player){c.player.remove();c.player=null}if(typeof x=="number"){clearTimeout(x);x=null}I=0;ea(false);c.options.onClose(c.getCurrent());c.skin.onClose();c.revertOptions()}};c.play=function(){if(c.hasNext()){I||(I=c.options.slideshowDelay*1E3);if(I){ba=Y();x=setTimeout(function(){I=ba=0;c.next()},I);c.skin.onPlay&&c.skin.onPlay()}}};c.pause=function(){if(typeof x==
"number")if(I=Math.max(0,I-(Y()-ba))){clearTimeout(x);x="pause";c.skin.onPause&&c.skin.onPause()}};c.change=function(b){if(!(b in c.gallery))if(c.options.continuous){b=b<0?c.gallery.length+b:0;if(!(b in c.gallery))return}else return;c.current=b;if(typeof x=="number"){clearTimeout(x);x=null;I=ba=0}c.options.onChange(c.getCurrent());qa(true)};c.next=function(){c.change(c.current+1)};c.previous=function(){c.change(c.current-1)};c.setDimensions=function(b,e,f,i,l,p,m){var B=b,s=e,o=2*m+l;if(b+o>f)b=f-
o;var O=2*m+p;if(e+O>i)e=i-O;var C=(B-b)/B,w=(s-e)/s,R=C>0||w>0;if(R)if(C>w)e=Math.round(s/B*b);else if(w>C)b=Math.round(B/s*e);c.dimensions={height:b+l,width:e+p,innerHeight:b,innerWidth:e,top:Math.floor((f-(b+o))/2+m),left:Math.floor((i-(e+O))/2+m),oversized:R};return c.dimensions};c.makeGallery=function(b){var e=[],f=-1;if(typeof b=="string")b=[b];if(typeof b.length=="number"){z(b,function(p,m){e[p]=m.content?m:{content:m}});f=0}else{if(b.tagName){var i=c.getCache(b);b=i?i:c.makeObject(b)}if(b.gallery){e=
[];for(var l in c.cache){i=c.cache[l];if(i.gallery&&i.gallery==b.gallery){if(f==-1&&i.content==b.content)f=e.length;e.push(i)}}if(f==-1){e.unshift(b);f=0}}else{e=[b];f=0}}z(e,function(p,m){e[p]=M({},m)});return[e,f]};c.makeObject=function(b,e){var f={content:b.href,title:b.getAttribute("title")||"",link:b};if(e){e=M({},e);z(["player","title","height","width","gallery"],function(l,p){if(typeof e[p]!="undefined"){f[p]=e[p];delete e[p]}});f.options=e}else f.options={};if(!f.player)f.player=c.getPlayer(f.content);
if(b=b.getAttribute("rel")){var i=b.match(Ma);if(i)f.gallery=escape(i[2]);z(b.split(";"),function(l,p){if(i=p.match(Na))f[i[1]]=i[2]})}return f};c.getPlayer=function(b){if(b.indexOf("#")>-1&&b.indexOf(document.location.href)==0)return"inline";var e=b.indexOf("?");if(e>-1)b=b.substring(0,e);var f;if(b=b.match(Oa))f=b[0];if(f){if(c.img&&c.img.ext.indexOf(f)>-1)return"img";if(c.swf&&c.swf.ext.indexOf(f)>-1)return"swf";if(c.flv&&c.flv.ext.indexOf(f)>-1)return"flv";if(c.qt&&c.qt.ext.indexOf(f)>-1)return c.wmp&&
c.wmp.ext.indexOf(f)>-1?"qtwmp":"qt";if(c.wmp&&c.wmp.ext.indexOf(f)>-1)return"wmp"}return"iframe"};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(b,e){var f=this.length>>>0;e=e||0;if(e<0)e+=f;for(;e<f;++e)if(e in this&&this[e]===b)return e;return-1};var $=true,aa=true;c.getStyle=function(){var b=/opacity=([^)]*)/,e=document.defaultView&&document.defaultView.getComputedStyle;return function(f,i){var l;if(!$&&i=="opacity"&&f.currentStyle){l=b.test(f.currentStyle.filter||"")?parseFloat(RegExp.$1)/
100+"":"";return l===""?"1":l}if(e){if(f=e(f,null))l=f[i];if(i=="opacity"&&l=="")l="1"}else l=f.currentStyle[i];return l}}();c.appendHTML=function(b,e){if(b.insertAdjacentHTML)b.insertAdjacentHTML("BeforeEnd",e);else if(b.lastChild){var f=b.ownerDocument.createRange();f.setStartAfter(b.lastChild);e=f.createContextualFragment(e);b.appendChild(e)}else b.innerHTML=e};c.getWindowSize=function(b){if(document.compatMode==="CSS1Compat")return document.documentElement["client"+b];return document.body["client"+
b]};c.setOpacity=function(b,e){b=b.style;if($)b.opacity=e==1?"":e;else{b.zoom=1;if(e==1){if(typeof b.filter=="string"&&/alpha/i.test(b.filter))b.filter=b.filter.replace(/\s*[\w\.]*alpha\([^\)]*\);?/gi,"")}else b.filter=(b.filter||"").replace(/\s*[\w\.]*alpha\([^\)]*\)/gi,"")+" alpha(opacity="+e*100+")"}};c.clearOpacity=function(b){c.setOpacity(b,1)};jQuery.fn.shadowbox=function(b){return this.each(function(){var e=jQuery(this),f=jQuery.extend({},b||{},jQuery.metadata?e.metadata():jQuery.meta?e.data():
{}),i=this.className||"";f.width=parseInt((i.match(/w:(\d+)/)||[])[1])||f.width;f.height=parseInt((i.match(/h:(\d+)/)||[])[1])||f.height;Shadowbox.setup(e,f)})};var ga=false,Q;if(document.addEventListener)Q=function(){document.removeEventListener("DOMContentLoaded",Q,false);c.load()};else if(document.attachEvent)Q=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",Q);c.load()}};c.load=function(){if(!ga){if(!document.body)return setTimeout(c.load,13);ga=true;
Ha();c.options.skipSetup||c.setup();c.skin.init()}};c.plugins={};if(navigator.plugins&&navigator.plugins.length){var P=[];z(navigator.plugins,function(b,e){P.push(e.name)});P=P.join(",");u=P.indexOf("Flip4Mac")>-1;c.plugins={fla:P.indexOf("Shockwave Flash")>-1,qt:P.indexOf("QuickTime")>-1,wmp:!u&&P.indexOf("Windows Media")>-1,f4m:u}}else{u=function(b){var e;try{e=new ActiveXObject(b)}catch(f){}return!!e};c.plugins={fla:u("ShockwaveFlash.ShockwaveFlash"),qt:u("QuickTime.QuickTime"),wmp:u("wmplayer.ocx"),
f4m:false}}var Qa=/^(light|shadow)box/i,Ra=1;c.cache={};c.select=function(b){var e=[];if(b){var f=b.length;if(f)if(typeof b=="string"){if(c.find)e=c.find(b)}else if(f==2&&typeof b[0]=="string"&&b[1].nodeType){if(c.find)e=c.find(b[0],b[1])}else for(var i=0;i<f;++i)e[i]=b[i];else e.push(b)}else{var l;z(document.getElementsByTagName("a"),function(p,m){(l=m.getAttribute("rel"))&&Qa.test(l)&&e.push(m)})}return e};c.setup=function(b,e){z(c.select(b),function(f,i){c.addCache(i,e)})};c.teardown=function(b){z(c.select(b),
function(e,f){c.removeCache(f)})};c.addCache=function(b,e){var f=b.shadowboxCacheKey;if(f==da){f=Ra++;b.shadowboxCacheKey=f;T(b,"click",ta)}c.cache[f]=c.makeObject(b,e)};c.removeCache=function(b){X(b,"click",ta);delete c.cache[b.shadowboxCacheKey];b.shadowboxCacheKey=null};c.getCache=function(b){b=b.shadowboxCacheKey;return b in c.cache&&c.cache[b]};c.clearCache=function(){for(var b in c.cache)c.removeCache(c.cache[b].link);c.cache={}};c.find=function(){function b(a){for(var d="",g,h=0;a[h];h++){g=
a[h];if(g.nodeType===3||g.nodeType===4)d+=g.nodeValue;else if(g.nodeType!==8)d+=b(g.childNodes)}return d}function e(a,d,g,h,k,j){k=0;for(var q=h.length;k<q;k++){var n=h[k];if(n){n=n[a];for(var r=false;n;){if(n.sizcache===g){r=h[n.sizset];break}if(n.nodeType===1&&!j){n.sizcache=g;n.sizset=k}if(n.nodeName.toLowerCase()===d){r=n;break}n=n[a]}h[k]=r}}}function f(a,d,g,h,k,j){k=0;for(var q=h.length;k<q;k++){var n=h[k];if(n){n=n[a];for(var r=false;n;){if(n.sizcache===g){r=h[n.sizset];break}if(n.nodeType===
1){if(!j){n.sizcache=g;n.sizset=k}if(typeof d!=="string"){if(n===d){r=true;break}}else if(s.filter(d,[n]).length>0){r=n;break}}n=n[a]}h[k]=r}}}var i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,l=0,p=Object.prototype.toString,m=false,B=true;[0,0].sort(function(){B=false;return 0});var s=function(a,d,g,h){g=g||[];var k=d=d||document;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!a||typeof a!=="string")return g;for(var j=
[],q,n,r,W,K=true,S=la(d),L=a;(i.exec(""),q=i.exec(L))!==null;){L=q[3];j.push(q[1]);if(q[2]){W=q[3];break}}if(j.length>1&&O.exec(a))if(j.length===2&&o.relative[j[0]])n=za(j[0]+j[1],d);else for(n=o.relative[j[0]]?[d]:s(j.shift(),d);j.length;){a=j.shift();if(o.relative[a])a+=j.shift();n=za(a,n)}else{if(!h&&j.length>1&&d.nodeType===9&&!S&&o.match.ID.test(j[0])&&!o.match.ID.test(j[j.length-1])){q=s.find(j.shift(),d,S);d=q.expr?s.filter(q.expr,q.set)[0]:q.set[0]}if(d){q=h?{expr:j.pop(),set:w(h)}:s.find(j.pop(),
j.length===1&&(j[0]==="~"||j[0]==="+")&&d.parentNode?d.parentNode:d,S);n=q.expr?s.filter(q.expr,q.set):q.set;if(j.length>0)r=w(n);else K=false;for(;j.length;){var E=j.pop();q=E;if(o.relative[E])q=j.pop();else E="";if(q==null)q=d;o.relative[E](r,q,S)}}else r=[]}r||(r=n);if(!r)throw"Syntax error, unrecognized expression: "+(E||a);if(p.call(r)==="[object Array]")if(K)if(d&&d.nodeType===1)for(a=0;r[a]!=null;a++){if(r[a]&&(r[a]===true||r[a].nodeType===1&&ha(d,r[a])))g.push(n[a])}else for(a=0;r[a]!=null;a++)r[a]&&
r[a].nodeType===1&&g.push(n[a]);else g.push.apply(g,r);else w(r,g);if(W){s(W,k,g,h);s.uniqueSort(g)}return g};s.uniqueSort=function(a){if(N){m=B;a.sort(N);if(m)for(var d=1;d<a.length;d++)a[d]===a[d-1]&&a.splice(d--,1)}return a};s.matches=function(a,d){return s(a,null,null,d)};s.find=function(a,d,g){var h,k;if(!a)return[];for(var j=0,q=o.order.length;j<q;j++){var n=o.order[j];if(k=o.leftMatch[n].exec(a)){var r=k[1];k.splice(1,1);if(r.substr(r.length-1)!=="\\"){k[1]=(k[1]||"").replace(/\\/g,"");h=o.find[n](k,
d,g);if(h!=null){a=a.replace(o.match[n],"");break}}}}h||(h=d.getElementsByTagName("*"));return{set:h,expr:a}};s.filter=function(a,d,g,h){for(var k=a,j=[],q=d,n,r,W=d&&d[0]&&la(d[0]);a&&d.length;){for(var K in o.filter)if((n=o.match[K].exec(a))!=null){var S=o.filter[K],L,E;r=false;if(q===j)j=[];if(o.preFilter[K])if(n=o.preFilter[K](n,q,g,j,h,W)){if(n===true)continue}else r=L=true;if(n)for(var ca=0;(E=q[ca])!=null;ca++)if(E){L=S(E,n,ca,q);var Aa=h^!!L;if(g&&L!=null)if(Aa)r=true;else q[ca]=false;else if(Aa){j.push(E);
r=true}}if(L!==da){g||(q=j);a=a.replace(o.match[K],"");if(!r)return[];break}}if(a===k)if(r==null)throw"Syntax error, unrecognized expression: "+a;else break;k=a}return q};var o=s.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(a){return a.getAttribute("href")}},relative:{"+":function(a,d){var g=typeof d==="string",h=g&&!/\W/.test(d);g=g&&!h;if(h)d=d.toLowerCase();h=0;for(var k=a.length,j;h<k;h++)if(j=a[h]){for(;(j=j.previousSibling)&&j.nodeType!==1;);a[h]=g||j&&j.nodeName.toLowerCase()===
d?j||false:j===d}g&&s.filter(d,a,true)},">":function(a,d){var g=typeof d==="string";if(g&&!/\W/.test(d)){d=d.toLowerCase();for(var h=0,k=a.length;h<k;h++){var j=a[h];if(j){g=j.parentNode;a[h]=g.nodeName.toLowerCase()===d?g:false}}}else{h=0;for(k=a.length;h<k;h++)if(j=a[h])a[h]=g?j.parentNode:j.parentNode===d;g&&s.filter(d,a,true)}},"":function(a,d,g){var h=l++,k=f;if(typeof d==="string"&&!/\W/.test(d)){var j=d=d.toLowerCase();k=e}k("parentNode",d,h,a,j,g)},"~":function(a,d,g){var h=l++,k=f;if(typeof d===
"string"&&!/\W/.test(d)){var j=d=d.toLowerCase();k=e}k("previousSibling",d,h,a,j,g)}},find:{ID:function(a,d,g){if(typeof d.getElementById!=="undefined"&&!g)return(a=d.getElementById(a[1]))?[a]:[]},NAME:function(a,d){if(typeof d.getElementsByName!=="undefined"){var g=[];d=d.getElementsByName(a[1]);for(var h=0,k=d.length;h<k;h++)d[h].getAttribute("name")===a[1]&&g.push(d[h]);return g.length===0?null:g}},TAG:function(a,d){return d.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,d,g,h,k,j){a=
" "+a[1].replace(/\\/g,"")+" ";if(j)return a;j=0;for(var q;(q=d[j])!=null;j++)if(q)if(k^(q.className&&(" "+q.className+" ").replace(/[\t\n]/g," ").indexOf(a)>=0))g||h.push(q);else if(g)d[j]=false;return false},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a){return a[1].toLowerCase()},CHILD:function(a){if(a[1]==="nth"){var d=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=d[1]+(d[2]||1)-0;a[3]=d[3]-0}a[0]=l++;return a},
ATTR:function(a,d,g,h,k,j){d=a[1].replace(/\\/g,"");if(!j&&o.attrMap[d])a[1]=o.attrMap[d];if(a[2]==="~=")a[4]=" "+a[4]+" ";return a},PSEUDO:function(a,d,g,h,k){if(a[1]==="not")if((i.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=s(a[3],null,null,d);else{a=s.filter(a[3],d,g,true^k);g||h.push.apply(h,a);return false}else if(o.match.POS.test(a[0])||o.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!==
"hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,d,g){return!!s(g[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===
a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,d){return d===0},last:function(a,d,g,h){return d===h.length-1},even:function(a,d){return d%2===0},odd:function(a,d){return d%2===1},lt:function(a,d,g){return d<g[3]-0},gt:function(a,
d,g){return d>g[3]-0},nth:function(a,d,g){return g[3]-0===d},eq:function(a,d,g){return g[3]-0===d}},filter:{PSEUDO:function(a,d,g,h){var k=d[1],j=o.filters[k];if(j)return j(a,g,d,h);else if(k==="contains")return(a.textContent||a.innerText||b([a])||"").indexOf(d[3])>=0;else if(k==="not"){d=d[3];g=0;for(h=d.length;g<h;g++)if(d[g]===a)return false;return true}else throw"Syntax error, unrecognized expression: "+k;},CHILD:function(a,d){var g=d[1],h=a;switch(g){case "only":case "first":for(;h=h.previousSibling;)if(h.nodeType===
1)return false;if(g==="first")return true;h=a;case "last":for(;h=h.nextSibling;)if(h.nodeType===1)return false;return true;case "nth":g=d[2];var k=d[3];if(g===1&&k===0)return true;d=d[0];var j=a.parentNode;if(j&&(j.sizcache!==d||!a.nodeIndex)){var q=0;for(h=j.firstChild;h;h=h.nextSibling)if(h.nodeType===1)h.nodeIndex=++q;j.sizcache=d}a=a.nodeIndex-k;return g===0?a===0:a%g===0&&a/g>=0}},ID:function(a,d){return a.nodeType===1&&a.getAttribute("id")===d},TAG:function(a,d){return d==="*"&&a.nodeType===
1||a.nodeName.toLowerCase()===d},CLASS:function(a,d){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(d)>-1},ATTR:function(a,d){var g=d[1];a=o.attrHandle[g]?o.attrHandle[g](a):a[g]!=null?a[g]:a.getAttribute(g);g=a+"";var h=d[2];d=d[4];return a==null?h==="!=":h==="="?g===d:h==="*="?g.indexOf(d)>=0:h==="~="?(" "+g+" ").indexOf(d)>=0:!d?g&&a!==false:h==="!="?g!==d:h==="^="?g.indexOf(d)===0:h==="$="?g.substr(g.length-d.length)===d:h==="|="?g===d||g.substr(0,d.length+1)===d+"-":false},POS:function(a,
d,g,h){var k=o.setFilters[d[2]];if(k)return k(a,g,d,h)}}},O=o.match.POS;for(var C in o.match){o.match[C]=new RegExp(o.match[C].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[C]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[C].source)}var w=function(a,d){a=Array.prototype.slice.call(a,0);if(d){d.push.apply(d,a);return d}return a};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(R){w=function(a,d){d=d||[];if(p.call(a)==="[object Array]")Array.prototype.push.apply(d,
a);else if(typeof a.length==="number")for(var g=0,h=a.length;g<h;g++)d.push(a[g]);else for(g=0;a[g];g++)d.push(a[g]);return d}}var N;if(document.documentElement.compareDocumentPosition)N=function(a,d){if(!a.compareDocumentPosition||!d.compareDocumentPosition){if(a==d)m=true;return a.compareDocumentPosition?-1:1}a=a.compareDocumentPosition(d)&4?-1:a===d?0:1;if(a===0)m=true;return a};else if("sourceIndex"in document.documentElement)N=function(a,d){if(!a.sourceIndex||!d.sourceIndex){if(a==d)m=true;return a.sourceIndex?
-1:1}a=a.sourceIndex-d.sourceIndex;if(a===0)m=true;return a};else if(document.createRange)N=function(a,d){if(!a.ownerDocument||!d.ownerDocument){if(a==d)m=true;return a.ownerDocument?-1:1}var g=a.ownerDocument.createRange(),h=d.ownerDocument.createRange();g.setStart(a,0);g.setEnd(a,0);h.setStart(d,0);h.setEnd(d,0);a=g.compareBoundaryPoints(Range.START_TO_END,h);if(a===0)m=true;return a};(function(){var a=document.createElement("div"),d="script"+(new Date).getTime();a.innerHTML="<a name='"+d+"'/>";
var g=document.documentElement;g.insertBefore(a,g.firstChild);if(document.getElementById(d)){o.find.ID=function(h,k,j){if(typeof k.getElementById!=="undefined"&&!j)return(k=k.getElementById(h[1]))?k.id===h[1]||typeof k.getAttributeNode!=="undefined"&&k.getAttributeNode("id").nodeValue===h[1]?[k]:da:[]};o.filter.ID=function(h,k){var j=typeof h.getAttributeNode!=="undefined"&&h.getAttributeNode("id");return h.nodeType===1&&j&&j.nodeValue===k}}g.removeChild(a);g=a=null})();(function(){var a=document.createElement("div");
a.appendChild(document.createComment(""));if(a.getElementsByTagName("*").length>0)o.find.TAG=function(d,g){g=g.getElementsByTagName(d[1]);if(d[1]==="*"){d=[];for(var h=0;g[h];h++)g[h].nodeType===1&&d.push(g[h]);g=d}return g};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(d){return d.getAttribute("href",2)};a=null})();document.querySelectorAll&&function(){var a=s,d=document.createElement("div");
d.innerHTML="<p class='TEST'></p>";if(!(d.querySelectorAll&&d.querySelectorAll(".TEST").length===0)){s=function(h,k,j,q){k=k||document;if(!q&&k.nodeType===9&&!la(k))try{return w(k.querySelectorAll(h),j)}catch(n){}return a(h,k,j,q)};for(var g in a)s[g]=a[g];d=null}}();(function(){var a=document.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!a.getElementsByClassName||a.getElementsByClassName("e").length===0)){a.lastChild.className="e";if(a.getElementsByClassName("e").length!==
1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(d,g,h){if(typeof g.getElementsByClassName!=="undefined"&&!h)return g.getElementsByClassName(d[1])};a=null}}})();var ha=document.compareDocumentPosition?function(a,d){return a.compareDocumentPosition(d)&16}:function(a,d){return a!==d&&(a.contains?a.contains(d):true)},la=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":false},za=function(a,d){var g=[],h="",k;for(d=d.nodeType?[d]:d;k=o.match.PSEUDO.exec(a);){h+=k[0];
a=a.replace(o.match.PSEUDO,"")}a=o.relative[a]?a+"*":a;k=0;for(var j=d.length;k<j;k++)s(a,d[k],g);return s.filter(h,g)};return s}();c.lang={code:"hu",of:"/",loading:"Betötés",cancel:"Mégse",next:"Következő",previous:"Előző",play:"Lejátszás",pause:"Szünet",close:"Bezárás",errors:{single:'A tartalom megjelenítéséhez a következő bővídtmény szükséges: <a href="{0}">{1}</a>.',shared:'A tartalom megjelenítéséhez a következő két bővítmény szükséges: <a href="{0}">{1}</a>, <a href="{2}">{3}</a>.',
either:'A tartalom megjelenítéséhez a következőd bővítmények valamelyikét telepítenie kell: <a href="{0}">{1}</a> vagy <a href="{2}">{3}</a>.'}};c.iframe=function(b,e){this.obj=b;this.id=e;e=t("sb-overlay");this.height=b.height?parseInt(b.height,10):e.offsetHeight;this.width=b.width?parseInt(b.width,10):e.offsetWidth};c.iframe.prototype={append:function(b){var e='<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"';
if(c.isIE){e+=' allowtransparency="true"';if(c.isIE6)e+=" src=\"javascript:false;document.write('');\""}e+="></iframe>";b.innerHTML=e},remove:function(){var b=t(this.id);if(b){fa(b);c.isGecko&&delete F.frames[this.id]}},onLoad:function(){(c.isIE?t(this.id).contentWindow:F.frames[this.id]).location.href=this.obj.content}};c.html=function(b,e){this.obj=b;this.id=e;this.height=b.height?parseInt(b.height,10):300;this.width=b.width?parseInt(b.width,10):500};c.html.prototype={append:function(b){var e=document.createElement("div");
e.id=this.id;e.className="html";e.innerHTML=this.obj.content;b.appendChild(e)},remove:function(){var b=t(this.id);b&&fa(b)}};var ma=false,ja=[],Sa=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],D,H,J,na=true,v={};v.markup='<div id="sb-container"><div id="sb-overlay"></div><div id="sb-wrapper"><div id="sb-title"><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></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>';
v.options={animSequence:"sync",counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#000",overlayOpacity:0.5,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]};v.init=function(){c.appendHTML(document.body,oa(v.markup,c.lang));v.body=t("sb-body-inner");D=t("sb-container");H=t("sb-overlay");J=t("sb-wrapper");if(!aa)D.style.position="absolute";if(!$){var b,e,f=/url\("(.*\.png)"\)/;
z(Sa,function(l,p){if(b=t(p))if(e=c.getStyle(b,"backgroundImage").match(f)){b.style.backgroundImage="none";b.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+e[1]+",sizingMethod=scale);"}})}var i;T(F,"resize",function(){if(i){clearTimeout(i);i=null}if(y)i=setTimeout(v.onWindowResize,10)})};v.onOpen=function(b,e){na=false;D.style.display="block";ua();b=ka(c.options.initialHeight,c.options.initialWidth);U(b.innerHeight,b.top);V(b.width,b.left);if(c.options.showOverlay){H.style.backgroundColor=
c.options.overlayColor;c.setOpacity(H,0);c.options.modal||T(H,"click",c.close);ma=true}if(!aa){ia();T(F,"scroll",ia)}va();D.style.visibility="visible";ma?A(H,"opacity",c.options.overlayOpacity,c.options.fadeDuration,e):e()};v.onLoad=function(b,e){for(wa(true);v.body.firstChild;)fa(v.body.firstChild);La(b,function(){if(y){if(!b)J.style.visibility="visible";Ja(e)}})};v.onReady=function(b){if(y){var e=c.player,f=ka(e.height,e.width),i=function(){Ka(b)};switch(c.options.animSequence){case "hw":U(f.innerHeight,
f.top,true,function(){V(f.width,f.left,true,i)});break;case "wh":V(f.width,f.left,true,function(){U(f.innerHeight,f.top,true,i)});break;default:V(f.width,f.left,true);U(f.innerHeight,f.top,true,i)}}};v.onShow=function(b){wa(false,b);na=true};v.onClose=function(){aa||X(F,"scroll",ia);X(H,"click",c.close);J.style.visibility="hidden";var b=function(){D.style.visibility="hidden";D.style.display="none";va(true)};ma?A(H,"opacity",0,c.options.fadeDuration,b):b()};v.onPlay=function(){G("play",false);G("pause",
true)};v.onPause=function(){G("pause",false);G("play",true)};v.onWindowResize=function(){if(na){ua();var b=c.player,e=ka(b.height,b.width);V(e.width,e.left);U(e.innerHeight,e.top);b.onWindowResize&&b.onWindowResize()}};c.skin=v;F.Shadowbox=c})(window);

