<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>README.markdown</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -122,4 +122,7 @@ padding-right: 20px;
 	height: 1%;
 	/* End hide from IE-mac */
 	}	
-	
+
+#lightboxIframe {
+	display: none;
+}	</diff>
      <filename>css/lightbox.css</filename>
    </modified>
    <modified>
      <diff>@@ -29,12 +29,19 @@
 		});
 	};
 
-	// lightbox functions
+	
+	
+	/**
+	 * initalize()
+	 *
+	 * @return void
+	 * @author Warren Krewenki
+	 */
 	$.fn.lightbox.initialize = function(){
 		$('#overlay').remove();
 		$('#lightbox').remove();
 		opts.inprogress = false;
-		var outerImage = '&lt;div id=&quot;outerImageContainer&quot;&gt;&lt;div id=&quot;imageContainer&quot;&gt;&lt;img id=&quot;lightboxImage&quot;&gt;&lt;div id=&quot;hoverNav&quot;&gt;&lt;a href=&quot;javascript://&quot; title=&quot;' + opts.strings.prevLinkTitle + '&quot; id=&quot;prevLink&quot;&gt;&lt;/a&gt;&lt;a href=&quot;javascript://&quot; id=&quot;nextLink&quot; title=&quot;' + opts.strings.nextLinkTitle + '&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div id=&quot;loading&quot;&gt;&lt;a href=&quot;javascript://&quot; id=&quot;loadingLink&quot;&gt;&lt;img src=&quot;'+opts.fileLoadingImage+'&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;';
+		var outerImage = '&lt;div id=&quot;outerImageContainer&quot;&gt;&lt;div id=&quot;imageContainer&quot;&gt;&lt;iframe id=&quot;lightboxIframe&quot; /&gt;&lt;img id=&quot;lightboxImage&quot;&gt;&lt;div id=&quot;hoverNav&quot;&gt;&lt;a href=&quot;javascript://&quot; title=&quot;' + opts.strings.prevLinkTitle + '&quot; id=&quot;prevLink&quot;&gt;&lt;/a&gt;&lt;a href=&quot;javascript://&quot; id=&quot;nextLink&quot; title=&quot;' + opts.strings.nextLinkTitle + '&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div id=&quot;loading&quot;&gt;&lt;a href=&quot;javascript://&quot; id=&quot;loadingLink&quot;&gt;&lt;img src=&quot;'+opts.fileLoadingImage+'&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;';
 		var imageData = '&lt;div id=&quot;imageDataContainer&quot; class=&quot;clearfix&quot;&gt;&lt;div id=&quot;imageData&quot;&gt;&lt;div id=&quot;imageDetails&quot;&gt;&lt;span id=&quot;caption&quot;&gt;&lt;/span&gt;&lt;span id=&quot;numberDisplay&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div id=&quot;bottomNav&quot;&gt;';
 
 		if (opts.displayHelp)
@@ -61,54 +68,10 @@
 		$('#imageDataContainer').width(opts.widthCurrent);
 	};
 
-	$.fn.lightbox.getPageSize = function(){
-		var xScroll, yScroll;
-
-		if (window.innerHeight &amp;&amp; window.scrollMaxY) {
-			xScroll = window.innerWidth + window.scrollMaxX;
-			yScroll = window.innerHeight + window.scrollMaxY;
-		} else if (document.body.scrollHeight &gt; document.body.offsetHeight){ // all but Explorer Mac
-			xScroll = document.body.scrollWidth;
-			yScroll = document.body.scrollHeight;
-		} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
-			xScroll = document.body.offsetWidth;
-			yScroll = document.body.offsetHeight;
-		}
-
-		var windowWidth, windowHeight;
-
-		if (self.innerHeight) { // all except Explorer
-			if(document.documentElement.clientWidth){
-				windowWidth = document.documentElement.clientWidth;
-			} else {
-				windowWidth = self.innerWidth;
-			}
-			windowHeight = self.innerHeight;
-		} else if (document.documentElement &amp;&amp; document.documentElement.clientHeight) { // Explorer 6 Strict Mode
-			windowWidth = document.documentElement.clientWidth;
-			windowHeight = document.documentElement.clientHeight;
-		} else if (document.body) { // other Explorers
-			windowWidth = document.body.clientWidth;
-			windowHeight = document.body.clientHeight;
-		}
-
-		// for small pages with total height less then height of the viewport
-		if(yScroll &lt; windowHeight){
-			pageHeight = windowHeight;
-		} else {
-			pageHeight = yScroll;
-		}
-
 
-		// for small pages with total width less then width of the viewport
-		if(xScroll &lt; windowWidth){
-			pageWidth = xScroll;
-		} else {
-			pageWidth = windowWidth;
-		}
-
-		var arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight);
-		return arrayPageSize;
+	$.fn.lightbox.getPageSize = function(){
+		var jqueryPageSize = new Array($(document).width(),$(document).height(), $(window).width(), $(window).height());
+		return jqueryPageSize;
 	};
 
 
@@ -138,14 +101,13 @@
 	};
 
 	$.fn.lightbox.start = function(imageLink){
-
+		
 		$(&quot;select, embed, object&quot;).hide();
 		var arrayPageSize = $.fn.lightbox.getPageSize();
 		$(&quot;#overlay&quot;).hide().css({width: '100%', height: arrayPageSize[1]+'px', opacity : opts.overlayOpacity}).fadeIn();
 		opts.imageArray = [];
 		imageNum = 0;
 
-		var anchors = document.getElementsByTagName( imageLink.tagName);
 
 		// if image is NOT part of a set..
 		if(!imageLink.rel || (imageLink.rel == '')){</diff>
      <filename>jquery.lightbox.js</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>README</filename>
    </removed>
    <removed>
      <filename>jquery.lightbox.min.js</filename>
    </removed>
    <removed>
      <filename>jquery.lightbox.pack.js</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>e3305c77f24b801e3c24957238ac7a06c39e9509</id>
    </parent>
  </parents>
  <author>
    <name>krewenki</name>
    <email>krewenki@gmail.com</email>
  </author>
  <url>http://github.com/krewenki/jquery-lightbox/commit/008482d69928e8afd2b30c9316c389901f61478c</url>
  <id>008482d69928e8afd2b30c9316c389901f61478c</id>
  <committed-date>2009-01-16T05:44:54-08:00</committed-date>
  <authored-date>2009-01-16T05:44:54-08:00</authored-date>
  <message>Removed some junk, let jQuery do more heavy lifting.</message>
  <tree>5f724f8fb90bab81b7bb80e25751ada3f9cbeb7d</tree>
  <committer>
    <name>krewenki</name>
    <email>krewenki@gmail.com</email>
  </committer>
</commit>
