Event.observe(window, 'load', function() {
  set_headings();
})

function open_audioplayer(href) {
  open_popup(href, 'audioplayer', '600', '410');
}

function open_popup(href, name, width, height) {
	var win = window.open(href, name, "width="+ width +",height="+ height +",directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no");
	win.focus();
}

function set_headings() {
  if(typeof sIFR == "function"){
    sIFR.replaceElement(named({
      sSelector:"#news h3,#footer h3", 
      sFlashSrc:"/files/flash/american-typewriter.swf", 
      sColor:"#999999",
      sWmode:"transparent", 
      sCase:"upper"
    }));
    
    sIFR.replaceElement(named({
      sSelector:"h2,h3,h4", 
      sFlashSrc:"/files/flash/american-typewriter.swf", 
      sColor:"#DDDDDD",
      sLinkColor:"#999999",
      sWmode:"transparent", 
      sCase:"upper"
    }));    
  }
}

function debug(msg) {
	console.log(msg);
}

