Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

v1.4.3-beta. Fixed left right issue. Upated sparkle references. Updat…

…ed docs.
  • Loading branch information...
commit 5e881c681c50273f73eca9ca5e6acc0735073faa 1 parent 208df48
Benjamin Lupton authored
18 CHECKLIST.txt
View
@@ -0,0 +1,18 @@
+Benjamin "balupton" Lupton's Project Checklist v0.1.1 (July 09, 2010)
+
+All Projects:
+- Have you run all the unit tests for the project?
+- Have you remembered to remake the project? [make all]
+- Have you tested in all major browsers?
+- Have you ensured all documentation dates are correct?
+- Have you ensured all documentation project links are current?
+- Have you ensured version changelog entries have been added to appropriate file?
+- If yes; then you are good to tag this release if you like [git tag -s "v..."]
+- To push; use [git push --all] then [git push --tags]
+
+Project Specific:
+- Does lightbox show on all browsers?
+- Does lightbox more info show correctly?
+- Are all links and text in documentation correct?
+- Do the left and right image buttons work?
+- Do the left and right keyboard buttons work?
19 README.txt
View
@@ -2,7 +2,7 @@
/**
* jQuery Lightbox Plugin (balupton edition) - Lightboxes for jQuery
* Copyright (C) 2007-2010 Benjamin Arthur Lupton
- * http://github.com/balupton/jquery-lightbox
+ * http://www.balupton.com/projects/jquery-lightbox
*
* Permission is granted to copy, distribute and/or modify this document
* under the terms of the GNU Free Documentation License, Version 1.2
@@ -11,15 +11,15 @@
* Texts. A copy of the license is included in the section entitled "GNU
* Free Documentation License".
*
- * @name jquery_lightbox: jquery.lightbox.js
- * @package jQuery Lightbox Plugin (balupton edition)
- * @version v1.4.2-beta
- * @date June 29, 2010
+ * @name readme
+ * @package jquery-lightbox
+ * @version v1.4.3-beta
+ * @date July 09, 2010
* @category jQuery plugin
* @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
* @copyright (c) 2007-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
* @license GNU Free Documentation License - {@link http://www.gnu.org/licenses/fdl.html}
- * @example Visit {@link http://github.com/balupton/jquery-lightbox} for more information.
+ * @example Visit {@link http://www.balupton.com/projects/jquery-lightbox} for more information.
*/
----
@@ -174,6 +174,13 @@ How to apply options?
Changelog:
+v1.4.3-beta (July 09, 2009)
+- Fixed left and right keyboard buttons
+- Added Checklist
+- Updated sparkle dependencies
+- Fixed some typos with the documentation. And added link to the wordpress plugin at the top (as well as bottom).
+- Updated linkback and other similar links to balupton site, rather than github site
+
v1.4.2-beta (June 29, 2009)
- Forgot to remake
39 demo/index.html
View
@@ -26,7 +26,7 @@
<!-- Include this demo's requirements -->
<link type="text/css" rel="stylesheet" media="screen" href="./styles/index.css" />
- <script type="text/javascript" src="./scripts/jquery.beautyOfCode.min.js" />
+ <script type="text/javascript" src="./scripts/jquery.beautyOfCode.min.js"></script>
<script type="text/javascript">/*<![CDATA[*/
$.beautyOfCode.init({
defaults: { gutter: true },
@@ -42,6 +42,7 @@
<h2><a href="http://github.com/balupton/jquery-lightbox" title="Project Page">Project Page</a></h2>
<h2><a href="http://github.com/balupton/jquery-lightbox/tree/master" title="Source Code">Source Code</a></h2>
<h2><a href="http://getsatisfaction.com/balupton/products/balupton_jquery_lightbox" title="Get Support">Get Support</a></h2>
+ <h2><a href="http://wordpress.org/extend/plugins/jquery-lightbox-balupton-edition/" title="Wordpress Plugin">Wordpress Plugin</a></h2>
</div>
<div class="section">
@@ -110,7 +111,7 @@
<h2>Step 1. Download jQuery Lightbox, and extract it to your hard drive</h2>
<h2>Step 2. Move the extracted <code>jquery-lightbox</code> directory to your website's root/home folder</h2>
- <p>If all the files were extracted without being in a directory, create a new directory called <code>jquery-lightbox</code> and use that.</p>
+ <p>If all the files were extracted without being in a directory, create a new directory called <code>jquery-lightbox</code> and place the extracted files in that.</p>
<h2>Step 3. Include jQuery (insert into your page's head tag)</h2>
<p>If your page already has jQuery included, you can skip this step.</p>
@@ -209,7 +210,7 @@
<p>So pick one or the other, and apply the customisation and you won't have the linkback anymore!</p>
<h2>What if I would like to translate it into my own language?</h2>
- <p>You can do this to! So we are going to use the second style above, as there is a lot of text that could be translated. To translate from english to english we can use:</p>
+ <p>You can do this too! So we are going to use the second style above, as there is a lot of text that could be translated. To translate from english to english we can use:</p>
<code class="code language-html">
&lt;script type="text/javascript"&gt;$(function(){
$.Lightbox.construct({
@@ -233,7 +234,7 @@
});
});&lt;/script&gt;
</code>
- <p>So pick one or the other, and apply the customisation and you won't have the linkback anymore!</p>
+ <p>So there you have it, the left side is what is to be translated, and the right is the text that will be used as the translation!. It's that easy.</p>
<h2>That's cool, what other customisations do you support?</h2>
<p>A whole bunch! But you will have to read the readme for all the details and use cases! You can find the readme in your jquery lightbox download as <code>README.txt</code>.</p>
@@ -324,18 +325,28 @@
</p></form>
<br />
</div>
+
<!-- Google Analytics -->
<script type="text/javascript">
- //<![CDATA[
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
- //]]>
- </script><script type="text/javascript">
- //<![CDATA[
- var pageTracker = _gat._getTracker("UA-4446117-1");
- pageTracker._initData();
- pageTracker._trackPageview();
- //]]>
+ //<![CDATA[
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ //]]>
+ </script>
+ <script type="text/javascript" src="./scripts/modernizr-1.5.min.js"></script>
+ <script type="text/javascript">
+ //<![CDATA[
+ try {
+ var pageTracker = _gat._getTracker("UA-4446117-1");
+ pageTracker._initData();
+ pageTracker._setCustomVar(1, "html5.boxshadow", Modernizr.boxshadow ? "yes" : "no" , 2 );
+ pageTracker._setCustomVar(2, "html5.multiplebgs", Modernizr.multiplebgs ? "yes" : "no", 2 );
+ pageTracker._setCustomVar(3, "html5.fontface", Modernizr.fontface ? "yes" : "no", 2 );
+ pageTracker._setCustomVar(4, "html5.csstransitions", Modernizr.csstransitions ? "yes" : "no", 2 );
+ pageTracker._setCustomVar(5, "html5.borderradius", Modernizr.borderradius ? "yes" : "no", 2 );
+ pageTracker._trackPageview();
+ } catch(err) {}
+ //]]>
</script>
</body>
28 demo/scripts/modernizr-1.5.min.js
View
@@ -0,0 +1,28 @@
+/*!
+ * Modernizr JavaScript library 1.5
+ * http://www.modernizr.com/
+ *
+ * Copyright (c) 2009-2010 Faruk Ates - http://farukat.es/
+ * Dual-licensed under the BSD and MIT licenses.
+ * http://www.modernizr.com/license/
+ *
+ * Featuring major contributions by
+ * Paul Irish - http://paulirish.com
+ */
+ window.Modernizr=function(i,e,I){function C(a,b){for(var c in a)if(m[a[c]]!==I&&(!b||b(a[c],D)))return true}function r(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1);return!!C([a,"Webkit"+c,"Moz"+c,"O"+c,"ms"+c,"Khtml"+c],b)}function P(){j[E]=function(a){for(var b=0,c=a.length;b<c;b++)J[a[b]]=!!(a[b]in n);return J}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));j[Q]=function(a){for(var b=0,c,h=a.length;b<h;b++){n.setAttribute("type",a[b]);if(c=n.type!==
+ "text"){n.value=K;/tel|search/.test(n.type)||(c=/url|email/.test(n.type)?n.checkValidity&&n.checkValidity()===false:n.value!=K)}L[a[b]]=!!c}return L}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var j={},s=e.documentElement,D=e.createElement("modernizr"),m=D.style,n=e.createElement("input"),E="input",Q=E+"types",K=":)",M=Object.prototype.toString,y=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d={},L={},J={},N=[],u=function(){var a={select:"input",
+ change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},b={};return function(c,h){var t=arguments.length==1;if(t&&b[c])return b[c];h=h||document.createElement(a[c]||"div");c="on"+c;var g=c in h;if(!g&&h.setAttribute){h.setAttribute(c,"return;");g=typeof h[c]=="function"}h=null;return t?(b[c]=g):g}}(),F={}.hasOwnProperty,O;O=typeof F!=="undefined"&&typeof F.call!=="undefined"?function(a,b){return F.call(a,b)}:function(a,b){return b in a&&typeof a.constructor.prototype[b]==="undefined"};
+ d.canvas=function(){return!!e.createElement("canvas").getContext};d.canvastext=function(){return!!(d.canvas()&&typeof e.createElement("canvas").getContext("2d").fillText=="function")};d.geolocation=function(){return!!navigator.geolocation};d.crosswindowmessaging=function(){return!!i.postMessage};d.websqldatabase=function(){var a=!!i.openDatabase;if(a)try{a=!!openDatabase("testdb","1.0","html5 test db",2E5)}catch(b){a=false}return a};d.indexedDB=function(){return!!i.indexedDB};d.hashchange=function(){return u("hashchange",
+ i)&&(document.documentMode===I||document.documentMode>7)};d.historymanagement=function(){return!!(i.history&&history.pushState)};d.draganddrop=function(){return u("drag")&&u("dragstart")&&u("dragenter")&&u("dragover")&&u("dragleave")&&u("dragend")&&u("drop")};d.websockets=function(){return"WebSocket"in i};d.rgba=function(){m.cssText="background-color:rgba(150,255,150,.5)";return(""+m.backgroundColor).indexOf("rgba")!==-1};d.hsla=function(){m.cssText="background-color:hsla(120,40%,100%,.5)";return(""+
+ m.backgroundColor).indexOf("rgba")!==-1};d.multiplebgs=function(){m.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(m.background)};d.backgroundsize=function(){return r("backgroundSize")};d.borderimage=function(){return r("borderImage")};d.borderradius=function(){return r("borderRadius","",function(a){return(""+a).indexOf("orderRadius")!==-1})};d.boxshadow=function(){return r("boxShadow")};d.opacity=function(){var a=y.join("opacity:.5;")+"";m.cssText=a;return(""+m.opacity).indexOf("0.5")!==
+ -1};d.cssanimations=function(){return r("animationName")};d.csscolumns=function(){return r("columnCount")};d.cssgradients=function(){var a=("background-image:"+y.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+y.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);m.cssText=a;return(""+m.backgroundImage).indexOf("gradient")!==-1};d.cssreflections=function(){return r("boxReflect")};d.csstransforms=function(){return!!C(["transformProperty",
+ "WebkitTransform","MozTransform","OTransform","msTransform"])};d.csstransforms3d=function(){var a=!!C(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(a){var b=document.createElement("style"),c=e.createElement("div");b.textContent="@media ("+y.join("transform-3d),(")+"modernizr){#modernizr{height:3px}}";e.getElementsByTagName("head")[0].appendChild(b);c.id="modernizr";s.appendChild(c);a=c.offsetHeight===3;b.parentNode.removeChild(b);c.parentNode.removeChild(c)}return a};
+ d.csstransitions=function(){return r("transitionProperty")};d.fontface=function(){var a;if(/*@cc_on@if(@_jscript_version>=5)!@end@*/0)a=true;else{var b=e.createElement("style"),c=e.createElement("span"),h,t=false,g=e.body,o,w;b.textContent="@font-face{font-family:testfont;src:url('data:font/ttf;base64,AAEAAAAMAIAAAwBAT1MvMliohmwAAADMAAAAVmNtYXCp5qrBAAABJAAAANhjdnQgACICiAAAAfwAAAAEZ2FzcP//AAMAAAIAAAAACGdseWYv5OZoAAACCAAAANxoZWFk69bnvwAAAuQAAAA2aGhlYQUJAt8AAAMcAAAAJGhtdHgGDgC4AAADQAAAABRsb2NhAIQAwgAAA1QAAAAMbWF4cABVANgAAANgAAAAIG5hbWUgXduAAAADgAAABPVwb3N03NkzmgAACHgAAAA4AAECBAEsAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAACAAMDAAAAAAAAgAACbwAAAAoAAAAAAAAAAFBmRWQAAAAgqS8DM/8zAFwDMwDNAAAABQAAAAAAAAAAAAMAAAADAAAAHAABAAAAAABGAAMAAQAAAK4ABAAqAAAABgAEAAEAAgAuqQD//wAAAC6pAP///9ZXAwAAAAAAAAACAAAABgBoAAAAAAAvAAEAAAAAAAAAAAAAAAAAAAABAAIAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEACoAAAAGAAQAAQACAC6pAP//AAAALqkA////1lcDAAAAAAAAAAIAAAAiAogAAAAB//8AAgACACIAAAEyAqoAAwAHAC6xAQAvPLIHBADtMrEGBdw8sgMCAO0yALEDAC88sgUEAO0ysgcGAfw8sgECAO0yMxEhESczESMiARDuzMwCqv1WIgJmAAACAFUAAAIRAc0ADwAfAAATFRQWOwEyNj0BNCYrASIGARQGKwEiJj0BNDY7ATIWFX8aIvAiGhoi8CIaAZIoN/43KCg3/jcoAWD0JB4eJPQkHh7++EY2NkbVRjY2RgAAAAABAEH/+QCdAEEACQAANjQ2MzIWFAYjIkEeEA8fHw8QDxwWFhwWAAAAAQAAAAIAAIuYbWpfDzz1AAsEAAAAAADFn9IuAAAAAMWf0i797/8zA4gDMwAAAAgAAgAAAAAAAAABAAADM/8zAFwDx/3v/98DiAABAAAAAAAAAAAAAAAAAAAABQF2ACIAAAAAAVUAAAJmAFUA3QBBAAAAKgAqACoAWgBuAAEAAAAFAFAABwBUAAQAAgAAAAEAAQAAAEAALgADAAMAAAAQAMYAAQAAAAAAAACLAAAAAQAAAAAAAQAhAIsAAQAAAAAAAgAFAKwAAQAAAAAAAwBDALEAAQAAAAAABAAnAPQAAQAAAAAABQAKARsAAQAAAAAABgAmASUAAQAAAAAADgAaAUsAAwABBAkAAAEWAWUAAwABBAkAAQBCAnsAAwABBAkAAgAKAr0AAwABBAkAAwCGAscAAwABBAkABABOA00AAwABBAkABQAUA5sAAwABBAkABgBMA68AAwABBAkADgA0A/tDb3B5cmlnaHQgMjAwOSBieSBEYW5pZWwgSm9obnNvbi4gIFJlbGVhc2VkIHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgT3BlbiBGb250IExpY2Vuc2UuIEtheWFoIExpIGdseXBocyBhcmUgcmVsZWFzZWQgdW5kZXIgdGhlIEdQTCB2ZXJzaW9uIDMuYmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhTGlnaHRiYWVjMmE5MmJmZmU1MDMyIC0gc3Vic2V0IG9mIEZvbnRGb3JnZSAyLjAgOiBKdXJhIExpZ2h0IDogMjMtMS0yMDA5YmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhIExpZ2h0VmVyc2lvbiAyIGJhZWMyYTkyYmZmZTUwMzIgLSBzdWJzZXQgb2YgSnVyYUxpZ2h0aHR0cDovL3NjcmlwdHMuc2lsLm9yZy9PRkwAQwBvAHAAeQByAGkAZwBoAHQAIAAyADAAMAA5ACAAYgB5ACAARABhAG4AaQBlAGwAIABKAG8AaABuAHMAbwBuAC4AIAAgAFIAZQBsAGUAYQBzAGUAZAAgAHUAbgBkAGUAcgAgAHQAaABlACAAdABlAHIAbQBzACAAbwBmACAAdABoAGUAIABPAHAAZQBuACAARgBvAG4AdAAgAEwAaQBjAGUAbgBzAGUALgAgAEsAYQB5AGEAaAAgAEwAaQAgAGcAbAB5AHAAaABzACAAYQByAGUAIAByAGUAbABlAGEAcwBlAGQAIAB1AG4AZABlAHIAIAB0AGgAZQAgAEcAUABMACAAdgBlAHIAcwBpAG8AbgAgADMALgBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQBMAGkAZwBoAHQAYgBhAGUAYwAyAGEAOQAyAGIAZgBmAGUANQAwADMAMgAgAC0AIABzAHUAYgBzAGUAdAAgAG8AZgAgAEYAbwBuAHQARgBvAHIAZwBlACAAMgAuADAAIAA6ACAASgB1AHIAYQAgAEwAaQBnAGgAdAAgADoAIAAyADMALQAxAC0AMgAwADAAOQBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQAgAEwAaQBnAGgAdABWAGUAcgBzAGkAbwBuACAAMgAgAGIAYQBlAGMAMgBhADkAMgBiAGYAZgBlADUAMAAzADIAIAAtACAAcwB1AGIAcwBlAHQAIABvAGYAIABKAHUAcgBhAEwAaQBnAGgAdABoAHQAdABwADoALwAvAHMAYwByAGkAcAB0AHMALgBzAGkAbAAuAG8AcgBnAC8ATwBGAEwAAAAAAgAAAAAAAP+BADMAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAQACAQIAEQt6ZXJva2F5YWhsaQ==')}";
+ e.getElementsByTagName("head")[0].appendChild(b);c.setAttribute("style","font:99px _,arial,helvetica;position:absolute;visibility:hidden");if(!g){g=s.appendChild(e.createElement("fontface"));t=true}c.innerHTML="........";c.id="fonttest";g.appendChild(c);h=c.offsetWidth*c.offsetHeight;c.style.font="99px testfont,_,arial,helvetica";a=h!==c.offsetWidth*c.offsetHeight;var v=function(){if(g.parentNode){a=j.fontface=h!==c.offsetWidth*c.offsetHeight;s.className=s.className.replace(/(no-)?fontface\b/,"")+
+ (a?" ":" no-")+"fontface"}};setTimeout(v,75);setTimeout(v,150);addEventListener("load",function(){v();(w=true)&&o&&o(a);setTimeout(function(){t||(g=c);g.parentNode.removeChild(g);b.parentNode.removeChild(b)},50)},false)}j._fontfaceready=function(p){w||a?p(a):(o=p)};return a||h!==c.offsetWidth};d.video=function(){var a=e.createElement("video"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('video/ogg; codecs="theora"');b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"');b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return b};
+ d.audio=function(){var a=e.createElement("audio"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"');b.mp3=a.canPlayType("audio/mpeg;");b.wav=a.canPlayType('audio/wav; codecs="1"');b.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}return b};d.localStorage=function(){return"localStorage"in i&&i.localStorage!==null};d.sessionStorage=function(){try{return"sessionStorage"in i&&i.sessionStorage!==null}catch(a){return false}};d.webworkers=function(){return!!i.Worker};
+ d.applicationCache=function(){var a=i.applicationCache;return!!(a&&typeof a.status!="undefined"&&typeof a.update=="function"&&typeof a.swapCache=="function")};d.svg=function(){return!!e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect};d.smil=function(){return!!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg","animate")))};d.svgclippaths=function(){return!!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg",
+ "clipPath")))};for(var z in d)if(O(d,z))N.push(((j[z.toLowerCase()]=d[z]())?"":"no-")+z.toLowerCase());j[E]||P();j.addTest=function(a,b){a=a.toLowerCase();if(!j[a]){b=!!b();s.className+=" "+(b?"":"no-")+a;j[a]=b;return j}};m.cssText="";D=n=null;(function(){var a=e.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1})()&&function(a,b){function c(f,k){if(o[f])o[f].styleSheet.cssText+=k;else{var l=t[G],q=b[A]("style");q.media=f;l.insertBefore(q,l[G]);o[f]=q;c(f,k)}}function h(f,
+ k){for(var l=new RegExp("\\b("+w+")\\b(?!.*[;}])","gi"),q=function(B){return".iepp_"+B},x=-1;++x<f.length;){k=f[x].media||k;h(f[x].imports,k);c(k,f[x].cssText.replace(l,q))}}for(var t=b.documentElement,g=b.createDocumentFragment(),o={},w="abbr|article|aside|audio|canvas|command|datalist|details|figure|figcaption|footer|header|hgroup|keygen|mark|meter|nav|output|progress|section|source|summary|time|video",v=w.split("|"),p=[],H=-1,G="firstChild",A="createElement";++H<v.length;){b[A](v[H]);g[A](v[H])}g=
+ g.appendChild(b[A]("div"));a.attachEvent("onbeforeprint",function(){for(var f,k=b.getElementsByTagName("*"),l,q,x=new RegExp("^"+w+"$","i"),B=-1;++B<k.length;)if((f=k[B])&&(q=f.nodeName.match(x))){l=new RegExp("^\\s*<"+q+"(.*)\\/"+q+">\\s*$","i");g.innerHTML=f.outerHTML.replace(/\r|\n/g," ").replace(l,f.currentStyle.display=="block"?"<div$1/div>":"<span$1/span>");l=g.childNodes[0];l.className+=" iepp_"+q;l=p[p.length]=[f,l];f.parentNode.replaceChild(l[1],l[0])}h(b.styleSheets,"all")});a.attachEvent("onafterprint",
+ function(){for(var f=-1,k;++f<p.length;)p[f][1].parentNode.replaceChild(p[f][0],p[f][1]);for(k in o)t[G].removeChild(o[k]);o={};p=[]})}(this,e);j._enableHTML5=true;j._version="1.5";s.className=s.className.replace(/\bno-js\b/,"")+" js";s.className+=" "+N.join(" ");return j}(this,this.document);
378 scripts/jquery.lightbox.js
View
@@ -1,7 +1,7 @@
/**
* jQuery Lightbox Plugin (balupton edition) - Lightboxes for jQuery
* Copyright (C) 2007-2010 Benjamin Arthur Lupton
- * http://github.com/balupton/jquery-lightbox
+ * http://www.balupton.com/projects/jquery-lightbox
*
* This file is part of jQuery Lightbox (balupton edition).
*
@@ -18,15 +18,15 @@
* You should have received a copy of the GNU Affero General Public License
* along with jQuery Lightbox (balupton edition). If not, see <http://www.gnu.org/licenses/>.
*
- * @name jquery_lightbox: jquery.lightbox.js
- * @package jQuery Lightbox Plugin (balupton edition)
- * @version 1.4.2-beta
- * @date June 29, 2009
+ * @name jquery.lightbox.js
+ * @package jquery-lightbox
+ * @version 1.4.3-beta
+ * @date July 09, 2009
* @category jQuery plugin
* @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
* @copyright (c) 2007-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
* @license GNU Affero General Public License - {@link http://www.gnu.org/licenses/agpl.html}
- * @example Visit {@link http://github.com/balupton/jquery-lightbox} for more information.
+ * @example Visit {@link http://www.balupton.com/projects/jquery-lightbox} for more information.
*/
// Start of our jQuery Plugin
@@ -36,89 +36,69 @@
/**
* Console Emulator
- * @copyright Benjamin "balupton" Lupton (MIT Licenced)
- * We have to convert arguments into arrays, and do this explicitly as webkit hates function references, and arguments cannot be passed as is
+ * We have to convert arguments into arrays, and do this explicitly as webkit (chrome) hates function references, and arguments cannot be passed as is
+ * @version 1.0.1
+ * @since 1.0.0 June 20, 2010
+ * @date July 09, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
*/
- if ( typeof $.log === 'undefined' ) {
- if ( typeof window.console !== 'undefined' && typeof window.console.log === 'function' )
- { // Use window.console
- // Prepare
- $.console = {};
- // Log
- $.console.log = $.log = function(){
- var arr = []; for(var i = 0; i < arguments.length; i++) { arr.push(arguments[i]); };
- window.console.log.apply(window.console, arr);
+ if ( typeof window.console !== 'object' || typeof window.console.emulated === 'undefined' ) {
+ // Check to see if console exists
+ if ( typeof window.console !== 'object' || typeof window.console.log !== 'function' ) {
+ // Console does not exist
+ window.console = {};
+ window.console.log = window.console.debug = window.console.warn = window.console.trace = function(){};
+ window.console.error = function(){
+ alert("An error has occured. Please use another browser to obtain more detailed information.");
};
- // Debug
- if ( typeof window.console.debug !== 'undefined' ) {
- $.console.debug = function(){
- var arr = []; for(var i = 0; i < arguments.length; i++) { arr.push(arguments[i]); };
- window.console.debug.apply(window.console, arr);
- };
- } else {
- $.console.debug = function(){
- var arr = []; for(var i = 0; i < arguments.length; i++) { arr.push(arguments[i]); };
+ }
+ else {
+ // Console is object, and log does exist
+ // Check Debug
+ if ( typeof window.console.debug === 'undefined' ) {
+ window.console.debug = function(){
+ var arr = ['console.debug:']; for(var i = 0; i < arguments.length; i++) { arr.push(arguments[i]); };
window.console.log.apply(window.console, arr);
};
}
- // Warn
- if ( typeof window.console.warn !== 'undefined' ) {
- $.console.warn = function(){
- var arr = []; for(var i = 0; i < arguments.length; i++) { arr.push(arguments[i]); };
- window.console.warn.apply(window.console, arr);
- };
- } else {
- $.console.warn = function(){
- var arr = []; for(var i = 0; i < arguments.length; i++) { arr.push(arguments[i]); };
+ // Check Warn
+ if ( typeof window.console.warn === 'undefined' ) {
+ window.console.warn = function(){
+ var arr = ['console.warn:']; for(var i = 0; i < arguments.length; i++) { arr.push(arguments[i]); };
window.console.log.apply(window.console, arr);
};
- }
- // Error
- if ( typeof window.console.error !== 'undefined' ) {
- $.console.error = function(){
- var arr = ['An error has occured:']; for(var i = 0; i < arguments.length; i++) { arr.push(arguments[i]); };
- window.console.error.apply(window.console, arr);
- $.console.trace();
- };
- } else {
- $.console.error = function(){
- var args = arguments;
- var arr = ['An error has occured:']; for(var i = 0; i < arguments.length; i++) { arr.push(arguments[i]); };
+ }
+ // Check Error
+ if ( typeof window.console.error === 'undefined' ) {
+ window.console.error = function(){
+ var arr = ['console.error']; for(var i = 0; i < arguments.length; i++) { arr.push(arguments[i]); };
window.console.log.apply(window.console, arr);
- $.console.trace();
};
}
- // Trace
- if ( typeof window.console.trace !== 'undefined' ) {
- $.console.trace = function(){
- window.console.trace();
- };
- } else {
- $.console.trace = function(){
- window.console.log.apply(window.console, ["Attempted trace... but window.console.trace does not exist."]);
+ // Check Trace
+ if ( typeof window.console.trace === 'undefined' ) {
+ window.console.trace = function(){
+ window.console.error.apply(window.console, ['console.trace does not exist']);
};
}
}
- else
- { // Don't use anything
- // Prepare
- $.console = {};
- // Assign
- $.log = $.console.log = $.console.debug = $.console.warn = $.console.trace = function(){};
- $.console.error = function(){
- alert("An error has occured. Please use another browser to obtain more detailed information.");
- };
- }
+ // We have been emulated
+ window.console.emulated = true;
}
/**
- * Params to JSON
- * @copyright Benjamin "balupton" Lupton (MIT Licenced)
+ * Return a new JSON object of the old string.
+ * Turning 'a=b&c.e=d' to {a:'b',c:{e:'d'}}
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
*/
- $.params_to_json = $.params_to_json || function ( params )
+ String.prototype.queryStringToJSON = String.prototype.queryStringToJSON || function ( )
{ // Turns a params string or url into an array of params
- // Adjust
- params = String(params);
+ // Prepare
+ var params = String(this);
// Remove url if need be
params = params.substring(params.indexOf('?')+1);
// params = params.substring(params.indexOf('#')+1);
@@ -141,14 +121,14 @@
param = param.split('=');
if ( param === null ) { continue; }
// ^ We now have "var=blah" into ["var","blah"]
-
+
// Get
var key = param[0] || null;
if ( key === null ) { continue; }
if ( typeof param[1] === 'undefined' ) { continue; }
var value = param[1];
// ^ We now have the parts
-
+
// Fix
key = decodeURIComponent(key);
value = decodeURIComponent(value);
@@ -158,7 +138,7 @@
} catch ( e ) {
// value is a normal string
}
-
+
// Set
// console.log({'key':key,'value':value}, split);
var keys = key.split('.');
@@ -182,27 +162,58 @@
return json;
};
+
/**
- * Array Remove
- * @copyright By John Resig (MIT Licensed)
+ * Remove a element, or a set of elements from an array
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @copyright John Resig (MIT Licensed)
*/
Array.prototype.remove = function(from, to) {
var rest = this.slice((to || from) + 1 || this.length);
this.length = from < 0 ? this.length + from : from;
return this.push.apply(this, rest);
};
-
+
/**
- * ArrayList Functions
- * @copyright By Benjamin "balupton" Lupton (MIT Licenced)
+ * Get a element from an array at [index]
+ * if [current] is set, then set this index as the current index (we don't care if it doesn't exist)
+ * @version 1.0.1
+ * @date July 09, 2010
+ * @since 1.0.0 June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
*/
Array.prototype.get = function(index, current) {
- if ( index === 'first' ) index = 0;
- else if ( index === 'last' ) index = this.length-1;
- else if ( !index && index !== 0 ) index = this.index;
- if ( current !== false ) this.setIndex(index);
- return this[index] || undefined;
+ // Determine
+ if ( index === 'first' ) {
+ index = 0;
+ } else if ( index === 'last' ) {
+ index = this.length-1;
+ } else if ( index === 'prev' ) {
+ index = this.index-1;
+ } else if ( index === 'next' ) {
+ index = this.index+1;
+ } else if ( !index && index !== 0 ) {
+ index = this.index;
+ }
+
+ // Set current?
+ if ( current||false !== false ) {
+ this.setIndex(index);
+ }
+
+ // Return
+ return this.exists(index) ? this[index] : undefined;
};
+
+ /**
+ * Apply the function [fn] to each element in the array
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.each = function(fn){
for (var i = 0; i < this.length; ++i) {
if (fn(i, this[i], this) === false)
@@ -210,67 +221,212 @@
}
return this;
}
+
+ /**
+ * Checks whether the index is a valid index
+ * @version 1.0.0
+ * @date July 09, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
+ Array.prototype.validIndex = function(index){
+ return index >= 0 && index < this.length;
+ };
+
+ /**
+ * Set the current index of the array
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.setIndex = function(index){
- if ( index < this.length && index >= 0 ) {
+ if ( this.validIndex(index) ) {
this.index = index;
} else {
this.index = null;
}
return this;
};
+
+ /**
+ * Get the current index of the array
+ * If [index] is passed then set that as the current, and return it's value
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.current = function(index){
return this.get(index, true);
};
+
+ /**
+ * Get whether or not the array is empty
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.isEmpty = function(){
return this.length === 0;
};
+
+ /**
+ * Get whether or not the array has only one item
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.isSingle = function(){
return this.length === 1;
};
- Array.prototype.isMany = function(){
+
+ /**
+ * Get whether or not the array is not empty
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
+ Array.prototype.isNotEmpty = function(){
return this.length !== 0;
};
+
+ /**
+ * Get whether or not the array has more than one item
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
+ Array.prototype.isNotEmpty = function(){
+ return this.length > 1;
+ };
+
+ /**
+ * Get whether or not the current index is the last one
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.isLast = function(index){
index = typeof index === 'undefined' ? this.index : index;
return !this.isEmpty() && index === this.length-1;
}
+
+ /**
+ * Get whether or not the current index is the first one
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.isFirst = function(index){
index = typeof index === 'undefined' ? this.index : index;
return !this.isEmpty() && index === 0;
}
+
+ /**
+ * Clear the array
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.clear = function(){
this.length = 0;
};
+
+ /**
+ * Set the index as the next one, and get the item
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.next = function(update){
return this.get(this.index+1, update);
};
+
+ /**
+ * Set the index as the previous one, and get the item
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.prev = function(update){
return this.get(this.index-1, update);
};
+
+ /**
+ * Reset the index
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.reset = function(){
this.index = null;
return this;
};
+
+ /**
+ * Set the [index] to the [item]
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.set = function(index, item){
// We want to set the item
if ( index < this.length && index >= 0 ) {
this[index] = item;
} else {
- $error('index above array length');
- return false;
+ throw new Error('Array.prototype.set: [index] above this.length');
+ // return false;
}
return this;
};
+
+ /**
+ * Set the index as the next item, and return it.
+ * If we reach the end, then start back at the beginning.
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.loop = function(){
if ( !this.index && this.index !== 0 ) {
+ // index is not a valid value
return this.current(0);
}
return this.next();
};
+
+ /**
+ * Add the [arguments] to the array
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.add = function(){
this.push.apply(this,arguments);
return this;
};
+
+ /**
+ * Insert the [item] at the [index] or at the end of the array
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
Array.prototype.insert = function(index, item){
if ( typeof index !== 'number' ) {
index = this.length;
@@ -282,7 +438,37 @@
this.push.apply(this, rest);
return this;
};
-
+
+ /**
+ * Get whether or not the index exists in the array
+ * @version 1.0.0
+ * @date July 09, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
+ Array.prototype.exists = Array.prototype.exists || function(index){
+ return typeof this[index] !== 'undefined';
+ };
+
+ /**
+ * Get whether or not the value exists in the array
+ * @version 1.0.0
+ * @date June 30, 2010
+ * @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
+ * @copyright (c) 2009-2010 Benjamin Arthur Lupton {@link http://www.balupton.com}
+ */
+ Array.prototype.has = Array.prototype.has || function(value){
+ var has = false;
+ for ( var i=0, n=this.length; i<n; ++i ) {
+ if ( value == this[i] ) {
+ has = true;
+ break;
+ }
+ }
+ return has;
+ };
+
+
// Declare our class
$.LightboxClass = function ( )
{ // This is the handler for our constructor
@@ -411,7 +597,7 @@
about: {
text: 'jQuery Lightbox Plugin (balupton edition)',
title: 'Licenced under the GNU Affero General Public License.',
- link: 'http://github.com/balupton/jquery-lightbox'
+ link: 'http://www.balupton.com/projects/jquery-lightbox'
}
},
@@ -536,7 +722,7 @@
this.files = prepend(this.files, this.baseurl);
// Now as we have source, we may have more params
- options = $.extend(options, $.params_to_json(this.src));
+ options = $.extend(options, this.src.queryStringToJSON());
}
// Create
@@ -778,8 +964,7 @@
},function() { // out
$(this).css({ 'background' : 'transparent url(' + $.Lightbox.files.images.blank + ') no-repeat' });
}).click(function() {
- $.Lightbox.images.prev();
- $.Lightbox.showImage();
+ $.Lightbox.showImage('prev');
return false;
});
@@ -789,8 +974,7 @@
},function() { // out
$(this).css({ 'background' : 'transparent url(' + $.Lightbox.files.images.blank + ') no-repeat' });
}).click(function() {
- $.Lightbox.images.next();
- $.Lightbox.showImage();
+ $.Lightbox.showImage('next');
return false;
});
@@ -1424,13 +1608,13 @@
// Prev?
if ( key === this.keys.prev || keycode === 37 )
{ // We want previous
- return $.Lightbox.showImage($.Lightbox.images.prev());
+ return $.Lightbox.showImage('prev');
}
// Next?
if ( key === this.keys.next || keycode === 39 )
{ // We want next
- return $.Lightbox.showImage($.Lightbox.images.next());
+ return $.Lightbox.showImage('next');
}
// Unknown
68 scripts/jquery.lightbox.min.js
View
@@ -1,42 +1,42 @@
/*
GNU Affero General Public License - {@link http://www.gnu.org/licenses/agpl.html}
- @example Visit {@link http://github.com/balupton/jquery-lightbox} for more information.
+ @example Visit {@link http://www.balupton.com/projects/jquery-lightbox} for more information.
*/
-(function(b){if(typeof b.log==="undefined")if(typeof window.console!=="undefined"&&typeof window.console.log==="function"){b.console={};b.console.log=b.log=function(){for(var a=[],c=0;c<arguments.length;c++)a.push(arguments[c]);window.console.log.apply(window.console,a)};b.console.debug=typeof window.console.debug!=="undefined"?function(){for(var a=[],c=0;c<arguments.length;c++)a.push(arguments[c]);window.console.debug.apply(window.console,a)}:function(){for(var a=[],c=0;c<arguments.length;c++)a.push(arguments[c]);
-window.console.log.apply(window.console,a)};b.console.warn=typeof window.console.warn!=="undefined"?function(){for(var a=[],c=0;c<arguments.length;c++)a.push(arguments[c]);window.console.warn.apply(window.console,a)}:function(){for(var a=[],c=0;c<arguments.length;c++)a.push(arguments[c]);window.console.log.apply(window.console,a)};b.console.error=typeof window.console.error!=="undefined"?function(){for(var a=["An error has occured:"],c=0;c<arguments.length;c++)a.push(arguments[c]);window.console.error.apply(window.console,
-a);b.console.trace()}:function(){for(var a=["An error has occured:"],c=0;c<arguments.length;c++)a.push(arguments[c]);window.console.log.apply(window.console,a);b.console.trace()};b.console.trace=typeof window.console.trace!=="undefined"?function(){window.console.trace()}:function(){window.console.log.apply(window.console,["Attempted trace... but window.console.trace does not exist."])}}else{b.console={};b.log=b.console.log=b.console.debug=b.console.warn=b.console.trace=function(){};b.console.error=
-function(){alert("An error has occured. Please use another browser to obtain more detailed information.")}}b.params_to_json=b.params_to_json||function(a){a=String(a);a=a.substring(a.indexOf("?")+1);a=a.replace(/\+/g,"%20");if(a.substring(0,1)==="{"&&a.substring(a.length-1)==="}")return eval(decodeURIComponent(a));a=a.split(/\&|\&amp\;/);for(var c={},d=0,g=a.length;d<g;++d){var f=a[d]||null;if(f!==null){f=f.split("=");if(f!==null){var i=f[0]||null;if(i!==null)if(typeof f[1]!=="undefined"){var e=f[1];
-i=decodeURIComponent(i);e=decodeURIComponent(e);try{e=eval(e)}catch(h){}f=i.split(".");if(f.length===1)c[i]=e;else{e="";for(ii in f){i=f[ii];e+="."+i;eval("json"+e+" = json"+e+" || {}")}eval("json"+e+" = value")}}}}}return c};Array.prototype.remove=function(a,c){var d=this.slice((c||a)+1||this.length);this.length=a<0?this.length+a:a;return this.push.apply(this,d)};Array.prototype.get=function(a,c){if(a==="first")a=0;else if(a==="last")a=this.length-1;else if(!a&&a!==0)a=this.index;c!==false&&this.setIndex(a);
-return this[a]||undefined};Array.prototype.each=function(a){for(var c=0;c<this.length;++c)if(a(c,this[c],this)===false)break;return this};Array.prototype.setIndex=function(a){this.index=a<this.length&&a>=0?a:null;return this};Array.prototype.current=function(a){return this.get(a,true)};Array.prototype.isEmpty=function(){return this.length===0};Array.prototype.isSingle=function(){return this.length===1};Array.prototype.isMany=function(){return this.length!==0};Array.prototype.isLast=function(a){a=
-typeof a==="undefined"?this.index:a;return!this.isEmpty()&&a===this.length-1};Array.prototype.isFirst=function(a){a=typeof a==="undefined"?this.index:a;return!this.isEmpty()&&a===0};Array.prototype.clear=function(){this.length=0};Array.prototype.next=function(a){return this.get(this.index+1,a)};Array.prototype.prev=function(a){return this.get(this.index-1,a)};Array.prototype.reset=function(){this.index=null;return this};Array.prototype.set=function(a,c){if(a<this.length&&a>=0)this[a]=c;else{$error("index above array length");
-return false}return this};Array.prototype.loop=function(){if(!this.index&&this.index!==0)return this.current(0);return this.next()};Array.prototype.add=function(){this.push.apply(this,arguments);return this};Array.prototype.insert=function(a,c){if(typeof a!=="number")a=this.length;a=a<=this.length?a:this.length;var d=this.slice(a);this.length=a;this.push(c);this.push.apply(this,d);return this};b.LightboxClass=function(){this.construct()};b.fn.lightbox=function(a){b.Lightbox=b.Lightbox||new b.LightboxClass;
-if(b.Lightbox.ie6&&!b.Lightbox.ie6_support)return this;a=b.extend({start:false,events:true},a);var c=b(this);if(a.events){c.unbind("click").click(function(){var d=b(this);d=c.index(d);if(!b.Lightbox.init(d,c))return false;if(!b.Lightbox.start())return false;return false});c.addClass("lightbox-enabled")}if(a.start){b(this);if(!b.Lightbox.init(0,c))return this;if(!b.Lightbox.start())return this}return this};b.extend(b.LightboxClass.prototype,{images:[],constructed:false,compressed:null,src:null,baseurl:null,
-files:{compressed:{scripts:{lightbox:"scripts/jquery.lightbox.min.js",colorBlend:"scripts/jquery.color.min.js"},styles:{lightbox:"styles/jquery.lightbox.min.css"}},uncompressed:{scripts:{lightbox:"scripts/jquery.lightbox.js",colorBlend:"scripts/jquery.color.js"},styles:{lightbox:"styles/jquery.lightbox.css"}},images:{prev:"images/prev.gif",next:"images/next.gif",blank:"images/blank.gif",loading:"images/loading.gif"}},text:{image:"Image",of:"of",close:"Close X",closeInfo:"You can also click anywhere outside the image to close.",
-download:"Download.",help:{close:"Click to close",interact:"Hover to interact"},about:{text:"jQuery Lightbox Plugin (balupton edition)",title:"Licenced under the GNU Affero General Public License.",link:"http://github.com/balupton/jquery-lightbox"}},keys:{close:"c",prev:"p",next:"n"},handlers:{show:null},opacity:0.9,padding:null,speed:400,rel:"lightbox",auto_relify:true,auto_scroll:"follow",auto_resize:true,ie6:null,ie6_support:true,colorBlend:null,download_link:true,show_helper_text:true,show_linkback:true,
-show_info:"auto",show_extended_info:"auto",options:["show_helper_text","auto_scroll","auto_resize","download_link","show_info","show_extended_info","ie6_support","colorBlend","baseurl","files","text","show_linkback","keys","opacity","padding","speed","rel","auto_relify"],construct:function(a){var c=typeof this.constructed==="undefined"||this.constructed===false;this.constructed=true;var d=c;a=a||{};var g=function(e,h){if(typeof e==="object")for(var j in e)e[j]=g(e[j],h);else if(typeof h==="array"){j=
-0;for(var k=e.length;j<k;++j)e[j]=g(e[j],h)}else e=h+e;return e};if(c&&typeof a.files==="undefined"){this.compressed=null;var f=b("script[src*="+this.files.compressed.scripts.lightbox+"]:first");if(f.length!==0){b.extend(true,this.files,this.files.compressed);this.compressed=true}else{f=b("script[src*="+this.files.uncompressed.scripts.lightbox+"]:first");if(f.length!==0){b.extend(true,this.files,this.files.uncompressed);this.compressed=false}}if(this.compressed===null){b.console.error("Lightbox was not able to find it's javascript script tag necessary for auto-inclusion.");
-d=false}else{this.src=f.attr("src");this.baseurl=this.src.substring(0,this.src.indexOf(this.files.scripts.lightbox));this.files=g(this.files,this.baseurl);a=b.extend(a,b.params_to_json(this.src))}this.images.image={src:"",title:"Untitled",description:"",name:"",color:null,width:null,height:null,id:null,image:true};this.images.prepare=function(e){var h=b.extend({},this.image);if(e.tagName){e=b(e);if(e.attr("src")||e.attr("href")){h.src=e.attr("src")||e.attr("href");h.title=e.attr("title")||e.attr("alt")||
-h.title;h.name=e.attr("name")||"";h.color=e.css("backgroundColor");e=h.title.indexOf(": ");if(e>0){h.description=h.title.substring(e+2)||h.description;h.title=h.title.substring(0,e)||h.title}}else h=null}else h=e.src?b.extend(this.image,e):null;if(h)h.id=h.id||h.src+h.title+h.description;return h};this.images.create=function(e){var h=this;if(e.each)e.each(function(k,l){h.create(l)});else{var j=h.prepare(e);j?h.push(j):b.console.error("We dont know what we have:",e,j);return h}}}else if(typeof a.files===
-"object")a.files=g(a.files,this.baseurl);else d=false;for(var i in this.options){f=this.options[i];if(typeof a[f]==="object"&&typeof this[f]==="object")this[f]=b.extend(true,this[f],a[f]);else if(typeof a[f]!=="undefined")this[f]=a[f]}delete i;this.ie6=c&&navigator.userAgent.indexOf("MSIE 6")>=0?true:false;if(d||typeof a.download_link!=="undefined"||typeof a.colorBlend!=="undefined"||typeof a.files==="object"||typeof a.text==="object"||typeof a.show_linkback!=="undefined"||typeof a.scroll_with!==
-"undefined")b(function(){b.Lightbox.domReady()});return true},domReady:function(){var a=document.getElementsByTagName(b.browser.safari?"head":"body")[0],c=this.files.styles,d=this.files.scripts;if(this.colorBlend===true&&typeof b.colorBlend==="undefined")this.colorBlend=true;else{this.colorBlend=typeof b.colorBlend!=="undefined";delete d.colorBlend}for(stylesheet in c){var g=document.createElement("link");g.type="text/css";g.rel="stylesheet";g.media="screen";g.href=c[stylesheet];g.id="lightbox-stylesheet-"+
-stylesheet.replace(/[^a-zA-Z0-9]/g,"");b("#"+g.id).remove();a.appendChild(g)}for(script in d){g=document.createElement("script");g.type="text/javascript";g.src=d[script];g.id="lightbox-script-"+script.replace(/[^a-zA-Z0-9]/g,"");b("#"+g.id).remove();a.appendChild(g)}delete d;delete c;delete a;b("#lightbox,#lightbox-overlay").remove();b("body").append('<div id="lightbox-overlay"><div id="lightbox-overlay-text">'+(this.show_linkback?'<p><span id="lightbox-overlay-text-about"><a href="#" title="'+this.text.about.title+
-'">'+this.text.about.text+"</a></span></p><p>&nbsp;</p>":"")+(this.show_helper_text?'<p><span id="lightbox-overlay-text-close">'+this.text.help.close+'</span><br/>&nbsp;<span id="lightbox-overlay-text-interact">'+this.text.help.interact+"</span></p>":"")+'</div></div><div id="lightbox"><div id="lightbox-imageBox"><div id="lightbox-imageContainer"><img id="lightbox-image" /><div id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+
+(function(b){if(typeof window.console!=="object"||typeof window.console.emulated==="undefined"){if(typeof window.console!=="object"||typeof window.console.log!=="function"){window.console={};window.console.log=window.console.debug=window.console.warn=window.console.trace=function(){};window.console.error=function(){alert("An error has occured. Please use another browser to obtain more detailed information.")}}else{if(typeof window.console.debug==="undefined")window.console.debug=function(){for(var a=
+["console.debug:"],c=0;c<arguments.length;c++)a.push(arguments[c]);window.console.log.apply(window.console,a)};if(typeof window.console.warn==="undefined")window.console.warn=function(){for(var a=["console.warn:"],c=0;c<arguments.length;c++)a.push(arguments[c]);window.console.log.apply(window.console,a)};if(typeof window.console.error==="undefined")window.console.error=function(){for(var a=["console.error"],c=0;c<arguments.length;c++)a.push(arguments[c]);window.console.log.apply(window.console,a)};
+if(typeof window.console.trace==="undefined")window.console.trace=function(){window.console.error.apply(window.console,["console.trace does not exist"])}}window.console.emulated=true}String.prototype.queryStringToJSON=String.prototype.queryStringToJSON||function(){var a=String(this);a=a.substring(a.indexOf("?")+1);a=a.replace(/\+/g,"%20");if(a.substring(0,1)==="{"&&a.substring(a.length-1)==="}")return eval(decodeURIComponent(a));a=a.split(/\&|\&amp\;/);for(var c={},d=0,g=a.length;d<g;++d){var f=a[d]||
+null;if(f!==null){f=f.split("=");if(f!==null){var i=f[0]||null;if(i!==null)if(typeof f[1]!=="undefined"){var e=f[1];i=decodeURIComponent(i);e=decodeURIComponent(e);try{e=eval(e)}catch(h){}f=i.split(".");if(f.length===1)c[i]=e;else{e="";for(ii in f){i=f[ii];e+="."+i;eval("json"+e+" = json"+e+" || {}")}eval("json"+e+" = value")}}}}}return c};Array.prototype.remove=function(a,c){var d=this.slice((c||a)+1||this.length);this.length=a<0?this.length+a:a;return this.push.apply(this,d)};Array.prototype.get=
+function(a,c){if(a==="first")a=0;else if(a==="last")a=this.length-1;else if(a==="prev")a=this.index-1;else if(a==="next")a=this.index+1;else if(!a&&a!==0)a=this.index;c&&this.setIndex(a);return this.exists(a)?this[a]:undefined};Array.prototype.each=function(a){for(var c=0;c<this.length;++c)if(a(c,this[c],this)===false)break;return this};Array.prototype.validIndex=function(a){return a>=0&&a<this.length};Array.prototype.setIndex=function(a){this.index=this.validIndex(a)?a:null;return this};Array.prototype.current=
+function(a){return this.get(a,true)};Array.prototype.isEmpty=function(){return this.length===0};Array.prototype.isSingle=function(){return this.length===1};Array.prototype.isNotEmpty=function(){return this.length!==0};Array.prototype.isNotEmpty=function(){return this.length>1};Array.prototype.isLast=function(a){a=typeof a==="undefined"?this.index:a;return!this.isEmpty()&&a===this.length-1};Array.prototype.isFirst=function(a){a=typeof a==="undefined"?this.index:a;return!this.isEmpty()&&a===0};Array.prototype.clear=
+function(){this.length=0};Array.prototype.next=function(a){return this.get(this.index+1,a)};Array.prototype.prev=function(a){return this.get(this.index-1,a)};Array.prototype.reset=function(){this.index=null;return this};Array.prototype.set=function(a,c){if(a<this.length&&a>=0)this[a]=c;else throw Error("Array.prototype.set: [index] above this.length");return this};Array.prototype.loop=function(){if(!this.index&&this.index!==0)return this.current(0);return this.next()};Array.prototype.add=function(){this.push.apply(this,
+arguments);return this};Array.prototype.insert=function(a,c){if(typeof a!=="number")a=this.length;a=a<=this.length?a:this.length;var d=this.slice(a);this.length=a;this.push(c);this.push.apply(this,d);return this};Array.prototype.exists=Array.prototype.exists||function(a){return typeof this[a]!=="undefined"};Array.prototype.has=Array.prototype.has||function(a){for(var c=false,d=0,g=this.length;d<g;++d)if(a==this[d]){c=true;break}return c};b.LightboxClass=function(){this.construct()};b.fn.lightbox=
+function(a){b.Lightbox=b.Lightbox||new b.LightboxClass;if(b.Lightbox.ie6&&!b.Lightbox.ie6_support)return this;a=b.extend({start:false,events:true},a);var c=b(this);if(a.events){c.unbind("click").click(function(){var d=b(this);d=c.index(d);if(!b.Lightbox.init(d,c))return false;if(!b.Lightbox.start())return false;return false});c.addClass("lightbox-enabled")}if(a.start){b(this);if(!b.Lightbox.init(0,c))return this;if(!b.Lightbox.start())return this}return this};b.extend(b.LightboxClass.prototype,{images:[],
+constructed:false,compressed:null,src:null,baseurl:null,files:{compressed:{scripts:{lightbox:"scripts/jquery.lightbox.min.js",colorBlend:"scripts/jquery.color.min.js"},styles:{lightbox:"styles/jquery.lightbox.min.css"}},uncompressed:{scripts:{lightbox:"scripts/jquery.lightbox.js",colorBlend:"scripts/jquery.color.js"},styles:{lightbox:"styles/jquery.lightbox.css"}},images:{prev:"images/prev.gif",next:"images/next.gif",blank:"images/blank.gif",loading:"images/loading.gif"}},text:{image:"Image",of:"of",
+close:"Close X",closeInfo:"You can also click anywhere outside the image to close.",download:"Download.",help:{close:"Click to close",interact:"Hover to interact"},about:{text:"jQuery Lightbox Plugin (balupton edition)",title:"Licenced under the GNU Affero General Public License.",link:"http://www.balupton.com/projects/jquery-lightbox"}},keys:{close:"c",prev:"p",next:"n"},handlers:{show:null},opacity:0.9,padding:null,speed:400,rel:"lightbox",auto_relify:true,auto_scroll:"follow",auto_resize:true,
+ie6:null,ie6_support:true,colorBlend:null,download_link:true,show_helper_text:true,show_linkback:true,show_info:"auto",show_extended_info:"auto",options:["show_helper_text","auto_scroll","auto_resize","download_link","show_info","show_extended_info","ie6_support","colorBlend","baseurl","files","text","show_linkback","keys","opacity","padding","speed","rel","auto_relify"],construct:function(a){var c=typeof this.constructed==="undefined"||this.constructed===false;this.constructed=true;var d=c;a=a||
+{};var g=function(e,h){if(typeof e==="object")for(var j in e)e[j]=g(e[j],h);else if(typeof h==="array"){j=0;for(var k=e.length;j<k;++j)e[j]=g(e[j],h)}else e=h+e;return e};if(c&&typeof a.files==="undefined"){this.compressed=null;var f=b("script[src*="+this.files.compressed.scripts.lightbox+"]:first");if(f.length!==0){b.extend(true,this.files,this.files.compressed);this.compressed=true}else{f=b("script[src*="+this.files.uncompressed.scripts.lightbox+"]:first");if(f.length!==0){b.extend(true,this.files,
+this.files.uncompressed);this.compressed=false}}if(this.compressed===null){b.console.error("Lightbox was not able to find it's javascript script tag necessary for auto-inclusion.");d=false}else{this.src=f.attr("src");this.baseurl=this.src.substring(0,this.src.indexOf(this.files.scripts.lightbox));this.files=g(this.files,this.baseurl);a=b.extend(a,this.src.queryStringToJSON())}this.images.image={src:"",title:"Untitled",description:"",name:"",color:null,width:null,height:null,id:null,image:true};this.images.prepare=
+function(e){var h=b.extend({},this.image);if(e.tagName){e=b(e);if(e.attr("src")||e.attr("href")){h.src=e.attr("src")||e.attr("href");h.title=e.attr("title")||e.attr("alt")||h.title;h.name=e.attr("name")||"";h.color=e.css("backgroundColor");e=h.title.indexOf(": ");if(e>0){h.description=h.title.substring(e+2)||h.description;h.title=h.title.substring(0,e)||h.title}}else h=null}else h=e.src?b.extend(this.image,e):null;if(h)h.id=h.id||h.src+h.title+h.description;return h};this.images.create=function(e){var h=
+this;if(e.each)e.each(function(k,l){h.create(l)});else{var j=h.prepare(e);j?h.push(j):b.console.error("We dont know what we have:",e,j);return h}}}else if(typeof a.files==="object")a.files=g(a.files,this.baseurl);else d=false;for(var i in this.options){f=this.options[i];if(typeof a[f]==="object"&&typeof this[f]==="object")this[f]=b.extend(true,this[f],a[f]);else if(typeof a[f]!=="undefined")this[f]=a[f]}delete i;this.ie6=c&&navigator.userAgent.indexOf("MSIE 6")>=0?true:false;if(d||typeof a.download_link!==
+"undefined"||typeof a.colorBlend!=="undefined"||typeof a.files==="object"||typeof a.text==="object"||typeof a.show_linkback!=="undefined"||typeof a.scroll_with!=="undefined")b(function(){b.Lightbox.domReady()});return true},domReady:function(){var a=document.getElementsByTagName(b.browser.safari?"head":"body")[0],c=this.files.styles,d=this.files.scripts;if(this.colorBlend===true&&typeof b.colorBlend==="undefined")this.colorBlend=true;else{this.colorBlend=typeof b.colorBlend!=="undefined";delete d.colorBlend}for(stylesheet in c){var g=
+document.createElement("link");g.type="text/css";g.rel="stylesheet";g.media="screen";g.href=c[stylesheet];g.id="lightbox-stylesheet-"+stylesheet.replace(/[^a-zA-Z0-9]/g,"");b("#"+g.id).remove();a.appendChild(g)}for(script in d){g=document.createElement("script");g.type="text/javascript";g.src=d[script];g.id="lightbox-script-"+script.replace(/[^a-zA-Z0-9]/g,"");b("#"+g.id).remove();a.appendChild(g)}delete d;delete c;delete a;b("#lightbox,#lightbox-overlay").remove();b("body").append('<div id="lightbox-overlay"><div id="lightbox-overlay-text">'+
+(this.show_linkback?'<p><span id="lightbox-overlay-text-about"><a href="#" title="'+this.text.about.title+'">'+this.text.about.text+"</a></span></p><p>&nbsp;</p>":"")+(this.show_helper_text?'<p><span id="lightbox-overlay-text-close">'+this.text.help.close+'</span><br/>&nbsp;<span id="lightbox-overlay-text-interact">'+this.text.help.interact+"</span></p>":"")+'</div></div><div id="lightbox"><div id="lightbox-imageBox"><div id="lightbox-imageContainer"><img id="lightbox-image" /><div id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+
this.files.images.loading+'" /></a></div></div></div><div id="lightbox-infoBox"><div id="lightbox-infoContainer"><div id="lightbox-infoHeader"><span id="lightbox-caption">'+(this.download_link?'<a href="#" title="'+this.text.download+'" id="lightbox-caption-title"></a>':'<span id="lightbox-caption-title"></span>')+'<span id="lightbox-caption-seperator"></span><span id="lightbox-caption-description"></span></span></div><div id="lightbox-infoFooter"><span id="lightbox-currentNumber"></span><span id="lightbox-close"><a href="#" id="lightbox-close-button" title="'+
this.text.closeInfo+'">'+this.text.close+'</a></span></div><div id="lightbox-infoContainer-clear"></div></div></div></div>');this.resizeBoxes();this.repositionBoxes();b("#lightbox,#lightbox-overlay,#lightbox-overlay-text-interact").hide();this.ie6&&this.ie6_support&&b("#lightbox-overlay").css({position:"absolute",top:"0px",left:"0px"});b.each(this.files.images,function(){var f=new Image;f.onload=function(){f=f.onload=null};f.src=this});b(window).unbind("resize").resize(function(){b.Lightbox.resizeBoxes("resized")});
-this.scroll==="follow"&&b(window).scroll(function(){b.Lightbox.repositionBoxes()});b("#lightbox-nav-btnPrev").unbind().hover(function(){b(this).css({background:"url("+b.Lightbox.files.images.prev+") left 45% no-repeat"})},function(){b(this).css({background:"transparent url("+b.Lightbox.files.images.blank+") no-repeat"})}).click(function(){b.Lightbox.images.prev();b.Lightbox.showImage();return false});b("#lightbox-nav-btnNext").unbind().hover(function(){b(this).css({background:"url("+b.Lightbox.files.images.next+
-") right 45% no-repeat"})},function(){b(this).css({background:"transparent url("+b.Lightbox.files.images.blank+") no-repeat"})}).click(function(){b.Lightbox.images.next();b.Lightbox.showImage();return false});this.show_linkback&&b("#lightbox-overlay-text-about a").click(function(){window.open(b.Lightbox.text.about.link);return false});b("#lightbox-overlay-text-close").unbind().hover(function(){b("#lightbox-overlay-text-interact").fadeIn()},function(){b("#lightbox-overlay-text-interact").fadeOut()});
-this.download_link&&b("#lightbox-caption-title").click(function(){window.open(b(this).attr("href"));return false});b("#lightbox-overlay, #lightbox, #lightbox-loading-link, #lightbox-btnClose").unbind().click(function(){b.Lightbox.finish();return false});this.auto_relify&&this.relify();return true},relify:function(){var a={},c=0,d=this.rel;b.each(b("[rel*="+d+"]"),function(g,f){var i=b(f).attr("rel");if(i===d)i=c;if(typeof a[i]==="undefined"){a[i]=[];c++}a[i].push(f)});b.each(a,function(g,f){b(f).lightbox()});
-return true},init:function(a,c){if(typeof c==="undefined"){c=a;a=0}this.images.clear();this.images.create(c);if(this.images.isEmpty()){b.console.warn("WARNING","Lightbox started, but no images: ",a,c);return false}if(!this.images.current(a)){b.console.warn("WARNING","Could not find current image: ",a,this.images);return false}return true},start:function(){this.visible=true;this.scroll==="disable"&&b(document.body).css("overflow","hidden");b("embed, object, select").css("visibility","hidden");this.resizeBoxes("general");
-this.repositionBoxes({speed:0});b("#lightbox-infoFooter").hide();b("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-infoBox").hide();b("#lightbox-overlay").css("opacity",this.opacity).fadeIn(400,function(){b("#lightbox").fadeIn(300);if(!b.Lightbox.showImage()){b.Lightbox.finish();return false}});return true},finish:function(){b("#lightbox").hide();b("#lightbox-overlay").fadeOut(function(){b("#lightbox-overlay").hide()});b("embed, object, select").css({visibility:"visible"});
-this.images.reset();this.scroll==="disable"&&b(document.body).css("overflow","visible");this.visible=false},resizeBoxes:function(a){if(a!=="transition"){var c=b(this.ie6?document.body:document);b("#lightbox-overlay").css({width:c.width(),height:c.height()});delete c}switch(a){case "general":return true;case "resized":if(this.auto_resize===false){this.repositionBoxes({nHeight:e,speed:this.speed});return true}case "transition":default:break}var d=this.images.current();if(!d||!d.width||!this.visible)return false;
-c=d.width;d=d.height;e=b(window).width();var g=b(window).height();if(this.auto_resize!==false){e=Math.floor(e*0.8);g=Math.floor(g*0.8);for(var f;c>e||d>g;){if(c>e){f=e/c;c=e;d=Math.floor(d*f)}if(d>g){f=g/d;d=g;c=Math.floor(c*f)}}}var i=b("#lightbox-imageBox").width();f=b("#lightbox-imageBox").height();g=c+this.padding*2;var e=d+this.padding*2;i=i-g;f=f-e;b("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css("height",e);b("#lightbox-infoBox").css("width",g);if(a==="transition")if(i===0&&f===0){this.pause(this.speed/
-3);this.showImage(null,3)}else{b("#lightbox-image").width(c).height(d);b("#lightbox-imageBox").animate({width:g,height:e},this.speed,function(){b.Lightbox.showImage(null,3)})}else{b("#lightbox-image").animate({width:c,height:d},this.speed);b("#lightbox-imageBox").animate({width:g,height:e},this.speed)}this.repositionBoxes({nHeight:e,speed:this.speed});return true},repositioning:false,reposition_failsafe:false,repositionBoxes:function(a){if(this.repositioning){this.reposition_failsafe=true;return null}this.repositioning=
-true;a=b.extend({},a);a.callback=a.callback||null;a.speed=a.speed||"slow";var c=this.getPageScroll(),d=a.nHeight||parseInt(b("#lightbox").height(),10);d=c.yScroll+(b(window).height()-d)/2.5;c={left:c.xScroll,top:d};if(a.speed)b("#lightbox").animate(c,"slow",function(){if(b.Lightbox.reposition_failsafe){b.Lightbox.repositioning=b.Lightbox.reposition_failsafe=false;b.Lightbox.repositionBoxes(a)}else{b.Lightbox.repositioning=false;a.callback&&a.callback()}});else{b("#lightbox").css(c);if(this.reposition_failsafe){this.repositioning=
-this.reposition_failsafe=false;this.repositionBoxes(a)}else this.repositioning=false}return true},visible:false,showImage:function(a,c){c=c||1;if(a=this.images.current(a)||this.images.get("first",true)){switch(c){case 1:this.KeyboardNav_Disable();b("#lightbox-loading").show();b("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-infoBox").hide();b("#lightbox-imageBox").unbind();if(a.width&&a.height)this.showImage(null,2);else{var d=new Image;d.onload=function(){a.width=
-d.width;a.height=d.height;b.Lightbox.showImage(null,2);d=d.onload=null};d.src=a.src}break;case 2:b("#lightbox-image").attr("src",a.src);if(typeof this.padding==="undefined"||this.padding===null||isNaN(this.padding))this.padding=parseInt(b("#lightbox-imageContainer").css("padding-left"),10)||parseInt(b("#lightbox-imageContainer").css("padding"),10)||0;if(this.colorBlend){b("#lightbox-overlay").animate({backgroundColor:a.color},this.speed*2);b("#lightbox-imageBox").css("borderColor",a.color)}this.resizeBoxes("transition");
-break;case 3:b("#lightbox-loading").hide();b("#lightbox-image").fadeIn(this.speed*1.5,function(){b.Lightbox.showImage(null,4)});this.preloadNeighbours();this.handlers.show!==null&&this.handlers.show(a);break;case 4:var g=b("#lightbox-caption-title").html(a.title||"Untitled");if(this.download_link)g.attr("href",this.download_link?a.src:"");delete g;b("#lightbox-caption-seperator").html(a.description?": ":"");b("#lightbox-caption-description").html(a.description||"&nbsp;");this.images.length>1?b("#lightbox-currentNumber").html(this.text.image+
+this.scroll==="follow"&&b(window).scroll(function(){b.Lightbox.repositionBoxes()});b("#lightbox-nav-btnPrev").unbind().hover(function(){b(this).css({background:"url("+b.Lightbox.files.images.prev+") left 45% no-repeat"})},function(){b(this).css({background:"transparent url("+b.Lightbox.files.images.blank+") no-repeat"})}).click(function(){b.Lightbox.showImage("prev");return false});b("#lightbox-nav-btnNext").unbind().hover(function(){b(this).css({background:"url("+b.Lightbox.files.images.next+") right 45% no-repeat"})},
+function(){b(this).css({background:"transparent url("+b.Lightbox.files.images.blank+") no-repeat"})}).click(function(){b.Lightbox.showImage("next");return false});this.show_linkback&&b("#lightbox-overlay-text-about a").click(function(){window.open(b.Lightbox.text.about.link);return false});b("#lightbox-overlay-text-close").unbind().hover(function(){b("#lightbox-overlay-text-interact").fadeIn()},function(){b("#lightbox-overlay-text-interact").fadeOut()});this.download_link&&b("#lightbox-caption-title").click(function(){window.open(b(this).attr("href"));
+return false});b("#lightbox-overlay, #lightbox, #lightbox-loading-link, #lightbox-btnClose").unbind().click(function(){b.Lightbox.finish();return false});this.auto_relify&&this.relify();return true},relify:function(){var a={},c=0,d=this.rel;b.each(b("[rel*="+d+"]"),function(g,f){var i=b(f).attr("rel");if(i===d)i=c;if(typeof a[i]==="undefined"){a[i]=[];c++}a[i].push(f)});b.each(a,function(g,f){b(f).lightbox()});return true},init:function(a,c){if(typeof c==="undefined"){c=a;a=0}this.images.clear();
+this.images.create(c);if(this.images.isEmpty()){b.console.warn("WARNING","Lightbox started, but no images: ",a,c);return false}if(!this.images.current(a)){b.console.warn("WARNING","Could not find current image: ",a,this.images);return false}return true},start:function(){this.visible=true;this.scroll==="disable"&&b(document.body).css("overflow","hidden");b("embed, object, select").css("visibility","hidden");this.resizeBoxes("general");this.repositionBoxes({speed:0});b("#lightbox-infoFooter").hide();
+b("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-infoBox").hide();b("#lightbox-overlay").css("opacity",this.opacity).fadeIn(400,function(){b("#lightbox").fadeIn(300);if(!b.Lightbox.showImage()){b.Lightbox.finish();return false}});return true},finish:function(){b("#lightbox").hide();b("#lightbox-overlay").fadeOut(function(){b("#lightbox-overlay").hide()});b("embed, object, select").css({visibility:"visible"});this.images.reset();this.scroll==="disable"&&b(document.body).css("overflow",
+"visible");this.visible=false},resizeBoxes:function(a){if(a!=="transition"){var c=b(this.ie6?document.body:document);b("#lightbox-overlay").css({width:c.width(),height:c.height()});delete c}switch(a){case "general":return true;case "resized":if(this.auto_resize===false){this.repositionBoxes({nHeight:e,speed:this.speed});return true}case "transition":default:break}var d=this.images.current();if(!d||!d.width||!this.visible)return false;c=d.width;d=d.height;e=b(window).width();var g=b(window).height();
+if(this.auto_resize!==false){e=Math.floor(e*0.8);g=Math.floor(g*0.8);for(var f;c>e||d>g;){if(c>e){f=e/c;c=e;d=Math.floor(d*f)}if(d>g){f=g/d;d=g;c=Math.floor(c*f)}}}var i=b("#lightbox-imageBox").width();f=b("#lightbox-imageBox").height();g=c+this.padding*2;var e=d+this.padding*2;i=i-g;f=f-e;b("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css("height",e);b("#lightbox-infoBox").css("width",g);if(a==="transition")if(i===0&&f===0){this.pause(this.speed/3);this.showImage(null,3)}else{b("#lightbox-image").width(c).height(d);
+b("#lightbox-imageBox").animate({width:g,height:e},this.speed,function(){b.Lightbox.showImage(null,3)})}else{b("#lightbox-image").animate({width:c,height:d},this.speed);b("#lightbox-imageBox").animate({width:g,height:e},this.speed)}this.repositionBoxes({nHeight:e,speed:this.speed});return true},repositioning:false,reposition_failsafe:false,repositionBoxes:function(a){if(this.repositioning){this.reposition_failsafe=true;return null}this.repositioning=true;a=b.extend({},a);a.callback=a.callback||null;
+a.speed=a.speed||"slow";var c=this.getPageScroll(),d=a.nHeight||parseInt(b("#lightbox").height(),10);d=c.yScroll+(b(window).height()-d)/2.5;c={left:c.xScroll,top:d};if(a.speed)b("#lightbox").animate(c,"slow",function(){if(b.Lightbox.reposition_failsafe){b.Lightbox.repositioning=b.Lightbox.reposition_failsafe=false;b.Lightbox.repositionBoxes(a)}else{b.Lightbox.repositioning=false;a.callback&&a.callback()}});else{b("#lightbox").css(c);if(this.reposition_failsafe){this.repositioning=this.reposition_failsafe=
+false;this.repositionBoxes(a)}else this.repositioning=false}return true},visible:false,showImage:function(a,c){c=c||1;if(a=this.images.current(a)||this.images.get("first",true)){switch(c){case 1:this.KeyboardNav_Disable();b("#lightbox-loading").show();b("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-infoBox").hide();b("#lightbox-imageBox").unbind();if(a.width&&a.height)this.showImage(null,2);else{var d=new Image;d.onload=function(){a.width=d.width;a.height=d.height;
+b.Lightbox.showImage(null,2);d=d.onload=null};d.src=a.src}break;case 2:b("#lightbox-image").attr("src",a.src);if(typeof this.padding==="undefined"||this.padding===null||isNaN(this.padding))this.padding=parseInt(b("#lightbox-imageContainer").css("padding-left"),10)||parseInt(b("#lightbox-imageContainer").css("padding"),10)||0;if(this.colorBlend){b("#lightbox-overlay").animate({backgroundColor:a.color},this.speed*2);b("#lightbox-imageBox").css("borderColor",a.color)}this.resizeBoxes("transition");break;
+case 3:b("#lightbox-loading").hide();b("#lightbox-image").fadeIn(this.speed*1.5,function(){b.Lightbox.showImage(null,4)});this.preloadNeighbours();this.handlers.show!==null&&this.handlers.show(a);break;case 4:var g=b("#lightbox-caption-title").html(a.title||"Untitled");if(this.download_link)g.attr("href",this.download_link?a.src:"");delete g;b("#lightbox-caption-seperator").html(a.description?": ":"");b("#lightbox-caption-description").html(a.description||"&nbsp;");this.images.length>1?b("#lightbox-currentNumber").html(this.text.image+
"&nbsp;"+(this.images.index+1)+"&nbsp;"+this.text.of+"&nbsp;"+this.images.length):b("#lightbox-currentNumber").html("&nbsp;");b("#lightbox-imageBox").unbind("mouseover").mouseover(function(){b("#lightbox-infoBox:not(:visible)").stop().slideDown("fast")});b("#lightbox-infoBox").unbind("mouseover").mouseover(function(){b("#lightbox-infoFooter:not(:visible)").stop().slideDown("fast")});if(this.show_extended_info===true){b("#lightbox-imageBox").trigger("mouseover");b("#lightbox-infoBox").trigger("mouseover")}else this.show_info===
true&&b("#lightbox-imageBox").trigger("mouseover");b("#lightbox-nav-btnPrev, #lightbox-nav-btnNext").css({background:"transparent url("+this.files.images.blank+") no-repeat"});this.images.isFirst()||b("#lightbox-nav-btnPrev").show();this.images.isLast()||b("#lightbox-nav-btnNext").show();b("#lightbox-nav").show();this.KeyboardNav_Enable();break;default:b.console.error("Don't know what to do: ",a,c);return this.showImage(a,1)}return true}},preloadNeighbours:function(){if(this.images.isSingle()||this.images.isEmpty())return true;
var a=this.images.current(),c=this.images.index;if(!a)return a;var d=this.images.prev();if(d){a=new Image;a.src=d.src}this.images.setIndex(c);if(d=this.images.next()){a=new Image;a.src=d.src}this.images.setIndex(c)},KeyboardNav_Enable:function(){b(document).keydown(function(a){b.Lightbox.KeyboardNav_Action(a)})},KeyboardNav_Disable:function(){b(document).unbind("keydown")},KeyboardNav_Action:function(a){a=a||window.event;var c=a.keyCode;a=a.DOM_VK_ESCAPE||27;var d=String.fromCharCode(c).toLowerCase();
-if(d===this.keys.close||c===a)return b.Lightbox.finish();if(d===this.keys.prev||c===37)return b.Lightbox.showImage(b.Lightbox.images.prev());if(d===this.keys.next||c===39)return b.Lightbox.showImage(b.Lightbox.images.next());return true},getPageScroll:function(){var a,c;if(self.pageYOffset){c=self.pageYOffset;a=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){c=document.documentElement.scrollTop;a=document.documentElement.scrollLeft}else if(document.body){c=document.body.scrollTop;
-a=document.body.scrollLeft}return{xScroll:a,yScroll:c}},pause:function(a){var c=new Date,d=null;do d=new Date;while(d-c<a)}});if(typeof b.Lightbox==="undefined")b.Lightbox=new b.LightboxClass})(jQuery);
+if(d===this.keys.close||c===a)return b.Lightbox.finish();if(d===this.keys.prev||c===37)return b.Lightbox.showImage("prev");if(d===this.keys.next||c===39)return b.Lightbox.showImage("next");return true},getPageScroll:function(){var a,c;if(self.pageYOffset){c=self.pageYOffset;a=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){c=document.documentElement.scrollTop;a=document.documentElement.scrollLeft}else if(document.body){c=document.body.scrollTop;a=document.body.scrollLeft}return{xScroll:a,
+yScroll:c}},pause:function(a){var c=new Date,d=null;do d=new Date;while(d-c<a)}});if(typeof b.Lightbox==="undefined")b.Lightbox=new b.LightboxClass})(jQuery);
4 styles/jquery.lightbox.css
View
@@ -18,8 +18,8 @@
* You should have received a copy of the GNU Affero General Public License
* along with jQuery Lightbox (balupton edition). If not, see <http://www.gnu.org/licenses/>.
*
- * @name jquery_lightbox: jquery.lightbox.css
- * @package jQuery Lightbox Plugin (balupton edition)
+ * @name jquery.lightbox.css
+ * @package jquery-lightbox
* @version 1.4.2-beta
* @date June 29, 2010
* @category jQuery plugin
Please sign in to comment.
Something went wrong with that request. Please try again.