//document.onmousedown=click
function click() 
{
	if (event.button==2)
	{  //改成button==2为禁止右键
		alert('对不起,禁止使用此功能.')
	}
}

function fullscreen()
{

		if(!(document.Player.playState>1))
		{
			alert("影片未开始播放，无法切换为全屏模式");		
		}
			else
		{		
			document.Player.fullScreen  = 'true';
		}
}

function fullscreenex()	
{
	if(!document.rmplay.CanStop())
	{
		alert("影片未开始播放，无法切换为全屏模式")
	}
	else
	{
		document.rmplay.SetFullScreen()
	}
}

function play(diz)
{
	var strExt,strExtx;
	strExt=diz.substring(diz.length-2,diz.length);
	strExtx=diz.substring(diz.length-4,diz.length);
	strExt=strExt.toLowerCase();
	if ((strExt!="rm") && (strExtx!="rmvb")) 
	{
		
		document.write("<TR><TD vAlign=top width=\"1%\" background=images/view_5.jpg></TD>");
		document.write("<TD width=\"98%\" bgColor=#000000>");
		document.write("<DIV align=center>");
		document.write("<OBJECT ID=\"Player\" width=\"100%\" height=\"100%\"  CLASSID=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\">");
		document.write("<param name=\"AutoStart\" value=\"True\">");
		document.write("<param name=\"uiMode\" value=\"full\">");
		document.write("<param name=\"stretchToFit\" value=\"1\">");
		document.write("<PARAM NAME=\"enableContextMenu\" VALUE=\"true\">");
		document.write("<param name=\"URL\" value=\""+diz+"\"></OBJECT></DIV></TD>");
		document.write("<TD vAlign=top width=\"1%\" background=images/view_122.jpg></TD></TR>");

		document.write("<TR><TD vAlign=top width=\"1%\" background=images/view_5.jpg height=\"1%\"></TD>");
		document.write("<TD width=\"98%\" bgColor=#cccccc height=\"1%\"></TD>");
		document.write("<TD vAlign=top width=\"2%\" background=images/view_122.jpg height=\"1%\"></TD></TR>");
	}
else
	{
		var strx,nPosx;
		strx=diz.substring(6,diz.length);	
		nPosx=strx.indexOf("/");	
		document.write("<TR><TD vAlign=top width=\"1%\" background=images/view_5.jpg></TD>");
		document.write("<TD width=\"98%\" bgColor=#000000>");
		document.write("<DIV align=center>");
		document.write("<OBJECT id=RAOCX height=\"100%\" width=\"100%\" classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA name=rmplay>");
		document.write("<PARAM NAME=\"SRC\" VALUE=\""+diz+"\">");
		document.write("<PARAM NAME=\"CONSOLE\" VALUE=\"Clip1\">");
		document.write("<PARAM NAME=\"CONTROLS\" VALUE=\"imagewindow\">");
		document.write("<PARAM NAME=\"AUTOSTART\" VALUE=\"true\"></OBJECT></DIV></TD>");
		document.write("<TD vAlign=top width=\"1%\" background=images/view_122.jpg></TD></TR>");
		document.write("<TR><TD vAlign=top width=\"1%\" background=images/view_5.jpg height=44></TD>");
		document.write("<TD width=\"98%\" bgColor=#cccccc height=44>");
		document.write("<OBJECT id=video2 height=30 width=\"100%\" classid=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA>");
		document.write("<PARAM NAME=\"SRC\" VALUE=\""+diz+"\">");
		document.write("<PARAM NAME=\"AUTOSTART\" VALUE=\"-1\">");
		document.write("<PARAM NAME=\"SHUFFLE\" VALUE=\"0\">");
		document.write("<PARAM NAME=\"PREFETCH\" VALUE=\"0\">");
		document.write("<PARAM NAME=\"NOLABELS\" VALUE=\"0\">");
		document.write("<PARAM NAME=\"CONTROLS\" VALUE=\"controlpanel\">");
		document.write("<PARAM NAME=\"LOOP\" VALUE=\"0\">");
		document.write("<PARAM NAME=\"CONSOLE\" VALUE=\"Clip1\">");
		document.write("<PARAM NAME=\"NUMLOOP\" VALUE=\"0\">");
		document.write("<PARAM NAME=\"CENTER\" VALUE=\"0\">");
		document.write("<PARAM NAME=\"MAINTAINASPECT\" VALUE=\"0\">");
		document.write("<PARAM NAME=\"BACKGROUNDCOLOR\" VALUE=\"#000000\"></OBJECT></TD>");
		document.write("<TD vAlign=top width=\"2%\" background=images/view_122.jpg height=44></TD></TR>");
	}//end if diz	
	
}
