<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -92,8 +92,8 @@
 	    show: function () {
 	        var $elm, $icon, $message, $messageLink, hours, H, messageText, $hourElem, image, styles, time;
 	        
-	        function getBasePath(path) {
-	            var basePath; 
+	        function rebasePath(path) {
+	            var newPath; 
 	            if (/^(https?:\/\/|\/)/.test(path)) {
 			        return path;
 		        } else {
@@ -101,15 +101,23 @@
 			            var srcFol, $elem = $(elem);
 				        if (/jquery\.pushup\.js$/.test($elem.attr('src'))) {
 					        srcFol =  $elem.attr('src').replace('jquery.pushup.js', '');
-					        basePath = srcFol + path;
+					        newPath = srcFol + path;
 					        return false; // break;
 				        }
 			        });
 		        }
 		        
-		        return basePath;
+		        return newPath;
 	        }
-	        	        
+	        
+	        if ($.pushup.options.stylesheet) {
+	            $(document.createElement('link'))
+	                .attr('rel', 'stylesheet')
+	                .attr('type', 'text/css')
+	                .attr('href', rebasePath($.pushup.options.stylesheet))
+	                .appendTo('head');
+	        }
+	        
 		    $elm = $(document.createElement('div'))
 		        .attr('id', 'pushup')
 		        .hide()
@@ -144,7 +152,7 @@
 			    });
 		    }
 
-		    image = getBasePath($.pushup.options.images) + $.pushup.activeBrowser.toLowerCase();
+		    image = rebasePath($.pushup.options.images) + $.pushup.activeBrowser.toLowerCase();
 		    styles = ($.pushup.browsVer.IE &lt; 7 &amp;&amp; $.pushup.browsVer.IE) ? {
 			    filter: 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + image + '.png\'\', sizingMethod=\'crop\')'
 		    } : {</diff>
      <filename>js/jquery.pushup.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4dc142d959109db632474a489aa06175746ef803</id>
    </parent>
  </parents>
  <author>
    <name>Brian Dukes</name>
    <email>dukes.brian@gmail.com</email>
  </author>
  <url>http://github.com/stuartloxton/jquery-pushup/commit/fa4b30e87a8679fa586769c168c9f88c62450641</url>
  <id>fa4b30e87a8679fa586769c168c9f88c62450641</id>
  <committed-date>2009-10-19T19:02:30-07:00</committed-date>
  <authored-date>2009-10-19T19:02:30-07:00</authored-date>
  <message>Added logic to dynamically add the stylesheet link

If the `options` object has a `stylesheet` property, a link to that stylesheet will be added to the head of the document.  This prevents adding the styles for the majority of users who have an up-to-date browser (which is especially nice since the styles use a non-validating IE behavior).</message>
  <tree>d12aca936274f7a845c48d5be093d34fb972bd0d</tree>
  <committer>
    <name>Brian Dukes</name>
    <email>dukes.brian@gmail.com</email>
  </committer>
</commit>
