var swf = new Object();
swf.load = function(opts) {
	var flashvars = false;

	var params = {
	  menu: "false",
	  wmode: "transparent"
	};
	var attributes = {
	  name: ""
	};

    if(opts.vars) {
      for(key in opts.vars) {
        params.flashvars = key + "=" + escape(opts.vars[key]);
      }
    }

	swfobject.embedSWF(opts.swf, opts.div, opts.width, opts.height, "9.0.0","/expressInstall.swf", flashvars, params, attributes);
}

// FAQ
jQuery(function($) {
  $('dl.qaSlider dt').click(function() {
    $(this).next().toggleClass('opened');
  });
});

// Fields which clear when you click them
jQuery(function($) {
  $('input.focus-clear').each(function() {
    var original_text = 
      $(this).click(function() {
        if (this.value == original_text) this.value = "";
      }).
      val();
  });
});

// console.log stub for missing Firebug or IE
if (typeof(console) == "undefined") { var console = { log: function() { } } };
