var obj = false;
if (window.ActiveXObject){
	var oReq = new ActiveXObject("Microsoft.XMLHTTP");
}else{
	var oReq = new XMLHttpRequest();
}
oReq.onreadystatechange = onNotice;
function getFlashVersion(){
 var fv="",n=navigator;
 if (n.plugins && n.plugins.length){
  for (var ii=0;ii<n.plugins.length;ii++){
   if (n.plugins[ii].name.indexOf('Shockwave Flash')!=-1){
    fv=n.plugins[ii].description.split('Shockwave Flash ')[1].split('.')[0];
    break;
   }
  }
 }else if (window.ActiveXObject){
  for (var i=10;i>=2;i--){
   try {
    var f=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+i+"');");
    if (f){fv=i; break;}
   }
   catch(e){}
  }
 }
 return fv;
// return 6;
// return '';
}
function getFlashCode(){
 return '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="'+version+'",0,0,0" width="'+width+'" height="'+height+'"><param name="scale" value="'+scale+'"><param name="movie" value="'+url+'"><param name="menu" value="false"><param name="quality" value="high"><param name="bgcolor" value="'+bg_color+'"><param name="FlashVars" value="site_url='+site_url+'&id='+id+'"><embed src="'+url+'" scale="'+scale+'" menu="false" quality="high" bgcolor="'+bg_color+'" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashVars="site_url='+site_url+'&id='+id+'" /></object>';
}
function getFlashNotice(){
	oReq.open("GET", "/notice.xml");
	oReq.send(null);
}
function onNotice(){
	obj.innerHTML = oReq.responseText;
}
function renderContent(){
 if (getFlashVersion()){
	if (getFlashVersion() >= version){
   document.body.style.backgroundColor = bg_color;
   document.body.innerHTML = getFlashCode();
//	document.getElementById('body').innerHTML = getFlashCode();
	}else{
	 var oDiv=document.createElement("DIV");
	 document.body.appendChild(oDiv);
	 obj = oDiv;
	 getFlashNotice();
	}
 }
 document.body.style.visibility = 'visible';
}