// EMBED FLASH
function writeFlash(location,w,h,align,bgcolor,wmode) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + w + '" height=" ' + h + '" id="banner" align="' + align + '">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="' + location + '.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="' + bgcolor + '" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="wmode" value="'+wmode+'" />');
	document.write('<embed src="' + location + '.swf" quality="high" bgcolor="'+bgcolor+'" menu="false" wmode="'+wmode+'" width="' + w + '" height="' + h + '" name="' + name +'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}
// AJAX LOAD
function ajaxLoader(url,id) {
  if (document.getElementById) {
    var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  }
  if (x) {
    x.onreadystatechange = function() {
      if (x.readyState == 4 && x.status == 200) {
        el = document.getElementById(id);
        el.innerHTML = x.responseText;
      }
    }
    x.open("GET", url, true);
    x.send(null);
  }
  //alert('url = ' + url + "\n" + "id = " + id);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}