<!-- ****************FFMac Flash fix*************-->
<!-- http://jakeo.org/blog/2007/03/16/css-opacity-and-flash-transparency-in-mac-firefox/ -->

function detectMacXFF2() {
  var userAgent = navigator.userAgent.toLowerCase();
  if (/firefox[\/\s](\d+\.\d+)/.test(userAgent)) {
    var ffversion = new Number(RegExp.$1);
    if (ffversion < 3 && userAgent.indexOf('mac') != -1) {
      return true;
    }
  }
}


  var yourShade = document.getElementById('qm0');
  var d = detectMacXFF2(); //note new detectMacXFF2 script above
  if (d) {
    //osx ff css opacity + flash wmode transparent doesn't work
    yourShade.style.backgroundImage= "url(/assets/images/sub-container.png)";
    yourShade.style.backgroundRepeat= "repeat";
  } else {
  	if (yourShade){
		yourShade.style.backgroundColor = "#dcd3df";
		yourShade.style.MozOpacity = .95;
		yourShade.style.opacity = .95;
		yourShade.style.filter = "alpha(opacity=95)";
  	}
  }
