(function(a,b){function bC(a,b){var d=B("sb-body-inner"),a=parseInt(a),b=parseInt(b),e=bp.offsetHeight-d.offsetHeight,f=bp.offsetWidth-d.offsetWidth,g=bo.offsetHeight,h=bo.offsetWidth,i=parseInt(c.options.viewportPadding)||20,j=c.player&&c.options.handleOversize!="drag";return c.setDimensions(a,b,g,h,e,f,i,j)}function bB(a,b,d,e){var f=d?c.options.resizeDuration:0;br(bp,"left",b,f);br(bp,"width",a,f,e)}function bA(a,b,d,e){var f=B("sb-wrapper-inner"),g=d?c.options.resizeDuration:0;br(bp,"top",b,g);br(f,"height",a,g,e)}function bz(a,b){var c=B("sb-title"),d=B("sb-info"),e=c.offsetHeight,f=d.offsetHeight,g=B("sb-title-inner"),h=B("sb-info-inner"),i=a?.35:0;br(g,"marginTop",e,i);br(h,"marginTop",f*-1,i,function(){g.style.visibility=h.style.visibility="hidden";b()})}function by(a){var b=B("sb-title-inner"),c=B("sb-info-inner"),d=.35;b.style.visibility=c.style.visibility="";if(b.innerHTML!=""){br(b,"marginTop",0,d)}br(c,"marginTop",0,d,a)}function bx(a){var b=c.getCurrent();B("sb-title-inner").innerHTML=b.title||"";var d,e,f,g,h;if(c.options.displayNav){d=true;var i=c.gallery.length;if(i>1){if(c.options.continuous){e=h=true}else{e=i-1>c.current;h=c.current>0}}if(c.options.slideshowDelay>0&&c.hasNext()){g=!c.isPaused();f=!g}}else{d=e=f=g=h=false}bv("close",d);bv("next",e);bv("play",f);bv("pause",g);bv("previous",h);var j="";if(c.options.displayCounter&&c.gallery.length>1){var i=c.gallery.length;if(c.options.counterType=="skip"){var k=0,l=i,m=parseInt(c.options.counterLimit)||0;if(m<i&&m>2){var n=Math.floor(m/2);k=c.current-n;if(k<0){k+=i}l=c.current+(m-n);if(l>i){l-=i}}while(k!=l){if(k==i){k=0}j+='<a onclick="Shadowbox.change('+k+');"';if(k==c.current){j+=' class="sb-counter-current"'}j+=">"+ ++k+"</a>"}}else{j=[c.current+1,c.lang.of,i].join(" ")}}B("sb-counter").innerHTML=j;a()}function bw(a,b){var d=B("sb-loading"),e=c.getCurrent().player,f=e=="img"||e=="html";if(a){c.setOpacity(d,0);d.style.display="block";var g=function(){c.clearOpacity(d);if(b){b()}};if(f){br(d,"opacity",1,c.options.fadeDuration,g)}else{g()}}else{var g=function(){d.style.display="none";c.clearOpacity(d);if(b){b()}};if(f){br(d,"opacity",0,c.options.fadeDuration,g)}else{g()}}}function bv(a,b){var c=B("sb-nav-"+a);if(c){c.style.display=b?"":"none"}}function bu(a){if(a){y(bl,function(a,b){b[0].style.visibility=b[1]||""})}else{bl=[];y(c.options.troubleElements,function(a,b){y(document.getElementsByTagName(b),function(a,b){bl.push([b,b.style.visibility]);b.style.visibility="hidden"})})}}function bt(){bn.style.top=document.documentElement.scrollTop+"px";bn.style.left=document.documentElement.scrollLeft+"px"}function bs(){bn.style.height=c.getWindowSize("Height")+"px";bn.style.width=c.getWindowSize("Width")+"px"}function br(a,b,d,e,f){var g=b=="opacity",h=g?c.setOpacity:function(a,c){a.style[b]=""+c+"px"};if(e==0||!g&&!c.options.animate||g&&!c.options.animateFade){h(a,d);if(f){f()}return}var i=parseFloat(c.getStyle(a,b))||0;var j=d-i;if(j==0){if(f){f()}return}e*=1e3;var k=w(),l=c.ease,m=k+e,n;var o=setInterval(function(){n=w();if(n>=m){clearInterval(o);o=null;h(a,d);if(f){f()}}else{h(a,i+l((n-k)/e)*j)}},10)}function bg(){L(document,"mousemove",bf);L(document,"mouseup",bg);if(c.isGecko){$.style.cursor="-moz-grab"}}function bf(a){var b=c.player,d=c.dimensions,e=H(a);var f=e[0]-Z.startX;Z.startX+=f;Z.x=Math.max(Math.min(0,Z.x+f),d.innerWidth-b.width);var g=e[1]-Z.startY;Z.startY+=g;Z.y=Math.max(Math.min(0,Z.y+g),d.innerHeight-b.height);x(_.style,{left:Z.x+"px",top:Z.y+"px"})}function be(a){I(a);var b=H(a);Z.startX=b[0];Z.startY=b[1];_=B(c.player.id);K(document,"mousemove",bf);K(document,"mouseup",bg);if(c.isGecko){$.style.cursor="-moz-grabbing"}}function bd(){if($){L($,"mousedown",be);C($);$=null}_=null}function bc(){ba();var a=["position:absolute","cursor:"+(c.isGecko?"-moz-grab":"move"),"background-color:"+(c.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");c.appendHTML(c.skin.body,'<div id="'+Y+'" style="'+a+'"></div>');$=B(Y);bb();K($,"mousedown",be)}function bb(){var a=c.dimensions;x($.style,{height:a.innerHeight+"px",width:a.innerWidth+"px"})}function ba(){Z={x:0,y:0,startX:null,startY:null}}function W(a){c.open(this);if(c.gallery.length){I(a)}}function P(){if(document.readyState==="complete"){return c.load()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",N,false);a.addEventListener("load",c.load,false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",N);a.attachEvent("onload",c.load);var b=false;try{b=a.frameElement===null}catch(d){}if(document.documentElement.doScroll&&b){O()}}}}function O(){if(M){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(O,1);return}c.load()}function L(a,b,c){jQuery(a).unbind(b,c)}function K(a,b,c){jQuery(a).bind(b,c)}function J(a){return a.keyCode}function I(a){a.preventDefault()}function H(a){return[a.pageX,a.pageY]}function G(a){return a.target}function F(){var a=document.body,b=document.createElement("div");D=typeof b.style.opacity==="string";b.style.position="fixed";b.style.margin=0;b.style.top="20px";a.appendChild(b,a.firstChild);E=b.offsetTop==20;a.removeChild(b)}function C(a){a.parentNode.removeChild(a)}function B(a){return document.getElementById(a)}function A(){}function z(a,b){return a.replace(/\{(\w+?)\}/g,function(a,c){return b[c]})}function y(a,b){var c=0,d=a.length;for(var e=a[0];c<d&&b.call(e,c,e)!==false;e=a[++c]){};}function x(a,b){for(var c in b){a[c]=b[c]}return a}function w(){return(new Date).getTime()}function v(){if(!j){return}if(c.player.onLoad){c.player.onLoad()}c.options.onFinish(c.getCurrent());if(!c.isPaused()){c.play()}q(true)}function u(){if(!j){return}c.player.append(c.skin.body,c.dimensions);c.skin.onShow(v)}function t(){if(!j){return}if(typeof c.player.ready!="undefined"){var a=setInterval(function(){if(j){if(c.player.ready){clearInterval(a);a=null;c.skin.onReady(u)}}else{clearInterval(a);a=null}},10)}else{c.skin.onReady(u)}}function s(a){q(false);var b=c.getCurrent();var d=b.player=="inline"?"html":b.player;if(typeof c[d]!="function"){throw"unknown player "+d}if(a){c.player.remove();c.revertOptions();c.applyOptions(b.options||{})}c.player=new c[d](b,c.playerId);if(c.gallery.length>1){var e=c.gallery[c.current+1]||c.gallery[0];if(e.player=="img"){var f=new Image;f.src=e.content}var g=c.gallery[c.current-1]||c.gallery[c.gallery.length-1];if(g.player=="img"){var h=new Image;h.src=g.content}}c.skin.onLoad(a,t)}function r(a){if(a.metaKey||a.shiftKey||a.altKey||a.ctrlKey){return}var b=J(a),d;switch(b){case 81:case 88:case 27:d=c.close;break;case 37:d=c.previous;break;case 39:d=c.next;break;case 32:d=typeof o=="number"?c.pause:c.play;break}if(d){I(a);d()}}function q(a){if(!c.options.enableKeys){return}(a?K:L)(document,"keydown",r)}function p(){var a=c.errorInfo,b=c.plugins,d,f,g,h,i,j,k,l;for(var m=0;m<c.gallery.length;++m){d=c.gallery[m];f=false;g=null;switch(d.player){case"flv":case"swf":if(!b.fla){g="fla"}break;case"qt":if(!b.qt){g="qt"}break;case"wmp":if(c.isMac){if(b.qt&&b.f4m){d.player="qt"}else{g="qtf4m"}}else{if(!b.wmp){g="wmp"}}break;case"qtwmp":if(b.qt){d.player="qt"}else{if(b.wmp){d.player="wmp"}else{g="qtwmp"}}break}if(g){if(c.options.handleUnsupported=="link"){switch(g){case"qtf4m":i="shared";j=[a.qt.url,a.qt.name,a.f4m.url,a.f4m.name];break;case"qtwmp":i="either";j=[a.qt.url,a.qt.name,a.wmp.url,a.wmp.name];break;default:i="single";j=[a[g].url,a[g].name]}d.player="html";d.content='<div class="sb-message">'+z(c.lang.errors[i],j)+"</div>"}else{f=true}}else{if(d.player=="inline"){h=e.exec(d.content);if(h){k=B(h[1]);if(k){d.content=k.innerHTML}else{f=true}}else{f=true}}else{if(d.player=="swf"||d.player=="flv"){l=d.options&&d.options.flashVersion||c.options.flashVersion;if(c.flash&&!c.flash.hasFlashPlayerVersion(l)){d.width=310;d.height=177}}}}if(f){c.gallery.splice(m,1);if(m<c.current){--c.current}else{if(m==c.current){c.current=m>0?m-1:m}}--m}}}var c={version:"3.0.3"};var d=navigator.userAgent.toLowerCase();if(d.indexOf("windows")>-1||d.indexOf("win32")>-1){c.isWindows=true}else{if(d.indexOf("macintosh")>-1||d.indexOf("mac os x")>-1){c.isMac=true}else{if(d.indexOf("linux")>-1){c.isLinux=true}}}c.isIE=d.indexOf("msie")>-1;c.isIE6=d.indexOf("msie 6")>-1;c.isIE7=d.indexOf("msie 7")>-1;c.isGecko=d.indexOf("gecko")>-1&&d.indexOf("safari")==-1;c.isWebKit=d.indexOf("applewebkit/")>-1;var e=/#(.+)$/,f=/^(light|shadow)box\[(.*?)\]/i,g=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,h=/[0-9a-z]+$/i,i=/(.+\/)shadowbox\.js/i;var j=false,k=false,l={},m=0,n,o;c.current=-1;c.dimensions=null;c.ease=function(a){return 1+Math.pow(a-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.onReady=A;c.path=null;c.player=null;c.playerId="sb-player";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:A,onClose:A,onFinish:A,onOpen:A,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 j};c.isPaused=function(){return o=="pause"};c.applyOptions=function(a){l=x({},c.options);x(c.options,a)};c.revertOptions=function(){x(c.options,l)};c.init=function(a,b){if(k){return}k=true;if(c.skin.options){x(c.options,c.skin.options)}if(a){x(c.options,a)}if(!c.path){var d,e=document.getElementsByTagName("script");for(var f=0,g=e.length;f<g;++f){d=i.exec(e[f].src);if(d){c.path=d[1];break}}}if(b){c.onReady=b}P()};c.open=function(a){if(j){return}var b=c.makeGallery(a);c.gallery=b[0];c.current=b[1];a=c.getCurrent();if(a==null){return}c.applyOptions(a.options||{});p();if(c.gallery.length){a=c.getCurrent();if(c.options.onOpen(a)===false){return}j=true;c.skin.onOpen(a,s)}};c.close=function(){if(!j){return}j=false;if(c.player){c.player.remove();c.player=null}if(typeof o=="number"){clearTimeout(o);o=null}m=0;q(false);c.options.onClose(c.getCurrent());c.skin.onClose();c.revertOptions()};c.play=function(){if(!c.hasNext()){return}if(!m){m=c.options.slideshowDelay*1e3}if(m){n=w();o=setTimeout(function(){m=n=0;c.next()},m);if(c.skin.onPlay){c.skin.onPlay()}}};c.pause=function(){if(typeof o!="number"){return}m=Math.max(0,m-(w()-n));if(m){clearTimeout(o);o="pause";if(c.skin.onPause){c.skin.onPause()}}};c.change=function(a){if(!(a in c.gallery)){if(c.options.continuous){a=a<0?c.gallery.length+a:0;if(!(a in c.gallery)){return}}else{return}}c.current=a;if(typeof o=="number"){clearTimeout(o);o=null;m=n=0}c.options.onChange(c.getCurrent());s(true)};c.next=function(){c.change(c.current+1)};c.previous=function(){c.change(c.current-1)};c.setDimensions=function(a,b,d,e,f,g,h,i){var j=a,k=b;var l=2*h+f;if(a+l>d){a=d-l}var m=2*h+g;if(b+m>e){b=e-m}var n=(j-a)/j,o=(k-b)/k,p=n>0||o>0;if(i&&p){if(n>o){b=Math.round(k/j*a)}else{if(o>n){a=Math.round(j/k*b)}}}c.dimensions={height:a+f,width:b+g,innerHeight:a,innerWidth:b,top:Math.floor((d-(a+l))/2+h),left:Math.floor((e-(b+m))/2+h),oversized:p};return c.dimensions};c.makeGallery=function(a){var b=[],d=-1;if(typeof a=="string"){a=[a]}if(typeof a.length=="number"){y(a,function(a,c){if(c.content){b[a]=c}else{b[a]={content:c}}});d=0}else{if(a.tagName){var e=c.getCache(a);a=e?e:c.makeObject(a)}if(a.gallery){b=[];var f;for(var g in c.cache){f=c.cache[g];if(f.gallery&&f.gallery==a.gallery){if(d==-1&&f.content==a.content){d=b.length}b.push(f)}}if(d==-1){b.unshift(a);d=0}}else{b=[a];d=0}}y(b,function(a,c){b[a]=x({},c)});return[b,d]};c.makeObject=function(a,b){var d={content:a.href,title:a.getAttribute("title")||"",link:a};if(b){b=x({},b);y(["player","title","height","width","gallery"],function(a,c){if(typeof b[c]!="undefined"){d[c]=b[c];delete b[c]}});d.options=b}else{d.options={}}if(!d.player){d.player=c.getPlayer(d.content)}var e=a.getAttribute("rel");if(e){var h=e.match(f);if(h){d.gallery=escape(h[2])}y(e.split(";"),function(a,b){h=b.match(g);if(h){d[h[1]]=h[2]}})}return d};c.getPlayer=function(a){if(a.indexOf("#")>-1&&a.indexOf(document.location.href)==0){return"inline"}var b=a.indexOf("?");if(b>-1){a=a.substring(0,b)}var d,e=a.match(h);if(e){d=e[0].toLowerCase()}if(d){if(c.img&&c.img.ext.indexOf(d)>-1){return"img"}if(c.swf&&c.swf.ext.indexOf(d)>-1){return"swf"}if(c.flv&&c.flv.ext.indexOf(d)>-1){return"flv"}if(c.qt&&c.qt.ext.indexOf(d)>-1){if(c.wmp&&c.wmp.ext.indexOf(d)>-1){return"qtwmp"}else{return"qt"}}if(c.wmp&&c.wmp.ext.indexOf(d)>-1){return"wmp"}}return"iframe"};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(a,b){var c=this.length>>>0;b=b||0;if(b<0){b+=c}for(;b<c;++b){if(b in this&&this[b]===a){return b}}return-1}}var D=true,E=true;c.getStyle=function(){var a=/opacity=([^)]*)/,b=document.defaultView&&document.defaultView.getComputedStyle;return function(c,d){var e;if(!D&&d=="opacity"&&c.currentStyle){e=a.test(c.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return e===""?"1":e}if(b){var f=b(c,null);if(f){e=f[d]}if(d=="opacity"&&e==""){e="1"}}else{e=c.currentStyle[d]}return e}}();c.appendHTML=function(a,b){if(a.insertAdjacentHTML){a.insertAdjacentHTML("BeforeEnd",b)}else{if(a.lastChild){var c=a.ownerDocument.createRange();c.setStartAfter(a.lastChild);var d=c.createContextualFragment(b);a.appendChild(d)}else{a.innerHTML=b}}};c.getWindowSize=function(a){if(document.compatMode==="CSS1Compat"){return document.documentElement["client"+a]}return document.body["client"+a]};c.setOpacity=function(a,b){var c=a.style;if(D){c.opacity=b==1?"":b}else{c.zoom=1;if(b==1){if(typeof c.filter=="string"&&/alpha/i.test(c.filter)){c.filter=c.filter.replace(/\s*[\w\.]*alpha\([^\)]*\);?/gi,"")}}else{c.filter=(c.filter||"").replace(/\s*[\w\.]*alpha\([^\)]*\)/gi,"")+" alpha(opacity="+b*100+")"}}};c.clearOpacity=function(a){c.setOpacity(a,1)};jQuery.fn.shadowbox=function(a){return this.each(function(){var b=jQuery(this);var c=jQuery.extend({},a||{},jQuery.metadata?b.metadata():jQuery.meta?b.data():{});var d=this.className||"";c.width=parseInt((d.match(/w:(\d+)/)||[])[1])||c.width;c.height=parseInt((d.match(/h:(\d+)/)||[])[1])||c.height;Shadowbox.setup(b,c)})};var M=false,N;if(document.addEventListener){N=function(){document.removeEventListener("DOMContentLoaded",N,false);c.load()}}else{if(document.attachEvent){N=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",N);c.load()}}}}c.load=function(){if(M){return}if(!document.body){return setTimeout(c.load,13)}M=true;F();c.onReady();if(!c.options.skipSetup){c.setup()}c.skin.init()};c.plugins={};if(navigator.plugins&&navigator.plugins.length){var Q=[];y(navigator.plugins,function(a,b){Q.push(b.name)});Q=Q.join(",");var R=Q.indexOf("Flip4Mac")>-1;c.plugins={fla:Q.indexOf("Shockwave Flash")>-1,qt:Q.indexOf("QuickTime")>-1,wmp:!R&&Q.indexOf("Windows Media")>-1,f4m:R}}else{var S=function(a){var b;try{b=new ActiveXObject(a)}catch(c){}return!!b};c.plugins={fla:S("ShockwaveFlash.ShockwaveFlash"),qt:S("QuickTime.QuickTime"),wmp:S("wmplayer.ocx"),f4m:false}}var T=/^(light|shadow)box/i,U="shadowboxCacheKey",V=1;c.cache={};c.select=function(a){var b=[];if(!a){var d;y(document.getElementsByTagName("a"),function(a,c){d=c.getAttribute("rel");if(d&&T.test(d)){b.push(c)}})}else{var e=a.length;if(e){if(typeof a=="string"){if(c.find){b=c.find(a)}}else{if(e==2&&typeof a[0]=="string"&&a[1].nodeType){if(c.find){b=c.find(a[0],a[1])}}else{for(var f=0;f<e;++f){b[f]=a[f]}}}}else{b.push(a)}}return b};c.setup=function(a,b){y(c.select(a),function(a,d){c.addCache(d,b)})};c.teardown=function(a){y(c.select(a),function(a,b){c.removeCache(b)})};c.addCache=function(a,d){var e=a[U];if(e==b){e=V++;a[U]=e;K(a,"click",W)}c.cache[e]=c.makeObject(a,d)};c.removeCache=function(a){L(a,"click",W);delete c.cache[a[U]];a[U]=null};c.getCache=function(a){var b=a[U];return b in c.cache&&c.cache[b]};c.clearCache=function(){for(var a in c.cache){c.removeCache(c.cache[a].link)}c.cache={}};c.find=function(){function p(a,b,c,d,e,f){for(var h=0,i=d.length;h<i;h++){var j=d[h];if(j){j=j[a];var k=false;while(j){if(j.sizcache===c){k=d[j.sizset];break}if(j.nodeType===1){if(!f){j.sizcache=c;j.sizset=h}if(typeof b!=="string"){if(j===b){k=true;break}}else{if(g.filter(b,[j]).length>0){k=j;break}}}j=j[a]}d[h]=k}}}function o(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){i=i[a];var j=false;while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1&&!f){i.sizcache=c;i.sizset=g}if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}function n(a){var b="",c;for(var d=0;a[d];d++){c=a[d];if(c.nodeType===3||c.nodeType===4){b+=c.nodeValue}else{if(c.nodeType!==8){b+=n(c.childNodes)}}}return b}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,c=0,d=Object.prototype.toString,e=false,f=true;[0,0].sort(function(){f=false;return 0});var g=function(b,c,e,f){e=e||[];var j=c=c||document;if(c.nodeType!==1&&c.nodeType!==9){return[]}if(!b||typeof b!=="string"){return e}var l=[],m,n,o,p,t=true,u=r(c),v=b;while((a.exec(""),m=a.exec(v))!==null){v=m[3];l.push(m[1]);if(m[2]){p=m[3];break}}if(l.length>1&&i.exec(b)){if(l.length===2&&h.relative[l[0]]){n=s(l[0]+l[1],c)}else{n=h.relative[l[0]]?[c]:g(l.shift(),c);while(l.length){b=l.shift();if(h.relative[b]){b+=l.shift()}n=s(b,n)}}}else{if(!f&&l.length>1&&c.nodeType===9&&!u&&h.match.ID.test(l[0])&&!h.match.ID.test(l[l.length-1])){var w=g.find(l.shift(),c,u);c=w.expr?g.filter(w.expr,w.set)[0]:w.set[0]}if(c){var w=f?{expr:l.pop(),set:k(f)}:g.find(l.pop(),l.length===1&&(l[0]==="~"||l[0]==="+")&&c.parentNode?c.parentNode:c,u);n=w.expr?g.filter(w.expr,w.set):w.set;if(l.length>0){o=k(n)}else{t=false}while(l.length){var x=l.pop(),y=x;if(!h.relative[x]){x=""}else{y=l.pop()}if(y==null){y=c}h.relative[x](o,y,u)}}else{o=l=[]}}if(!o){o=n}if(!o){throw"Syntax error, unrecognized expression: "+(x||b)}if(d.call(o)==="[object Array]"){if(!t){e.push.apply(e,o)}else{if(c&&c.nodeType===1){for(var z=0;o[z]!=null;z++){if(o[z]&&(o[z]===true||o[z].nodeType===1&&q(c,o[z]))){e.push(n[z])}}}else{for(var z=0;o[z]!=null;z++){if(o[z]&&o[z].nodeType===1){e.push(n[z])}}}}}else{k(o,e)}if(p){g(p,j,e,f);g.uniqueSort(e)}return e};g.uniqueSort=function(a){if(m){e=f;a.sort(m);if(e){for(var b=1;b<a.length;b++){if(a[b]===a[b-1]){a.splice(b--,1)}}}}return a};g.matches=function(a,b){return g(a,null,null,b)};g.find=function(a,b,c){var d,e;if(!a){return[]}for(var f=0,g=h.order.length;f<g;f++){var i=h.order[f],e;if(e=h.leftMatch[i].exec(a)){var j=e[1];e.splice(1,1);if(j.substr(j.length-1)!=="\\"){e[1]=(e[1]||"").replace(/\\/g,"");d=h.find[i](e,b,c);if(d!=null){a=a.replace(h.match[i],"");break}}}}if(!d){d=b.getElementsByTagName("*")}return{set:d,expr:a}};g.filter=function(a,c,d,e){var f=a,g=[],i=c,j,k,l=c&&c[0]&&r(c[0]);while(a&&c.length){for(var m in h.filter){if((j=h.match[m].exec(a))!=null){var n=h.filter[m],o,p;k=false;if(i===g){g=[]}if(h.preFilter[m]){j=h.preFilter[m](j,i,d,g,e,l);if(!j){k=o=true}else{if(j===true){continue}}}if(j){for(var q=0;(p=i[q])!=null;q++){if(p){o=n(p,j,q,i);var s=e^!!o;if(d&&o!=null){if(s){k=true}else{i[q]=false}}else{if(s){g.push(p);k=true}}}}}if(o!==b){if(!d){i=g}a=a.replace(h.match[m],"");if(!k){return[]}break}}}if(a===f){if(k==null){throw"Syntax error, unrecognized expression: "+a}else{break}}f=a}return i};var h=g.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,b){var c=typeof b==="string",d=c&&!/\W/.test(b),e=c&&!d;if(d){b=b.toLowerCase()}for(var f=0,h=a.length,i;f<h;f++){if(i=a[f]){while((i=i.previousSibling)&&i.nodeType!==1){}a[f]=e||i&&i.nodeName.toLowerCase()===b?i||false:i===b}}if(e){g.filter(b,a,true)}},">":function(a,b){var c=typeof b==="string";if(c&&!/\W/.test(b)){b=b.toLowerCase();for(var d=0,e=a.length;d<e;d++){var f=a[d];if(f){var h=f.parentNode;a[d]=h.nodeName.toLowerCase()===b?h:false}}}else{for(var d=0,e=a.length;d<e;d++){var f=a[d];if(f){a[d]=c?f.parentNode:f.parentNode===b}}if(c){g.filter(b,a,true)}}},"":function(a,b,d){var e=c++,f=p;if(typeof b==="string"&&!/\W/.test(b)){var g=b=b.toLowerCase();f=o}f("parentNode",b,e,a,g,d)},"~":function(a,b,d){var e=c++,f=p;if(typeof b==="string"&&!/\W/.test(b)){var g=b=b.toLowerCase();f=o}f("previousSibling",b,e,a,g,d)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var d=b.getElementById(a[1]);return d?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++){if(d[e].getAttribute("name")===a[1]){c.push(d[e])}}return c.length===0?null:c}},TAG:function(a,b){return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(/\\/g,"")+" ";if(f){return a}for(var g=0,h;(h=b[g])!=null;g++){if(h){if(e^(h.className&&(" "+h.className+" ").replace(/[\t\n]/g," ").indexOf(a)>=0)){if(!c){d.push(h)}}else{if(c){b[g]=false}}}}return false},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a,b){return a[1].toLowerCase()},CHILD:function(a){if(a[1]==="nth"){var b=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}a[0]=c++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1].replace(/\\/g,"");if(!f&&h.attrMap[g]){a[1]=h.attrMap[g]}if(a[2]==="~="){a[4]=" "+a[4]+" "}return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not"){if((a.exec(b[3])||"").length>1||/^\w/.test(b[3])){b[3]=g(b[3],null,null,c)}else{var i=g.filter(b[3],c,d,true^f);if(!d){e.push.apply(e,i)}return false}}else{if(h.match.POS.test(b[0])||h.match.CHILD.test(b[0])){return true}}return b},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){a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!g(c[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,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=h.filters[e];if(f){return f(a,c,b,d)}else{if(e==="contains"){return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0}else{if(e==="not"){var g=b[3];for(var c=0,i=g.length;c<i;c++){if(g[c]===a){return false}}return true}else{throw"Syntax error, unrecognized expression: "+e}}}},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling){if(d.nodeType===1){return false}}if(c==="first"){return true}d=a;case"last":while(d=d.nextSibling){if(d.nodeType===1){return false}}return true;case"nth":var e=b[2],f=b[3];if(e===1&&f===0){return true}var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling){if(d.nodeType===1){d.nodeIndex=++i}}h.sizcache=g}var j=a.nodeIndex-f;if(e===0){return j===0}else{return j%e===0&&j/e>=0}}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=h.attrHandle[c]?h.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:!g?e&&d!==false:f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":false},POS:function(a,b,c,d){var e=b[2],f=h.setFilters[e];if(f){return f(a,c,b,d)}}}};var i=h.match.POS;for(var j in h.match){h.match[j]=new RegExp(h.match[j].source+/(?![^\[]*\])(?![^\(]*\))/.source);h.leftMatch[j]=new RegExp(/(^(?:.|\r|\n)*?)/.source+h.match[j].source)}var k=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(l){k=function(a,b){var c=b||[];if(d.call(a)==="[object Array]"){Array.prototype.push.apply(c,a)}else{if(typeof a.length==="number"){for(var e=0,f=a.length;e<f;e++){c.push(a[e])}}else{for(var e=0;a[e];e++){c.push(a[e])}}}return c}}var m;if(document.documentElement.compareDocumentPosition){m=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){e=true}return a.compareDocumentPosition?-1:1}var c=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(c===0){e=true}return c}}else{if("sourceIndex"in document.documentElement){m=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b){e=true}return a.sourceIndex?-1:1}var c=a.sourceIndex-b.sourceIndex;if(c===0){e=true}return c}}else{if(document.createRange){m=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b){e=true}return a.ownerDocument?-1:1}var c=a.ownerDocument.createRange(),d=b.ownerDocument.createRange();c.setStart(a,0);c.setEnd(a,0);d.setStart(b,0);d.setEnd(b,0);var f=c.compareBoundaryPoints(Range.START_TO_END,d);if(f===0){e=true}return f}}}}(function(){var a=document.createElement("div"),c="script"+(new Date).getTime();a.innerHTML="<a name='"+c+"'/>";var d=document.documentElement;d.insertBefore(a,d.firstChild);if(document.getElementById(c)){h.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}};h.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}}d.removeChild(a);d=a=null})();(function(){var a=document.createElement("div");a.appendChild(document.createComment(""));if(a.getElementsByTagName("*").length>0){h.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++){if(c[e].nodeType===1){d.push(c[e])}}c=d}return c}}a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"){h.attrHandle.href=function(a){return a.getAttribute("href",2)}}a=null})();if(document.querySelectorAll){(function(){var a=g,b=document.createElement("div");b.innerHTML="<p class='TEST'></p>";if(b.querySelectorAll&&b.querySelectorAll(".TEST").length===0){return}g=function(b,c,d,e){c=c||document;if(!e&&c.nodeType===9&&!r(c)){try{return k(c.querySelectorAll(b),d)}catch(f){}}return a(b,c,d,e)};for(var c in a){g[c]=a[c]}b=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){return}a.lastChild.className="e";if(a.getElementsByClassName("e").length===1){return}h.order.splice(1,0,"CLASS");h.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c){return b.getElementsByClassName(a[1])}};a=null})();var q=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var r=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":false};var s=function(a,b){var c=[],d="",e,f=b.nodeType?[b]:b;while(e=h.match.PSEUDO.exec(a)){d+=e[0];a=a.replace(h.match.PSEUDO,"")}a=h.relative[a]?a+"*":a;for(var i=0,j=f.length;i<j;i++){g(a,f[i],c)}return g.filter(d,c)};return g}();c.flash=function(){var c=function(){function R(a){var b=/[\\\"<>\.;]/;var c=b.exec(a)!=null;return c?encodeURIComponent(a):a}function Q(a,b){var c=b?"visible":"hidden";if(u&&L(a)){L(a).style.visibility=c}else{P("#"+a,"visibility:"+c)}}function P(a,b){if(w.ie&&w.mac){return}var c=k.getElementsByTagName("head")[0],f=M("style");f.setAttribute("type","text/css");f.setAttribute("media","screen");if(!(w.ie&&w.win)&&typeof k.createTextNode!=d){f.appendChild(k.createTextNode(a+" {"+b+"}"))}c.appendChild(f);if(w.ie&&w.win&&typeof k.styleSheets!=d&&k.styleSheets.length>0){var g=k.styleSheets[k.styleSheets.length-1];if(typeof g.addRule==e){g.addRule(a,b)}}}function O(a){var b=w.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||0;c[2]=parseInt(c[2],10)||0;return b[0]>c[0]||b[0]==c[0]&&b[1]>c[1]||b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]?true:false}function N(a,b,c){a.attachEvent(b,c);p[p.length]=[a,b,c]}function M(a){return k.createElement(a)}function L(a){var b=null;try{b=k.getElementById(a)}catch(c){}return b}function K(a){var b=L(a);if(b){for(var c in b){if(typeof b[c]=="function"){b[c]=null}}b.parentNode.removeChild(b)}}function J(a){var b=L(a);if(b&&(b.nodeName=="OBJECT"||b.nodeName=="EMBED")){if(w.ie&&w.win){if(b.readyState==4){K(a)}else{j.attachEvent("onload",function(){K(a)})}}else{b.parentNode.removeChild(b)}}}function I(a,b,c){var d=M("param");d.setAttribute("name",b);d.setAttribute("value",c);a.appendChild(d)}function H(a,b,c){var f,g=L(c);if(g){if(typeof a.id==d){a.id=c}if(w.ie&&w.win){var i="";for(var j in a){if(a[j]!=Object.prototype[j]){if(j.toLowerCase()=="data"){b.movie=a[j]}else{if(j.toLowerCase()=="styleclass"){i+=' class="'+a[j]+'"'}else{if(j.toLowerCase()!="classid"){i+=" "+j+'="'+a[j]+'"'}}}}}var k="";for(var l in b){if(b[l]!=Object.prototype[l]){k+='<param name="'+l+'" value="'+b[l]+'" />'}}g.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+i+">"+k+"</object>";o[o.length]=a.id;f=L(a.id)}else{if(w.webkit&&w.webkit<312){var m=M("embed");m.setAttribute("type",h);for(var n in a){if(a[n]!=Object.prototype[n]){if(n.toLowerCase()=="data"){m.setAttribute("src",a[n])}else{if(n.toLowerCase()=="styleclass"){m.setAttribute("class",a[n])}else{if(n.toLowerCase()!="classid"){m.setAttribute(n,a[n])}}}}}for(var p in b){if(b[p]!=Object.prototype[p]){if(p.toLowerCase()!="movie"){m.setAttribute(p,b[p])}}}g.parentNode.replaceChild(m,g);f=m}else{var q=M(e);q.setAttribute("type",h);for(var r in a){if(a[r]!=Object.prototype[r]){if(r.toLowerCase()=="styleclass"){q.setAttribute("class",a[r])}else{if(r.toLowerCase()!="classid"){q.setAttribute(r,a[r])}}}}for(var s in b){if(b[s]!=Object.prototype[s]&&s.toLowerCase()!="movie"){I(q,s,b[s])}}g.parentNode.replaceChild(q,g);f=q}}}return f}function G(a){var b=M("div");if(w.win&&w.ie){b.innerHTML=a.innerHTML}else{var c=a.getElementsByTagName(e)[0];if(c){var d=c.childNodes;if(d){var f=d.length;for(var g=0;g<f;g++){if(!(d[g].nodeType==1&&d[g].nodeName=="PARAM")&&!(d[g].nodeType==8)){b.appendChild(d[g].cloneNode(true))}}}}}return b}function F(a){if(w.ie&&w.win&&a.readyState!=4){var b=M("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(G(a),b);a.style.display="none";var c=function(){a.parentNode.removeChild(a)};N(j,"onload",c)}else{a.parentNode.replaceChild(G(a),a)}}function E(a){v=true;var b=L(a.id);if(b){if(a.altContentId){var c=L(a.altContentId);if(c){s=c;t=a.altContentId}}else{s=G(b)}if(!/%$/.test(a.width)&&parseInt(a.width,10)<310){a.width="310"}if(!/%$/.test(a.height)&&parseInt(a.height,10)<137){a.height="137"}k.title=k.title.slice(0,47)+" - Flash Player Installation";var d=w.ie&&w.win?"ActiveX":"PlugIn",e=k.title,f="MMredirectURL="+j.location+"&MMplayerType="+d+"&MMdoctitle="+e,g=a.id;if(w.ie&&w.win&&b.readyState!=4){var h=M("div");g+="SWFObjectNew";h.setAttribute("id",g);b.parentNode.insertBefore(h,b);b.style.display="none";var l=function(){b.parentNode.removeChild(b)};N(j,"onload",l)}H({data:a.expressInstall,id:i,width:a.width,height:a.height},{flashvars:f},g)}}function D(a){var b=a.getElementsByTagName(e)[0];if(b){var c=M("embed"),d=b.attributes;if(d){var f=d.length;for(var g=0;g<f;g++){if(d[g].nodeName=="DATA"){c.setAttribute("src",d[g].nodeValue)}else{c.setAttribute(d[g].nodeName,d[g].nodeValue)}}}var h=b.childNodes;if(h){var i=h.length;for(var j=0;j<i;j++){if(h[j].nodeType==1&&h[j].nodeName=="PARAM"){c.setAttribute(h[j].getAttribute("name"),h[j].getAttribute("value"))}}}a.parentNode.replaceChild(c,a)}}function C(){var a=n.length;for(var b=0;b<a;b++){var c=n[b].id;if(w.pv[0]>0){var d=L(c);if(d){n[b].width=d.getAttribute("width")?d.getAttribute("width"):"0";n[b].height=d.getAttribute("height")?d.getAttribute("height"):"0";if(O(n[b].swfVersion)){if(w.webkit&&w.webkit<312){D(d)}Q(c,true)}else{if(n[b].expressInstall&&!v&&O("6.0.65")&&(w.win||w.mac)){E(n[b])}else{F(d)}}}}else{Q(c,true)}}}function B(a){if(typeof j.addEventListener!=d){j.addEventListener("load",a,false)}else{if(typeof k.addEventListener!=d){k.addEventListener("load",a,false)}else{if(typeof j.attachEvent!=d){N(j,"onload",a)}else{if(typeof j.onload=="function"){var b=j.onload;j.onload=function(){b();a()}}else{j.onload=a}}}}}function A(a){if(u){a()}else{m[m.length]=a}}function z(){if(u){return}if(w.ie&&w.win){var a=M("span");try{var b=k.getElementsByTagName("body")[0].appendChild(a);b.parentNode.removeChild(b)}catch(c){return}}u=true;if(r){clearInterval(r);r=null}var d=m.length;for(var e=0;e<d;e++){m[e]()}}function y(){if(q.readyState=="complete"){q.parentNode.removeChild(q);z()}}var d="undefined",e="object",f="Shockwave Flash",g="ShockwaveFlash.ShockwaveFlash",h="application/x-shockwave-flash",i="SWFObjectExprInst",j=a,k=document,l=navigator,m=[],n=[],o=[],p=[],q,r=null,s=null,t=null,u=false,v=false;var w=function(){var a=typeof k.getElementById!=d&&typeof k.getElementsByTagName!=d&&typeof k.createElement!=d,b=[0,0,0],c=null;if(typeof l.plugins!=d&&typeof l.plugins[f]==e){c=l.plugins[f].description;if(c&&!(typeof l.mimeTypes!=d&&l.mimeTypes[h]&&!l.mimeTypes[h].enabledPlugin)){c=c.replace(/^.*\s+(\S+\s+\S+$)/,"$1");b[0]=parseInt(c.replace(/^(.*)\..*$/,"$1"),10);b[1]=parseInt(c.replace(/^.*\.(.*)\s.*$/,"$1"),10);b[2]=/r/.test(c)?parseInt(c.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=d){var i=null,m=false;try{i=new ActiveXObject(g+".7")}catch(n){try{i=new ActiveXObject(g+".6");b=[6,0,21];i.AllowScriptAccess="always"}catch(n){if(b[0]==6){m=true}}if(!m){try{i=new ActiveXObject(g)}catch(n){}}}if(!m&&i){try{c=i.GetVariable("$version");if(c){c=c.split(" ")[1].split(",");b=[parseInt(c[0],10),parseInt(c[1],10),parseInt(c[2],10)]}}catch(n){}}}}var o=l.userAgent.toLowerCase(),p=l.platform.toLowerCase(),q=/webkit/.test(o)?parseFloat(o.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,r=false,s=p?/win/.test(p):/win/.test(o),t=p?/mac/.test(p):/mac/.test(o);return{w3cdom:a,pv:b,webkit:q,ie:r,win:s,mac:t}}();var x=function(){if(!w.w3cdom){return}A(C);if(w.ie&&w.win){try{k.write("<script id=__ie_ondomload defer=true src=//:></script>");q=L("__ie_ondomload");if(q){N(q,"onreadystatechange",y)}}catch(a){}}if(w.webkit&&typeof k.readyState!=d){r=setInterval(function(){if(/loaded|complete/.test(k.readyState)){z()}},10)}if(typeof k.addEventListener!=d){k.addEventListener("DOMContentLoaded",z,null)}B(z)}();var S=function(){if(w.ie&&w.win){a.attachEvent("onunload",function(){var a=p.length;for(var b=0;b<a;b++){p[b][0].detachEvent(p[b][1],p[b][2])}var d=o.length;for(var e=0;e<d;e++){J(o[e])}for(var f in w){w[f]=null}w=null;for(var g in c){c[g]=null}c=null})}}();return{registerObject:function(a,b,c){if(!w.w3cdom||!a||!b){return}var d={};d.id=a;d.swfVersion=b;d.expressInstall=c?c:false;n[n.length]=d;Q(a,false)},getObjectById:function(a){var b=null;if(w.w3cdom){var c=L(a);if(c){var f=c.getElementsByTagName(e)[0];if(!f||f&&typeof c.SetVariable!=d){b=c}else{if(typeof f.SetVariable!=d){b=f}}}}return b},embedSWF:function(a,b,c,f,g,h,i,j,k){if(!w.w3cdom||!a||!b||!c||!f||!g){return}c+="";f+="";if(O(g)){Q(b,false);var l={};if(k&&typeof k===e){for(var m in k){if(k[m]!=Object.prototype[m]){l[m]=k[m]}}}l.data=a;l.width=c;l.height=f;var n={};if(j&&typeof j===e){for(var o in j){if(j[o]!=Object.prototype[o]){n[o]=j[o]}}}if(i&&typeof i===e){for(var p in i){if(i[p]!=Object.prototype[p]){if(typeof n.flashvars!=d){n.flashvars+="&"+p+"="+i[p]}else{n.flashvars=p+"="+i[p]}}}}A(function(){H(l,n,b);if(l.id==b){Q(b,true)}})}else{if(h&&!v&&O("6.0.65")&&(w.win||w.mac)){v=true;Q(b,false);A(function(){var a={};a.id=a.altContentId=b;a.width=c;a.height=f;a.expressInstall=h;E(a)})}}},getFlashPlayerVersion:function(){return{major:w.pv[0],minor:w.pv[1],release:w.pv[2]}},hasFlashPlayerVersion:O,createSWF:function(a,c,d){if(w.w3cdom){return H(a,c,d)}else{return b}},removeSWF:function(a){if(w.w3cdom){J(a)}},createCSS:function(a,b){if(w.w3cdom){P(a,b)}},addDomLoadEvent:A,addLoadEvent:B,getQueryParamValue:function(a){var b=k.location.search||k.location.hash;if(a==null){return R(b)}if(b){var c=b.substring(1).split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==a){return R(c[d].substring(c[d].indexOf("=")+1))}}}return""},expressInstallCallback:function(){if(v&&s){var a=L(i);if(a){a.parentNode.replaceChild(s,a);if(t){Q(t,true);if(w.ie&&w.win){s.style.display="block"}}s=null;t=null;v=false}}}}}();return c}();c.lang={code:"hu",of:"/",loading:"Betölté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�tm�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� b�v�tm�nyek valamelyik�t telep�tenie kell: <a href="{0}">{1}</a> vagy <a href="{2}">{3}</a>.'}};var X,Y="sb-drag-proxy",Z,$,_;c.img=function(a,b){this.obj=a;this.id=b;this.ready=false;var c=this;X=new Image;X.onload=function(){c.height=a.height?parseInt(a.height,10):X.height;c.width=a.width?parseInt(a.width,10):X.width;c.ready=true;X.onload=null;X=null};X.src=a.content};c.img.ext=["bmp","gif","jpg","jpeg","png"];c.img.prototype={append:function(a,b){var d=document.createElement("img");d.id=this.id;d.src=this.obj.content;d.style.position="absolute";var e,f;if(b.oversized&&c.options.handleOversize=="resize"){e=b.innerHeight;f=b.innerWidth}else{e=this.height;f=this.width}d.setAttribute("height",e);d.setAttribute("width",f);a.appendChild(d)},remove:function(){var a=B(this.id);if(a){C(a)}bd();if(X){X.onload=null;X=null}},onLoad:function(){var a=c.dimensions;if(a.oversized&&c.options.handleOversize=="drag"){bc()}},onWindowResize:function(){var a=c.dimensions;switch(c.options.handleOversize){case"resize":var b=B(this.id);b.height=a.innerHeight;b.width=a.innerWidth;break;case"drag":if(_){var d=parseInt(c.getStyle(_,"top")),e=parseInt(c.getStyle(_,"left"));if(d+this.height<a.innerHeight){_.style.top=a.innerHeight-this.height+"px"}if(e+this.width<a.innerWidth){_.style.left=a.innerWidth-this.width+"px"}bb()}break}}};c.iframe=function(a,b){this.obj=a;this.id=b;var c=B("sb-overlay");this.height=a.height?parseInt(a.height,10):c.offsetHeight;this.width=a.width?parseInt(a.width,10):c.offsetWidth};c.iframe.prototype={append:function(a,b){var d='<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){d+=' allowtransparency="true"';if(c.isIE6){d+=" src=\"javascript:false;document.write('');\""}}d+="></iframe>";a.innerHTML=d},remove:function(){var b=B(this.id);if(b){C(b);if(c.isGecko){delete a.frames[this.id]}}},onLoad:function(){var b=c.isIE?B(this.id).contentWindow:a.frames[this.id];b.location.href=this.obj.content}};c.html=function(a,b){this.obj=a;this.id=b;this.height=a.height?parseInt(a.height,10):300;this.width=a.width?parseInt(a.width,10):500};c.html.prototype={append:function(a,b){var c=document.createElement("div");c.id=this.id;c.className="html";c.innerHTML=this.obj.content;a.appendChild(c)},remove:function(){var a=B(this.id);if(a){C(a)}}};c.swf=function(a,b){this.obj=a;this.id=b;this.height=a.height?parseInt(a.height,10):300;this.width=a.width?parseInt(a.width,10):300};c.swf.ext=["swf"];c.swf.prototype={append:function(a,b){var d=document.createElement("div");d.id=this.id;a.appendChild(d);var e=b.innerHeight,f=b.innerWidth,g=this.obj.content,h=c.options.flashVersion,i=c.path+"expressInstall.swf",j=c.options.flashVars,k=c.options.flashParams;c.flash.embedSWF(g,this.id,f,e,h,i,j,k)},remove:function(){c.flash.expressInstallCallback();c.flash.removeSWF(this.id)},onWindowResize:function(){var a=c.dimensions,b=B(this.id);b.height=a.innerHeight;b.width=a.innerWidth}};var bh=20;c.flv=function(a,b){this.obj=a;this.id=b;this.height=a.height?parseInt(a.height,10):300;if(c.options.showMovieControls){this.height+=bh}this.width=a.width?parseInt(a.width,10):300};c.flv.ext=["flv","m4v"];c.flv.prototype={append:function(a,b){var d=document.createElement("div");d.id=this.id;a.appendChild(d);var e=b.innerHeight,f=b.innerWidth,g=c.path+"player.swf",h=c.options.flashVersion,i=c.path+"expressInstall.swf",j=x({file:this.obj.content,height:e,width:f,autostart:c.options.autoplayMovies?"true":"false",controlbar:c.options.showMovieControls?"bottom":"none",backcolor:"0x000000",frontcolor:"0xCCCCCC",lightcolor:"0x557722"},c.options.flashVars),k=c.options.flashParams;c.flash.embedSWF(g,this.id,f,e,h,i,j,k)},remove:function(){c.flash.expressInstallCallback();c.flash.removeSWF(this.id)},onWindowResize:function(){var a=c.dimensions,b=B(this.id);b.height=a.innerHeight;b.width=a.innerWidth}};var bi=16;c.qt=function(a,b){this.obj=a;this.id=b;this.height=a.height?parseInt(a.height,10):300;if(c.options.showMovieControls){this.height+=bi}this.width=a.width?parseInt(a.width,10):300};c.qt.ext=["dv","mov","moov","movie","mp4","avi","mpg","mpeg"];c.qt.prototype={append:function(a,b){var d=c.options,e=String(d.autoplayMovies),f=String(d.showMovieControls);var g="<object",h={id:this.id,name:this.id,height:this.height,width:this.width,kioskmode:"true"};if(c.isIE){h.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";h.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"}else{h.type="video/quicktime";h.data=this.obj.content}for(var i in h){g+=" "+i+'="'+h[i]+'"'}g+=">";var j={src:this.obj.content,scale:"aspect",controller:f,autoplay:e};for(var k in j){g+='<param name="'+k+'" value="'+j[k]+'">'}g+="</object>";a.innerHTML=g},remove:function(){try{document[this.id].Stop()}catch(a){}var b=B(this.id);if(b){C(b)}}};var bj=c.isIE?70:45;c.wmp=function(a,b){this.obj=a;this.id=b;this.height=a.height?parseInt(a.height,10):300;if(c.options.showMovieControls){this.height+=bj}this.width=a.width?parseInt(a.width,10):300};c.wmp.ext=["asf","avi","mpg","mpeg","wm","wmv"];c.wmp.prototype={append:function(a,b){var d=c.options,e=d.autoplayMovies?1:0;var f='<object id="'+this.id+'" name="'+this.id+'" height="'+this.height+'" width="'+this.width+'"',g={autostart:d.autoplayMovies?1:0};if(c.isIE){f+=' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"';g.url=this.obj.content;g.uimode=d.showMovieControls?"full":"none"}else{f+=' type="video/x-ms-wmv"';f+=' data="'+this.obj.content+'"';g.showcontrols=d.showMovieControls?1:0}f+=">";for(var h in g){f+='<param name="'+h+'" value="'+g[h]+'">'}f+="</object>";a.innerHTML=f},remove:function(){if(c.isIE){try{a[this.id].controls.stop();a[this.id].URL="movie"+w()+".wmv";a[this.id]=function(){}}catch(b){}}var d=B(this.id);if(d){setTimeout(function(){C(d)},10)}}};var bk=false,bl=[],bm=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],bn,bo,bp,bq=true;var bD={};bD.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>';bD.options={animSequence:"sync",counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,fadeDuration:.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#000",overlayOpacity:.5,resizeDuration:.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]};bD.init=function(){c.appendHTML(document.body,z(bD.markup,c.lang));bD.body=B("sb-body-inner");bn=B("sb-container");bo=B("sb-overlay");bp=B("sb-wrapper");if(!E){bn.style.position="absolute"}if(!D){var b,d,e=/url\("(.*\.png)"\)/;y(bm,function(a,f){b=B(f);if(b){d=c.getStyle(b,"backgroundImage").match(e);if(d){b.style.backgroundImage="none";b.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+d[1]+",sizingMethod=scale);"}}})}var f;K(a,"resize",function(){if(f){clearTimeout(f);f=null}if(j){f=setTimeout(bD.onWindowResize,10)}})};bD.onOpen=function(b,d){bq=false;bn.style.display="block";bs();var e=bC(c.options.initialHeight,c.options.initialWidth);bA(e.innerHeight,e.top);bB(e.width,e.left);if(c.options.showOverlay){bo.style.backgroundColor=c.options.overlayColor;c.setOpacity(bo,0);if(!c.options.modal){K(bo,"click",c.close)}bk=true}if(!E){bt();K(a,"scroll",bt)}bu();bn.style.visibility="visible";if(bk){br(bo,"opacity",c.options.overlayOpacity,c.options.fadeDuration,d)}else{d()}};bD.onLoad=function(a,b){bw(true);while(bD.body.firstChild){C(bD.body.firstChild)}bz(a,function(){if(!j){return}if(!a){bp.style.visibility="visible"}bx(b)})};bD.onReady=function(a){if(!j){return}var b=c.player,d=bC(b.height,b.width);var e=function(){by(a)};switch(c.options.animSequence){case"hw":bA(d.innerHeight,d.top,true,function(){bB(d.width,d.left,true,e)});break;case"wh":bB(d.width,d.left,true,function(){bA(d.innerHeight,d.top,true,e)});break;default:bB(d.width,d.left,true);bA(d.innerHeight,d.top,true,e)}};bD.onShow=function(a){bw(false,a);bq=true};bD.onClose=function(){if(!E){L(a,"scroll",bt)}L(bo,"click",c.close);bp.style.visibility="hidden";var b=function(){bn.style.visibility="hidden";bn.style.display="none";bu(true)};if(bk){br(bo,"opacity",0,c.options.fadeDuration,b)}else{b()}};bD.onPlay=function(){bv("play",false);bv("pause",true)};bD.onPause=function(){bv("pause",false);bv("play",true)};bD.onWindowResize=function(){if(!bq){return}bs();var a=c.player,b=bC(a.height,a.width);bB(b.width,b.left);bA(b.innerHeight,b.top);if(a.onWindowResize){a.onWindowResize()}};c.skin=bD;a.Shadowbox=c})(window)
