
/* -- FILE: [lib/content/javascripts/old/standard.js]*/
// This is Nux s.r.o. standard library
NLoad=function(emailClass,loginId){this.emailClass=emailClass;this.loginId=loginId;this.loadEmails();this.focusLogin();return};NLoad.load=function(emailClass,loginId){var loader=function(){new NLoad(emailClass,loginId);};return $(window).ready(loader);};NLoad.prototype.loadEmails=function(){$("span."+this.emailClass).each(function(){var text=$(this).text();if($(this).attr("title"))var address=$(this).attr("title");else var address=text;address=address.replace('&#64;','@');address=address.replace('&#46;','.');$(this).html('<a href="mailto:'+address+'">'+text+'</a>')});return};NLoad.prototype.focusLogin=function(){var login=document.getElementById(this.loginId);if(login)login.focus();return};function openWindow(location){window.open(location);return false};
NController=function(instanceName){this.instanceName=instanceName};NController.prototype.email=function(coded,linkname,makeLink,sameAddress){var cipher='ZabcXYdeWVfUTghSiRQjklPmONnMoLpqKJrIHstGuFvEwDxCyBz1A234568790';var shift=coded.length;var link='';var ltr=null;for(var i=0;i<coded.length;i++){if(cipher.indexOf(coded.charAt(i))==-1){ltr=coded.charAt(i);link+=(ltr)}else{ltr=(cipher.indexOf(coded.charAt(i))-shift+cipher.length)%cipher.length;link+=(cipher.charAt(ltr))}}if(sameAddress)linkname=link;if(makeLink!==false)document.write('<a class="email" href="mailto:'+link+'">'+linkname+'</a>');else document.write(linkname);return};NController.prototype.flashEmbed=function(flashPath,width,height,bgColor,quality,menu,border,transparent,flashVars,loop){var embedVar="";loop=loop==null?"true":loop;transparent=transparent==null?"transparent":transparent;border=border==null?"false":border;quality=quality==null?"high":quality;embedVar='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+flashPath+'" /><param name="flashvars" value="'+flashVars+'" /><param name="quality" value="'+quality+'" /><param name="menu" value="'+menu+'" /><param name="loop" value="'+loop+'" /><param name="bgcolor" value="'+bgColor+'" /><param name="wmode" value="'+transparent+'" /><embed src="'+flashPath+'" flashvars="'+flashVars+'" quality="'+quality+'" menu="'+menu+'" loop="'+loop+'" bgcolor="'+bgColor+'" width="'+width+'" height="'+height+'" wmode="'+transparent+'" name="'+flashPath+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';document.write(embedVar)};NController.prototype.getOffset=function(what,id){var el=document.getElementById(id);var offset=0;do{switch(what){case"left":offset+=el.offsetLeft;break;case"top":offset+=el.offsetTop;break}el=el.offsetParent}while(el);return offset};NController.prototype.getLeft=function(id){return this.getOffset('left',id)};NController.prototype.getTop=function(id){return this.getOffset('top',id)};NController.prototype.getScrollLeft=function(){return document.documentElement.scrollLeft||window.pageXOffset||0};NController.prototype.getScrollTop=function(){if(document.documentElement.scrollTop)return document.documentElement.scrollTop;else if(window.pageYOffset)return window.pageYOffset;else return 0};NController.prototype.windowWidth=function(){return window.innerWidth||document.documentElement.clientWidth||0};NController.prototype.windowHeight=function(){return window.innerHeight||document.documentElement.clientHeight||0};NController.prototype.windowScrollWidth=function(){return document.documentElement.scrollWidth};NController.prototype.windowScrollHeight=function(){return document.documentElement.scrollHeight};var controller=new NController("controller");var loader = new NLoad();NLoad.load("noJsEmail", "username");

// Textarea resizers
(function ($) {
    var textarea, staticOffset;
    var iLastMousePos = 0;
    var iMin = 32;
    var grip;
    $.fn.TextAreaResizer = function () {
        return this.each(function () {
            textarea = $(this).addClass('processed'), staticOffset = null;
            minHeight = window.parseInt($(textarea).css('min-height'));
            maxHeight = window.parseInt($(textarea).css('max-height'));

            if (minHeight != maxHeight && $(textarea).css('resize') != 'none')
            {
                $(textarea).css('resize', 'vertical');
                $(this).wrap('<div class="resizable-textarea"><span></span></div>');/*.parent().append($('<div class="grippie"></div>').bind("mousedown", {
                    el: this
                }, startDrag));*/
                grip = $('div.grippie', $(this).parent())[0];
                $(grip).css('width', $(textarea).width()+4);
            }
        })
    };

    function startDrag(e) {
        textarea = $(e.data.el);
        textarea.blur();
        iLastMousePos = mousePosition(e).y;
        staticOffset = textarea.height() - iLastMousePos;
        textarea.css('opacity', 0.25);
        $(document).mousemove(performDrag).mouseup(endDrag);
        return false
    }
    function performDrag(e) {
        var iThisMousePos = mousePosition(e).y;
        var iMousePos = staticOffset + iThisMousePos;
        if (iLastMousePos >= (iThisMousePos)) {
            iMousePos -= 5
        }
        iLastMousePos = iThisMousePos;
        iMousePos = Math.max(iMin, iMousePos);
        textarea.height(iMousePos + 'px');
        if (iMousePos < iMin) {
            endDrag(e)
        }
        return false
    }
    function endDrag(e) {
        $(document).unbind('mousemove', performDrag).unbind('mouseup', endDrag);
        textarea.css('opacity', 1);
        console.log('drop')
        textarea.focus();
        textarea = null;
        staticOffset = null;
        iLastMousePos = 0;
    }
    function mousePosition(e) {
        return {
            x: e.clientX + document.documentElement.scrollLeft,
            y: e.clientY + document.documentElement.scrollTop
        }
    }
})(jQuery);

$(document).ready(function() {
    $("textarea").TextAreaResizer();
});


/* -- FILE: [lib/content/javascripts/old/jquery.metadata.js]*/
/*
* Metadata - jQuery plugin for parsing metadata from elements
*
* Copyright (c) 2006 John Resig, Yehuda Katz, Jörn Zaefferer, Paul McLanahan
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/

/**
* Sets the type of metadata to use. Metadata is encoded in JSON, and each property
* in the JSON will become a property of the element itself.
*
* There are three supported types of metadata storage:
*
* attr: Inside an attribute. The name parameter indicates *which* attribute.
*
* class: Inside the class attribute, wrapped in curly braces: { }
*
* elem: Inside a child element (e.g. a script tag). The
* name parameter indicates *which* element.
*
* The metadata for an element is loaded the first time the element is accessed via jQuery.
*
* As a result, you can define the metadata type, use $(expr) to load the metadata into the elements
* matched by expr, then redefine the metadata type and run another $(expr) for other elements.
*
* @name $.metadata.setType
*
* @example <p id="one" class="some_class {item_id: 1, item_label: 'Label'}">This is a p</p>
* @before $.metadata.setType("class")
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
* @desc Reads metadata from the class attribute
*
* @example <p id="one" class="some_class" data="{item_id: 1, item_label: 'Label'}">This is a p</p>
* @before $.metadata.setType("attr", "data")
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
* @desc Reads metadata from a "data" attribute
*
* @example <p id="one" class="some_class"><script>{item_id: 1, item_label: 'Label'}</script>This is a p</p>
* @before $.metadata.setType("elem", "script")
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
* @desc Reads metadata from a nested script element
*
* @param String type The encoding type
* @param String name The name of the attribute to be used to get metadata (optional)
* @cat Plugins/Metadata
* @descr Sets the type of encoding to be used when loading metadata for the first time
* @type undefined
* @see metadata()
*/

(function($) {

$.extend({
metadata : {
defaults : {
type: 'class',
name: 'metadata',
cre: /({.*})/,
single: 'metadata'
},
setType: function( type, name ){
this.defaults.type = type;
this.defaults.name = name;
},
get: function( elem, opts ){
var settings = $.extend({},this.defaults,opts);
// check for empty string in single property
if ( !settings.single.length ) settings.single = 'metadata';

var data = $.data(elem, settings.single);
// returned cached data if it already exists
if ( data ) return data;

data = "{}";

if ( settings.type == "class" ) {
var m = settings.cre.exec( elem.className );
if ( m )
data = m[1];
} else if ( settings.type == "elem" ) {
if( !elem.getElementsByTagName )
return undefined;
var e = elem.getElementsByTagName(settings.name);
if ( e.length )
data = $.trim(e[0].innerHTML);
} else if ( elem.getAttribute != undefined ) {
var attr = elem.getAttribute( settings.name );
if ( attr )
data = attr;
}

if ( data.indexOf( '{' ) <0 )
data = "{" + data + "}";

data = eval("(" + data + ")");

$.data( elem, settings.single, data );
return data;
}
}
});

/**
* Returns the metadata object for the first member of the jQuery object.
*
* @name metadata
* @descr Returns element's metadata object
* @param Object opts An object contianing settings to override the defaults
* @type jQuery
* @cat Plugins/Metadata
*/
$.fn.metadata = function( opts ){
return $.metadata.get( this[0], opts );
};

})(jQuery);

