<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>expressInstall.swf</filename>
    </added>
    <added>
      <filename>swfobject.js</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -48,6 +48,4 @@ function sendEvent(e:SongEvent):void {
       e.attrs
     );
   } catch(e) {}
-  
-  
 }
\ No newline at end of file</diff>
      <filename>soundoff.as</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,7 @@
 var SoundOff = {
   swfLocation : 'soundoff.swf',
-  containerID : '_soundOffContainer',
+  containerID : 'soundOffContainer',
+  expressInstallLocation : 'expressInstall.swf',
   container : null,
   list : []
 };
@@ -12,36 +13,20 @@ SoundOff.Object = function() {
     c.style.top = 0;
     c.style.left = 0;
     document.body.appendChild(c);
+    c.style.zIndex = -1;
     SoundOff.container = c;
   }
   
-  // Quick &amp; dirty IE detection
-  var msie = (navigator.appVersion.indexOf(&quot;MSie&quot;) != -1) &amp;&amp; !window.opera;
-  
-  var fo = document.createElement('object');
-  fo.setAttribute('height', 1);
-  fo.setAttribute('width', 1);
-  fo.style.position = 'absolute';
-  fo.style.top = 0;
-  fo.style.left = 0;
-  
-  if (msie) {
-    fo.setAttribute('classid', &quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;);
-    var p = document.createElement('param');
-    p.setAttribute('name', 'movie');
-    p.setAttribute('value', SoundOff.swfLocation);
-    fo.appendChild(p);
-  } else {
-    fo.setAttribute('type', &quot;application/x-shockwave-flash&quot;);
-    fo.setAttribute('data', SoundOff.swfLocation);
-  }
+  this.thisIndex = SoundOff.list.length;
+  this.swfID = 'SoundOffContainer' + this.thisIndex;
+  
+  var div = document.createElement('div');
+  div.setAttribute('id', this.swfID);
+  SoundOff.container.appendChild(div);
   
+  swfobject.embedSWF(SoundOff.swfLocation, this.swfID, &quot;1&quot;, &quot;1&quot;, &quot;9.0.0&quot;, SoundOff.expressInstallLocation);
   
-  SoundOff.container.appendChild(fo);
-  this.flashObj = fo;
   this.initializeTimer = setInterval(this.bind(this.isInitialized, this), 100);
-  SoundOff.list.push(this);
-  this.thisIndex = SoundOff.list.length - 1;
   this.deferredCalls.push(['setUID', this.thisIndex]);
 }
 
@@ -132,6 +117,7 @@ SoundOff.Object.prototype = {
   /* for internal use only */
   isInitialized : function() {
     try {
+      this.flashObj = document.getElementById(this.swfID);
       this.flashObj.initialize();
       this.initialized = true;
       clearInterval(this.initializeTimer);</diff>
      <filename>soundoff.js</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,7 @@
     
     &lt;script type=&quot;text/javascript&quot; src=&quot;jquery.js&quot;&gt;&lt;/script&gt;
     &lt;script type=&quot;text/javascript&quot; src=&quot;jquery.ui.js&quot;&gt;&lt;/script&gt;
-
+    &lt;script type=&quot;text/javascript&quot; src=&quot;swfobject.js&quot;&gt;&lt;/script&gt;
     &lt;script src=&quot;soundoff.js&quot;&gt;&lt;/script&gt;
     
     &lt;script type=&quot;text/javascript&quot;&gt;
@@ -120,6 +120,7 @@
           $('#play').show();
           so.stop();
           $('#progress-slider').slider('option', 'value', 0);
+          return false;
         });
         
         $('#mute').click(function() {
@@ -226,6 +227,7 @@
         width: 100%;
         height: 100%;
         opacity: .01;
+        filter: alpha(opacity=1);
         background: #ffffff;
       }
       </diff>
      <filename>test.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6ab6dac7fec85fe8533315085a1abb5edaa1cd18</id>
    </parent>
  </parents>
  <author>
    <name>Jeremy Nicoll</name>
    <email>jnicoll@gnexp.com</email>
  </author>
  <url>http://github.com/eltiare/SoundOff/commit/8f6ea4ca9450aa7651cae412e67e9b1a24eb154a</url>
  <id>8f6ea4ca9450aa7651cae412e67e9b1a24eb154a</id>
  <committed-date>2009-10-12T16:25:08-07:00</committed-date>
  <authored-date>2009-10-12T16:25:08-07:00</authored-date>
  <message>Finally caved and added swjobject as a dependency. I really hate IE.</message>
  <tree>97c3e5b5d39140d1b5aca095768121b333180839</tree>
  <committer>
    <name>Jeremy Nicoll</name>
    <email>jnicoll@gnexp.com</email>
  </committer>
</commit>
