/***************************************************************************
* Floatbox v3.53.0
* July 27, 2009
*
* Copyright (c) 2008-2009 Byron McGregor
* Website: http://randomous.com/floatbox
* License: Attribution-Noncommercial-No Derivative Works 3.0 Unported
* http://creativecommons.org/licenses/by-nc-nd/3.0/
* Use on any commercial site requires purchase and registration.
* See http://randomous.com/floatbox/license for details.
* This comment block must be retained in all deployments and distributions.
***************************************************************************/
function Floatbox() {
this.defaultOptions = {
/***** BEGIN OPTIONS CONFIGURATION *****/
// See docs/options.html for detailed descriptions.
// All options can be overridden with rev/data-fb-options tag or page options (see docs/instructions.html).
/*** ***/
licenseKey: '' ,// you can paste your license key here instead of in licenseKey.js if you want
padding: 24 ,// pixels
panelPadding: 8 ,// pixels
overlayOpacity: 55 ,// 0-100
shadowType: 'drop' ,// 'drop'|'halo'|'none'
shadowSize: 12 ,// 8|12|16|24
roundCorners: 'all' ,// 'all'|'top'|'none'
cornerRadius: 12 ,// 8|12|20
roundBorder: 1 ,// 0|1
outerBorder: 4 ,// pixels
innerBorder: 1 ,// pixels
autoFitImages: true ,// true|false
resizeImages: true ,// true|false
autoFitOther: false ,// true|false
resizeOther: false ,// true|false
resizeTool: 'cursor' ,// 'cursor'|'topleft'|'both'
infoPos: 'bl' ,// 'tl'|'tc'|'tr'|'bl'|'bc'|'br'
controlPos: 'br' ,// 'tl'|'tr'|'bl'|'br'
centerNav: false ,// true|false
colorImages: 'black' ,// 'black'|'white'|'blue'|'yellow'|'red'|'custom'
colorHTML: 'white' ,// 'black'|'white'|'blue'|'yellow'|'red'|'custom'
colorVideo: 'blue' ,// 'black'|'white'|'blue'|'yellow'|'red'|'custom'
boxLeft: 'auto' ,// 'auto'|pixels|'[-]xx%'
boxTop: 'auto' ,// 'auto'|pixels|'[-]xx%'
enableDragMove: false ,// true|false
stickyDragMove: true ,// true|false
enableDragResize: false ,// true|false
stickyDragResize: true ,// true|false
draggerLocation: 'frame' ,// 'frame'|'content'
minContentWidth: 140 ,// pixels
minContentHeight: 100 ,// pixels
centerOnResize: true ,// true|false
showCaption: true ,// true|false
showItemNumber: true ,// true|false
showClose: true ,// true|false
cacheAjaxContent: false ,// true|false
hideObjects: true ,// true|false
hideJava: true ,// true|false
disableScroll: false ,// true|false
randomOrder: false ,// true|false
preloadAll: true ,// true|false
autoGallery: false ,// true|false
autoTitle: '' ,// common caption string to use with autoGallery
printCSS: '' ,// path to css file or inline css string to apply to print pages (see showPrint)
language: 'auto' ,// 'auto'|'en'|... (see the languages folder)
graphicsType: 'auto' ,// 'auto'|'international'|'english'
/*** ***/
/*** ***/
doAnimations: true ,// true|false
resizeDuration: 3.5 ,// 0-10
imageFadeDuration: 3 ,// 0-10
overlayFadeDuration: 4 ,// 0-10
startAtClick: true ,// true|false
zoomImageStart: true ,// true|false
liveImageResize: true ,// true|false
splitResize: 'no' ,// 'no'|'auto'|'wh'|'hw'
cycleInterval: 5 ,// seconds
cycleFadeDuration: 4.5 ,// 0-10
/*** ***/
/*** ***/
navType: 'both' ,// 'overlay'|'button'|'both'|'none'
navOverlayWidth: 35 ,// 0-50
navOverlayPos: 30 ,// 0-100
showNavOverlay: 'never' ,// 'always'|'once'|'never'
showHints: 'once' ,// 'always'|'once'|'never'
enableWrap: true ,// true|false
enableKeyboardNav: true ,// true|false
outsideClickCloses: true ,// true|false
imageClickCloses: false ,// true|false
numIndexLinks: 0 ,// number, -1 = no limit
indexLinksPanel: 'control' ,// 'info'|'control'
showIndexThumbs: true ,// true|false
/*** ***/
/*** ***/
doSlideshow: false ,// true|false
slideInterval: 4.5 ,// seconds
endTask: 'exit' ,// 'stop'|'exit'|'loop'
showPlayPause: true ,// true|false
startPaused: false ,// true|false
pauseOnPrev: true ,// true|false
pauseOnNext: false ,// true|false
pauseOnResize: true // true|false
/*** ***/
};
/*** ***/
// Will inherit from the primary floatbox options unless overridden here.
// Add any you like.
this.childOptions = {
padding: 16,
overlayOpacity: 45,
resizeDuration: 3,
imageFadeDuration: 3,
overlayFadeDuration: 0
};
/*** ***/
/*** ***/
// Normally leave these blank.
// Floatbox will auto-find folders based on the location of floatbox.js and background-images.
// If you have a custom odd-ball configuration, fill in the details here.
// (Trailing slashes please)
this.customPaths = {
installBase: '' ,// default: parsed from floatbox.js, framebox.js or floatbox.css include line
jsModules: '' ,// default: installBase/modules/
cssModules: '' ,// default: installBase/modules/
languages: '' ,// default: installBase/languages/
graphics: '' // default: from floatbox.css pathChecker background-image
};
/*** ***/
/***** END OPTIONS CONFIGURATION *****/
this.init();}
Floatbox.prototype={magicClass:"floatbox",cycleClass:"fbCycler",panelGap:20,infoLinkGap:16,draggerSize:12,controlOpacity:60,showHintsTime:1600,zoomPopBorder:1,controlSpacing:8,minInfoWidth:80,minIndexWidth:120,ctrlJump:5,slowLoadDelay:750,autoFitSpace:5,maxInitialSize:120,minInitialSize:70,defaultWidth:"85%",defaultHeight:"82%",init:function(){var g=this;g.doc=document;g.docEl=g.doc.documentElement;g.head=g.doc.getElementsByTagName("head")[0];g.bod=g.doc.getElementsByTagName("body")[0];g.getGlobalOptions();g.currentSet=[];g.nodes=[];g.hiddenEls=[];g.timeouts={};g.pos={};var d=navigator.userAgent,f=navigator.appVersion;g.mac=f.indexOf("Macintosh")!==-1;if(window.opera){g.opera=true;g.operaOld=parseFloat(f)<9.5}else{if(document.all){g.ie=true;g.ieOld=parseInt(f.substr(f.indexOf("MSIE")+5),10)<7;g.ieXP=parseInt(f.substr(f.indexOf("Windows NT")+11),10)<6}else{if(d.indexOf("Firefox")!==-1){g.ff=true;g.ffOld=parseInt(d.substr(d.indexOf("Firefox")+8),10)<3;g.ffNew=!g.ffOld;g.ffMac=g.mac}else{if(f.indexOf("WebKit")!==-1){g.webkit=true;g.webkitMac=g.mac}else{if(d.indexOf("SeaMonkey")!==-1){g.seaMonkey=true}}}}}g.browserLanguage=(navigator.language||navigator.userLanguage||navigator.systemLanguage||navigator.browserLanguage||"en").substring(0,2);g.isChild=!!self.fb;if(!g.isChild){g.parent=g.lastChild=g;g.anchors=[];g.children=[];g.popups=[];g.cycleDivs=[];g.preloads={};g.base=(location.protocol+"//"+location.host).toLowerCase();var b=function(j){return j},a=function(j){return j&&g.doAnimations},i=function(j){return a(j)&&g.resizeDuration};g.modules={enableKeyboardNav:{files:["keydownHandler.js"],test:b},enableDragMove:{files:["mousedownHandler.js"],test:b},enableDragResize:{files:["mousedownHandler.js"],test:b},centerOnResize:{files:["resizeHandler.js"],test:b},showPrint:{files:["printContents.js"],test:b},imageFadeDuration:{files:["animations.js"],test:a},overlayFadeDuration:{files:["animations.js"],test:a},resizeDuration:{files:["animations.js"],test:a},startAtClick:{files:["getLeftTop.js"],test:i},zoomImageStart:{files:["getLeftTop.js","zoomInOut.js"],test:i},loaded:{}};g.installFolder=g.customPaths.installBase||g.getPath("script","src",/(.*)f(?:loat|rame)box.js(?:\?|$)/i)||g.getPath("link","href",/(.*)floatbox.css(?:\?|$)/i)||"/floatbox/";g.jsModulesFolder=g.customPaths.jsModules||g.installFolder+"modules/";g.cssModulesFolder=g.customPaths.cssModules||g.installFolder+"modules/";g.languagesFolder=g.customPaths.languages||g.installFolder+"languages/";g.graphicsFolder=g.customPaths.graphics;if(!g.graphicsFolder){var e,c=g.doc.createElement("div");c.id="fbPathChecker";g.bod.appendChild(c);if((e=/(?:url\()?["']?(.*)blank.gif["']?\)?$/i.exec(g.getStyle(c,"background-image")))){g.graphicsFolder=e[1]}g.bod.removeChild(c);delete c;if(!g.graphicsFolder){g.graphicsFolder=(g.getPath("link","href",/(.*)floatbox.css(?:\?|$)/i)||"/floatbox/")+"graphics/"}}g.rtl=g.getStyle(g.bod,"direction")==="rtl"||g.getStyle(g.docEl,"direction")==="rtl"}else{g.parent=fb.lastChild;fb.lastChild=g;fb.children.push(g);g.anchors=fb.anchors;g.popups=fb.popups;g.cycleDivs=fb.cycleDivs;g.preloads=fb.preloads;g.modules=fb.modules;g.jsModulesFolder=fb.jsModulesFolder;g.cssModulesFolder=fb.cssModulesFolder;g.languagesFolder=fb.languagesFolder;g.graphicsFolder=fb.graphicsFolder;g.strings=fb.strings;g.rtl=fb.rtl;if(g.parent.isSlideshow){g.parent.pause(true)}}var h=g.graphicsFolder;g.resizeUpCursor=h+"magnify_plus.cur";g.resizeDownCursor=h+"magnify_minus.cur";g.notFoundImg=h+"404.jpg";g.blank=h+"blank.gif";g.zIndex={base:90000+(g.isChild?12*fb.children.length:0),fbOverlay:1,fbBox:2,fbCanvas:3,fbContent:4,fbMainLoader:5,fbLeftNav:6,fbRightNav:6,fbOverlayPrev:7,fbOverlayNext:7,fbResizer:8,fbInfoPanel:9,fbControlPanel:9,fbDragger:10,fbZoomDiv:11};var e=/\bautoStart=(.+?)(?:&|$)/i.exec(location.search);g.autoHref=e?e[1]:false},tagAnchors:function(c){var b=this;function a(e){var g=c.getElementsByTagName(e);for(var f=0,d=g.length;f1){while(c--){b[c]=d(arguments[c])}return b}else{return d(e)}};var fb;function initfb(){if(arguments.callee.done){return}var a="self";if(true){if(self!==parent){try{if(self.location.host===parent.location.host&&self.location.protocol===parent.location.protocol){a="parent"}}catch(c){}if(a==="parent"&&!parent.fb){return setTimeout(initfb,50)}}}arguments.callee.done=true;if(document.compatMode==="BackCompat"){alert("Floatbox does not support quirks mode.\nPage needs to have a valid doctype declaration.");return}fb=(a==="self"?new Floatbox():parent.fb);var b=self.document.getElementsByTagName("body")[0];fb.anchorCount=b.getElementsByTagName("a").length;fb.tagAnchors(b);fb.tagDivs(b)}(function(){function b(){initfb();if(!(self.fb&&self.fb.strings)){return setTimeout(arguments.callee,100)}var d=self.document.getElementsByTagName("body")[0],c=d.getElementsByTagName("a").length;if(c>fb.anchorCount){fb.tagAnchors(d)}if(fb.autoStart){if(fb.autoStart.ownerDoc===self.document){fb.setTimeout("start",function(){fb.start(fb.autoStart)},100)}}else{setTimeout(function(){if(fb.preloads.count===fb.undefined){fb.preload("",true)}},200)}}if(window.addEventListener){window.addEventListener("load",b,false)}else{if(window.attachEvent){window.attachEvent("onload",b)}else{var a=window.onload;window.onload=function(){if(typeof a==="function"){a()}b()}}}})();if(document.addEventListener){document.addEventListener("DOMContentLoaded",initfb,false)};(function(){/*@cc_on if(document.body){try{document.createElement('div').doScroll('left');return initfb();}catch(e){}}/*@if (false) @*/if(/loaded|complete/.test(document.readyState))return initfb();/*@end @*/if(!initfb.done)setTimeout(arguments.callee,30);})();