/* -- FILE: [lib/content/javascripts/old/jquery.maphilight.min.js]*/
(function(G){var B,J,C,K,N,M,I,E,H,A,L;B=document.namespaces;J=!!document.createElement("canvas").getContext;if(!(J||B)){G.fn.maphilight=function(){return this};return }if(J){E=function(O){return Math.max(0,Math.min(parseInt(O,16),255))};H=function(O,P){return"rgba("+E(O.substr(0,2))+","+E(O.substr(2,2))+","+E(O.substr(4,2))+","+P+")"};C=function(O){var P=G('<canvas style="width:'+O.width+"px;height:"+O.height+'px;"></canvas>').get(0);P.getContext("2d").clearRect(0,0,P.width,P.height);return P};var F=function(Q,O,R,P,S){P=P||0;S=S||0;Q.beginPath();if(O=="rect"){Q.rect(R[0]+P,R[1]+S,R[2]-R[0],R[3]-R[1])}else{if(O=="poly"){Q.moveTo(R[0]+P,R[1]+S);for(i=2;i<R.length;i+=2){Q.lineTo(R[i]+P,R[i+1]+S)}}else{if(O=="circ"){Q.arc(R[0]+P,R[1]+S,R[2],0,Math.PI*2,false)}}}Q.closePath()};K=function(Q,T,U,X,O){var S,P=Q.getContext("2d");if(X.shadow){P.save();if(X.shadowPosition=="inside"){F(P,T,U);P.clip()}var R=Q.width*100;var W=Q.height*100;F(P,T,U,R,W);P.shadowOffsetX=X.shadowX-R;P.shadowOffsetY=X.shadowY-W;P.shadowBlur=X.shadowRadius;P.shadowColor=H(X.shadowColor,X.shadowOpacity);var V=X.shadowFrom;if(!V){if(X.shadowPosition=="outside"){V="fill"}else{V="stroke"}}if(V=="stroke"){P.strokeStyle="rgba(0,0,0,1)";P.stroke()}else{if(V=="fill"){P.fillStyle="rgba(0,0,0,1)";P.fill()}}P.restore();if(X.shadowPosition=="outside"){P.save();F(P,T,U);P.globalCompositeOperation="destination-out";P.fillStyle="rgba(0,0,0,1);";P.fill();P.restore()}}P.save();F(P,T,U);if(X.fill){P.fillStyle=H(X.fillColor,X.fillOpacity);P.fill()}if(X.stroke){P.strokeStyle=H(X.strokeColor,X.strokeOpacity);P.lineWidth=X.strokeWidth;P.stroke()}P.restore();if(X.fade){G(Q).css("opacity",0).animate({opacity:1},100)}};N=function(O){O.getContext("2d").clearRect(0,0,O.width,O.height)}}else{C=function(O){return G('<var style="zoom:1;overflow:hidden;display:block;width:'+O.width+"px;height:"+O.height+'px;"></var>').get(0)};K=function(P,S,T,W,O){var U,V,Q,R;U='<v:fill color="#'+W.fillColor+'" opacity="'+(W.fill?W.fillOpacity:0)+'" />';V=(W.stroke?'strokeweight="'+W.strokeWidth+'" stroked="t" strokecolor="#'+W.strokeColor+'"':'stroked="f"');Q='<v:stroke opacity="'+W.strokeOpacity+'"/>';if(S=="rect"){R=G('<v:rect name="'+O+'" filled="t" '+V+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+T[0]+"px;top:"+T[1]+"px;width:"+(T[2]-T[0])+"px;height:"+(T[3]-T[1])+'px;"></v:rect>')}else{if(S=="poly"){R=G('<v:shape name="'+O+'" filled="t" '+V+' coordorigin="0,0" coordsize="'+P.width+","+P.height+'" path="m '+T[0]+","+T[1]+" l "+T.join(",")+' x e" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:0px;left:0px;width:'+P.width+"px;height:"+P.height+'px;"></v:shape>')}else{if(S=="circ"){R=G('<v:oval name="'+O+'" filled="t" '+V+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+(T[0]-T[2])+"px;top:"+(T[1]-T[2])+"px;width:"+(T[2]*2)+"px;height:"+(T[2]*2)+'px;"></v:oval>')}}}R.get(0).innerHTML=U+Q;G(P).append(R)};N=function(O){G(O).find("[name=highlighted]").remove()}}M=function(P){var O,Q=P.getAttribute("coords").split(",");for(O=0;O<Q.length;O++){Q[O]=parseFloat(Q[O])}return[P.getAttribute("shape").toLowerCase().substr(0,4),Q]};L=function(Q,P){var O=G(Q);return G.extend({},P,G.metadata?O.metadata():false,O.data("maphilight"))};A=function(O){if(!O.complete){return false}if(typeof O.naturalWidth!="undefined"&&O.naturalWidth===0){return false}return true};I={position:"absolute",left:0,top:0,padding:0,border:0};var D=false;G.fn.maphilight=function(Q){Q=G.extend({},G.fn.maphilight.defaults,Q);if(!J&&G.browser.msie&&!D){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var P=document.createStyleSheet();var O=["shape","rect","oval","circ","fill","stroke","imagedata","group","textbox"];G.each(O,function(){P.addRule("v\\:"+this,"behavior: url(#default#VML); antialias:true")});D=true}return this.each(function(){var W,T,a,S,V,X,Z,U,Y;W=G(this);if(!A(this)){return window.setTimeout(function(){W.maphilight(Q)},200)}a=G.extend({},Q,G.metadata?W.metadata():false,W.data("maphilight"));Y=W.get(0).getAttribute("usemap");S=G('map[name="'+Y.substr(1)+'"]');if(!(W.is('img,input[type="image"]')&&Y&&S.size()>0)){return }if(W.hasClass("maphilighted")){var R=W.parent();W.insertBefore(R);R.remove();G(S).unbind(".maphilight").find("area[coords]").unbind(".maphilight")}T=G("<div></div>").css({display:"block",background:'url("'+this.src+'")',position:"relative",padding:0,width:this.width,height:this.height});if(a.wrapClass){if(a.wrapClass===true){T.addClass(G(this).attr("class"))}else{T.addClass(a.wrapClass)}}W.before(T).css("opacity",0).css(I).remove();if(G.browser.msie){W.css("filter","Alpha(opacity=0)")}T.append(W);V=C(this);G(V).css(I);V.height=this.height;V.width=this.width;Z=function(f){var c,d;d=L(this,a);if(!d.neverOn&&!d.alwaysOn){c=M(this);K(V,c[0],c[1],d,"highlighted");if(d.groupBy){var b;if(/^[a-zA-Z][\-a-zA-Z]+$/.test(d.groupBy)){b=S.find("area["+d.groupBy+'="'+G(this).attr(d.groupBy)+'"]')}else{b=S.find(d.groupBy)}var g=this;b.each(function(){if(this!=g){var h=L(this,a);if(!h.neverOn&&!h.alwaysOn){var e=M(this);K(V,e[0],e[1],h,"highlighted")}}})}if(!J){G(V).append("<v:rect></v:rect>")}}};G(S).bind("alwaysOn.maphilight",function(){if(X){N(X)}if(!J){G(V).empty()}G(S).find("area[coords]").each(function(){var b,c;c=L(this,a);if(c.alwaysOn){if(!X&&J){X=C(W[0]);G(X).css(I);X.width=W[0].width;X.height=W[0].height;W.before(X)}c.fade=c.alwaysOnFade;b=M(this);if(J){K(X,b[0],b[1],c,"")}else{K(V,b[0],b[1],c,"")}}})});G(S).trigger("alwaysOn.maphilight").find("area[coords]").bind("mouseover.maphilight",Z).bind("mouseout.maphilight",function(b){N(V)});W.before(V);W.addClass("maphilighted")})};G.fn.maphilight.defaults={fill:true,fillColor:"000000",fillOpacity:0.2,stroke:true,strokeColor:"ff0000",strokeOpacity:1,strokeWidth:1,fade:true,alwaysOn:false,neverOn:false,groupBy:false,wrapClass:true,shadow:false,shadowX:0,shadowY:0,shadowRadius:6,shadowColor:"000000",shadowOpacity:0.8,shadowPosition:"outside",shadowFrom:false}})(jQuery);

