PageSourceSearch

https://radioamerica.net/plugins/system/shadowbox/shadowbox/min/in…=base&lan=en&play=img-swf-flv-iframe-html

js radioamerica.net collected 2026-10-02 10:50:27 UTC 46,582 bytes, 363 lines download raw bytes

1/*
2 * Shadowbox.js, version @VERSION
3 * http://shadowbox-js.com/
4 *
5 * Copyright 2007-2010, Michael J. I. Jackson
6 * @DATE
7 */
8(function(window,undefined){;var S={version:"3.0.3"}
9var ua=navigator.userAgent.toLowerCase();if(ua.indexOf('windows')>-1||ua.indexOf('win32')>-1){S.isWindows=true;}else if(ua.indexOf('macintosh')>-1||ua.indexOf('mac os x')>-1){S.isMac=true;}else if(ua.indexOf('linux')>-1){S.isLinux=true;}
10S.isIE=ua.indexOf('msie')>-1;S.isIE6=ua.indexOf('msie 6')>-1;S.isIE7=ua.indexOf('msie 7')>-1;S.isGecko=ua.indexOf('gecko')>-1&&ua.indexOf('safari')==-1;S.isWebKit=ua.indexOf('applewebkit/')>-1;var inlineId=/#(.+)$/,galleryName=/^(light|shadow)box\[(.*?)\]/i,inlineParam=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,fileExtension=/[0-9a-z]+$/i,scriptPath=/(.+\/)shadowbox\.js/i;var open=false,initialized=false,lastOptions={},slideDelay=0,slideStart,slideTimer;S.current=-1;S.dimensions=null;S.ease=function(state){return 1+Math.pow(state-1,3);}
11S.errorInfo={fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}};S.gallery=[];S.onReady=noop;S.path=null;S.player=null;S.playerId="sb-player";S.options={animate:true,animateFade:true,autoplayMovies:true,continuous:false,enableKeys:true,flashParams:{bgcolor:"#000000",allowfullscreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",onChange:noop,onClose:noop,onFinish:noop,onOpen:noop,showMovieControls:true,skipSetup:false,slideshowDelay:0,viewportPadding:20};S.getCurrent=function(){return S.current>-1?S.gallery[S.current]:null;}
12S.hasNext=function(){return S.gallery.length>1&&(S.current!=S.gallery.length-1||S.options.continuous);}
13S.isOpen=function(){return open;}
14S.isPaused=function(){return slideTimer=="pause";}
15S.applyOptions=function(options){lastOptions=apply({},S.options);apply(S.options,options);}
16S.revertOptions=function(){apply(S.options,lastOptions);}
17S.init=function(options,callback){if(initialized)
18return;initialized=true;if(S.skin.options)
19apply(S.options,S.skin.options);if(options)
20apply(S.options,options);if(!S.path){var path,scripts=document.getElementsByTagName("script");for(var i=0,len=scripts.length;i<len;++i){path=scriptPath.exec(scripts[i].src);if(path){S.path=path[1];break;}}}
21if(callback)
22S.onReady=callback;bindLoad();}
23S.open=function(obj){if(open)
24return;var gc=S.makeGallery(obj);S.gallery=gc[0];S.current=gc[1];obj=S.getCurrent();if(obj==null)
25return;S.applyOptions(obj.options||{});filterGallery();if(S.gallery.length){obj=S.getCurrent();if(S.options.onOpen(obj)===false)
26return;open=true;S.skin.onOpen(obj,load);}}
27S.close=function(){if(!open)
28return;open=false;if(S.player){S.player.remove();S.player=null;}
29if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null;}
30slideDelay=0;listenKeys(false);S.options.onClose(S.getCurrent());S.skin.onClose();S.revertOptions();}
31S.play=function(){if(!S.hasNext())
32return;if(!slideDelay)
33slideDelay=S.options.slideshowDelay*1000;if(slideDelay){slideStart=now();slideTimer=setTimeout(function(){slideDelay=slideStart=0;S.next();},slideDelay);if(S.skin.onPlay)
34S.skin.onPlay();}}
35S.pause=function(){if(typeof slideTimer!="number")
36return;slideDelay=Math.max(0,slideDelay-(now()-slideStart));if(slideDelay){clearTimeout(slideTimer);slideTimer="pause";if(S.skin.onPause)
37S.skin.onPause();}}
38S.change=function(index){if(!(index in S.gallery)){if(S.options.continuous){index=(index<0?S.gallery.length+index:0);if(!(index in S.gallery))
39return;}else{return;}}
40S.current=index;if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null;slideDelay=slideStart=0;}
41S.options.onChange(S.getCurrent());load(true);}
42S.next=function(){S.change(S.current+1);}
43S.previous=function(){S.change(S.current-1);}
44S.setDimensions=function(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect){var originalHeight=height,originalWidth=width;var extraHeight=2*padding+topBottom;if(height+extraHeight>maxHeight)
45height=maxHeight-extraHeight;var extraWidth=2*padding+leftRight;if(width+extraWidth>maxWidth)
46width=maxWidth-extraWidth;var changeHeight=(originalHeight-height)/originalHeight,changeWidth=(originalWidth-width)/originalWidth,oversized=(changeHeight>0||changeWidth>0);if(preserveAspect&&oversized){if(changeHeight>
46changeWidth){width=Math.round((originalWidth/originalHeight)*height);}else if(changeWidth>changeHeight){height=Math.round((originalHeight/originalWidth)*width);}}
47S.dimensions={height:height+topBottom,width:width+leftRight,innerHeight:height,innerWidth:width,top:Math.floor((maxHeight-(height+extraHeight))/2+padding),left:Math.floor((maxWidth-(width+extraWidth))/2+padding),oversized:oversized};return S.dimensions;}
48S.makeGallery=function(obj){var gallery=[],current=-1;if(typeof obj=="string")
49obj=[obj];if(typeof obj.length=="number"){each(obj,function(i,o){if(o.content){gallery[i]=o;}else{gallery[i]={content:o};}});current=0;}else{if(obj.tagName){var cacheObj=S.getCache(obj);obj=cacheObj?cacheObj:S.makeObject(obj);}
50if(obj.gallery){gallery=[];var o;for(var key in S.cache){o=S.cache[key];if(o.gallery&&o.gallery==obj.gallery){if(current==-1&&o.content==obj.content)
51current=gallery.length;gallery.push(o);}}
52if(current==-1){gallery.unshift(obj);current=0;}}else{gallery=[obj];current=0;}}
53each(gallery,function(i,o){gallery[i]=apply({},o);});return[gallery,current];}
54S.makeObject=function(link,options){var obj={content:link.href,title:link.getAttribute("title")||"",link:link};if(options){options=apply({},options);each(["player","title","height","width","gallery"],function(i,o){if(typeof options[o]!="undefined"){obj[o]=options[o];delete options[o];}});obj.options=options;}else{obj.options={};}
55if(!obj.player)
56obj.player=S.getPlayer(obj.content);var rel=link.getAttribute("rel");if(rel){var match=rel.match(galleryName);if(match)
57obj.gallery=escape(match[2]);each(rel.split(';'),function(i,p){match=p.match(inlineParam);if(match)
58obj[match[1]]=match[2];});}
59return obj;}
60S.getPlayer=function(content){if(content.indexOf("#")>-1&&content.indexOf(document.location.href)==0)
61return"inline";var q=content.indexOf("?");if(q>-1)
62content=content.substring(0,q);var ext,m=content.match(fileExtension);if(m)
63ext=m[0].toLowerCase();if(ext){if(S.img&&S.img.ext.indexOf(ext)>-1)
64return"img";if(S.swf&&S.swf.ext.indexOf(ext)>-1)
65return"swf";if(S.flv&&S.flv.ext.indexOf(ext)>-1)
66return"flv";if(S.qt&&S.qt.ext.indexOf(ext)>-1){if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"qtwmp";}else{return"qt";}}
67if(S.wmp&&S.wmp.ext.indexOf(ext)>-1)
68return"wmp";}
69return"iframe";}
70function filterGallery(){var err=S.errorInfo,plugins=S.plugins,obj,remove,needed,m,format,replace,inlineEl,flashVersion;for(var i=0;i<S.gallery.length;++i){obj=S.gallery[i]
71remove=false;needed=null;switch(obj.player){case"flv":case"swf":if(!plugins.fla)
72needed="fla";break;case"qt":if(!plugins.qt)
73needed="qt";break;case"wmp":if(S.isMac){if(plugins.qt&&plugins.f4m){obj.player="qt";}else{needed="qtf4m";}}else if(!plugins.wmp){needed="wmp";}
74break;case"qtwmp":if(plugins.qt){obj.player="qt";}else if(plugins.wmp){obj.player="wmp";}else{needed="qtwmp";}
75break;}
76if(needed){if(S.options.handleUnsupported=="link"){switch(needed){case"qtf4m":format="shared";replace=[err.qt.url,err.qt.name,err.f4m.url,err.f4m.name];break;case"qtwmp":format="either";replace=[err.qt.url,err.qt.name,err.wmp.url,err.wmp.name];break;default:format="single";replace=[err[needed].url,err[needed].name];}
77obj.player="html";obj.content='<div class="sb-message">'+sprintf(S.lang.errors[format],replace)+'</div>';}else{remove=true;}}else if(obj.player=="inline"){m=inlineId.exec(obj.content);if(m){inlineEl=get(m[1]);if(inlineEl){obj.content=inlineEl.innerHTML;}else{remove=true;}}else{remove=true;}}else if(obj.player=="swf"||obj.player=="flv"){flashVersion=(obj.options&&obj.options.flashVersion)||S.options.flashVersion;if(S.flash&&!S.flash.hasFlashPlayerVersion(flashVersion)){obj.width=310;obj.height=177;}}
78if(remove){S.gallery.splice(i,1);if(i<S.current){--S.current;}else if(i==S.current){S.current=i>0?i-1:i;}
79--i;}}}
80function listenKeys(on){if(!S.options.enableKeys)
81return;(on?addEvent:removeEvent)(document,"keydown",handleKey);}
82function handleKey(e){if(e.metaKey||e.shiftKey||e.altKey||e.ctrlKey)
83return;var code=keyCode(e),handler;switch(code){case 81:case 88:case 27:handler=S.close;break;case 37:handler=S.previous;break;case 39:handler=S.next;break;case 32:handler=typeof slideTimer=="number"?S.pause:S.play;break;}
84if(handler){preventDefault(e);handler();}}
85function load(changing){listenKeys(false);var obj=S.getCurrent();var player=(obj.player=="inline"?"html":obj.player);if(typeof S[player]!="function")
86throw"unknown player "+player;if(changing){S.player.remove();S.revertOptions();S.applyOptions(obj.options||{});}
87S.player=new S[player](obj,S.playerId);if(S.gallery.length>1){var next=S.gallery[S.current+1]||S.gallery[0];if(next.player=="img"){var a=new Image();a.src=next.content;}
88var prev=S.gallery[S.current-1]||S.gallery[S.gallery.length-1];if(prev.player=="img"){var b=new Image();b.src=prev.content;}}
89S.skin.onLoad(changing,waitReady);}
90function waitReady(){if(!open)
91return;if(typeof S.player.ready!="undefined"){var timer=setInterval(function(){if(open){if(S.player.ready){clearInterval(timer);timer=null;S.skin.onReady(show);}}else{clearInterval(timer);timer=null;}},10);}else{S.skin.onReady(show);}}
92function show(){if(!open)
93return;S.player.append(S.skin.body,S.dimensions);S.skin.onShow(finish);}
94function finish(){if(!open)
95return;if(S.player.onLoad)
96S.player.onLoad();S.options.onFinish(S.getCurrent());if(!S.isPaused())
97S.play();listenKeys(true);};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj,from){var len=this.length>>>0;from=from||0;if(from<0)
98from+=len;for(;from<len;++from){if(from in this&&this[from]===obj)
99return from;}
100return-1;}}
101function now(){return(new Date).getTime();}
102function apply(original,extension){for(var property in extension)
103original[property]=extension[property];return original;}
104function each(obj,callback){var i=0,len=obj.length;for(var value=obj[0];i<len&&callback.call(value,i,value)!==false;value=obj[++i]){}}
105function sprintf(str,replace){return str.replace(/\{(\w+?)\}/g,function(match,i){return replace[i];});}
106function noop(){}
107function get(id){return document.getElementById(id);}
108function remove(el){el.parentNode.removeChild(el);}
109var supportsOpacity=true,supportsFixed=true;function checkSupport(){var body=document.body,div=document.createElement("div");
109supportsOpacity=typeof div.style.opacity==="string";div.style.position="fixed";div.style.margin=0;div.style.top="20px";body.appendChild(div,body.firstChild);supportsFixed=div.offsetTop==20;body.removeChild(div);}
110S.getStyle=(function(){var opacity=/opacity=([^)]*)/,getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle;return function(el,style){var ret;if(!supportsOpacity&&style=="opacity"&&el.currentStyle){ret=opacity.test(el.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return ret===""?"1":ret;}
111if(getComputedStyle){var computedStyle=getComputedStyle(el,null);if(computedStyle)
112ret=computedStyle[style];if(style=="opacity"&&ret=="")
113ret="1";}else{ret=el.currentStyle[style];}
114return ret;}})();S.appendHTML=function(el,html){if(el.insertAdjacentHTML){el.insertAdjacentHTML("BeforeEnd",html);}else if(el.lastChild){var range=el.ownerDocument.createRange();range.setStartAfter(el.lastChild);var frag=range.createContextualFragment(html);el.appendChild(frag);}else{el.innerHTML=html;}}
115S.getWindowSize=function(dimension){if(document.compatMode==="CSS1Compat")
116return document.documentElement["client"+dimension];return document.body["client"+dimension];}
117S.setOpacity=function(el,opacity){var style=el.style;if(supportsOpacity){style.opacity=(opacity==1?"":opacity);}else{style.zoom=1;if(opacity==1){if(typeof style.filter=="string"&&(/alpha/i).test(style.filter))
118style.filter=style.filter.replace(/\s*[\w\.]*alpha\([^\)]*\);?/gi,"");}else{style.filter=(style.filter||"").replace(/\s*[\w\.]*alpha\([^\)]*\)/gi,"")+" alpha(opacity="+(opacity*100)+")";}}}
119S.clearOpacity=function(el){S.setOpacity(el,1);};function getTarget(e){var target=e.target?e.target:e.srcElement;return target.nodeType==3?target.parentNode:target;}
120function getPageXY(e){var x=e.pageX||(e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)),y=e.pageY||(e.clientY+(document.documentElement.scrollTop||document.body.scrollTop));return[x,y];}
121function preventDefault(e){e.preventDefault();}
122function keyCode(e){return e.which?e.which:e.keyCode;}
123function addEvent(el,type,handler){if(el.addEventListener){el.addEventListener(type,handler,false);}else{if(el.nodeType===3||el.nodeType===8)
124return;if(el.setInterval&&(el!==window&&!el.frameElement))
125el=window;if(!handler.__guid)
126handler.__guid=addEvent.guid++;if(!el.events)
127el.events={};var handlers=el.events[type];if(!handlers){handlers=el.events[type]={};if(el["on"+type])
128handlers[0]=el["on"+type];}
129handlers[handler.__guid]=handler;el["on"+type]=addEvent.handleEvent;}}
130addEvent.guid=1;addEvent.handleEvent=function(event){var result=true;event=event||addEvent.fixEvent(((this.ownerDocument||this.document||this).parentWindow||window).event);var handlers=this.events[event.type];for(var i in handlers){this.__handleEvent=handlers[i];if(this.__handleEvent(event)===false)
131result=false;}
132return result;}
133addEvent.preventDefault=function(){this.returnValue=false;}
134addEvent.stopPropagation=function(){this.cancelBubble=true;}
135addEvent.fixEvent=function(e){e.preventDefault=addEvent.preventDefault;e.stopPropagation=addEvent.stopPropagation;return e;}
136function removeEvent(el,type,handler){if(el.removeEventListener){el.removeEventListener(type,handler,false);}else{if(el.events&&el.events[type])
137delete el.events[type][handler.__guid];}};var loaded=false,DOMContentLoaded;if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);S.load();}}else if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);S.load();}}}
138function doScrollCheck(){if(loaded)
139return;try{document.documentElement.doScroll("left");}catch(e){setTimeout(doScrollCheck,1);return;}
140S.load();}
141function bindLoad(){if(document.readyState==="complete")
142return S.load();if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);window.addEventListener("load",S.load,false);}else if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);
142window.attachEvent("onload",S.load);var topLevel=false;try{topLevel=window.frameElement===null;}catch(e){}
143if(document.documentElement.doScroll&&topLevel)
144doScrollCheck();}}
145S.load=function(){if(loaded)
146return;if(!document.body)
147return setTimeout(S.load,13);loaded=true;checkSupport();S.onReady();if(!S.options.skipSetup)
148S.setup();S.skin.init();};S.plugins={};if(navigator.plugins&&navigator.plugins.length){var names=[];each(navigator.plugins,function(i,p){names.push(p.name);});names=names.join(',');var f4m=names.indexOf('Flip4Mac')>-1;S.plugins={fla:names.indexOf('Shockwave Flash')>-1,qt:names.indexOf('QuickTime')>-1,wmp:!f4m&&names.indexOf('Windows Media')>-1,f4m:f4m};}else{var detectPlugin=function(name){var axo;try{axo=new ActiveXObject(name);}catch(e){}
149return!!axo;}
150S.plugins={fla:detectPlugin('ShockwaveFlash.ShockwaveFlash'),qt:detectPlugin('QuickTime.QuickTime'),wmp:detectPlugin('wmplayer.ocx'),f4m:false};};var relAttr=/^(light|shadow)box/i,expando="shadowboxCacheKey",cacheKey=1;S.cache={};S.select=function(selector){var links=[];if(!selector){var rel;each(document.getElementsByTagName("a"),function(i,el){rel=el.getAttribute("rel");if(rel&&relAttr.test(rel))
151links.push(el);});}else{var length=selector.length;if(length){if(typeof selector=="string"){if(S.find)
152links=S.find(selector);}else if(length==2&&typeof selector[0]=="string"&&selector[1].nodeType){if(S.find)
153links=S.find(selector[0],selector[1]);}else{for(var i=0;i<length;++i)
154links[i]=selector[i];}}else{links.push(selector);}}
155return links;}
156S.setup=function(selector,options){each(S.select(selector),function(i,link){S.addCache(link,options);});}
157S.teardown=function(selector){each(S.select(selector),function(i,link){S.removeCache(link);});}
158S.addCache=function(link,options){var key=link[expando];if(key==undefined){key=cacheKey++;link[expando]=key;addEvent(link,"click",handleClick);}
159S.cache[key]=S.makeObject(link,options);}
160S.removeCache=function(link){removeEvent(link,"click",handleClick);delete S.cache[link[expando]];link[expando]=null;}
161S.getCache=function(link){var key=link[expando];return(key in S.cache&&S.cache[key]);}
162S.clearCache=function(){for(var key in S.cache)
163S.removeCache(S.cache[key].link);S.cache={};}
164function handleClick(e){S.open(this);if(S.gallery.length)
165preventDefault(e);};
166/*
167 * SWFObject v2.1 <http://code.google.com/p/swfobject/>
168 * Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
169 * This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
170 *
171 * Modified for inclusion in Shadowbox.js
172 */
173S.flash=(function(){var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],objIdArr=[],listenersArr=[],script,timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=false,isExpressInstallActive=false;var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0;}}
174else if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7");}
175catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always";}
176catch(e){if(playerVersion[0]==6){fp6Crash=true;}}
177if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX);}
178catch(e){}}}
179if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)];}}
180catch(e){}}}
181var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);/*@cc_on
182   ie = true;
183   @if (@_win32)
184    windows = true;
185   @elif (@_mac)
186    mac = true;
187   @end
188  @*/return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac};}();var onDomLoad=function(){if(!ua.w3cdom){return;}
189addDomLoadEvent(main);if(ua.ie&&ua.win){try{doc.write("<scr"+"ipt id=__ie_ondomload defer=true src=//:></scr"+"ipt>");script=getElementById("__ie_ondomload");if(script){addListener(script,"onreadystatechange",checkReadyState);}}
190catch(e){}}
191if(ua.webkit&&typeof doc.readyState!=UNDEF){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions();}},10);}
192if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null);}
193addLoadEvent(callDomLoadFunctions);}();function checkReadyState(){if(script.readyState=="complete"){script.parentNode.removeChild(script);callDomLoadFunctions();}}
194function callDomLoadFunctions(){if(isDomLoaded){return;}
195if(ua.ie&&ua.win){var s=createElement("span");try{var t=doc.getElementsByTagName("body")[0].appendChild(s);t.parentNode.removeChild(t);}
196catch(e){return;}}
197isDomLoaded=true;if(timer){clearInterval(timer);timer=null;}
198var dl=domLoadFnArr.length;for(var i=0;i<dl;i++){domLoadFnArr[i]();}}
199function addDomLoadEvent(fn){if(isDomLoaded){fn();}
200else{domLoadFnArr[domLoadFnArr.length]=fn;}}
201function addLoadEvent(fn){if(typeof win.addEventListener!=UNDEF){win.addEventListener("load",fn,false);}
202else if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("load",fn,false);}
203else if(typeof win.attachEvent!=UNDEF){addListener(win,"onload",fn);}
204else if(typeof win.onload=="function"){var fnOld=win.onload;win.onload=function(){fnOld();fn();};}
205else{win.onload=fn;}}
206function main(){var rl=regObjArr.length;for(var i=0;i<rl;i++){var id=regObjArr[i].id;if(ua.pv[0]>0){var obj=getElementById(id);if(obj){regObjArr[i].width=obj.getAttribute("width")?obj.getAttribute("width"):"0";regObjArr[i].height=obj.getAttribute("height")?obj.getAttribute("height"):"0";if(hasPlayerVersion(regObjArr[i].swfVersion)){if(ua.webkit&&ua.webkit<312){fixParams(obj);}
207setVisibility(id,true);}
208else if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){showExpressInstall(regObjArr[i]);}
209else{displayAltContent(obj);}}}
210else{setVisibility(id,true);}}}
211function fixParams(obj){var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var e=createElement("embed"),a=nestedObj.attributes;if(a){var al=a.length;for(var i=0;i<al;i++){if(a[i].nodeName=="DATA"){e.setAttribute("src",a[i].nodeValue);}
212else{e.setAttribute(a[i].nodeName,a[i].nodeValue);}}}
213var c=nestedObj.childNodes;if(c){var cl=c.length;for(var j=0;j<cl;j++){if(c[j].nodeType==1&&c[j].nodeName=="PARAM"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"));}}}
214obj.parentNode.replaceChild(e,obj);}}
215function showExpressInstall(regObj){isExpressInstallActive=true;var obj=getElementById(regObj.id);if(obj){if(regObj.altContentId){var ac=getElementById(regObj.altContentId);if(ac){storedAltContent=ac;storedAltContentId=regObj.altContentId;}}
216else{storedAltContent=abstractAltContent(obj);}
217if(!(/%$/.test(regObj.width))&&parseInt(regObj.width,10)<310){regObj.width="310";}
218if(!(/%$/.test(regObj.height))&&parseInt(regObj.height,10)<137){regObj.height="137";}
219doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var pt=ua.ie&&ua.win?"ActiveX":"PlugIn",dt=doc.title,fv="MMredirectURL="+win.location+"&MMplayerType="+pt+"&MMdoctitle="+dt,replaceId=regObj.id;if(ua.ie&&ua.win&&obj.readyState!=4){var newObj=createElement("div");replaceId+="SWFObjectNew";newObj.setAttribute("id",replaceId);obj.parentNode.insertBefore(newObj,obj);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj);};addListener(win,"onload",fn);}
220createSWF({data:regObj.expressInstall,id:EXPRESS_INSTALL_ID,width:regObj.width,height:regObj.height},{flashvars:fv},replaceId);}}
221function displayAltContent(obj){if(ua.ie&&ua.win&&obj.readyState!=4){var el=createElement("div");obj.parentNode.insertBefore(el,obj);el.parentNode.replaceChild(abstractAltContent(obj),el);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj);};addListener(win,"onload",fn);}
222else{obj.parentNode.replaceChild(abstractAltContent(obj),obj);}}
223function abstractAltContent(obj){var ac=createElement("div");if(ua.win&&ua.ie){ac.innerHTML=obj.innerHTML;}
224else{var nestedObj=obj.getElementsByTagName(OBJECT)[0];
224if(nestedObj){var c=nestedObj.childNodes;if(c){var cl=c.length;for(var i=0;i<cl;i++){if(!(c[i].nodeType==1&&c[i].nodeName=="PARAM")&&!(c[i].nodeType==8)){ac.appendChild(c[i].cloneNode(true));}}}}}
225return ac;}
226function createSWF(attObj,parObj,id){var r,el=getElementById(id);if(el){if(typeof attObj.id==UNDEF){attObj.id=id;}
227if(ua.ie&&ua.win){var att="";for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){parObj.movie=attObj[i];}
228else if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"';}
229else if(i.toLowerCase()!="classid"){att+=' '+i+'="'+attObj[i]+'"';}}}
230var par="";for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />';}}
231el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+'>'+par+'</object>';objIdArr[objIdArr.length]=attObj.id;r=getElementById(attObj.id);}
232else if(ua.webkit&&ua.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){e.setAttribute("src",attObj[k]);}
233else if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k]);}
234else if(k.toLowerCase()!="classid"){e.setAttribute(k,attObj[k]);}}}
235for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l.toLowerCase()!="movie"){e.setAttribute(l,parObj[l]);}}}
236el.parentNode.replaceChild(e,el);r=e;}
237else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m]);}
238else if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m]);}}}
239for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n]);}}
240el.parentNode.replaceChild(o,el);r=o;}}
241return r;}
242function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p);}
243function removeSWF(id){var obj=getElementById(id);if(obj&&(obj.nodeName=="OBJECT"||obj.nodeName=="EMBED")){if(ua.ie&&ua.win){if(obj.readyState==4){removeObjectInIE(id);}
244else{win.attachEvent("onload",function(){removeObjectInIE(id);});}}
245else{obj.parentNode.removeChild(obj);}}}
246function removeObjectInIE(id){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null;}}
247obj.parentNode.removeChild(obj);}}
248function getElementById(id){var el=null;try{el=doc.getElementById(id);}
249catch(e){}
250return el;}
251function createElement(el){return doc.createElement(el);}
252function addListener(target,eventType,fn){target.attachEvent(eventType,fn);listenersArr[listenersArr.length]=[target,eventType,fn];}
253function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false;}
254function createCSS(sel,decl){if(ua.ie&&ua.mac){return;}
255var h=doc.getElementsByTagName("head")[0],s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media","screen");if(!(ua.ie&&ua.win)&&typeof doc.createTextNode!=UNDEF){s.appendChild(doc.createTextNode(sel+" {"+decl+"}"));}
256h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){var ls=doc.styleSheets[doc.styleSheets.length-1];if(typeof ls.addRule==OBJECT){ls.addRule(sel,decl);}}}
257function setVisibility(id,isVisible){var v=isVisible?"visible":"hidden";if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v;}
258else{createCSS("#"+id,"visibility:"+v);}}
259function urlEncodeIfNecessary(s){var regex=/[\\\"<>\.;]/;var hasBadChars=regex.exec(s)!=null;return hasBadChars?encodeURIComponent(s):s;}
260var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.length;for(var i=0;i<ll;i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2]);}
261var il=objIdArr.length;for(var j=0;j<il;j++){removeSWF(objIdArr[j]);}
262for(var k in ua){ua[k]=null;}
263ua=null;for(var l in swfobject){swfobject[l]=null;}
264swfobject=null;});}}();return{registerObject:function(objectIdStr,swfVersionStr,xiSwfUrlStr){if(!ua.w3cdom||!objectIdStr||!swfVersionStr){return;}
265var regObj={};regObj.id=objectIdStr;regObj.swfVersion=swfVersionStr;regObj.expressInstall=xiSwfUrlStr?xiSwfUrlStr:false;regObjArr[regObjArr.length]=regObj;setVisibility(objectIdStr,false);},getObjectById:function(objectIdStr){var r=null;if(ua.w3cdom){var o=getElementById(objectIdStr);if(o){var n=o.getElementsByTagName(OBJECT)[0];if(!n||(n&&typeof o.SetVariable!=UNDEF)){r=o;}
266else if(typeof n.SetVariable!=UNDEF){r=n;}}}
267return r;},embedSWF:function(swfUrlStr,replaceElemIdStr,widthStr,heightStr,swfVersionStr,xiSwfUrlStr,flashvarsObj,parOb
267j,attObj){if(!ua.w3cdom||!swfUrlStr||!replaceElemIdStr||!widthStr||!heightStr||!swfVersionStr){return;}
268widthStr+="";heightStr+="";if(hasPlayerVersion(swfVersionStr)){setVisibility(replaceElemIdStr,false);var att={};if(attObj&&typeof attObj===OBJECT){for(var i in attObj){if(attObj[i]!=Object.prototype[i]){att[i]=attObj[i];}}}
269att.data=swfUrlStr;att.width=widthStr;att.height=heightStr;var par={};if(parObj&&typeof parObj===OBJECT){for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par[j]=parObj[j];}}}
270if(flashvarsObj&&typeof flashvarsObj===OBJECT){for(var k in flashvarsObj){if(flashvarsObj[k]!=Object.prototype[k]){if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+k+"="+flashvarsObj[k];}
271else{par.flashvars=k+"="+flashvarsObj[k];}}}}
272addDomLoadEvent(function(){createSWF(att,par,replaceElemIdStr);if(att.id==replaceElemIdStr){setVisibility(replaceElemIdStr,true);}});}
273else if(xiSwfUrlStr&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){isExpressInstallActive=true;setVisibility(replaceElemIdStr,false);addDomLoadEvent(function(){var regObj={};regObj.id=regObj.altContentId=replaceElemIdStr;regObj.width=widthStr;regObj.height=heightStr;regObj.expressInstall=xiSwfUrlStr;showExpressInstall(regObj);});}},getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]};},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parOb
273j,replaceElemIdStr){if(ua.w3cdom){return createSWF(attObj,parObj,replaceElemIdStr);}
274else{return undefined;}},removeSWF:function(objElemIdStr){if(ua.w3cdom){removeSWF(objElemIdStr);}},createCSS:function(sel,decl){if(ua.w3cdom){createCSS(sel,decl);}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(param){var q=doc.location.search||doc.location.hash;if(param==null){return urlEncodeIfNecessary(q);}
275if(q){var pairs=q.substring(1).split("&");for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=")+1)));}}}
276return"";},expressInstallCallback:function(){if(isExpressInstallActive&&storedAltContent){var obj=getElementById(EXPRESS_INSTALL_ID);if(obj){obj.parentNode.replaceChild(storedAltContent,obj);if(storedAltContentId){setVisibility(storedAltContentId,true);if(ua.ie&&ua.win){storedAltContent.style.display="block";}}
277storedAltContent=null;storedAltContentId=null;isExpressInstallActive=false;}}}};}();return swfobject;})();;S.lang={code:'en',of:'of',loading:'loading',cancel:'Cancel',next:'Next',previous:'Previous',play:'Play',pause:'Pause',close:'Close',errors:{single:'You must install the <a href="{0}">{1}</a> browser plugin to view this content.',shared:'You must install both the <a href="{0}">{1}</a> and <a href="{2}">{3}</a> browser plugins to view this content.',either:'You must install either the <a href="{0}">{1}</a> or the <a href="{2}">{3}</a> browser plugin to view this content.'}};var pre,proxyId="sb-drag-proxy",dragData,dragProxy,dragTarget;function resetDrag(){dragData={x:0,y:0,startX:null,startY:null};}
278function updateProxy(){var dims=S.dimensions;apply(dragProxy.style,{height:dims.innerHeight+"px",width:dims.innerWidth+"px"});}
279function enableDrag(){resetDrag();var style=["position:absolute","cursor:"+(S.isGecko?"-moz-grab":"move"),"background-color:"+(S.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");S.appendHTML(S.skin.body,'<div id="'+proxyId+'" style="'+style+'"></div>');dragProxy=get(proxyId);updateProxy();addEvent(dragProxy,"mousedown",startDrag);}
280function disableDrag(){if(dragProxy){removeEvent(dragProxy,"mousedown",startDrag);remove(dragProxy);dragProxy=null;}
281dragTarget=null;}
282function startDrag(e){preventDefault(e);var xy=getPageXY(e);dragData.startX=xy[0];dragData.startY=xy[1];dragTarget=get(S.player.id);addEvent(document,"mousemove",positionDrag);addEvent(document,"mouseup",endDrag);if(S.isGecko)
283dragProxy.style.cursor="-moz-grabbing";}
284function positionDrag(e){var player=S.player,dims=S.dimensions,xy=getPageXY(e);var moveX=xy[0]-dragData.startX;dragData.startX+=moveX;dragData.x=Math.max(Math.min(0,dragData.x+moveX),dims.innerWidth-player.width);var moveY=xy[1]-dragData.startY;dragData.startY+=moveY;dragData.y=Math.max(Math.min(0,dragData.y+moveY),dims.innerHeight-player.height);apply(dragTarget.style,{left:dragData.x+"px",top:dragData.y+"px"});}
285function endDrag(){removeEvent(document,"mousemove",positionDrag);removeEvent(document,"mouseup",endDrag);if(S.isGecko)
286dragProxy.style.cursor="-moz-grab";}
287S.img=function(obj,id){this.obj=obj;this.id=id;this.ready=false;var self=this;pre=new Image();pre.onload=function(){self.height=obj.height?parseInt(obj.height,10):pre.height;self.width=obj.width?parseInt(obj.width,10):pre.width;self.ready=true;pre.onload=null;pre=null;}
288pre.src=obj.content;}
289S.img.ext=["bmp","gif","jpg","jpeg","png"];S.img.prototype={append:function(body,dims){var img=document.createElement("img");img.id=this.id;img.src=this.obj.content;img.style.position="absolute";var height,width;if(dims.oversized&&S.options.handleOversize=="resize"){height=dims.innerHeight;width=dims.innerWidth;}else{height=this.height;width=this.width;}
290img.setAttribute("height",height);img.setAttribute("width",width);body.appendChild(img);},remove:function(){var el=get(this.id);if(el)
291remove(el);disableDrag();if(pre){pre.onload=null;pre=null;}},onLoad:function(){var dims=S.dimensions;if(dims.oversized&&S.options.handleOversize=="drag")
292enableDrag();},onWindowResize:function(){var dims=S.dimensions;switch(S.options.handleOversize){case"resize":var el=get(this.id
292);el.height=dims.innerHeight;el.width=dims.innerWidth;break;case"drag":if(dragTarget){var top=parseInt(S.getStyle(dragTarget,"top")),left=parseInt(S.getStyle(dragTarget,"left"));if(top+this.height<dims.innerHeight)
293dragTarget.style.top=dims.innerHeight-this.height+"px";if(left+this.width<dims.innerWidth)
294dragTarget.style.left=dims.innerWidth-this.width+"px";updateProxy();}
295break;}}};S.swf=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):300;}
296S.swf.ext=["swf"];S.swf.prototype={append:function(body,dims){var tmp=document.createElement("div");tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=this.obj.content,version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=S.options.flashVars,params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params);},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id);},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth;}};var jwControllerHeight=20;S.flv=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls)
297this.height+=jwControllerHeight;this.width=obj.width?parseInt(obj.width,10):300;}
298S.flv.ext=["flv","m4v"];S.flv.prototype={append:function(body,dims){var tmp=document.createElement('div');tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=S.path+"player.swf",version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=apply({file:this.obj.content,height:height,width:width,autostart:(S.options.autoplayMovies?"true":"false"),controlbar:(S.options.showMovieControls?"bottom":"none"),backcolor:"0x000000",frontcolor:"0xCCCCCC",lightcolor:"0x557722"},S.options.flashVars),params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params);},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id);},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth;}};S.iframe=function(obj,id){this.obj=obj;this.id=id;var overlay=get("sb-overlay");this.height=obj.height?parseInt(obj.height,10):overlay.offsetHeight;this.width=obj.width?parseInt(obj.width,10):overlay.offsetWidth;}
299S.iframe.prototype={append:function(body,dims){var html='<iframe id="'+this.id+'" name="'+this.id+'" height="100%" '+'width="100%" frameborder="0" marginwidth="0" marginheight="0" '+'style="visibility:hidden" onload="this.style.visibility=\'visible\'" '+'scrolling="auto"';if(S.isIE){html+=' allowtransparency="true"';if(S.isIE6)
300html+=' src="javascript:false;document.write(\'\');"';}
301html+='></iframe>';body.innerHTML=html;},remove:function(){var el=get(this.id);if(el){remove(el);if(S.isGecko)
302delete window.frames[this.id];}},onLoad:function(){var win=S.isIE?get(this.id).contentWindow:window.frames[this.id];win.location.href=this.obj.content;}};S.html=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):500;}
303S.html.prototype={append:function(body,dims){var div=document.createElement("div");div.id=this.id;div.className="html";div.innerHTML=this.obj.content;body.appendChild(div);},remove:function(){var el=get(this.id);if(el)
304remove(el);}};var overlayOn=false,visibilityCache=[],pngIds=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],container,overlay,wrapper,doWindowResize=true;function animate(el,property,to,duration,callback){var isOpacity=(property=="opacity"),anim=isOpacity?S.setOpacity:function(el,value){el.style[property]=""+
305value+"px";};if(duration==0||(!isOpacity&&!S.options.animate)||(isOpacity&&!S.options.animateFade)){anim(el,to);if(callback)
306callback();return;}
307var from=parseFloat(S.getStyle(el,property))||0;var delta=to-from;if(delta==0){if(callback)
308callback();return;}
309duration*=1000;var begin=now(),ease=S.ease,end=begin+duration,time;var interval=setInterval(function(){time=now();if(time>=end){clearInterval(interval);interval=null;anim(el,to);if(callback)
310callback();}else{anim(el,from+ease((time-begin)/duration)*delta);}},10);}
311function setSize(){container.style.height=S.getWindowSize("Height")+"px";container.style.width=S.getWindowSize("Width")+"px";}
312function setPosition(){container.style.top=document.documentElement.scrollTop+"px";container.style.left=document.documentElement.scrollLeft+"px";}
313function toggleTroubleElements(on){if(on){each(visibilityCache,function(i,el){el[0].style.visibility=el[1]||'';});}else{visibilityCache=[];each(S.options.troubleElements,function(i,tag){each(document.getElementsByTagName(tag),function(j,el){visibilityCache.push([el,el.style.visibility]);el.style.visibility="hidden";});});}}
314function toggleNav(id,on){var el=get("sb-nav-"+id);if(el)
315el.style.display=on?"":"none";}
316function toggleLoading(on,callback){var loading=get("sb-loading"),playerName=S.getCurrent().player,anim=(playerName=="img"||playerName=="html");if(on){S.setOpacity(loading,0);loading.style.display="block";var wrapped=function(){S.clearOpacity(loading);
316if(callback)
317callback();}
318if(anim){animate(loading,"opacity",1,S.options.fadeDuration,wrapped);}else{wrapped();}}else{var wrapped=function(){loading.style.display="none";S.clearOpacity(loading);if(callback)
319callback();}
320if(anim){animate(loading,"opacity",0,S.options.fadeDuration,wrapped);}else{wrapped();}}}
321function buildBars(callback){var obj=S.getCurrent();get("sb-title-inner").innerHTML=obj.title||"";var close,next,play,pause,previous;if(S.options.displayNav){close=true;var len=S.gallery.length;if(len>1){if(S.options.continuous){next=previous=true;}else{next=(len-1)>S.current;previous=S.current>0;}}
322if(S.options.slideshowDelay>0&&S.hasNext()){pause=!S.isPaused();play=!pause;}}else{close=next=play=pause=previous=false;}
323toggleNav("close",close);toggleNav("next",next);toggleNav("play",play);toggleNav("pause",pause);toggleNav("previous",previous);var counter="";if(S.options.displayCounter&&S.gallery.length>1){var len=S.gallery.length;if(S.options.counterType=="skip"){var i=0,end=len,limit=parseInt(S.options.counterLimit)||0;if(limit<len&&limit>2){var h=Math.floor(limit/2);i=S.current-h;if(i<0)
324i+=len;end=S.current+(limit-h);if(end>len)
325end-=len;}
326while(i!=end){if(i==len)
327i=0;counter+='<a onclick="Shadowbox.change('+i+');"'
328if(i==S.current)
329counter+=' class="sb-counter-current"';counter+=">"+(++i)+"</a>";}}else{counter=[S.current+1,S.lang.of,len].join(' ');}}
330get("sb-counter").innerHTML=counter;callback();}
331function showBars(callback){var titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=0.35;titleInner.style.visibility=infoInner.style.visibility="";if(titleInner.innerHTML!="")
332animate(titleInner,"marginTop",0,duration);animate(infoInner,"marginTop",0,duration,callback);}
333function hideBars(anim,callback){var title=get("sb-title"),info=get("sb-info"),titleHeight=title.offsetHeight,infoHeight=info.offsetHeight,titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=(anim?0.35:0);animate(titleInner,"marginTop",titleHeight,duration);animate(infoInner,"marginTop",infoHeight*-1,duration,function(){titleInner.style.visibility=infoInner.style.visibility="hidden";callback();});}
334function adjustHeight(height,top,anim,callback){var wrapperInner=get("sb-wrapper-inner"),duration=(anim?S.options.resizeDuration:0);animate(wrapper,"top",top,duration);animate(wrapperInner,"height",height,duration,callback);}
335function adjustWidth(width,left,anim,callback){var duration=(anim?S.options.resizeDuration:0);animate(wrapper,"left",left,duration);animate(wrapper,"width",width,duration,callback);}
336function setDimensions(height,width){var bodyInner=get("sb-body-inner"),height=parseInt(height),width=parseInt(width),topBottom=wrapper.offsetHeight-bodyInner.offsetHeight,leftRight=wrapper.offsetWidth-bodyInner.offsetWidth,maxHeight=overlay.offsetHeight,maxWidth=overlay.offsetWidth,padding=parseInt(S.options.viewportPadding)||20,preserveAspect=(S.player&&S.options.handleOversize!="drag");return S.setDimensions(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect);}
337var K={};K.markup=""+'<div id="sb-container">'+'<div id="sb-overlay"></div>'+'<div id="sb-wrapper">'+'<div id="sb-title">'+'<div id="sb-title-inner"></div>'+'</div>'+'<div id="sb-wrapper-inner">'+'<div id="sb-body">'+'<div id="sb-body-inner"></div>'+'<div id="sb-loading">'+'<div id="sb-loading-inner"><span>{loading}</span></div>'+'</div>'+'</div>'+'</div>'+'<div id="sb-info">'+'<div id="sb-info-inner">'+'<div id="sb-counter"></div>'+'<div id="sb-nav">'+'<a id="sb-nav-close" title="{close}" onclick="Shadowbox.close()"></a>'+'<a id="sb-nav-next" title="{next}" onclick="Shadowbox.next()"></a>'+'<a id="sb-nav-play" title="{play}" onclick="Shadowbox.play()"></a>'+'<a id="sb-nav-pause" title="{pause}" onclick="Shadowbox.pause()"></a>'+'<a id="sb-nav-previous" title="{previous}" onclick="Shadowbox.previous()"></a>'+'</div>'+'</div>'+'</div>'+'</div>'+'</div>';K.options={animSequence:"sync",counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#000",overlayOpacity:0.5,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]};K.init=function(){S.appendHTML(document.body,sprintf(K.markup,S.lang));K.body=get("sb-body-inner");container=get("sb-container");overlay=get("sb-overlay");wrapper=get("sb-wrapper");if(!supportsFixed)
338container.style.position="absolute";if(!supportsOpacity){var el,m,re=/url\("(.*\.png)"\)/;each(pngIds,function(i,id){el=get(id);if(el){m=S.getStyle(el,"backgroundImage").match(re);if(m){el.style.backgroundImage="none";el.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+
339m[1]+",sizingMethod=scale);";}}});}
340var timer;addEvent(window,"resize",function(){if(timer){clearTimeout(timer);timer=null;}
341if(open)
342timer=setTimeout(K.onWindowResize,10);});}
343K.onOpen=function(obj,callback){doWindowResize=false;container.style.display="block";setSize();var dims=setDimensions(S.options.initialHeight,S.options.initialWidth);adjustHeight(dims.innerHeight,dims.top);adjustWidth(dims.width,dims.left);if(S.options.showOverlay){overlay.style.backgroundColor=S.options.overlayColor;S.setOpacity(overlay,0);if(!S.options.modal)
344addEvent(overlay,"click",S.close);overlayOn=true;}
345if(!supportsFixed){setPosition();addEvent(window,"scroll",setPosition);}
346toggleTroubleElements();container.style.visibility="visible";if(overlayOn){animate(overlay,"opacity",S.options.overlayOpacity,S.options.fadeDuration,callback);}else{callback();}}
347K.onLoad=function(changing,callback){toggleLoading(true);while(K.body.firstChild)
348remove(K.body.firstChild);hideBars(changing,function(){if(!open)
349return;if(!changing)
350wrapper.style.visibility="visible";buildBars(callback);});}
351K.onReady=function(callback){if(!open)
352return;var player=S.player,dims=setDimensions(player.height,player.width);var wrapped=function(){showBars(callback);}
353switch(S.options.animSequence){case"hw":adjustHeight(dims.innerHeight,dims.top,true,function(){adjustWidth(dims.width,dims.left,true,wrapped);});break;case"wh":adjustWidth(dims.width,dims.left,true,function(){adjustHeight(dims.innerHeight,dims.top,true,wrapped);});break;default:adjustWidth(dims.width,dims.left,true);adjustHeight(dims.innerHeight,dims.top,true,wrapped);}}
354K.onShow=function(callback){toggleLoading(false,callback);doWindowResize=true;}
355K.onClose=function(){if(!supportsFixed)
356removeEvent(window,"scroll",setPosition);removeEvent(overlay,"click",S.close);wrapper.style.visibility="hidden";var callback=function(){container.style.visibility="hidden";container.style.display="none";toggleTroubleElements(true);}
357if(overlayOn){animate(overlay,"opacity",0,S.options.fadeDuration,callback);}else{callback();}}
358K.onPlay=function(){toggleNav("play",false);toggleNav("pause",true);}
359K.onPause=function(){toggleNav("pause",false);toggleNav("play",true);}
360K.onWindowResize=function(){if(!doWindowResize)
361return;setSize();var player=S.player,dims=setDimensions(player.height,player.width);adjustWidth(dims.width,dims.left);adjustHeight(dims.innerHeight,dims.top);if(player.onWindowResize)
362player.onWindowResize();}
363S.skin=K;;window['Shadowbox']=S;})(window);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.