<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -12,6 +12,11 @@ http://groups.google.com/group/colorbox/topics
 RELEASE NOTES:
 ----------------------------------------------------------------------------------------------------------
 
+Version 1.2.5 - June 23 2009
+* Changed the point at which iframe srcs are set (to eliminate the need to refresh the iframe once it has
+  been added to the DOM).
+* Removed unnecessary return values for a very slight code reduction.
+
 Version 1.2.4 - June 9 2009
 * Fixed an issue where ColorBox may not close completely if it is closed during a transition animation.
 * Minor code reduction.</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 /*
-	ColorBox v1.2.4 - a full featured, light-weight, customizable lightbox based on jQuery 1.3
+	ColorBox v1.2.5 - a full featured, light-weight, customizable lightbox based on jQuery 1.3
 	(c) 2009 Jack Moore : colorpowered.com
 */
-(function(w){var t,j,I,B,s,G,a,d,L,f,v,b,C,F,H,o,h,A,i,g,J,K,c,n,z,e,x,k,D,p,r;function u(){z.css({position:&quot;absolute&quot;,width:H.width(),height:H.height(),top:H.scrollTop(),left:H.scrollLeft()})}function m(){var M;function N(){F.text(I.slideshowStop).bind(&quot;cbox_complete&quot;,function(){C=setTimeout(w.fn.colorbox.next,I.slideshowSpeed)}).bind(&quot;cbox_load&quot;,function(){clearTimeout(C)}).one(&quot;click&quot;,function(){M();w(this).removeClass(&quot;hover&quot;)});J.removeClass(&quot;cboxSlideshow_off&quot;).addClass(&quot;cboxSlideshow_on&quot;)}M=function(){clearTimeout(C);F.text(I.slideshowStart).unbind(&quot;cbox_complete cbox_load&quot;).one(&quot;click&quot;,function(){N();C=setTimeout(w.fn.colorbox.next,I.slideshowSpeed);w(this).removeClass(&quot;hover&quot;)});J.removeClass(&quot;cboxSlideshow_on&quot;).addClass(&quot;cboxSlideshow_off&quot;)};if(I.slideshow&amp;&amp;b.length&gt;1){if(I.slideshowAuto){N()}else{M()}}}function l(){if(w(&quot;#cboxInlineTemp&quot;).length&gt;0){x.children().insertAfter(&quot;#cboxInlineTemp&quot;)}}function E(M){if(M.keyCode==37){M.preventDefault();A.click()}else{if(M.keyCode==39){M.preventDefault();h.click()}}}function y(M,N){N=N==&quot;x&quot;?document.documentElement.clientWidth:document.documentElement.clientHeight;return(typeof M==&quot;string&quot;)?(M.match(/%/)?(N/100)*parseInt(M,10):parseInt(M,10)):M}function q(M){return I.photo?true:M.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(.*))?$/i)}w(function(){w.fn.colorbox.init()});w.fn.colorbox=function(N,M){if(this.length){this.each(function(){var O=w(this).data(&quot;colorbox&quot;)?w.extend({},w(this).data(&quot;colorbox&quot;),N):w.extend({},w.fn.colorbox.settings,N);O.title=O.title?O.title:this.title;O.href=O.href?O.href:this.href;O.rel=O.rel?O.rel:this.rel;w(this).data(&quot;colorbox&quot;,O).addClass(&quot;cboxelement&quot;)})}else{w(this).data(&quot;colorbox&quot;,w.extend({},w.fn.colorbox.settings,N))}w(this).unbind(&quot;click.colorbox&quot;).bind(&quot;click.colorbox&quot;,function(O){j=this;I=w(this).data(&quot;colorbox&quot;);this.blur();B=M?M:false;if(I.rel&amp;&amp;I.rel!=&quot;nofollow&quot;){b=w(&quot;.cboxelement&quot;).filter(function(){return(w(this).data(&quot;colorbox&quot;).rel==I.rel)});v=b.index(this)}else{b=w(this);v=0}if(!t){w.event.trigger(&quot;cbox_open&quot;);o.html(I.close);z.css({opacity:I.opacity}).show();t=true;w.fn.colorbox.position(y(I.initialWidth,&quot;x&quot;),y(I.initialHeight,&quot;y&quot;),0);if(w.browser.msie&amp;&amp;w.browser.version&lt;7){H.bind(&quot;resize scroll&quot;,u)}}m();w.fn.colorbox.load();if(I.overlayClose===true){z.css({cursor:&quot;pointer&quot;}).click(w.fn.colorbox.close)}O.preventDefault()});if(N&amp;&amp;N.open){w(this).triggerHandler(&quot;click.colorbox&quot;)}return this};w.fn.colorbox.element=function(){return j};w.fn.colorbox.init=function(){H=w(window);w(&quot;body&quot;).prepend(z=w('&lt;div id=&quot;cboxOverlay&quot; /&gt;').hide(),J=w('&lt;div id=&quot;colorbox&quot; /&gt;'));K=w('&lt;div id=&quot;cboxWrapper&quot; /&gt;').appendTo(J).append(w(&quot;&lt;div/&gt;&quot;).append(w('&lt;div id=&quot;cboxTopLeft&quot;/&gt;'),k=w('&lt;div id=&quot;cboxTopCenter&quot;/&gt;'),w('&lt;div id=&quot;cboxTopRight&quot;/&gt;')),D=w('&lt;div id=&quot;cboxMiddleLeft&quot; /&gt;'),e=w('&lt;div id=&quot;cboxContent&quot; /&gt;'),p=w('&lt;div id=&quot;cboxMiddleRight&quot; /&gt;'),w(&quot;&lt;div/&gt;&quot;).append(w('&lt;div id=&quot;cboxBottomLeft&quot;/&gt;'),r=w('&lt;div id=&quot;cboxBottomCenter&quot;/&gt;'),w('&lt;div id=&quot;cboxBottomRight&quot;/&gt;')));K.find(&quot;[id]&quot;).css({&quot;float&quot;:&quot;left&quot;});e.append(x=w('&lt;div id=&quot;cboxLoadedContent&quot; style=&quot;width:0; height:0;&quot; /&gt;'),c=w('&lt;div id=&quot;cboxLoadingOverlay&quot; /&gt;'),n=w('&lt;div id=&quot;cboxLoadingGraphic&quot; /&gt;'),g=w('&lt;div id=&quot;cboxTitle&quot; /&gt;'),i=w('&lt;div id=&quot;cboxCurrent&quot; /&gt;'),F=w('&lt;div id=&quot;cboxSlideshow&quot; /&gt;'),h=w('&lt;div id=&quot;cboxNext&quot; /&gt;').click(w.fn.colorbox.next),A=w('&lt;div id=&quot;cboxPrevious&quot; /&gt;').click(w.fn.colorbox.prev),o=w('&lt;div id=&quot;cboxClose&quot; /&gt;').click(w.fn.colorbox.close));e.children().addClass(&quot;hover&quot;).mouseover(function(){w(this).addClass(&quot;hover&quot;)}).mouseout(function(){w(this).removeClass(&quot;hover&quot;)}).hide();L=k.height()+r.height()+e.outerHeight(true)-e.height();f=D.width()+p.width()+e.outerWidth(true)-e.width();d=x.outerHeight(true);a=x.outerWidth(true);J.css({&quot;padding-bottom&quot;:L,&quot;padding-right&quot;:f}).hide();w().bind(&quot;keydown.cbox_close&quot;,function(M){if(M.keyCode==27){M.preventDefault();o.click()}});e.children().removeClass(&quot;hover&quot;)};w.fn.colorbox.next=function(){v=v&lt;b.length-1?v+1:0;w.fn.colorbox.load()};w.fn.colorbox.prev=function(){v=v&gt;0?v-1:b.length-1;w.fn.colorbox.load()};w.fn.colorbox.position=function(P,O,N,Q){var R=document.documentElement.clientHeight;var T=R/2-O/2;var S=document.documentElement.clientWidth/2-P/2;if(O&gt;R){T-=(O-R)}if(T&lt;0){T=0}if(S&lt;0){S=0}T+=H.scrollTop();S+=H.scrollLeft();P=P-f;O=O-L;K[0].style.width=K[0].style.height=&quot;9999px&quot;;function U(V){k[0].style.width=r[0].style.width=e[0].style.width=V.style.width;n[0].style.height=c[0].style.height=e[0].style.height=D[0].style.height=p[0].style.height=V.style.height}var M=(J.width()===P&amp;&amp;J.height()===O)?0:N;J.dequeue().animate({height:O,width:P,top:T,left:S},{duration:M,complete:function(){U(this);K[0].style.width=(P+f)+&quot;px&quot;;K[0].style.height=(O+L)+&quot;px&quot;;if(Q){Q()}if(w.browser.msie&amp;&amp;w.browser.version&lt;7){u()}},step:function(){U(this)}})};w.fn.colorbox.dimensions=function(P){H.unbind(&quot;resize.cbox_resize&quot;);if(!t){return false}var S=I.transition==&quot;none&quot;?0:I.speed;x.remove();x=w(P);function M(){if(I.width){return s}else{return s&amp;&amp;s&lt;x.width()?s:x.width()}}function T(){if(I.height){return G}else{return G&amp;&amp;G&lt;x.height()?G:x.height()}}x.hide().appendTo(&quot;body&quot;).attr({id:&quot;cboxLoadedContent&quot;}).css({width:M()}).css({height:T()}).prependTo(e);if(w.browser.msie&amp;&amp;w.browser.version&lt;7){w(&quot;select&quot;).not(w(&quot;#colorbox select&quot;)).css({visibility:&quot;hidden&quot;})}if(w(&quot;#cboxPhoto&quot;).length&gt;0&amp;&amp;I.height){var O=(x.height()-parseInt(w(&quot;#cboxPhoto&quot;)[0].style.height,10))/2;w(&quot;#cboxPhoto&quot;).css({marginTop:(O&gt;0?O:0)})}function N(V){var U=x.width()+a+f;var W=x.height()+d+L;w.fn.colorbox.position(U,W,V,function(){if(!t){return false}if(w.browser.msie){if(w(&quot;#cboxPhoto&quot;).length&gt;0){x.fadeIn(100)}J.css(&quot;filter&quot;,&quot;&quot;)}e.children().show();c.hide();n.hide();F.hide();if(b.length&gt;1){i.html(I.current.replace(/\{current\}/,v+1).replace(/\{total\}/,b.length));h.html(I.next);A.html(I.previous);w().unbind(&quot;keydown&quot;,E).one(&quot;keydown&quot;,E);if(I.slideshow){F.show()}}else{i.add(h).add(A).hide()}g.html(I.title);w(&quot;#cboxIframe&quot;).attr(&quot;src&quot;,w(&quot;#cboxIframe&quot;).attr(&quot;src&quot;));w.event.trigger(&quot;cbox_complete&quot;);if(B){w(j).each(B)}if(I.transition===&quot;fade&quot;){J.fadeTo(S,1,function(){if(w.browser.msie){J.css(&quot;filter&quot;,&quot;&quot;)}})}H.bind(&quot;resize.cbox_resize&quot;,function(){w.fn.colorbox.position(U,W,0)});return true})}if(I.transition==&quot;fade&quot;){J.fadeTo(S,0,function(){N(0)})}else{N(S)}if(I.preloading&amp;&amp;b.length&gt;1){var R=v&gt;0?b[v-1]:b[b.length-1];var Q=v&lt;b.length-1?b[v+1]:b[0];if(q(w(Q).data(&quot;colorbox&quot;).href)){w(&quot;&lt;img /&gt;&quot;).attr(&quot;src&quot;,Q)}if(q(w(R).data(&quot;colorbox&quot;).href)){w(&quot;&lt;img /&gt;&quot;).attr(&quot;src&quot;,R)}}return true};w.fn.colorbox.load=function(){j=b[v];I=w(j).data(&quot;colorbox&quot;);w.event.trigger(&quot;cbox_load&quot;);c.show();n.show();o.show();l();var M=I.height?y(I.height,&quot;y&quot;)-d-L:false;var P=I.width?y(I.width,&quot;x&quot;)-a-f:false;if(I.maxHeight){G=I.maxHeight?y(I.maxHeight,&quot;y&quot;)-d-L:false;M=M&amp;&amp;M&lt;G?M:G}if(I.maxWidth){s=I.maxWidth?y(I.maxWidth,&quot;x&quot;)-a-f:false;P=P&amp;&amp;P&lt;s?P:s}G=M;s=P;var N=I.href;if(I.inline){w('&lt;div id=&quot;cboxInlineTemp&quot; /&gt;').hide().insertBefore(w(N)[0]);w.fn.colorbox.dimensions(w(N).wrapAll(&quot;&lt;div/&gt;&quot;).parent())}else{if(I.iframe){w.fn.colorbox.dimensions(w(&quot;&lt;div&gt;&lt;iframe id='cboxIframe' name='iframe_&quot;+new Date().getTime()+&quot;' frameborder=0 src='&quot;+N+&quot;' /&gt;&lt;/div&gt;&quot;))}else{if(q(N)){var O=new Image();O.onload=function(){O.onload=null;if((G||s)&amp;&amp;I.resize){var S=this.width;var Q=this.height;var U=0;var T=this;var R=function(){Q+=Q*U;S+=S*U;T.height=Q;T.width=S};if(s&amp;&amp;S&gt;s){U=(s-S)/S;R()}if(G&amp;&amp;Q&gt;G){U=(G-Q)/Q;R()}}w.fn.colorbox.dimensions(w(&quot;&lt;div /&gt;&quot;).css({width:this.width,height:this.height}).append(w(this).css({width:this.width,height:this.height,display:&quot;block&quot;,margin:&quot;auto&quot;,border:0}).attr(&quot;id&quot;,&quot;cboxPhoto&quot;)));if(b.length&gt;1){w(this).css({cursor:&quot;pointer&quot;}).click(w.fn.colorbox.next)}if(w.browser.msie&amp;&amp;w.browser.version==7){this.style.msInterpolationMode=&quot;bicubic&quot;}};O.src=N}else{w(&quot;&lt;div /&gt;&quot;).load(N,function(Q,R){if(R==&quot;success&quot;){w.fn.colorbox.dimensions(w(this))}else{w.fn.colorbox.dimensions(w(&quot;&lt;p&gt;Request unsuccessful.&lt;/p&gt;&quot;))}})}}}};w.fn.colorbox.close=function(){t=false;clearTimeout(C);H.unbind(&quot;resize.cbox_resize&quot;);F.unbind(&quot;cbox_complete cbox_load click&quot;);l();z.css({cursor:&quot;auto&quot;}).fadeOut(&quot;fast&quot;).unbind(&quot;click&quot;,w.fn.colorbox.close);w().unbind(&quot;keydown&quot;,E);if(w.browser.msie&amp;&amp;w.browser.version&lt;7){w(&quot;select&quot;).css({visibility:&quot;inherit&quot;});H.unbind(&quot;resize scroll&quot;,u)}e.children().hide();J.stop(true,false).removeClass().fadeOut(&quot;fast&quot;,function(){x.remove();J.css({opacity:1});w.event.trigger(&quot;cbox_closed&quot;)})};w.fn.colorbox.settings={transition:&quot;elastic&quot;,speed:350,width:false,height:false,initialWidth:&quot;400&quot;,initialHeight:&quot;400&quot;,maxWidth:false,maxHeight:false,resize:true,inline:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:&quot;image {current} of {total}&quot;,previous:&quot;previous&quot;,next:&quot;next&quot;,close:&quot;close&quot;,open:false,overlayClose:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:&quot;start slideshow&quot;,slideshowStop:&quot;stop slideshow&quot;}})(jQuery);
\ No newline at end of file
+(function(w){var t,j,I,B,s,G,a,d,L,f,v,b,C,F,H,o,h,A,i,g,J,K,c,n,z,e,x,k,D,p,r;function u(){z.css({position:&quot;absolute&quot;,width:H.width(),height:H.height(),top:H.scrollTop(),left:H.scrollLeft()})}function m(){var M;function N(){F.text(I.slideshowStop).bind(&quot;cbox_complete&quot;,function(){C=setTimeout(w.fn.colorbox.next,I.slideshowSpeed)}).bind(&quot;cbox_load&quot;,function(){clearTimeout(C)}).one(&quot;click&quot;,function(){M();w(this).removeClass(&quot;hover&quot;)});J.removeClass(&quot;cboxSlideshow_off&quot;).addClass(&quot;cboxSlideshow_on&quot;)}M=function(){clearTimeout(C);F.text(I.slideshowStart).unbind(&quot;cbox_complete cbox_load&quot;).one(&quot;click&quot;,function(){N();C=setTimeout(w.fn.colorbox.next,I.slideshowSpeed);w(this).removeClass(&quot;hover&quot;)});J.removeClass(&quot;cboxSlideshow_on&quot;).addClass(&quot;cboxSlideshow_off&quot;)};if(I.slideshow&amp;&amp;b.length&gt;1){if(I.slideshowAuto){N()}else{M()}}}function l(){if(w(&quot;#cboxInlineTemp&quot;).length&gt;0){x.children().insertBefore(&quot;#cboxInlineTemp&quot;);w(&quot;#cboxInlineTemp&quot;).remove()}}function E(M){if(M.keyCode==37){M.preventDefault();A.click()}else{if(M.keyCode==39){M.preventDefault();h.click()}}}function y(M,N){N=N==&quot;x&quot;?document.documentElement.clientWidth:document.documentElement.clientHeight;return(typeof M==&quot;string&quot;)?(M.match(/%/)?(N/100)*parseInt(M,10):parseInt(M,10)):M}function q(M){return I.photo?true:M.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(.*))?$/i)}w(function(){w.fn.colorbox.init()});w.fn.colorbox=function(N,M){if(this.length){this.each(function(){var O=w(this).data(&quot;colorbox&quot;)?w.extend({},w(this).data(&quot;colorbox&quot;),N):w.extend({},w.fn.colorbox.settings,N);O.title=O.title?O.title:this.title;O.href=O.href?O.href:this.href;O.rel=O.rel?O.rel:this.rel;w(this).data(&quot;colorbox&quot;,O).addClass(&quot;cboxelement&quot;)})}else{w(this).data(&quot;colorbox&quot;,w.extend({},w.fn.colorbox.settings,N))}w(this).unbind(&quot;click.colorbox&quot;).bind(&quot;click.colorbox&quot;,function(O){j=this;I=w(this).data(&quot;colorbox&quot;);this.blur();B=M?M:false;if(I.rel&amp;&amp;I.rel!=&quot;nofollow&quot;){b=w(&quot;.cboxelement&quot;).filter(function(){return(w(this).data(&quot;colorbox&quot;).rel==I.rel)});v=b.index(this)}else{b=w(this);v=0}if(!t){w.event.trigger(&quot;cbox_open&quot;);o.html(I.close);z.css({opacity:I.opacity}).show();t=true;w.fn.colorbox.position(y(I.initialWidth,&quot;x&quot;),y(I.initialHeight,&quot;y&quot;),0);if(w.browser.msie&amp;&amp;w.browser.version&lt;7){H.bind(&quot;resize scroll&quot;,u)}}m();w.fn.colorbox.load();if(I.overlayClose===true){z.css({cursor:&quot;pointer&quot;}).click(w.fn.colorbox.close)}O.preventDefault()});if(N&amp;&amp;N.open){w(this).triggerHandler(&quot;click.colorbox&quot;)}return this};w.fn.colorbox.element=function(){return j};w.fn.colorbox.init=function(){H=w(window);w(&quot;body&quot;).prepend(z=w('&lt;div id=&quot;cboxOverlay&quot; /&gt;').hide(),J=w('&lt;div id=&quot;colorbox&quot; /&gt;'));K=w('&lt;div id=&quot;cboxWrapper&quot; /&gt;').appendTo(J).append(w(&quot;&lt;div/&gt;&quot;).append(w('&lt;div id=&quot;cboxTopLeft&quot;/&gt;'),k=w('&lt;div id=&quot;cboxTopCenter&quot;/&gt;'),w('&lt;div id=&quot;cboxTopRight&quot;/&gt;')),D=w('&lt;div id=&quot;cboxMiddleLeft&quot; /&gt;'),e=w('&lt;div id=&quot;cboxContent&quot; /&gt;'),p=w('&lt;div id=&quot;cboxMiddleRight&quot; /&gt;'),w(&quot;&lt;div/&gt;&quot;).append(w('&lt;div id=&quot;cboxBottomLeft&quot;/&gt;'),r=w('&lt;div id=&quot;cboxBottomCenter&quot;/&gt;'),w('&lt;div id=&quot;cboxBottomRight&quot;/&gt;')));K.find(&quot;[id]&quot;).css({&quot;float&quot;:&quot;left&quot;});e.append(x=w('&lt;div id=&quot;cboxLoadedContent&quot; style=&quot;width:0; height:0;&quot; /&gt;'),c=w('&lt;div id=&quot;cboxLoadingOverlay&quot; /&gt;'),n=w('&lt;div id=&quot;cboxLoadingGraphic&quot; /&gt;'),g=w('&lt;div id=&quot;cboxTitle&quot; /&gt;'),i=w('&lt;div id=&quot;cboxCurrent&quot; /&gt;'),F=w('&lt;div id=&quot;cboxSlideshow&quot; /&gt;'),h=w('&lt;div id=&quot;cboxNext&quot; /&gt;').click(w.fn.colorbox.next),A=w('&lt;div id=&quot;cboxPrevious&quot; /&gt;').click(w.fn.colorbox.prev),o=w('&lt;div id=&quot;cboxClose&quot; /&gt;').click(w.fn.colorbox.close));e.children().addClass(&quot;hover&quot;).mouseover(function(){w(this).addClass(&quot;hover&quot;)}).mouseout(function(){w(this).removeClass(&quot;hover&quot;)}).hide();L=k.height()+r.height()+e.outerHeight(true)-e.height();f=D.width()+p.width()+e.outerWidth(true)-e.width();d=x.outerHeight(true);a=x.outerWidth(true);J.css({&quot;padding-bottom&quot;:L,&quot;padding-right&quot;:f}).hide();w().bind(&quot;keydown.cbox_close&quot;,function(M){if(M.keyCode==27){M.preventDefault();o.click()}});e.children().removeClass(&quot;hover&quot;)};w.fn.colorbox.next=function(){v=v&lt;b.length-1?v+1:0;w.fn.colorbox.load()};w.fn.colorbox.prev=function(){v=v&gt;0?v-1:b.length-1;w.fn.colorbox.load()};w.fn.colorbox.position=function(P,O,N,Q){var R=document.documentElement.clientHeight;var T=R/2-O/2;var S=document.documentElement.clientWidth/2-P/2;if(O&gt;R){T-=(O-R)}if(T&lt;0){T=0}if(S&lt;0){S=0}T+=H.scrollTop();S+=H.scrollLeft();P=P-f;O=O-L;K[0].style.width=K[0].style.height=&quot;9999px&quot;;function U(V){k[0].style.width=r[0].style.width=e[0].style.width=V.style.width;n[0].style.height=c[0].style.height=e[0].style.height=D[0].style.height=p[0].style.height=V.style.height}var M=(J.width()===P&amp;&amp;J.height()===O)?0:N;J.dequeue().animate({height:O,width:P,top:T,left:S},{duration:M,complete:function(){U(this);K[0].style.width=(P+f)+&quot;px&quot;;K[0].style.height=(O+L)+&quot;px&quot;;if(Q){Q()}if(w.browser.msie&amp;&amp;w.browser.version&lt;7){u()}},step:function(){U(this)}})};w.fn.colorbox.dimensions=function(P){if(!t){return}H.unbind(&quot;resize.cbox_resize&quot;);var S=I.transition==&quot;none&quot;?0:I.speed;x.remove();x=w(P);function M(){if(I.width){return s}else{return s&amp;&amp;s&lt;x.width()?s:x.width()}}function T(){if(I.height){return G}else{return G&amp;&amp;G&lt;x.height()?G:x.height()}}x.hide().appendTo(&quot;body&quot;).attr({id:&quot;cboxLoadedContent&quot;}).css({width:M()}).css({height:T()}).prependTo(e);if(w.browser.msie&amp;&amp;w.browser.version&lt;7){w(&quot;select&quot;).not(w(&quot;#colorbox select&quot;)).css({visibility:&quot;hidden&quot;})}if(w(&quot;#cboxPhoto&quot;).length&gt;0&amp;&amp;I.height){var O=(x.height()-parseInt(w(&quot;#cboxPhoto&quot;)[0].style.height,10))/2;w(&quot;#cboxPhoto&quot;).css({marginTop:(O&gt;0?O:0)})}function N(V){var U=x.width()+a+f;var W=x.height()+d+L;w.fn.colorbox.position(U,W,V,function(){if(!t){return}if(w.browser.msie){if(w(&quot;#cboxPhoto&quot;).length&gt;0){x.fadeIn(100)}J.css(&quot;filter&quot;,&quot;&quot;)}e.children().show();w(&quot;#cboxIframe&quot;).attr(&quot;src&quot;,I.href);c.hide();n.hide();F.hide();if(b.length&gt;1){i.html(I.current.replace(/\{current\}/,v+1).replace(/\{total\}/,b.length));h.html(I.next);A.html(I.previous);w().unbind(&quot;keydown&quot;,E).one(&quot;keydown&quot;,E);if(I.slideshow){F.show()}}else{i.add(h).add(A).hide()}g.html(I.title);w.event.trigger(&quot;cbox_complete&quot;);if(B){B.call(j)}if(I.transition===&quot;fade&quot;){J.fadeTo(S,1,function(){if(w.browser.msie){J.css(&quot;filter&quot;,&quot;&quot;)}})}H.bind(&quot;resize.cbox_resize&quot;,function(){w.fn.colorbox.position(U,W,0)})})}if(I.transition==&quot;fade&quot;){J.fadeTo(S,0,function(){N(0)})}else{N(S)}if(I.preloading&amp;&amp;b.length&gt;1){var R=v&gt;0?b[v-1]:b[b.length-1];var Q=v&lt;b.length-1?b[v+1]:b[0];if(q(w(Q).data(&quot;colorbox&quot;).href)){w(&quot;&lt;img /&gt;&quot;).attr(&quot;src&quot;,Q)}if(q(w(R).data(&quot;colorbox&quot;).href)){w(&quot;&lt;img /&gt;&quot;).attr(&quot;src&quot;,R)}}};w.fn.colorbox.load=function(){j=b[v];I=w(j).data(&quot;colorbox&quot;);w.event.trigger(&quot;cbox_load&quot;);c.show();n.show();o.show();l();var M=I.height?y(I.height,&quot;y&quot;)-d-L:false;var P=I.width?y(I.width,&quot;x&quot;)-a-f:false;if(I.maxHeight){G=I.maxHeight?y(I.maxHeight,&quot;y&quot;)-d-L:false;M=M&amp;&amp;M&lt;G?M:G}if(I.maxWidth){s=I.maxWidth?y(I.maxWidth,&quot;x&quot;)-a-f:false;P=P&amp;&amp;P&lt;s?P:s}G=M;s=P;var N=I.href;if(I.inline){w('&lt;div id=&quot;cboxInlineTemp&quot; /&gt;').hide().insertBefore(w(N)[0]);w.fn.colorbox.dimensions(w(N).wrapAll(&quot;&lt;div/&gt;&quot;).parent())}else{if(I.iframe){w.fn.colorbox.dimensions(w(&quot;&lt;div&gt;&lt;iframe id='cboxIframe' name='iframe_&quot;+new Date().getTime()+&quot;' frameborder=0 /&gt;&lt;/div&gt;&quot;))}else{if(q(N)){var O=new Image();O.onload=function(){O.onload=null;if((G||s)&amp;&amp;I.resize){var S=this.width;var Q=this.height;var U=0;var T=this;var R=function(){Q+=Q*U;S+=S*U;T.height=Q;T.width=S};if(s&amp;&amp;S&gt;s){U=(s-S)/S;R()}if(G&amp;&amp;Q&gt;G){U=(G-Q)/Q;R()}}w.fn.colorbox.dimensions(w(&quot;&lt;div /&gt;&quot;).css({width:this.width,height:this.height}).append(w(this).css({width:this.width,height:this.height,display:&quot;block&quot;,margin:&quot;auto&quot;,border:0}).attr(&quot;id&quot;,&quot;cboxPhoto&quot;)));if(b.length&gt;1){w(this).css({cursor:&quot;pointer&quot;}).click(w.fn.colorbox.next)}if(w.browser.msie&amp;&amp;w.browser.version==7){this.style.msInterpolationMode=&quot;bicubic&quot;}};O.src=N}else{w(&quot;&lt;div /&gt;&quot;).load(N,function(Q,R){if(R==&quot;success&quot;){w.fn.colorbox.dimensions(w(this))}else{w.fn.colorbox.dimensions(w(&quot;&lt;p&gt;Request unsuccessful.&lt;/p&gt;&quot;))}})}}}};w.fn.colorbox.close=function(){t=false;clearTimeout(C);H.unbind(&quot;resize.cbox_resize&quot;);F.unbind(&quot;cbox_complete cbox_load click&quot;);l();z.css({cursor:&quot;auto&quot;}).fadeOut(&quot;fast&quot;).unbind(&quot;click&quot;,w.fn.colorbox.close);w().unbind(&quot;keydown&quot;,E);if(w.browser.msie&amp;&amp;w.browser.version&lt;7){w(&quot;select&quot;).css({visibility:&quot;inherit&quot;});H.unbind(&quot;resize scroll&quot;,u)}e.children().hide();J.stop(true,false).removeClass().fadeOut(&quot;fast&quot;,function(){j.focus();x.remove();J.css({opacity:1});w.event.trigger(&quot;cbox_closed&quot;)})};w.fn.colorbox.settings={transition:&quot;elastic&quot;,speed:350,width:false,height:false,initialWidth:&quot;400&quot;,initialHeight:&quot;400&quot;,maxWidth:false,maxHeight:false,resize:true,inline:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:&quot;image {current} of {total}&quot;,previous:&quot;previous&quot;,next:&quot;next&quot;,close:&quot;close&quot;,open:false,overlayClose:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:&quot;start slideshow&quot;,slideshowStop:&quot;stop slideshow&quot;}})(jQuery);
\ No newline at end of file</diff>
      <filename>colorbox/jquery.colorbox-min.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 /*
-	ColorBox v1.2.4 - a full featured, light-weight, customizable lightbox based on jQuery 1.3
+	ColorBox v1.2.5 - a full featured, light-weight, customizable lightbox based on jQuery 1.3
 	(c) 2009 Jack Moore - www.colorpowered.com - jack@colorpowered.com
 	Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
 */
@@ -54,7 +54,8 @@
 
 	function clearInline(){
 		if($(&quot;#cboxInlineTemp&quot;).length &gt; 0){
-			$loaded.children().insertAfter(&quot;#cboxInlineTemp&quot;);
+			$loaded.children().insertBefore(&quot;#cboxInlineTemp&quot;);
+			$(&quot;#cboxInlineTemp&quot;).remove();
 		}
 	}
 
@@ -87,9 +88,8 @@
 		
 		if(this.length){
 			this.each(function(){
-				var data = $(this).data(&quot;colorbox&quot;)
-					? $.extend({}, $(this).data(&quot;colorbox&quot;), options)
-					: $.extend({}, $.fn.colorbox.settings, options);
+				var data = $(this).data(&quot;colorbox&quot;) ? $.extend({},
+					$(this).data(&quot;colorbox&quot;), options) : $.extend({}, $.fn.colorbox.settings, options);
 				
 				data.title = data.title ? data.title : this.title;
 				data.href = data.href ? data.href : this.href;
@@ -279,7 +279,7 @@
 	};
 	
 	$.fn.colorbox.dimensions = function(object){
-		if(!open){ return false; }
+		if(!open){ return; }
 		
 		$window.unbind('resize.cbox_resize');
 		
@@ -321,7 +321,7 @@
 			var mWidth = $loaded.width()+loadedWidth+interfaceWidth;
 			var mHeight = $loaded.height()+loadedHeight+interfaceHeight;
 			$.fn.colorbox.position(mWidth, mHeight, s, function(){
-				if(!open){ return false; }
+				if(!open){ return; }
 				
 				if($.browser.msie){
 					//This fadeIn helps the bicubic resampling to kick-in.
@@ -332,6 +332,10 @@
 				
 				$modalContent.children().show();
 				
+				//Waited until the iframe is added to the DOM &amp; it is visible before setting the src.
+				//This increases compatability with pages using DOM dependent JavaScript.
+				$('#cboxIframe').attr('src', settings.href);
+				
 				$loadingOverlay.hide();
 				$loadingGraphic.hide();
 				$slideshow.hide();
@@ -351,12 +355,10 @@
 				}
 				$title.html(settings.title);
 				
-				$('#cboxIframe').attr('src', $('#cboxIframe').attr('src'));//reloads the iframe now that it is added to the DOM &amp; it is visible, which increases compatability with pages using DOM dependent JavaScript.
-				
 				$.event.trigger('cbox_complete');
 				
 				if(callback){
-					$(element).each(callback);
+					callback.call(element);
 				}
 				
 				if (settings.transition === 'fade'){
@@ -368,8 +370,6 @@
 				$window.bind('resize.cbox_resize', function(){
 					$.fn.colorbox.position(mWidth, mHeight, 0);
 				});
-				
-				return true;
 			});
 		}
 		if (settings.transition == 'fade') {
@@ -388,8 +388,6 @@
 				$('&lt;img /&gt;').attr('src', previous);
 			}
 		}
-		
-		return true;
 	};
 	
 	$.fn.colorbox.load = function(){
@@ -429,7 +427,7 @@
 			$.fn.colorbox.dimensions($(href).wrapAll('&lt;div/&gt;').parent());
 		} else if (settings.iframe) {
 			$.fn.colorbox.dimensions(
-				$(&quot;&lt;div&gt;&lt;iframe id='cboxIframe' name='iframe_&quot;+new Date().getTime()+&quot;' frameborder=0 src='&quot;+href+&quot;' /&gt;&lt;/div&gt;&quot;)
+				$(&quot;&lt;div&gt;&lt;iframe id='cboxIframe' name='iframe_&quot;+new Date().getTime()+&quot;' frameborder=0 /&gt;&lt;/div&gt;&quot;)
 			);//timestamp to prevent caching.
 		} else if (isImage(href)){
 			var loadingElement = new Image();
@@ -499,6 +497,7 @@
 		.stop(true, false)
 		.removeClass()
 		.fadeOut('fast', function(){
+			element.focus();
 			$loaded.remove();
 			$modal.css({'opacity':1});
 			$.event.trigger('cbox_closed');</diff>
      <filename>colorbox/jquery.colorbox.js</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>UPGRADE</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>3671c67ccb8db17664c68a5e9554257fc3b6284c</id>
    </parent>
  </parents>
  <author>
    <name>jack</name>
    <email>jack@colorpowered.com</email>
  </author>
  <url>http://github.com/jackmoore/colorbox/commit/f8563b420946ba62cc1923185151bd90ec4f412c</url>
  <id>f8563b420946ba62cc1923185151bd90ec4f412c</id>
  <committed-date>2009-06-23T15:27:45-07:00</committed-date>
  <authored-date>2009-06-23T15:27:45-07:00</authored-date>
  <message>v1.2.5 - minor change to how iframes are loaded.</message>
  <tree>dc7662a39b0de60483cb91cdceba6874bc08bd9f</tree>
  <committer>
    <name>jack</name>
    <email>jack@colorpowered.com</email>
  </committer>
</commit>