/* -- FILE: [lib/content/javascripts/old/thickbox.js]*/
// Thickbox
function Floatbox(){this.defaultOptions={theme:'white',padding:12,panelPadding:8,outerBorder:4,innerBorder:1,overlayOpacity:55,controlOpacity:60,autoSizeImages:true,autoSizeOther:false,resizeImages:true,resizeOther:false,resizeTool:'topleft',infoCorner:'bl',controlCorner:'tr',positionLeft:false,positionTop:false,enableDrag:false,dropShadow:true,showCaption:true,showItemNumber:true,showClose:true,hideFlash:true,hideJava:true,disableScroll:false,preloadAll:true,enableCookies:false,cookieScope:'site',language:'auto',graphicsType:'auto',urlGraphics:'https://www.wboxtech.com/lib/content/images/thickbox-graphics/',urlLanguages:'https://www.wboxtech.com/lib/content/javascripts/old/languages/',navType:'both',navOverlayWidth:35,navOverlayPos:30,showNavOverlay:'always',showHints:'always',enableWrap:true,enableKeyboardNav:true,outsideClickCloses:true,showIndexLinks:true,showIndexThumbs:true,maxIndexCount:17,indexLinksPanel:'info',doAnimations:false,resizeDuration:3.5,imageFadeDuration:3.5,overlayFadeDuration:4,splitResize:'no',startAtClick:true,zoomImageStart:true,liveImageResize:false,slideInterval:4.5,endTask:'exit',showPlayPause:true,startPaused:false,pauseOnResize:true,pauseOnPrev:true,pauseOnNext:false};this.childOptions={overlayOpacity:45,resizeDuration:3,imageFadeDuration:3,overlayFadeDuration:0};this.init()}Floatbox.prototype={init:function(){this.win=top;this.doc=this.win.document;this.bod=this.doc.body;this.html=this.doc.documentElement;this.items=[];this.nodeNames=[];this.hiddenEls=[];this.timeouts={};this.pos={};this.setOptions(this.defaultOptions);if(typeof fbPageOptions==='object')this.setOptions(fbPageOptions);this.setOptions(this.parseOptionString(this.win.location.search.substring(1)));this.panelGap=22;this.infoLinkGap=16;this.showHintsTime=1600;this.zoomPopBorder=1;this.controlSpacing=8;this.minIndexWidth=120;this.ctrlJump=5;this.slowLoadDelay=750;this.loaderDelay=200;this.shadowSize=8;this.initialSize=100;this.slowZoomImg=this.urlGraphics+'loading_white.gif';this.slowLoadImg=this.urlGraphics+'loading_black.gif';this.iframeSrc=this.urlGraphics+'loading_iframe.html';this.resizeUpCursor=this.urlGraphics+'magnify_plus.cur';this.resizeDownCursor=this.urlGraphics+'magnify_minus.cur';this.notFoundImg=this.urlGraphics+'404.jpg';this.defaultWidth='85%';this.defaultHeight='82%';this.minInfoWidth=80;if(!(this.isChild=!!(this.win.floatbox&&this.win.floatbox.fbBox))){this.fbParent=this.lastChild=this;this.anchors=[];this.children=[];this.content={};this.preloads={};this.preloads.count=0;this.xhr=this.getXMLHttpRequest();this.strings={hintClose:'Konec (klávesa: Esc)',hintPrev:'Předcházející (klávesa: <--)',hintNext:'Další (klávesa: -->)',hintPlay:'Přehrát (klávesa: mezerník)',hintPause:'Pause (klávesa: mezerník)',hintResize:'Změna velikosti (klávesa: Tab)',imgCount:'Obrázek %1 z %2',nonImgCount:'Strana %1 z %2',mixedCount:'(%1 z %2)',infoText:'Informace...',printText:'Vytisknout...'}}else{this.anchors=fb.anchors;this.children=fb.children;this.content=fb.content;this.xhr=fb.xhr;this.strings=fb.strings;this.fbParent=fb.lastChild;if(this.fbParent.isSlideshow)this.fbParent.setPause(true);fb.lastChild=this;this.children.push(this)}this.mac=navigator.appVersion.indexOf('Macintosh')!==-1;if(window.opera){this.opera=true;this.operaOld=!document.getElementsByClassName;this.operaMac=this.mac}else if(document.all){this.ie=true;this.ieOld=parseInt(navigator.appVersion.substr(navigator.appVersion.indexOf('MSIE')+5),10)<7;this.ie8b2=window.postMessage&&navigator.appMinorVersion==='beta 2';this.ieXP=parseInt(navigator.appVersion.substr(navigator.appVersion.indexOf('Windows NT')+11),10)<6}else if(navigator.userAgent.indexOf('Firefox')!==-1){this.ff=true;this.ffOld=!document.getElementsByClassName;this.ffNew=!this.ffOld;this.ffMac=this.mac}else if(navigator.appVersion.indexOf('WebKit')!==-1){this.webkit=true;this.webkitNew=parseInt(navigator.appVersion.substr(navigator.appVersion.indexOf('WebKit')+7),10)>=500;this.webkitOld=!this.webkitNew;this.webkitMac=this.mac}this.browserLanguage=(navigator.language||navigator.userLanguage||navigator.systemLanguage||navigator.browserLanguage||'en').substring(0,2);if(!this.isChild){var lang=this.language==='auto'?this.browserLanguage:this.language;if(this.xhr){var that=this;this.xhr.getResponse(this.urlLanguages+lang+'.json.js',function(xhr){if((xhr.status===200||xhr.status===203||xhr.status===304)&&xhr.responseText){var text=xhr.responseText;if(that.ieXP){text=text.replace(String.fromCharCode(8592),'<--').replace(String.fromCharCode(8594),'-->')}try{var obj=eval('('+text+')');if(obj&&obj.hintClose)that.strings=obj}catch(e){}}})}}if(this.graphicsType.toLowerCase()==='english'||(this.graphicsType==='auto'&&this.browserLanguage==='en')){this.offPos='top left';this.onPos='bottom left'}else{this.offPos='top right';this.onPos='bottom right';this.controlSpacing=0}this.zIndex={base:90000+10*this.children.length,fbOverlay:1,fbBox:2,fbCanvas:3,fbMainDiv:4,fbLeftNav:5,fbRightNav:5,fbOverlayPrev:6,fbOverlayNext:6,fbResizer:7,fbZoomDiv:8,fbInfoPanel:8,fbControlPanel:8};var match=/\bautoStart=(.+?)(?:&|$)/i.exec(this.win.location.search);this.autoHref=match?match[1]:false},tagAnchors:function(baseEl){var that=this,doOutline=this.ieOld&&/^fb/.test(baseEl.id);function tag(tagName){var elements=baseEl.getElementsByTagName(tagName);for(var i=0,len=elements.length;i<len;i++){var el=elements[i];var elClass=el.getAttribute('class');elClass=elClass?elClass:el.getAttribute('className');if(elClass){for(var att in elClass){if(that.autoGallery&&that.fileType(el.href)==='img'&&att!=='nofloatbox'){el.setAttribute('className','floatbox.autoGallery');if(that.autoTitle&&!el.getAttribute('title'))el.setAttribute('title',that.autoTitle)}}}if(doOutline)el.setAttribute('hideFocus','true');that.tagOneAnchor(el)}}tag('a');tag('area')},tagOneAnchor:function(anchor){var that=this,isAnchor=!!anchor.getAttribute;if(isAnchor){var elClass=anchor.getAttribute('class');elClass=elClass?elClass:anchor.getAttribute('className');var relation=null;if(elClass){var classes=elClass.split(' ');for(var att in classes){if(/^(thickbox|gallery|iframe|slideshow|lytebox|lyteshow|lyteframe|lightbox)/i.test(classes[att])){relation=classes[att];break}}}var a={href:anchor.href||anchor.getAttribute('href'),rel:relation,rev:anchor.getAttribute('rev'),title:anchor.getAttribute('title'),anchor:anchor,thumb:this.getThumb(anchor)};var match;if(a.thumb&&(match=/(?:^|\s)fbPop(up|down)(?:\s|$)/i.exec(anchor.className))){a.popup=true;var up=(match[1]==='up');a.thumb.style.borderWidth=this.zoomPopBorder+'px';anchor.onmouseover=function(){a.thumb.style.display='none';var aPos=that.getLeftTop(this,true),aLeft=aPos.left,aTop=aPos.top;aPos=that.getLayout(this);a.thumb.style.display='';var relLeft=(aPos.width-a.thumb.offsetWidth)/2,relTop=up?2-a.thumb.offsetHeight:aPos.height,scroll=that.getScroll(),screenRight=scroll.left+that.getDisplayWidth();var spill=aPos.left+relLeft+a.thumb.offsetWidth-screenRight;if(spill>0)relLeft-=spill;var spill=aPos.left+relLeft-scroll.left;if(spill<0)relLeft-=spill;if(up){if(aPos.top+relTop<scroll.top)relTop=aPos.height}else{if(aPos.top+relTop+a.thumb.offsetHeight>scroll.top+that.getDisplayHeight())relTop=2-a.thumb.offsetHeight}a.thumb.style.left=(aLeft+relLeft)+'px';a.thumb.style.top=(aTop+relTop)+'px'};anchor.onmouseout=function(){a.thumb.style.left='-9999px';a.thumb.style.top='0'}}}else{var a=anchor}if(/^(thickbox|gallery|iframe|slideshow|lytebox|lyteshow|lyteframe|lightbox)/i.test(a.rel)){if(isAnchor){anchor.onclick=function(){fb.start(this);return false}}a.revOptions=this.parseOptionString(a.rev);a.level=this.children.length+(fb.lastChild.fbBox&&!a.revOptions.sameBox?1:0);var a_i,i=this.anchors.length;while(i--){a_i=this.anchors[i];if(a_i.href===a.href&&a_i.rel===a.rel&&a_i.rev===a.rev&&a_i.title===a.title&&a_i.level===a.level){a_i.anchor=anchor;break}}if(i===-1){var match=/\btype\s*[:=]\s*(\w+?)\b/i.exec(a.rev),revType=match?match[1].toLowerCase():'';a.type=revType||this.fileType(a.href);if(a.type==='flash'||a.type==='quicktime'){this.content[a.href]=this.objectHTML(a.href,a.type)}else if(a.type==='html'){var match=/#(\w+)/.exec(a.href);if(match){var doc=this.doc;if(a.anchor){doc=a.anchor.ownerDocument||a.anchor.document||doc}if(doc===this.doc&&this.currentItem&&this.currentItem.anchor){doc=this.currentItem.anchor.ownerDocument||this.currentItem.anchor.document||doc}var el=doc.getElementById(match[1]);if(el){a.type='inline';this.content[a.href]=el.cloneNode(true)}else{a.type='iframe'}}else{a.type='iframe'}}this.anchors.push(a);if(this.autoHref){if(a.revOptions.showThis!==false&&this.autoHref===a.href.substr(a.href.length-this.autoHref.length))this.autoStart=a}else{if(a.revOptions.autoStart)this.autoStart=a}}}return a},fileType:function(href){var s=href.toLowerCase(),i=s.indexOf('?');if(i!==-1)s=s.substr(0,i);s=s.substr(s.lastIndexOf('.')+1);if(/^(jpg|jpeg|png|gif|bmp)$/.test(s))return'img';if(s==='swf'||/^(http:)?\/\/(www.)?youtube.com\/v\//i.test(href))return'flash';if(/^(mov|mpg|mpeg|movie)$/.test(s))return'quicktime';return'html'},objectHTML:function(href,type){if(type==='flash'){var classid='classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"',mime='type="application/x-shockwave-flash"',pluginurl='http://get.adobe.com/flashplayer/',match=/\bwmode=(\w+?)\b/i.exec(href),wmode=match?match[1]:'window',match=/\bbgcolor=(#\w+?)\b/i.exec(href),bgcolor=match?match[1]:'',match=/\bscale=(\w+?)\b/i.exec(href),scale=match?match[1]:'exactfit',params={wmode:wmode,bgcolor:bgcolor,scale:scale,quality:'high',flashvars:'autoplay=1&amp;ap=true&amp;border=0&amp;rel=0'};if(this.ffOld)params.wmode=this.ffMac?'window':'opaque';if(this.ffNew&&href.indexOf('YV_YEP.swf')!==-1)params.wmode='window'}else{var classid='classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"',mime='type="video/quicktime"',pluginurl='http://www.apple.com/quicktime/download/',params={autoplay:'true',controller:'true',showlogo:'false',scale:'tofit'}}var html='<object id="fbObject" name="fbObject" width="%width%" height="%height%" ';if(this.ie){html+=classid+'>';params[type==='flash'?'movie':'src']=this.encodeHTML(href)}else{html+=mime+' data="'+this.encodeHTML(href)+'">'}for(var name in params){if(params.hasOwnProperty(name)){html+='<param name="'+name+'" value="'+params[name]+'" />'}}if(type==='quicktime'&&this.webkitMac){html+='<embed src="'+this.encodeHTML(href)+'" width="%width%" height="%height%" autoplay="true" controller="true" showlogo="false" scale="tofit" pluginspage="'+pluginurl+'"></embed></object>'}else{html+='<p style="color:#000; background:#fff; margin:1em; padding:1em;">'+(type==='flash'?'Flash':'QuickTime')+' player is required to view this content.'+'<br /><a href="'+pluginurl+'">download player</a></p></object>'}return html},preloadImages:function(href,chain){if(this!==fb)return fb.preloadImages(href,chain);var that=this;if(typeof chain!=='undefined')arguments.callee.chain=chain;if(!href&&arguments.callee.chain&&(this.preloadAll||!this.preloads.count)){for(var i=0,len=this.anchors.length;i<len;i++){var a=this.anchors[i];if(a.type==='img'&&!this.preloads[a.href]){href=a.href;break}}}if(href){if(this.preloads[href]){this.preloadImages()}else{var img=this.preloads[href]=new Image();img.onerror=function(){setTimeout(function(){that.preloadImages()},50);that.preloads[href]=true};img.onload=function(){that.preloads.count++;this.onerror()};img.src=href}}},start:function(anchor){if(this!==fb.lastChild)return fb.lastChild.start(anchor);var that=this;this.preloadImages('',false);if(anchor.getAttribute){var relation=null;var elClass=anchor.getAttribute('class');elClass=elClass?elClass:anchor.getAttribute('className');if(elClass){var classes=elClass.split(' ');for(var att in classes){if(/^(thickbox|gallery|iframe|slideshow|lytebox|lyteshow|lyteframe|lightbox)/i.test(classes[att])){relation=classes[att];break}}}var a={href:anchor.href||anchor.getAttribute('href'),rel:relation,rev:anchor.getAttribute('rev'),title:anchor.getAttribute('title')};a.revOptions=this.parseOptionString(a.rev);anchor.blur()}else{var a=anchor}this.isRestart=!!this.fbBox;if(this.isRestart){if(!a.revOptions.sameBox)return new Floatbox().start(anchor);this.setOptions(a.revOptions)}else{this.clickedAnchor=anchor.getAttribute?anchor:false}a.level=this.children.length+(fb.lastChild.fbBox&&!a.revOptions.sameBox?1:0);this.itemsShown=0;fb.previousAnchor=this.currentItem;this.buildItemArray(a);if(!this.itemCount)return;if(this.itemCount===1&&this.fbNavControls)this.fbNavControls.style.display='none';this.win.focus();this.revOptions=a.revOptions;if(!this.isRestart){this.getOptions();this.buildDOM();this.addEventHandlers();this.initState()}this.collapse();this.updatePanels();var fetchAndGo=function(){that.fetchContent(function(){that.clearTimeout('slowLoad');that.calcSize()})};if(this.fbBox.style.visibility||this.isRestart){fetchAndGo()}else{var offset=this.initialSize/2,size={id:'fbBox',left:that.pos.fbBox.left-offset,top:that.pos.fbBox.top-offset,width:that.initialSize,height:that.initialSize,borderWidth:that.outerBorder};if(this.splitResize){var oncomplete=function(){that.setSize(fetchAndGo,size)}}else{this.timeouts.slowLoad=setTimeout(function(){that.setSize(size)},this.slowLoadDelay);var oncomplete=fetchAndGo}this.fadeOpacity(this.fbOverlay,this.overlayOpacity,this.overlayFadeDuration,oncomplete)}},buildItemArray:function(a){this.itemCount=this.items.length=this.currentIndex=0;this.justImages=true;var isSingle=/^(thickbox|gallery|iframe|lytebox|lyteframe|lightbox)$/i.test(a.rel);for(var i=0,len=this.anchors.length;i<len;i++){var a_i=this.anchors[i];if(a_i.rel===a.rel&&a_i.level===a.level){if(a_i.revOptions.showThis!==false){var isMatch=a_i.rev===a.rev&&a_i.title===a.title&&a_i.href===a.href.substr(a.href.length-a_i.href.length);if(isMatch||!isSingle){a_i.seen=false;this.items.push(a_i);if(a_i.type!=='img')this.justImages=false;if(isMatch)this.currentIndex=this.items.length-1}}}}if(a.revOptions.showThis===false&&a.href){i=this.items.length;while(i--){var href=this.items[i].href;if(href===a.href.substr(a.href.length-href.length)){this.currentIndex=i}}}this.itemCount=this.items.length;this.currentItem=this.items[this.currentIndex]},getOptions:function(){if(this.isChild){for(var name in this.defaultOptions){if(this.defaultOptions.hasOwnProperty(name))this[name]=this.fbParent[name]}this.setOptions(this.childOptions)}else{this.setOptions(this.defaultOptions)}this.doSlideshow=this.loadPageOnClose=this.sameBox=false;if(!(this.isChild||this.fbBox)){if(typeof this.win.setFloatboxOptions==='function')this.win.setFloatboxOptions();if(typeof fbPageOptions==='object')this.setOptions(fbPageOptions);if(this.enableCookies){var match=/fbOptions=(.+?)(;|$)/.exec(this.doc.cookie);if(match)this.setOptions(this.parseOptionString(match[1]));var strOptions='';for(var name in this.defaultOptions){if(this.defaultOptions.hasOwnProperty(name)){strOptions+=' '+name+':'+this[name]}}var strPath='/';if(this.cookieScope==='folder'){strPath=this.win.location.pathname;strPath=strPath.substring(0,strPath.lastIndexOf('/')+1)}this.doc.cookie='fbOptions='+strOptions+'; path='+strPath}}this.setOptions(this.revOptions);this.setOptions(this.parseOptionString(this.win.location.search.substring(1)));if(this.theme==='grey')this.theme='white';if(this.endTask==='cont')this.endTask='loop';if(this.navType==='upper')this.navType='overlay';if(this.navType==='lower')this.navType='button';if(this.upperOpacity)this.controlOpacity=this.upperOpacity;if(this.upperNavWidth)this.navOverlayWidth=this.upperNavWidth;if(this.upperNavPos)this.navOverlayPos=this.upperNavPos;if(this.showUpperNav)this.showNavOverlay=this.showUpperNav;if(!/^(auto|black|white|blue|yellow|red|custom)$/.test(this.theme))this.theme='auto';if(!/^(overlay|button|both|none)$/i.test(this.navType))this.navType='button';if(!/^(auto|wh|hw)$/.test(this.splitResize))this.splitResize=false;if(this.webkitOld&&(this.navType==='overlay'||this.navType==='both')){this.navType='button'}if(this.itemCount>1){this.isSlideshow=this.doSlideshow||/^(slideshow|lyteshow)/i.test(this.currentItem.rel);var overlayRequest=/overlay|both/i.test(this.navType),buttonRequest=/button|both/i.test(this.navType);this.navOverlay=this.justImages&&overlayRequest;this.navButton=buttonRequest||(!this.justImages&&overlayRequest)}else{this.isSlideshow=this.navOverlay=this.navButton=this.showItemNumber=this.showIndexLinks=false}this.isPaused=this.startPaused;if((this.lclTheme=this.theme)==='auto'){this.lclTheme=this.currentItem.type==='img'?'black':/flash|quicktime/.test(this.currentItem.type)?'blue':'white'}if(!this.doAnimations){this.resizeDuration=this.imageFadeDuration=this.overlayFadeDuration=0}if(!this.resizeDuration)this.zoomImageStart=false;this.infoTop=this.infoCorner.charAt(0)==='t';this.infoLeft=this.infoCorner.charAt(1)!=='r';this.controlTop=this.controlCorner.charAt(0)==='t';this.controlLeft=this.controlCorner.charAt(1)==='l';if(this.infoLeft===this.controlLeft&&this.infoTop===this.controlTop){this.infoLeft=true;this.controlLeft=false}if(this.indexLinksPanel==='info'){this.indexLeft=this.infoLeft;this.indexTop=this.infoTop}else{this.indexLeft=this.controlLeft;this.indexTop=this.controlTop}if(this.opera||(this.mac&&!this.webkitNew)){this.resizeTool='topleft'}else{this.resizeTool=this.resizeTool.toLowerCase();if(!/topleft|cursor|both/.test(this.resizeTool))this.resizeTool='cursor'}if(this.ieOld)this.dropShadow=false;this.overlayOpacity/=100;this.controlOpacity/=100},parseOptionString:function(str){if(!str)return{};var quotes=[],match,rex=/`([^`]*?)`/g;while((match=rex.exec(str)))quotes.push(match[1]);if(quotes.length)str=str.replace(rex,'``');str=str.replace(/\s*[:=]\s*/g,':');str=str.replace(/\s*[;&]\s*/g,' ');str=str.replace(/^\s+|\s+$/g,'');var pairs={},aVars=str.split(' '),i=aVars.length;while(i--){var aThisVar=aVars[i].split(':'),name=aThisVar[0],value=aThisVar[1];if(typeof value==='string'){if(!isNaN(value))value=+value;else if(value==='true')value=true;else if(value==='false')value=false}if(value==='``')value=quotes.pop()||'';pairs[name]=value}return pairs},setOptions:function(pairs){for(var name in pairs){if(pairs.hasOwnProperty(name))this[name]=pairs[name]}},buildDOM:function(){this.fbOverlay=this.newNode('div','fbOverlay',this.bod);this.fbZoomDiv=this.newNode('div','fbZoomDiv',this.bod);this.fbZoomImg=this.newNode('img','fbZoomImg',this.fbZoomDiv);this.fbBox=this.newNode('div','fbBox');this.fbShadowRight=this.newNode('div','fbShadowRight',this.fbBox);this.fbShadowBottom=this.newNode('div','fbShadowBottom',this.fbBox);this.fbShadowCorner=this.newNode('div','fbShadowCorner',this.fbBox);this.fbLoader=this.newNode('div','fbLoader',this.fbBox);this.fbCanvas=this.newNode('div','fbCanvas',this.fbBox);this.fbMainDiv=this.newNode('div','fbMainDiv',this.fbCanvas);this.fbLeftNav=this.newNode('a','fbLeftNav',this.fbMainDiv);this.fbRightNav=this.newNode('a','fbRightNav',this.fbMainDiv);this.fbOverlayPrev=this.newNode('a','fbOverlayPrev',this.fbMainDiv,this.strings.hintPrev);this.fbOverlayNext=this.newNode('a','fbOverlayNext',this.fbMainDiv,this.strings.hintNext);this.fbInfoPanel=this.newNode('div','fbInfoPanel',this.fbCanvas);this.fbCaptionDiv=this.newNode('div','fbCaptionDiv',this.fbInfoPanel);this.fbCaption=this.newNode('span','fbCaption',this.fbCaptionDiv);this.fbInfoLink=this.newNode('span','fbInfoLink',this.fbInfoPanel);this.fbPrintLink=this.newNode('span','fbPrintLink',this.fbInfoPanel);this.fbItemNumber=this.newNode('span','fbItemNumber',this.fbInfoPanel);this.fbControlPanel=this.newNode('div','fbControlPanel',this.fbCanvas);this.fbClose=this.newNode('a','fbClose',this.fbControlPanel,this.strings.hintClose);this.fbResizer=this.newNode('a','fbResizer',this.fbControlPanel,this.strings.hintResize);this.fbControls=this.newNode('div','fbControls',this.fbControlPanel);this.fbNavControls=this.newNode('div','fbNavControls',this.fbControls);this.fbPrev=this.newNode('a','fbPrev',this.fbNavControls,this.strings.hintPrev);this.fbNext=this.newNode('a','fbNext',this.fbNavControls,this.strings.hintNext);this.fbSubControls=this.newNode('div','fbSubControls',this.fbControls);this.fbPlayPause=this.newNode('div','fbPlayPause',this.fbSubControls);this.fbPlay=this.newNode('a','fbPlay',this.fbPlayPause,this.strings.hintPlay);this.fbPause=this.newNode('a','fbPause',this.fbPlayPause,this.strings.hintPause);this.fbIndexLinks=this.newNode('span','fbIndexLinks',this.indexLinksPanel==='info'?this.fbInfoPanel:this.fbControlPanel);this.bod.appendChild(this.fbBox)},newNode:function(nodeType,id,parentNode,title){if(this[id]&&this[id].parentNode){this[id].parentNode.removeChild(this[id])}var node=this.doc.createElement(nodeType);node.id=id;node.className=id+'_'+this.lclTheme;if(nodeType==='a'){if(!this.operaOld)node.setAttribute('href','');if(this.ieOld)node.setAttribute('hideFocus','true');node.style.outline='none'}else if(nodeType==='iframe'){node.setAttribute('scrolling',this.itemScroll);node.setAttribute('frameBorder','0');node.setAttribute('align','middle');node.src=this.iframeSrc}if(this.isChild)title=this.fbParent[id].getAttribute('title');if(title&&this.showHints!=='never')node.setAttribute('title',title);if(this.zIndex[id])node.style.zIndex=this.zIndex.base+this.zIndex[id];node.style.display='none';if(parentNode)parentNode.appendChild(node);this.nodeNames.push(id);return node},addEventHandlers:function(){var that=this,leftNav=this.fbLeftNav.style,rightNav=this.fbRightNav.style,overlayPrev=this.fbOverlayPrev.style,overlayNext=this.fbOverlayNext.style,prev=this.fbPrev.style,next=this.fbNext.style;if(this.showHints==='once'){this.hideHint=function(id){if(that[id].title){that.timeouts[id]=setTimeout(function(){that[id].title=that.fbParent[id].title='';var id2='';if(/fbOverlay(Prev|Next)/.test(id)){id2=id.replace('Overlay','')}else if(/fb(Prev|Next)/.test(id)){id2=id.replace('fb','fbOverlay')}if(id2)that[id2].title=that.fbParent[id2].title=''},that.showHintsTime)}}}else{this.hideHint=function(){}}this.fbPlay.onclick=function(){that.setPause(false);return false};this.fbPause.onclick=function(){that.setPause(true);return false};this.fbClose.onclick=function(){that.end();return false};if(this.outsideClickCloses){this.fbOverlay.onclick=function(){that.end();return false}}this.fbPrev.onclick=function(step){if(typeof step!=='number')step=1;var newIndex=(that.currentIndex-step)%that.itemCount;if(newIndex<0)newIndex+=that.itemCount;if(that.enableWrap||newIndex<that.currentIndex){that.newContent(newIndex);if(that.isSlideshow&&that.pauseOnPrev&&!that.isPaused){that.setPause(true)}}return false};this.fbNext.onclick=function(step){if(typeof step!=='number')step=1;var newIndex=(that.currentIndex+step)%that.itemCount;if(that.enableWrap||newIndex>that.currentIndex){that.newContent(newIndex);if(that.isSlideshow&&that.pauseOnNext&&!that.isPaused){that.setPause(true)}}return false};this.fbLeftNav.onclick=this.fbOverlayPrev.onclick=this.fbPrev.onclick;this.fbRightNav.onclick=this.fbOverlayNext.onclick=this.fbNext.onclick;this.fbLeftNav.onmouseover=this.fbLeftNav.onmousemove=this.fbOverlayPrev.onmousemove=function(){if(!that.timeouts.fbCanvas)overlayPrev.visibility='';if(that.navButton)prev.backgroundPosition=that.onPos;return true};this.fbRightNav.onmouseover=this.fbRightNav.onmousemove=this.fbOverlayNext.onmousemove=function(){if(!that.timeouts.fbCanvas)overlayNext.visibility='';if(that.navButton)next.backgroundPosition=that.onPos;return true};this.fbOverlayPrev.onmouseover=this.fbOverlayNext.onmouseover=function(){this.onmousemove();that.hideHint(this.id);return true};this.fbLeftNav.onmouseout=function(){overlayPrev.visibility='hidden';if(that.navButton)prev.backgroundPosition=that.offPos};this.fbRightNav.onmouseout=function(){overlayNext.visibility='hidden';if(that.navButton)next.backgroundPosition=that.offPos};this.fbOverlayPrev.onmouseout=this.fbOverlayNext.onmouseout=function(){this.style.visibility='hidden';that.clearTimeout(this.id)};this.fbLeftNav.onmousedown=this.fbRightNav.onmousedown=function(e){e=e||that.win.event;if(e.button===2){leftNav.visibility=rightNav.visibility='hidden';that.timeouts.hideNavOverlay=setTimeout(function(){leftNav.visibility=rightNav.visibility=''},600)}};this.fbPlay.onmouseover=this.fbPause.onmouseover=this.fbClose.onmouseover=this.fbPrev.onmouseover=this.fbNext.onmouseover=function(){this.style.backgroundPosition=that.onPos;that.hideHint(this.id);return true};this.fbResizer.onmouseover=function(){that.hideHint(this.id);return true};this.fbPlay.onmouseout=this.fbPause.onmouseout=this.fbClose.onmouseout=this.fbPrev.onmouseout=this.fbNext.onmouseout=function(){this.style.backgroundPosition=that.offPos;that.clearTimeout(this.id)};this.fbResizer.onmouseout=function(){that.clearTimeout(this.id)};if(this.enableKeyboardNav){if(!this.keydownSet){this.priorOnkeydown=this.doc.onkeydown;this.doc.onkeydown=this.keyboardAction();this.keydownSet=true}}else if(this.keydownSet){this.doc.onkeydown=this.priorOnkeydown;this.keydownSet=false}if(this.opera&&!this.keypressSet){this.priorOnkeypress=this.doc.onkeypress;this.doc.onkeypress=function(){return false};this.keypressSet=true}if(this.enableDrag)this.fbBox.onmousedown=this.dragonDrop()},keyboardAction:function(){var that=this;return function(e){e=e||that.win.event;var keyCode=e.keyCode||e.which;switch(keyCode){case 37:case 39:if(that.itemCount>1){that[keyCode===37?'fbPrev':'fbNext'].onclick((e.ctrlKey||e.metaKey)?that.ctrlJump:1);if(that.showHints==='once'){that.fbPrev.title=that.fbNext.title=that.fbOverlayPrev.title=that.fbOverlayNext.title=''}}return false;case 32:if(that.isSlideshow){that.setPause(!that.isPaused);if(that.showHints==='once')that.fbPlay.title=that.fbPause.title=''}return false;case 9:if(that.fbResizer.onclick){that.fbResizer.onclick();if(that.showHints==='once')that.fbResizer.title=''}return false;case 27:if(that.showHints==='once')that.fbClose.title='';that.end();return false;case 13:return false}}},dragonDrop:function(){var that=this,fbBox=this.fbBox;return function(e){e=e||that.win.event;if(/fb(Box|Canvas|Info|Caption|Item|Control|Index)/.test((e.target||e.srcElement).id)){var startX=e.clientX,startY=e.clientY,box=that.fbBox.style,content=that.fbContent.style,pos=that.pos.fbBox,boxX=pos.left,boxY=pos.top;pos.dx=pos.dy=0;var moveHandler=function(e){if(that.currentItem.type==='iframe'&&!(that.ie||that.opera)&&!content.visibility)content.visibility='hidden';if(that.isSlideshow&&!that.isPaused)that.setPause(true);e=e||that.win.event;pos.dx=e.clientX-startX;pos.dy=e.clientY-startY;box.left=(boxX+pos.dx)+'px';box.top=(boxY+pos.dy)+'px';(e.stopPropagation&&e.stopPropagation())||(e.cancelBubble=true);that.clearTimeout('dragonDrop');that.timeouts.dragonDrop=setTimeout(upHandler,1500);return false};var upHandler=function(e){that.clearTimeout('dragonDrop');e=e||that.win.event;if(that.doc.removeEventListener){that.doc.removeEventListener("mouseup",upHandler,true);that.doc.removeEventListener("mousemove",moveHandler,true)}else if(fbBox.detachEvent){fbBox.detachEvent("onlosecapture",upHandler);fbBox.detachEvent("onmouseup",upHandler);fbBox.detachEvent("onmousemove",moveHandler);fbBox.releaseCapture()}if(e)(e.stopPropagation&&e.stopPropagation())||(e.cancelBubble=true);pos.left+=pos.dx;pos.top+=pos.dy;content.visibility='';return false};if(that.doc.addEventListener){that.doc.addEventListener("mousemove",moveHandler,true);that.doc.addEventListener("mouseup",upHandler,true)}else if(fbBox.attachEvent){fbBox.setCapture();fbBox.attachEvent("onmousemove",moveHandler);fbBox.attachEvent("onmouseup",upHandler);fbBox.attachEvent("onlosecapture",upHandler)}return false}}},initState:function(){var that=this,box=this.fbBox.style,mainDiv=this.fbMainDiv.style,resizer=this.fbResizer.style,canvas=this.fbCanvas.style,zoomDiv=this.fbZoomDiv.style,zoomImg=this.fbZoomImg.style;if(this.currentItem.popup)this.currentItem.anchor.onmouseover();var anchorPos=this.getAnchorPos(this.clickedAnchor,this.currentItem.anchor===this.clickedAnchor&&this.currentItem.type==='img');if(anchorPos.width){this.pos.fbZoomDiv=anchorPos;zoomDiv.borderWidth=this.zoomPopBorder+'px';zoomDiv.left=(anchorPos.left-this.zoomPopBorder)+'px';zoomDiv.top=(anchorPos.top-this.zoomPopBorder)+'px';zoomDiv.width=(this.fbZoomImg.width=anchorPos.width)+'px';zoomDiv.height=(this.fbZoomImg.height=anchorPos.height)+'px';this.fbZoomImg.src=anchorPos.src;box.visibility='hidden';this.timeouts.slowLoad=setTimeout(function(){that.fbZoomImg.src=that.slowZoomImg;zoomDiv.display=zoomImg.display=''},this.slowLoadDelay)}else{this.pos.fbBox=anchorPos;this.pos.fbBox.borderWidth=0;this.pos.fbMainDiv={width:0,height:0}}box.position='absolute';box.left=box.top=box.width=box.height=box.borderWidth='0';mainDiv.borderWidth=this.innerBorder+'px';mainDiv.left=this.padding+'px';this.fbInfoPanel.style[this.infoLeft?'left':'right']=this.fbControlPanel.style[this.controlLeft?'left':'right']=Math.max(this.padding,this.panelPadding)+'px';canvas.visibility='hidden';box.display=canvas.display='';if(this.dropShadow){var shadowRight=this.fbShadowRight.style,shadowBottom=this.fbShadowBottom.style,shadowCorner=this.fbShadowCorner.style;shadowRight.paddingBottom=shadowBottom.paddingRight=this.outerBorder*2+'px';shadowRight.paddingRight=shadowBottom.paddingBottom=shadowCorner.paddingRight=shadowCorner.paddingBottom=(this.outerBorder+this.shadowSize)+'px';shadowRight.top=shadowBottom.left=-this.outerBorder+'px'}if(this.navOverlay){if(fb.showNavOverlay==='never'||(fb.showNavOverlay==='once'&&fb.navOverlayShown)){fb.showNavOverlay=false}else{this.fbOverlayPrev.style.backgroundPosition=this.fbOverlayNext.style.backgroundPosition=this.onPos;this.fadeOpacity(this.fbOverlayPrev,this.controlOpacity);this.fadeOpacity(this.fbOverlayNext,this.controlOpacity)}}this.initPanels();this.lastShown=false;if(this.hideFlash)this.hideElements('flash');if(this.hideJava)this.hideElements('applet');if(this.ieOld){this.hideElements('select');this.fbOverlay.style.position='absolute';this.stretchOverlay()();this.win.attachEvent('onresize',this.stretchOverlay());this.win.attachEvent('onscroll',this.stretchOverlay())}},getAnchorPos:function(anchor,useThumb){var display=this.getDisplaySize(),scroll=this.getScroll(),noAnchorPos={left:display.width/2+scroll.left,top:display.height/3+scroll.top,width:0,height:0};var thumb=useThumb?this.getThumb(anchor):false;if(thumb&&this.zoomImageStart){var pos=this.getLeftTop(thumb),border=(thumb.offsetWidth-thumb.width)/2;pos.left+=border;pos.top+=border;pos.width=thumb.width;pos.height=thumb.height;pos.src=thumb.src}else if(this.startAtClick&&anchor&&anchor.offsetWidth&&anchor.tagName.toLowerCase()==='a'){var pos=this.getLayout(thumb||anchor)}else{return noAnchorPos}var centerPos={left:pos.left+pos.width/2,top:pos.top+pos.height/2,width:0,height:0};if(centerPos.left<scroll.left||centerPos.left>(scroll.left+display.width)||centerPos.top<scroll.top||centerPos.top>(scroll.top+display.height)){return noAnchorPos}return(thumb&&this.zoomImageStart?pos:centerPos)},getThumb:function(anchor){var nodes=anchor&&anchor.childNodes,i=(nodes&&nodes.length)||0;while(i--){if((nodes[i].tagName||'').toLowerCase()==='img')return nodes[i]}return false},initPanels:function(){var infoPanel=this.fbInfoPanel.style,infoLink=this.fbInfoLink.style,printLink=this.fbPrintLink.style;if(this.infoLeft){var infoPos=' posLeft';infoPanel.textAlign='left';infoLink.paddingRight=printLink.paddingRight=this.infoLinkGap+'px'}else{var infoPos=' posRight';infoPanel.textAlign='right';infoLink.paddingLeft=printLink.paddingLeft=this.infoLinkGap+'px'}this.fbInfoPanel.className+=infoPos;this.fbInfoLink.className+=infoPos;this.fbPrintLink.className+=infoPos;this.fbItemNumber.className+=infoPos;infoPanel.width='400px';var controlPanel=this.fbControlPanel.style,controls=this.fbControls.style,subControls=this.fbSubControls.style;var indexLinks=this.fbIndexLinks.style;if(this.controlLeft){var controlPos=' posLeft';controlPanel.textAlign='left'}else{var controlPos=' posRight';controlPanel.textAlign='right'}this.fbControlPanel.className+=controlPos;this.fbSubControls.className+=controlPos;this.fbControls.className+=controlPos;if(this.navButton){var prev=this.fbPrev.style,next=this.fbNext.style,navControls=this.fbNavControls.style;prev.backgroundPosition=next.backgroundPosition=this.offPos;navControls['padding'+(this.controlLeft?'Left':'Right')]=this.controlSpacing+'px';this.fbNavControls.className+=controlPos;controlPanel.display=navControls.display=prev.display=next.display=''}var width=0;if(this.showClose){var close=this.fbClose.style;close.backgroundPosition=this.offPos;this.fbClose.className+=controlPos;controlPanel.display=controls.display=subControls.display=close.display='';width=this.fbClose.offsetWidth}if(this.showPlayPause&&this.isSlideshow){var play=this.fbPlay.style,pause=this.fbPause.style,playPause=this.fbPlayPause.style;play.backgroundPosition=pause.backgroundPosition=this.offPos;playPause['padding'+(this.controlLeft?'Left':'Right')]=this.controlSpacing+'px';this.fbPlayPause.className+=controlPos;controlPanel.display=controls.display=subControls.display=playPause.display=play.display=pause.display='';play.left=this.isPaused?'':'-9999px';pause.left=this.isPaused?'-9999px':'';width+=this.fbPlayPause.offsetWidth}subControls.width=width+'px';controls.width=(width+this.fbNavControls.offsetWidth)+'px';if(this.showIndexLinks){var indexLinks=this.fbIndexLinks.style;if(this.indexLinksPanel==='info'){this.fbIndexLinks.className+=infoPos;infoPanel.display='';if(this.showIndexThumbs)infoPanel.overflow='visible'}else{this.fbIndexLinks.className+=controlPos;controlPanel.display='';if(this.showIndexThumbs)controlPanel.overflow='visible'}if(this.indexLinksPanel!=='info')indexLinks['padding'+(this.indexLeft?'Left':'Right')]='2px';indexLinks.width='250px';indexLinks.display=''}},fetchContent:function(callback,phase){var that=this;if(!phase){if(this.fbContent){this.fbMainDiv.removeChild(this.fbContent);delete this.fbContent;return this.timeouts.fetch=setTimeout(function(){that.fetchContent(callback,1)},10)}}var item=this.currentItem;item.nativeWidth=item.revOptions.width;item.nativeHeight=item.revOptions.height;if(item.type!=='img'){item.nativeWidth=item.nativeWidth||(fb.previousAnchor&&fb.previousAnchor.nativeWidth)||this.defaultWidth;item.nativeHeight=item.nativeHeight||(fb.previousAnchor&&fb.previousAnchor.nativeHeight)||this.defaultHeight}this.itemScroll=item.revOptions.scroll||item.revOptions.scrolling||'auto';if(/img|iframe/.test(item.type)){this.fbContent=this.newNode(item.type,'fbContent',this.fbMainDiv);if(item.type==='img'){var loader=new Image();loader.onload=function(){item.nativeWidth=item.nativeWidth||loader.width;item.nativeHeight=item.nativeHeight||loader.height;that.fbContent.src=loader.src;if(callback)callback()};loader.onerror=function(){if(this.src!==that.notFoundImg)this.src=that.notFoundImg};loader.src=item.href}}else{this.fbContent=this.newNode('div','fbContent',this.fbMainDiv);this.fbContent.style.overflow=this.itemScroll==='yes'?'scroll':(this.itemScroll==='no'?'hidden':'auto');var contents=this.content[item.href];if(item.type==='inline'){var el=contents.cloneNode(true);el.style.display=el.style.visibility='';try{this.fbContent.appendChild(el)}catch(e){this.setInnerHTML(this.fbContent,el.innerHTML)}this.tagAnchors(this.fbContent)}else if(item.type==='ajax'){this.xhr.getResponse(item.href,function(xhr){if((xhr.status===200||xhr.status===203||xhr.status===304)&&xhr.responseText){that.setInnerHTML(that.fbContent,xhr.responseText);that.tagAnchors(that.fbContent)}else{that.setInnerHTML(that.fbContent,'<p style="color:#000; background:#fff; margin:1em; padding:1em;">'+'Unable to fetch content from '+item.href+'</p>')}})}}this.fbContent.style.border='0';this.fbContent.style.display='';if(item.type!=='img'&&callback)callback()},updatePanels:function(){var infoPanel=this.fbInfoPanel.style,captionDiv=this.fbCaptionDiv.style,caption=this.fbCaption.style,infoLink=this.fbInfoLink.style,printLink=this.fbPrintLink.style,itemNumber=this.fbItemNumber.style,item=this.currentItem,str;infoPanel.display=captionDiv.display=caption.display=infoLink.display=printLink.display=itemNumber.display='none';if(this.showCaption){str=item.revOptions.caption||item.title||'';if(str==='href')str=this.currentItem.href;str=this.decodeHTML(str);if(this.setInnerHTML(this.fbCaption,str)&&str)infoPanel.display=captionDiv.display=caption.display=''}if(item.revOptions.info){str=this.encodeHTML(this.decodeHTML(item.revOptions.info));var options=item.revOptions.infoOptions||'';if(options)options=this.encodeHTML(this.decodeHTML(options));str='<a href="'+str+'" class="thickbox" rev="'+options+'"><b>'+(item.revOptions.infoText||this.strings.infoText)+'</b></a>';if(this.setInnerHTML(this.fbInfoLink,str))infoPanel.display=infoLink.display=''}if(this.showPrint){var css=this.printCSS||'';str='<a href="'+this.encodeHTML(this.currentItem.href)+'" onclick="fb.printContents(null, \''+css+'\'); return false;"><b>'+(item.revOptions.printText||this.strings.printText)+'</b></a>';if(this.setInnerHTML(this.fbPrintLink,str))infoPanel.display=printLink.display=''}if(this.showItemNumber){str=this.justImages?this.strings.imgCount:this.strings.nonImgCount;str=str.replace('%1',this.currentIndex+1);str=str.replace('%2',this.itemCount);if(this.setInnerHTML(this.fbItemNumber,str))infoPanel.display=itemNumber.display=''}if(this.showIndexLinks){str='';var max=this.itemCount-1,loRange,hiRange;if(!this.maxIndexCount){loRange=0;hiRange=max}else{var range=Math.floor(this.maxIndexCount/2)-1;loRange=this.currentIndex-range;hiRange=this.currentIndex+range;if(loRange<=0)hiRange+=Math.min(1-loRange,range);if(this.currentIndex===0)hiRange++;if(hiRange-max>=0)loRange-=Math.min(1+hiRange-max,range);if(this.currentIndex===max)loRange--}var pos=this.indexTop?'down':'up',i=0;while(i<this.itemCount){if(i!==0&&i<loRange){str+='... ';i=loRange}else if(i!==max&&i>hiRange){str+='... ';i=max}else{if(i!==this.currentIndex){var item=this.items[i];str+='<a class="fbPop'+pos+' nothickbox" href="'+item.href+'" onclick="fb.newContent('+i+');return false;">'+ ++i;if(this.showIndexThumbs&&item.thumb){str+='<img src="'+item.thumb.src+'" />'}str+='</a> '}else{str+=++i+' '}}}if(this.setInnerHTML(this.fbIndexLinks,str))this.tagAnchors(this.fbIndexLinks)}if(!infoPanel.display)this.tagAnchors(this.fbInfoPanel)},calcSize:function(fit,pass){var that=this;if(!this.fbBox)return;var boxX,boxY,boxW,boxH,mainW,mainH;if(typeof fit==='undefined'){fit=this.currentItem.type==='img'?this.autoSizeImages:this.autoSizeOther}var box=this.fbBox.style,infoPanel=this.fbInfoPanel.style,indexLinks=this.fbIndexLinks.style,captionDiv=this.fbCaptionDiv.style,itemNumber=this.fbItemNumber.style;if(!pass){this.displaySize=this.getDisplaySize();if(this.showCaption&&this.fbCaption.innerHTML)captionDiv.display='';if(this.showItemNumber)itemNumber.display=''}this.upperSpace=Math.max(this.infoTop?this.fbInfoPanel.offsetHeight:0,this.controlTop?this.fbControlPanel.offsetHeight:0);this.lowerSpace=Math.max(this.infoTop?0:this.fbInfoPanel.offsetHeight,this.controlTop?0:this.fbControlPanel.offsetHeight);if(this.upperSpace)this.upperSpace+=2*this.panelPadding;if(this.lowerSpace)this.lowerSpace+=2*this.panelPadding;this.upperSpace=Math.max(this.upperSpace,this.padding);this.lowerSpace=Math.max(this.lowerSpace,this.padding);var frame=2*(this.outerBorder+this.innerBorder+this.shadowSize),maxW=this.displaySize.width-frame-2*this.padding,maxH=this.displaySize.height-frame-this.upperSpace-this.lowerSpace,hardW=false,hardH=false;mainW=this.currentItem.nativeWidth+'';if(mainW==='max'){mainW=maxW}else if(mainW.substr(mainW.length-1)==='%'){mainW=Math.floor((maxW+2*this.shadowSize)*parseInt(mainW,10)/100)}else{mainW=parseInt(mainW,10);hardW=true}mainH=this.currentItem.nativeHeight+'';if(mainH==='max'){mainH=maxH}else if(mainH.substr(mainH.length-1)==='%'){mainH=Math.floor((maxH+2*this.shadowSize)*parseInt(mainH,10)/100)}else{mainH=parseInt(mainH,10);hardH=true}this.scaledBy=this.oversizedBy=0;if(fit){var scaleW=maxW/mainW,scaleH=maxH/mainH,w=mainW,h=mainH;if(hardW&&hardH)scaleW=scaleH=Math.min(scaleW,scaleH);if(scaleW<1)mainW=Math.round(mainW*scaleW);if(scaleH<1)mainH=Math.round(mainH*scaleH);this.scaledBy=Math.max(w-mainW,h-mainH);if(this.scaledBy&&this.scaledBy<this.outerBorder+2*this.shadowSize+this.panelPadding){mainW=w;mainH=h;this.scaledBy=0}}boxW=mainW+2*(this.innerBorder+this.padding);boxH=mainH+2*this.innerBorder+this.upperSpace+this.lowerSpace;var infoW=boxW-2*Math.max(this.padding,this.panelPadding);if(this.infoTop===this.controlTop&&this.fbControls.offsetWidth){infoW-=this.fbControls.offsetWidth+this.panelGap}if(infoW<0)infoW=0;if(this.indexLinksPanel==='info'){var indexW=infoW}else{var infoUsed=Math.max(this.fbCaption.offsetWidth,this.fbInfoLink.offsetWidth+this.fbPrintLink.offsetWidth+this.fbItemNumber.offsetWidth);var indexW=Math.max(this.minIndexWidth,this.fbControls.offsetWidth,(boxW-infoUsed-2*Math.max(this.padding,this.panelPadding)));if(infoUsed)indexW-=this.panelGap}var infoH=this.fbInfoPanel.offsetHeight,indexH=this.fbIndexLinks.offsetHeight;infoPanel.width=infoW+'px';indexLinks.width=indexW+'px';var changed=this.fbInfoPanel.offsetHeight!==infoH||this.fbIndexLinks.offsetHeight!==indexH;if(this.showCaption){if(this.minInfoWidth>infoW&&!captionDiv.display){captionDiv.display='none';changed=true}}if(this.showItemNumber){if(this.fbInfoLink.offsetWidth+this.fbPrintLink.offsetWidth+this.fbItemNumber.offsetWidth>infoW&&!itemNumber.display){itemNumber.display='none';changed=true}}if(changed&&pass!==3)return this.calcSize(fit,(pass||0)+1);if(!fit)this.oversizedBy=Math.max(boxW-this.displaySize.width,boxH-this.displaySize.height)+2*this.outerBorder+this.shadowSize;if(this.oversizedBy<0)this.oversizedBy=0;if(typeof this.positionLeft==='number'){boxX=this.positionLeft}else{var freeSpace=this.displaySize.width-boxW-2*this.outerBorder;boxX=freeSpace<=0?0:Math.floor(freeSpace/2);if(typeof this.positionLeft==='string'&&this.positionLeft.substr(this.positionLeft.length-1)==='%'){boxX+=parseInt(this.positionLeft,10)/100*boxX}}if(typeof this.positionTop==='number'){boxY=this.positionTop}else{var freeSpace=this.displaySize.height-boxH-2*this.outerBorder,ratio=freeSpace/this.displaySize.height,factor;if(ratio<=0.15){factor=2}else if(ratio>=0.3){factor=3}else{factor=1+ratio/0.15}boxY=freeSpace<=0?0:Math.floor(freeSpace/factor);if(typeof this.positionTop==='string'&&this.positionTop.substr(this.positionTop.length-1)==='%'){boxY+=parseInt(this.positionTop,10)/100*boxY}}var boxPosition=box.position;if(this.ieOld){box.display='none';this.stretchOverlay()()}else{this.setPosition(this.fbBox,'fixed')}var scroll=this.getScroll();this.setPosition(this.fbBox,boxPosition);box.display='';boxX+=scroll.left;boxY+=scroll.top;if(this.isChild){var rex=/max|%/i,pos=this.fbParent.pos.fbBox,childX=rex.test(this.currentItem.nativeWidth)?99999:(pos.left+boxX)/2,childY=rex.test(this.currentItem.nativeHeight)?99999:(pos.top+boxY)/2;if(scroll.left<childX&&scroll.top<childY){boxX=Math.min(boxX,childX);boxY=Math.min(boxY,childY)}}var split=(pos=this.pos.fbBox)&&!this.liveResize&&this.splitResize;if(split==='auto')split=boxW-pos.width<=boxH-pos.height?'wh':'hw';var oncomplete=function(){that.fbBox.style.visibility?that.zoomIn():that.showContent()};var setSize=function(){that.setSize(split,{id:'fbBox',left:boxX,top:boxY,width:boxW,height:boxH,borderWidth:that.outerBorder},{id:'fbMainDiv',width:mainW,height:mainH,top:that.upperSpace},function(){that.timeouts.showContent=setTimeout(oncomplete,10)})};this.timeouts.setSize=setTimeout(setSize,10)},setPosition:function(el,position){if(el.style.position===position)return;var scroll=this.getScroll();if(position==='fixed'){scroll.left=-scroll.left;scroll.top=-scroll.top}if(this.pos[el.id]){this.pos[el.id].left+=scroll.left;this.pos[el.id].top+=scroll.top}el.style.left=(el.offsetLeft+scroll.left)+'px';el.style.top=(el.offsetTop+scroll.top)+'px';el.style.position=position},collapse:function(callback,phase){var that=this;if(!phase){this.setPosition(this.fbBox,'absolute');this.fbResizer.onclick=null;this.fbResizer.style.display='none';if(this.fbContent){this.fbContent.onclick=null;this.fbContent.style.cursor=''}if(this.navOverlay){this.fbLeftNav.style.display=this.fbRightNav.style.display=this.fbOverlayPrev.style.display=this.fbOverlayNext.style.display='none'}var opacity=0,duration=0;if(this.currentItem.type==='img'&&!this.fbCanvas.style.visibility){if(this.currentItem===this.lastShown&&this.liveImageResize)opacity=1;duration=this.imageFadeDuration}this.liveResize=(opacity===1);var oncomplete=function(){that.collapse(callback,1)};return this.fadeOpacity(this.fbCanvas,opacity,duration,oncomplete)}if(!this.liveResize){this.fbMainDiv.style.display='none';this.clearTimeout('loader');this.timeouts.loader=setTimeout(function(){that.fbLoader.style.display=''},this.loaderDelay)}var infoPanel=this.fbInfoPanel.style,controlPanel=this.fbControlPanel.style;infoPanel.visibility=controlPanel.visibility='hidden';infoPanel.left=controlPanel.left='-9999px';if(callback)callback()},restore:function(callback,phase){var that=this;if(!phase){if(this.fbShadowRight.style.display&&this.dropShadow){this.fbShadowRight.style.display=this.fbShadowBottom.style.display=this.fbShadowCorner.style.display=''}var infoPanel=this.fbInfoPanel.style,controlPanel=this.fbControlPanel.style,pad=this.upperSpace+this.pos.fbMainDiv.height+2*this.innerBorder;infoPanel.top=(((this.infoTop?this.upperSpace:this.lowerSpace)-this.fbInfoPanel.offsetHeight)/2-1+(this.infoTop?0:pad))+'px';controlPanel.top=(((this.controlTop?this.upperSpace:this.lowerSpace)-this.fbControlPanel.offsetHeight)/2+(this.controlTop?0:pad))+'px';var pad=Math.max(this.padding,this.panelPadding)+'px';infoPanel.left=[this.infoLeft?pad:''];controlPanel.left=[this.controlLeft?pad:''];infoPanel.visibility=controlPanel.visibility='';this.clearTimeout('loader');this.fbLoader.style.display='none';this.fbMainDiv.style.display='';var duration=(this.currentItem.type==='img'&&!this.fbCanvas.style.visibility)?this.imageFadeDuration:0,oncomplete=function(){that.restore(callback,1)};return this.fadeOpacity(this.fbCanvas,1,duration,oncomplete)}if(this.currentItem.type==='img'?this.resizeImages:this.resizeOther){var scale=0;if(this.scaledBy>35){scale=1}else if(this.oversizedBy>28){scale=-1}if(scale){this.fbResizer.onclick=function(){if(that.isSlideshow&&that.pauseOnResize&&!that.isPaused){that.setPause(true)}that.collapse(function(){that.calcSize(scale===-1)});return false};if(this.currentItem.type==='img'&&/cursor|both/.test(this.resizeTool)){this.fbContent.style.cursor='url('+(scale===-1?this.resizeDownCursor:this.resizeUpCursor)+'), default';this.fbContent.onclick=this.fbResizer.onclick}if(this.currentItem.type!=='img'||/topleft|both/.test(this.resizeTool)){this.fbResizer.style.backgroundPosition=(scale===-1?'bottom':'top');this.fadeOpacity(this.fbResizer,this.controlOpacity)}}}this.fbContent.style.cursor='pointer';this.fbContent.onclick=this.fbClose.onclick;if(this.navOverlay){var leftNav=this.fbLeftNav.style,rightNav=this.fbRightNav.style,overlayPrev=this.fbOverlayPrev.style,overlayNext=this.fbOverlayNext.style;leftNav.width=rightNav.width=Math.max(this.navOverlayWidth/100*this.pos.fbMainDiv.width,this.fbOverlayPrev.offsetWidth)+'px';leftNav.display=rightNav.display='';if(fb.showNavOverlay){overlayPrev.visibility=overlayNext.visibility='hidden';overlayPrev.display=overlayNext.display='';overlayPrev.top=overlayNext.top=((this.pos.fbMainDiv.height-this.fbOverlayPrev.offsetHeight)*this.navOverlayPos/100)+'px'}}if(callback)callback()},setSize:function(order){var that=this,oncomplete=function(){},arr=[[],[]],defer={},node,i=arguments.length;if(order==='wh'){defer.top=1;defer.height=1}else if(order==='hw'){defer.left=1;defer.width=1}while(i--){if(typeof arguments[i]==='object'&&(node=this[arguments[i].id])){var obj=arguments[i];if(!this.pos[obj.id])this.pos[obj.id]={};for(var property in obj){if(obj.hasOwnProperty(property)&&property!=='id'){var idx=defer[property]||0;var start=this.pos[obj.id][property];if(typeof start!=='number'||node.style.display||node.style.visibility){start=obj[property]}arr[idx].push({node:node,property:property,start:start,finish:obj[property]});if(obj.id==='fbMainDiv'){arr[idx].push({node:this.fbContent,property:property,start:start,finish:obj[property]})}if(obj.id==='fbZoomDiv'&&/\b(width|height)\b/i.test(property)){arr[idx].push({node:this.fbZoomImg,property:property,start:start,finish:obj[property]})}this.pos[obj.id][property]=obj[property]}}}else if(typeof arguments[i]==='function'){oncomplete=arguments[i]}}this.resizeGroup(arr[0],function(){that.resizeGroup(arr[1],oncomplete)})},showContent:function(phase){var that=this;if(!phase){var displaySize=this.getDisplaySize();if(!this.resized){var vscrollChanged=displaySize.width!==this.displaySize.width,hscrollChanged=displaySize.height!==this.displaySize.height;if((vscrollChanged&&Math.abs(this.pos.fbBox.width-displaySize.width)<50)||(hscrollChanged&&Math.abs(this.pos.fbBox.height-displaySize.height)<50)){this.resized=true;return this.calcSize(this.scaledBy)}}this.resized=false;this.win.focus();if(this.ieOld)this.stretchOverlay()();if((this.disableScroll||(this.ffOld&&/iframe|quicktime/i.test(this.currentItem.type)))&&!(this.ieOld||this.webkitOld||this.ie8b2)){if(this.pos.fbBox.width<=displaySize.width&&this.pos.fbBox.height<=displaySize.height){this.setPosition(this.fbBox,'fixed')}}if(this.currentItem.type==='iframe'){this.fbContent.src=this.currentItem.href}else if(/flash|quicktime/.test(this.currentItem.type)){var html=this.content[this.currentItem.href];html=html.replace(/%width%/g,this.pos.fbMainDiv.width).replace(/%height%/g,this.pos.fbMainDiv.height);this.setInnerHTML(this.fbContent,html)}this.prevIndex=this.currentIndex?this.currentIndex-1:this.itemCount-1;this.nextIndex=this.currentIndex<this.itemCount-1?this.currentIndex+1:0;var prevHref=this.enableWrap||this.currentIndex!==0?this.items[this.prevIndex].href:'',nextHref=this.enableWrap||this.currentIndex!==this.itemCount-1?this.items[this.nextIndex].href:'';if(this.navButton){if(prevHref){if(!this.operaOld)this.fbPrev.href=prevHref;this.fbPrev.title=this.fbOverlayPrev.title}else{this.fbPrev.removeAttribute('href');this.fbPrev.title=''}if(nextHref){if(!this.operaOld)this.fbNext.href=nextHref;this.fbNext.title=this.fbOverlayNext.title}else{this.fbNext.removeAttribute('href');this.fbNext.title=''}var prevOn=this.fbPrev.className.replace('_off',''),nextOn=this.fbNext.className.replace('_off','');this.fbPrev.className=prevOn+(prevHref?'':'_off');this.fbNext.className=nextOn+(nextHref?'':'_off')}if(this.navOverlay){if(!this.operaOld){this.fbLeftNav.href=this.fbOverlayPrev.href=prevHref;this.fbRightNav.href=this.fbOverlayNext.href=nextHref}this.fbLeftNav.style.visibility=prevHref?'':'hidden';this.fbRightNav.style.visibility=nextHref?'':'hidden';fb.navOverlayShown=true}this.fbCanvas.style.visibility='';return this.restore(function(){that.timeouts.showContent=setTimeout(function(){that.showContent(1)},10)})}this.lastShown=this.currentItem;if(!this.currentItem.seen){this.currentItem.seen=true;this.itemsShown++}if(this.isSlideshow&&!this.isPaused){this.timeouts.slideshow=setTimeout(function(){if(that.endTask==='loop'||that.itemsShown<that.itemCount){that.newContent(that.nextIndex)}else if(that.endTask==='exit'){that.end()}else{that.setPause(true);var i=that.itemCount;while(i--)that.items[i].seen=false;that.itemsShown=0}},this.slideInterval*1000)}this.timeouts.preload=setTimeout(function(){that.preloadImages(nextHref||prevHref||'',true)},10)},newContent:function(index){var that=this;this.clearTimeout('slideshow');this.clearTimeout('resizeGroup');this.currentIndex=index;fb.previousAnchor=this.currentItem;this.currentItem=this.items[index];if(this.showNavOverlay=='once'&&this.navOverlayShown)this.showNavOverlay=false;var oncomplete=function(){that.updatePanels();that.fetchContent(function(){that.calcSize()})};this.collapse(function(){that.timeouts.fetch=setTimeout(oncomplete,10)})},end:function(all){if(this!==fb.lastChild)return fb.lastChild.end(all);var that=this;this.endAll=this.endAll||all;if(this.isChild&&this.endAll)this.imageFadeDuration=this.overlayFadeDuration=this.resizeDuration=0;this.fbOverlay.onclick=null;if(this.keydownSet){this.doc.onkeydown=this.priorOnkeydown;this.keydownSet=false}if(this.keypressSet){this.doc.onkeypress=this.priorOnkeypress;this.keypressSet=false}if(this.ieOld){this.win.detachEvent('onresize',this.stretchOverlay());this.win.detachEvent('onscroll',this.stretchOverlay())}for(var key in this.timeouts){if(this.timeouts.hasOwnProperty(key))this.clearTimeout(key)}if(this.fbBox.style.visibility){if(!this.lastShown)this.fbZoomDiv.style.display='none'}else if(this.currentItem.type==='img'&&this.zoomImageStart){if(this.currentItem.popup)this.currentItem.anchor.onmouseover();var anchorPos=this.getAnchorPos(this.currentItem.anchor,true);if(this.currentItem.popup)this.currentItem.anchor.onmouseout();if(anchorPos.width){this.fbZoomDiv.style.borderWidth=this.zoomPopBorder+'px';anchorPos.left-=this.zoomPopBorder;anchorPos.top-=this.zoomPopBorder;this.pos.thumb=anchorPos;return this.zoomOut()}}if(!this.fbBox.style.visibility){var anchorPos=this.getAnchorPos(this.currentItem.anchor,!this.currentItem.popup),offset=this.initialSize/2,initialPos={id:'fbBox',left:anchorPos.left-offset,top:anchorPos.top-offset,width:this.initialSize,height:this.initialSize},zeroPos={id:'fbBox',left:anchorPos.left,top:anchorPos.top,width:0,height:0,borderWidth:0},split=this.splitResize;if(split==='wh'){split='hw'}else if(split==='hw'){split='wh'}else if(split==='auto'){split=this.pos.fbBox.width<=this.pos.fbBox.height?'hw':'wh'}var oncomplete3=function(){setTimeout(function(){that.fbBox.style.visibility='hidden';that.end()},10)};if(split){var oncomplete2=function(){that.setSize(split,initialPos,function(){that.setSize(zeroPos,oncomplete3)})}}else{var oncomplete2=function(){that.setSize(zeroPos,oncomplete3)}}var oncomplete=function(){if(that.fbContent){that.fbMainDiv.removeChild(that.fbContent);delete that.fbContent}that.fbLoader.style.display='';that.fbCanvas.style.display=that.fbShadowRight.style.display=that.fbShadowBottom.style.display=that.fbShadowCorner.style.display='none';oncomplete2()};return this.collapse(oncomplete)}this.fbBox.style.display='none';var level=this.children.length+1,i=this.anchors.length;while(i&&this.anchors[i-1].level>=level)i--;this.anchors.length=i;if(this.isChild)this.children.length--;fb.lastChild=this.children[this.children.length-1]||fb;var oncomplete2=function(){setTimeout(function(){while(that.nodeNames.length){var id=that.nodeNames.pop();if(that[id]&&that[id].parentNode){that[id].parentNode.removeChild(that[id]);delete that[id]}}if(that.endAll&&that.isChild){return fb.end(true)}else if(that.loadPageOnClose){if(that.loadPageOnClose==='self'||that.loadPageOnClose==='this'){that.win.location.reload(true)}else if(that.loadPageOnClose==='back'){history.back()}else{that.win.location.replace(that.loadPageOnClose)}}},10)};var oncomplete=function(){while(that.hiddenEls.length){var el=that.hiddenEls.pop();el.style.visibility='visible';if(this.ffOld&&this.ffMac){el.focus();el.blur()}}var overlay=that.fbOverlay.style;overlay.display='none';overlay.width=overlay.height='0';var duration=that.currentItem.popup?6.5:0;that.fbZoomDiv.style.opacity='1';that.fadeOpacity(that.fbZoomDiv,0,duration,oncomplete2);that.currentItem=fb.previousAnchor=null};this.fadeOpacity(this.fbOverlay,0,this.overlayFadeDuration,oncomplete)},zoomIn:function(phase){var that=this,zoomDiv=this.fbZoomDiv.style;if(!phase){this.clearTimeout('slowLoad');zoomDiv.display=this.fbZoomImg.style.display='';if(this.currentItem.popup)this.currentItem.anchor.onmouseout();var pad=this.outerBorder+this.innerBorder-this.zoomPopBorder;var oncomplete=function(){that.fbZoomImg.src=that.currentItem.href;that.setSize({id:'fbZoomDiv',width:that.pos.fbMainDiv.width,height:that.pos.fbMainDiv.height,left:that.pos.fbBox.left+pad+that.padding,top:that.pos.fbBox.top+pad+that.upperSpace},function(){that.zoomIn(1)})};return this.fadeOpacity(this.fbOverlay,this.overlayOpacity,this.overlayFadeDuration,oncomplete)}if(phase===1){var boxPos={left:this.pos.fbBox.left,top:this.pos.fbBox.top,width:this.pos.fbBox.width,height:this.pos.fbBox.height};var pad=2*(this.zoomPopBorder-this.outerBorder);this.pos.fbBox={left:this.pos.fbZoomDiv.left,top:this.pos.fbZoomDiv.top,width:this.pos.fbZoomDiv.width+pad,height:this.pos.fbZoomDiv.height+pad};this.fbBox.style.visibility='';var oncomplete=function(){that.restore(function(){that.zoomIn(2)})};return this.setSize({id:'fbBox',left:boxPos.left,top:boxPos.top,width:boxPos.width,height:boxPos.height},oncomplete)}var show=function(){zoomDiv.display='none';that.fbZoomImg.src='';zoomDiv.left=zoomDiv.top=zoomDiv.width=zoomDiv.height=that.fbZoomImg.width=that.fbZoomImg.height='0';that.showContent()};this.timeouts.showContent=setTimeout(show,10)},zoomOut:function(phase){var that=this;if(!phase){this.fbZoomImg.src=this.currentItem.href;var pad=this.outerBorder+this.innerBorder-this.zoomPopBorder;this.setSize({id:'fbZoomDiv',width:this.pos.fbMainDiv.width,height:this.pos.fbMainDiv.height,left:this.pos.fbBox.left+pad+this.padding,top:this.pos.fbBox.top+pad+this.upperSpace},function(){that.zoomOut(1)})}if(phase===1){this.fbZoomDiv.style.display=this.fbZoomImg.style.display='';this.fbCanvas.style.visibility='hidden';return this.collapse(function(){that.zoomOut(2)})}if(phase===2){var pad=2*(this.zoomPopBorder-this.outerBorder);return this.setSize({id:'fbBox',left:this.pos.fbZoomDiv.left,top:this.pos.fbZoomDiv.top,width:this.pos.fbZoomDiv.width+pad,height:this.pos.fbZoomDiv.height+pad},function(){that.zoomOut(3)})}this.fbBox.style.visibility='hidden';var end=function(){that.fbZoomImg.src=that.pos.thumb.src;that.end()};this.setSize({id:'fbZoomDiv',left:this.pos.thumb.left,top:this.pos.thumb.top,width:this.pos.thumb.width,height:this.pos.thumb.height},end)},setPause:function(bPause){this.isPaused=bPause;if(bPause){this.clearTimeout('slideshow')}else{this.newContent(this.nextIndex)}if(this.showPlayPause){this.fbPlay.style.left=bPause?'':'-9999px';this.fbPause.style.left=bPause?'-9999px':''}},fadeOpacity:function(el,opacity,duration,callback){var startOp=+(el.style.opacity||0);duration=duration||0;this.clearTimeout['fade'+el.id];var fadeIn=(startOp<=opacity&&opacity>0);if(duration>10)duration=10;if(duration<0)duration=0;if(duration===0){startOp=opacity}else{var root=Math.pow(100,0.1),power=duration+((10-duration)/9)*(Math.log(2)/Math.log(root)-1),incr=1/Math.pow(root,power)}if(fadeIn){el.style.display=el.style.visibility=''}else{incr=-incr}this.stepFade(el,startOp,opacity,incr,fadeIn,callback)},stepFade:function(el,thisOp,finishOp,incr,fadeIn,callback){if(!el)return;var that=this;if((fadeIn&&thisOp>=finishOp)||(!fadeIn&&thisOp<=finishOp))thisOp=finishOp;if(this.ie)el.style.filter='alpha(opacity='+thisOp*100+')';el.style.opacity=thisOp+'';if(thisOp===finishOp){if(this.ie&&finishOp>=1)el.style.removeAttribute('filter');if(callback)callback()}else{this.timeouts['fade'+el.id]=setTimeout(function(){that.stepFade(el,thisOp+incr,finishOp,incr,fadeIn,callback)},20)}},resizeGroup:function(arr,callback){var i=arr.length;if(!i)return callback?callback():null;this.clearTimeout('resizeGroup');var diff=0;while(i--){diff=Math.max(diff,Math.abs(arr[i].finish-arr[i].start))}var duration=this.resizeDuration*(this.liveResize?0.65:1);var rate=diff&&duration?Math.pow(Math.max(1,2.2-duration/10),(Math.log(diff)))/diff:1;i=arr.length;while(i--)arr[i].diff=arr[i].finish-arr[i].start;this.stepResize(rate,rate,arr,callback)},stepResize:function(increment,rate,arr,callback){var that=this;if(increment>1)increment=1;var i=arr.length;while(i--){var node=arr[i].node,prop=arr[i].property,val=Math.round(arr[i].start+arr[i].diff*increment),tag=node.tagName.toLowerCase();if(tag==='img'||tag==='iframe'){node[prop]=val}else{node.style[prop]=val+'px'}}if(increment>=1){delete this.timeouts.resizeGroup;if(callback)callback()}else{this.timeouts.resizeGroup=setTimeout(function(){that.stepResize(increment+rate,rate,arr,callback)},20)}},getDisplaySize:function(){return{width:this.getDisplayWidth(),height:this.getDisplayHeight()}},getDisplayWidth:function(){return this.html.clientWidth||this.bod.clientWidth},getDisplayHeight:function(){if(this.webkitOld)return this.win.innerHeight;if(!this.html.clientHeight||this.operaOld||this.doc.compatMode==='BackCompat'){return this.bod.clientHeight}return this.html.clientHeight},getScroll:function(win){win=win||this.win;var doc=win.document,bod=doc.body;return{left:win.pageXOffset||bod.scrollLeft||doc.documentElement.scrollLeft||0,top:win.pageYOffset||bod.scrollTop||doc.documentElement.scrollTop||0}},getLeftTop:function(el,local){var left=el.offsetLeft||0,top=el.offsetTop||0,doc=el.ownerDocument||el.document,bod=doc.body,win=doc.defaultView||doc.parentWindow||doc.contentWindow,scroll=this.getScroll(win),position=((el.currentStyle&&el.currentStyle.position)||(win.getComputedStyle&&win.getComputedStyle(el,'').getPropertyValue('position'))||'').toLowerCase(),rex=/absolute|fixed/,elFlow=!rex.test(position),inFlow=elFlow,node=el;if(position==='fixed'){left+=scroll.left;top+=scroll.top}while(position!=='fixed'&&(node=node.offsetParent)){var borderLeft=0,borderTop=0,nodeFlow=true;if(node.currentStyle){position=(node.currentStyle.position||'').toLowerCase();nodeFlow=!rex.test(position);if(this.opera){if(local&&node!==bod){left+=node.scrollLeft-node.clientLeft;top+=node.scrollTop-node.clientTop}}else{if(node.currentStyle.hasLayout&&node!==doc.documentElement){borderLeft=node.clientLeft;borderTop=node.clientTop}}}else if(win.getComputedStyle){position=(win.getComputedStyle(node,'').getPropertyValue('position')||'').toLowerCase();nodeFlow=!rex.test(position);borderLeft=parseInt(win.getComputedStyle(node,'').getPropertyValue('border-left-width'),10);borderTop=parseInt(win.getComputedStyle(node,'').getPropertyValue('border-top-width'),10);if(this.ff&&node===el.offsetParent&&!nodeFlow&&(this.ffOld||!elFlow)){left+=borderLeft;top+=borderTop}}if(!nodeFlow){if(local)return{left:left,top:top};inFlow=false}left+=node.offsetLeft+borderLeft;top+=node.offsetTop+borderTop;if(position==='fixed'){left+=scroll.left;top+=scroll.top}if(!(this.opera&&elFlow)&&node!==bod&&node!==doc.documentElement){left-=node.scrollLeft;top-=node.scrollTop}}if(this.ff&&inFlow){left+=parseInt(win.getComputedStyle(bod,'').getPropertyValue('border-left-width'),10);top+=parseInt(win.getComputedStyle(bod,'').getPropertyValue('border-top-width'),10)}if(this.webkitOld){var scriptElement=doc.createElement('script');scriptElement.innerHTML='document.parentWindow=self';doc.documentElement.appendChild(scriptElement);doc.documentElement.removeChild(scriptElement);win=doc.parentWindow}if(!local&&win!==this.win){var iframes=win.parent.document.getElementsByTagName('iframe'),i=iframes.length;while(i--){var node=iframes[i],idoc=false;try{idoc=node.contentDocument||node.contentWindow;idoc=idoc.document||idoc}catch(e){}if(idoc===doc||(typeof idoc!=='object'&&node.src===win.location.href.substr(win.location.href.length-node.src.length))){if(this.webkitOld)win=doc.defaultView;var pos=this.getLeftTop(node);left+=pos.left-scroll.left;top+=pos.top-scroll.top;if(node.currentStyle){var padLeft=0,padTop=0;if(!this.ie||elFlow){padLeft=parseInt(node.currentStyle.paddingLeft,10);padTop=parseInt(node.currentStyle.paddingTop,10)}left+=node.clientLeft+padLeft;top+=node.clientTop+padTop}else if(win.getComputedStyle){left+=parseInt(win.getComputedStyle(node,'').getPropertyValue('border-left-width'),10)+parseInt(win.getComputedStyle(node,'').getPropertyValue('padding-left'),10);top+=parseInt(win.getComputedStyle(node,'').getPropertyValue('border-top-width'),10)+parseInt(win.getComputedStyle(node,'').getPropertyValue('padding-top'),10)}break}}}return{left:left,top:top}},getLayout:function(el){var lay=this.getLeftTop(el);lay.width=el.offsetWidth;lay.height=el.offsetHeight;return lay},hideElements:function(type,thisWindow){if(!thisWindow){this.hideElements(type,this.win)}else{var tagName,tagNames=type==='flash'?['object','embed']:[type];try{while((tagName=tagNames.pop())){var els=thisWindow.document.getElementsByTagName(tagName),i=els.length;while(i--){var el=els[i];if(el.style.visibility!=='hidden'&&(tagName!=='object'||(el.getAttribute('type')&&el.getAttribute('type').toLowerCase()==='application/x-shockwave-flash')||(el.getAttribute('classid')&&el.getAttribute('classid').toLowerCase()==='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000')||/data\s*=\s*"?[^>"]+\.swf\b/i.test(el.innerHTML)||/param\s+name\s*=\s*"?(movie|src)("|\s)[^>]+\.swf\b/i.test(el.innerHTML))){this.hiddenEls.push(el);el.style.visibility='hidden'}}}}catch(e){}var frames=thisWindow.frames,i=frames.length;while(i--){if(typeof frames[i].window==='object')this.hideElements(type,frames[i].window)}}},clearTimeout:function(key){if(this.timeouts[key]){clearTimeout(this.timeouts[key]);delete this.timeouts[key]}},stretchOverlay:function(){var that=this;return function(){if(arguments.length===1){that.clearTimeout('stretch');that.timeouts.stretch=setTimeout(function(){that.stretchOverlay()()},25)}else{delete that.timeouts.stretch;if(!that.fbBox)return;var width=that.fbBox.offsetLeft+that.fbBox.offsetWidth,height=that.fbBox.offsetTop+that.fbBox.offsetHeight,display=that.getDisplaySize(),scroll=that.getScroll(),overlay=that.fbOverlay.style;overlay.width=overlay.height='0';overlay.width=Math.max(width,that.bod.scrollWidth,that.bod.clientWidth,that.html.clientWidth,display.width+scroll.left)+'px';overlay.height=Math.max(height,that.bod.scrollHeight,that.bod.clientHeight,that.html.clientHeight,display.height+scroll.top)+'px'}}},encodeHTML:function(str){return str.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;')},decodeHTML:function(str){return str.replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&#39;/g,"'").replace(/&amp;/g,'&')},getXMLHttpRequest:function(){var xhr,that=this;if(window.XMLHttpRequest){if(!(xhr=new XMLHttpRequest()))return false}else{try{xhr=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{xhr=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){return false}}}return{getResponse:function(url,callback){try{xhr.open('GET',url,true);xhr.onreadystatechange=function(){if(xhr.readyState===4){xhr.onreadystatechange=function(){};callback(xhr)}};xhr.send(null)}catch(e){}}}},setInnerHTML:function(el,strHTML){try{var range=this.doc.createRange();range.selectNodeContents(el);range.deleteContents();if(strHTML){strHTML=strHTML.replace('&','&amp;');var xmlDiv=new DOMParser().parseFromString('<div xmlns="http://www.w3.org/1999/xhtml">'+strHTML+'</div>','application/xhtml+xml'),childNodes=xmlDiv.documentElement.childNodes;for(var i=0,len=childNodes.length;i<len;i++){el.appendChild(this.doc.importNode(childNodes[i],true))}}return true}catch(e){}try{el.innerHTML=strHTML;return true}catch(e){}return false},printContents:function(el,style){if(el&&el.offsetWidth){var width=el.offsetWidth,height=el.offsetHeight}else{el=fb.lastChild.fbContent;var pos=fb.lastChild.pos.fbMainDiv,width=pos.width,height=pos.height}var win=window.open('','','width='+width+', height='+height),doc=win&&win.document;if(!doc){alert('Popup windows are being blocked by your browser.\nUnable to print.');return false}if(/\.css$/i.test(style)){style='<link rel="stylesheet" type="text/css" href="'+style+'" />'}else{style='<style type="text/css"> html,body{border:0;margin:0;padding:0;}'+(style||'')+'</style>'}var div=this.doc.createElement('div');div.appendChild(el.cloneNode(true));doc.open('text/html');doc.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"'+' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>'+style+'</head><body><div>'+div.innerHTML+'</div></body></html>');doc.close();setTimeout(function(){win&&win.print();win&&win.close()},200);return true},loadAnchor:function(href,rev,title){if(href.setAttribute){var anchor=href;var elClass=el.getAttribute('class');elClass=elClass?elClass:el.getAttribute('className');if(!elClass)anchor.setAttribute('className','thickbox');fb.lastChild.start(this.tagOneAnchor(anchor))}else{fb.lastChild.start(this.tagOneAnchor({href:href,rev:rev,title:title,rel:'thickbox'}))}},goBack:function(){var a;if((a=fb.previousAnchor)){this.loadAnchor(a.href,a.rev+' sameBox:true',a.title)}},resize:function(width,height){if(width)fb.lastChild.currentItem.nativeWidth=width;if(height)fb.lastChild.currentItem.nativeHeight=height;fb.lastChild.calcSize(false)}};function initfb(){if(arguments.callee.done)return;if(document.compatMode==='BackCompat'){arguments.callee.done=true;/*alert('Floatbox does not support quirks mode.\nPage needs to have a valid a doc type.');*/return}if(self!==top&&!parent.fb)return setTimeout(initfb,50);arguments.callee.done=true;if(self===top)top.floatbox=new Floatbox();fb=top.floatbox;fb.tagAnchors(self.document.body);if(fb.autoStart){fb.start(fb.autoStart);if(typeof fb!=='undefined')delete fb.autoStart}else{fb.preloadImages('',true)}}/*@cc_on fb_tempNode=document.createElement('div');(function(){if(document.readyState!=='complete')return setTimeout(arguments.callee,50);try{fb_tempNode.doScroll('left')}catch(e){return setTimeout(arguments.callee,50)}initfb();delete fb_tempNode})();/*@if(false)@*/if(/Apple|KDE/i.test(navigator.vendor)){(function(){if(/loaded|complete/.test(document.readyState)){initfb()}else{setTimeout(arguments.callee,50)}})()}else if(document.addEventListener){document.addEventListener('DOMContentLoaded',initfb,false)}/*@end@*/fb_prevOnload=window.onload;window.onload=function(){if(typeof fb_prevOnload==='function')fb_prevOnload();initfb()};

