<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -29,6 +29,7 @@
  *  You can also use it programmatically:
  * 
  *    jQuery.facebox('some html')
+ *    jQuery.facebox('some html', 'my-groovy-style')
  *
  *  The above will open a facebox with &quot;some html&quot; as the content.
  *    
@@ -39,10 +40,14 @@
  *  The above will show a loading screen before the passed function is called,
  *  allowing for a better ajaxy experience.
  *
- *  The facebox function can also display an ajax page or image:
+ *  The facebox function can also display an ajax page, an image, or the contents of a div:
  *  
  *    jQuery.facebox({ ajax: 'remote.html' })
- *    jQuery.facebox({ image: 'dude.jpg' })
+ *    jQuery.facebox({ ajax: 'remote.html' }, 'my-groovy-style')
+ *    jQuery.facebox({ image: 'stairs.jpg' })
+ *    jQuery.facebox({ image: 'stairs.jpg' }, 'my-groovy-style')
+ *    jQuery.facebox({ div: '#box' })
+ *    jQuery.facebox({ div: '#box' }, 'my-groovy-style')
  *
  *  Want to close the facebox?  Trigger the 'close.facebox' document event:
  *
@@ -64,9 +69,9 @@
   $.facebox = function(data, klass) {
     $.facebox.loading()
 
-    if (data.ajax) fillFaceboxFromAjax(data.ajax)
-    else if (data.image) fillFaceboxFromImage(data.image)
-    else if (data.div) fillFaceboxFromHref(data.div)
+    if (data.ajax) fillFaceboxFromAjax(data.ajax, klass)
+    else if (data.image) fillFaceboxFromImage(data.image, klass)
+    else if (data.div) fillFaceboxFromHref(data.div, klass)
     else if ($.isFunction(data)) data.call($)
     else $.facebox.reveal(data, klass)
   }</diff>
      <filename>facebox.js</filename>
    </modified>
    <modified>
      <diff>@@ -163,7 +163,25 @@
 
           &lt;div class=&quot;code&quot;&gt;
             &lt;h3&gt;Arbitrary Text&lt;/h3&gt;
-            &lt;code&gt;jQuery.facebox('something cool')&lt;/code&gt;
+            &lt;code&gt;
+				jQuery.facebox('something cool');&lt;br/&gt;
+            	jQuery.facebox('something cool', 'my-groovy-style');
+			&lt;/code&gt;
+			&lt;h3&gt;Remote files&lt;/h3&gt;
+            &lt;code&gt;
+				jQuery.facebox({ ajax: 'remote.html' });&lt;br/&gt;
+				jQuery.facebox({ ajax: 'remote.html' }, 'my-groovy-style');
+			&lt;/code&gt;
+			&lt;h3&gt;Image&lt;/h3&gt;
+            &lt;code&gt;
+			    jQuery.facebox({ image: 'stairs.jpg' });&lt;br/&gt;
+			    jQuery.facebox({ image: 'stairs.jpg' }, 'my-groovy-style');
+			&lt;/code&gt;
+			&lt;h3&gt;A Page Element&lt;/h3&gt;
+            &lt;code&gt;
+			    jQuery.facebox({ div: '#box' });&lt;br/&gt;
+			    jQuery.facebox({ div: '#box' }, 'my-groovy-style');
+			&lt;/code&gt;
           &lt;/div&gt;
 
           &lt;p&gt;</diff>
      <filename>index.html</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@
 &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
 &lt;head&gt;
   &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;
-  &lt;title&gt;Facebox 1.0&lt;/title&gt;
+  &lt;title&gt;Facebox 1.2&lt;/title&gt;
   &lt;link href=&quot;facebox.css&quot; media=&quot;screen&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
   &lt;style&gt;
 #facebox {</diff>
      <filename>test.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6a3115ad2dba545eca67fda95b34e1280d3b8c30</id>
    </parent>
  </parents>
  <author>
    <name>Sean Johnson</name>
    <email>sean@Seans-Mac-Pro.local</email>
  </author>
  <url>http://github.com/defunkt/facebox/commit/b24c1a8d6a2a460886efd6649494d7ae3aa0ac58</url>
  <id>b24c1a8d6a2a460886efd6649494d7ae3aa0ac58</id>
  <committed-date>2008-06-21T16:12:02-07:00</committed-date>
  <authored-date>2008-06-21T16:12:02-07:00</authored-date>
  <message>Full commit this time. Added the argument so a css class can be passed when using facebox
programmatically. Improved the documentation around programmatic usage and
added a test file for programmatic usage.</message>
  <tree>387e28856281f883f00d521955e8df3500149b12</tree>
  <committer>
    <name>Sean Johnson</name>
    <email>sean@Seans-Mac-Pro.local</email>
  </committer>
</commit>
