<!--

if (window.Event)
  document.captureEvents(Event.MOUSEUP);

function nocontextmenu()
{
	event.cancelBubble = true
	event.returnValue = false;
	return false;
}

function norightclick(e)
{
if (window.Event)
{
  	if (e.which == 2 || e.which == 3)
   	return false;
}
else
	if (event.button == 2 || event.button == 3)
	{
		event.cancelBubble = true
		event.returnValue = false;
		return false;
  	}
}

document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
//-->

function banner(url,width,height,files) {
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0" width="'+width+'" height="'+height+'">');
    document.write('<param name="movie" value="'+url+'" />');
    document.write('<param name="menu" value="false">');
	document.write('<param name="wmode" value="transparent">');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="flashvars" value="bcastr_xml_url='+files+'&bcastr_config=0x111111:文字颜色|2:文字位置|0xffffff:文字背景颜色|6:文字背景透明度|0xffffff:按键文字颜色|0xFF6400:按键默认颜色|0x000033:按键当前颜色|3:自动播放时间(秒)|2:图片过渡效果|1:是否显示按钮|_blank:打开窗口" />');
    document.write('<embed flashvars="bcastr_xml_url='+files+'&bcastr_config=0x111111:文字颜色|2:文字位置|0xffffff:文字背景颜色|6:文字背景透明度|0xffffff:按键文字颜色|0xFF6400:按键默认颜色|0x000033:按键当前颜色|3:自动播放时间(秒)|2:图片过渡效果|1:是否显示按钮|_blank:打开窗口"></embed>');
    document.write('</object>');
}