var lujing="";   //如果论坛在根目录这里不需要修改 如果在根目录的BBS文件夹内 修改为 var lujing="/bbs";
var guanggao='<MARQUEE onmouseover=this.stop() onmouseout=this.start() scrollamount="2" width="100%">无为戏曲影院 www.xiqu.org 中国戏曲网 www.xiqu.net</marquee>';  //广告 可以是文本或者HTML代码
//////////////////
function playbvod(id,strType){
	try{ var panel=document.getElementById(id);if(panel){if(panel.style.display=='none'){panel.style.display='block';panel.innerHTML="<p><img border='0' src='http://wuwei.xiqu.org/jw/tupian/wwxqlogo9.jpg' width='680' height='87'></p><div id='player"+id+"' class='23play' style='display:none;'></div><DIV class=q_tb><div id=mhlist"+id+" class=q_tba><div id=listm><span><a href='javascript:;' title='升序/降序' target='_self' id='islt01"+id+"'>升序↑</a></span>无为戏曲 高清影院</div><div class=q_Ajax_Content id=q_Ajax_Content"+id+"></div></DIV>";
switch(strType) {case 'qvod':rechange('qvod');break;case 'gvod':rechange('gvod');break;case 'bobo':rechange('bobo');break;case 'openv':rechange('openv');break;case 'sinahd':rechange('sinahd');break;case 'sohuhd':rechange('sohuhd');break;case '56':rechange('56');break;case 'youku':rechange('youku');break;case 'tudou':rechange('tudou');break;case 'sina':rechange('sina');break;case 'ku6':rechange('ku6');break;case 'mp3':rechange('mp3');break;case 'mofile':rechange('mofile');break;case 'qq':rechange('qq');break;case 'putong':rechange('putong');break;case 'flv':rechange('flv');break;case 'wmv':rechange('wmv');break;}}else{panel.style.display='none';panel.innerHTML="";}}}catch(e){}}
//复制脚本
function copyCode(id){
var abdd ='';
clipboardData.setData('Text','['+id+']'+document.getElementById('q_qe'+id).innerText+'[/'+id+']'+abdd);alert('复制资源成功!');
}
function playyouku(strID,strURL,strTitle){
//1
var it=strTitle.replace('第','');
var it=it.replace('集','');
var itt=it-1+2
var lcl=showmovieUrl.length;
//1
var strqq=strID.replace('player','')
  try{
    var panel=document.getElementById(strID);
    panel.style.display='block';
    if(panel){
    if(lcl>it)
{showplayUrl=showmovieUrl[it].split("$");
var playrr=showplayUrl[0]
panel.innerHTML="<div class='playtitle'><span class='sp'><strong>正在播放：</strong>"+strTitle+"</span><em>"+guanggao+"</em><span class='sps'><a title='点击第"+itt+"集' href=\"javascript:playyouku('"+strID+"','"+playrr+"','第"+itt+"集')\">播放下一集</a></span></div>";}
else
{panel.innerHTML="<div class='playtitle'><span class='sp'><strong>正在播放：</strong>"+strTitle+"</span><em>"+guanggao+"</em><span class='sps'>当前是最后一集</span></div>";}
        switch(strqq) {
		case 'qvod':
		panel.innerHTML+="<iframe src='http://www.65bb.com/play/play/"+strqq+"/index.htm?"+strURL+"' width='657' height='420' frameborder=0 scrolling=no></iframe>";
  break;
        case 'gvod':
        panel.innerHTML+="<iframe src='http://www.65bb.com/play/play/qvod/gvod.php?adr="+strURL+"' width='657' height='420' frameborder=0 scrolling=no></iframe>";
break;        case 'bobo':
        panel.innerHTML+="<iframe src='http://www.65bb.com/include/bobo.php?f="+strURL+"' width='657' height='420' frameborder=0 scrolling=no></iframe>";
break;
        case 'openv':
        panel.innerHTML+="<iframe src='http://www.65bb.com/play/play/flv/openv.php?"+strURL+"' width='657' height='420' frameborder=0 scrolling=no></iframe>";
break;
  case 'sinahd':
        panel.innerHTML+='<embed allowfullscreen="true" src="http://video.sina.com.cn/deco/2008/1118/flvPlayer1218.swf?vid='+strURL+'&clip_id=&imgurl=&auto=1&vblog=1&type=0&tabad=1" quality="high" bgcolor="#000" width="657" height="420" name="player" id="playerr" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
        break;
     
  case '56':
        panel.innerHTML+="<iframe src='http://www.65bb.com/play/play/flv/56.php?url=http://www.56.com/"+strURL+"' width='677' height='470' frameborder=0 scrolling=no></iframe>";
 break;
		case 'youku':
        panel.innerHTML+='<embed type="application/x-shockwave-flash" src="http://static.youku.com/v1.0.0242/v/swf/qplayer.swf" id="movie_player" name="movie_player" bgcolor="#FFFFFF" quality="high" allowfullscreen="true" flashvars="isShowRelatedVideo=false&showAd=0&show_pre=1&show_next=1&VideoIDS='+strURL+'&isAutoPlay=true&isDebug=false&UserID=&winType=interior&playMovie=true&MMControl=false&MMout=false&RecordCode=1001,1002,1003,1004,1005,1006,2001,3001,3002,3003,3004,3005,3007,3008,9999" pluginspage="http://www.macromedia.com/go/getflashplayer" width="657" height="420">';
        break;
		case 'tudou':
        panel.innerHTML+='<embed allowfullscreen="true" src="http://www.tudou.com/static/bin/director_player.swf?iid='+strURL+'&default_skin=http://www.tudou.com/static/bin/director_player.swf&safekey=IAlsoNeverKnow&autostart=false"  allowScriptAccess="sameDomain" quality="high" wmode="opaque" bgcolor="#000000" width="657" height="420" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
        break;
        case 'sina':
        panel.innerHTML+='<embed allowfullscreen="true" src="http://vhead.blog.sina.com.cn/player/bn_topic.swf?vid='+strURL+'&clip_id=&imgurl=&auto=1&vblog=1&type=0&tabad=1" quality="high" bgcolor="#000" width="657" height="420" name="player" id="playerr" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
break;
case 'qq':
panel.innerHTML+="<object id='flashplayer' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='657' height='420'><param name='movie' value='http://cache.tv.qq.com/qqplayerout.swf?v="+strURL+"' /><param name='allowFullScreen' value='true' /><param name='flashvars' value='vid=replace&cgi=http%3A//video.qq.com/bin/vrank%3Ftype%3D8%26start%3D49%26end%3D56'></object>";
break;

case 'mp3':
panel.innerHTML+="<object height='420' width='657' classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' align='center' border='0'><param name='AutoStart' value='1'><param name='Balance' value='0'><param name='enabled' value='-1'><param name='EnableContextMenu' value='false'><param name='url' value='"+strURL+"'><param name='PlayCount' value='1'><param name='rate' value='1'><param name='currentPosition' value='0'><param name='currentMarker' value='0'><param name='defaultFrame' value=''><param name='invokeURLs' value='0'><param name='baseURL' value=''><param name='stretchToFit' value='0'><param name='volume' value='100'><param name='mute' value='0'><param name='uiMode' value='full'><param name='windowlessVideo' value='0'><param name='fullScreen' value='0'><param name='enableErrorDialogs' value='-1'><param name='SAMIStyle' value><param name='SAMILang' value><param name='SAMIFilename' value><param name='captioningID' value></object>";
break;

case 'mofile':
panel.innerHTML+="<embed src='http://tv.mofile.com/cn/xplayer.swf' FlashVars='v="+strURL+"&nowSkin=1_1' width='657' height='420' allowScriptAccess='sameDomain' wmode='transparent' type='application/x-shockwave-flash'/></embed>";
break;

case 'ku6':
panel.innerHTML+="<embed src='http://img1.c0.ku6.cn/player/pV1.2.swf?ver=107&auto=1&type=v&vid="+strURL+"' quality='high' width='657' height='420' align='middle' allowScriptAccess='always' allowfullscreen='true' type='application/x-shockwave-flash'></embed>";
break;

        case 'putong':
        panel.innerHTML+='<embed allowfullscreen="true" src="'+strURL+'" quality="high" bgcolor="#000" width="657" height="420" name="player" id="playerr" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
        break;
        case 'wmv':
        panel.innerHTML+='<object id="myPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width=657 height=420><param NAME="URL" VALUE="'+strURL+'"><param name="rate" value="1"><param name="balance" value="0"><param name="defaultFrame" VALUE><param name="playCount" value="1"><param name="autoStart" value="1"><param name="currentMarker" value="0"><param name="invokeURLs" value="-1"><param name="baseURL" VALUE><param name="volume" value="80"><param name="mute" value="0"><param name="stretchToFit" value="1"><param name="windowlessVideo" value="0"><param name="enabled" value="-1"><param name="enableContextMenu" value="-1"><param name="fullScreen" value="0"><param name="SAMIStyle" VALUE><param name="SAMILang" VALUE><param name="SAMIFilename" VALUE><param name="captioningID" VALUE></object>';
        break;
        case 'flv':
        panel.innerHTML+="<iframe src='http://www.65bb.com/play/play/"+strqq+"/index.htm?"+strURL+"' width='657' height='420' frameborder=0 scrolling=no></iframe>";
        break;
        }
   }
  }catch(e){}
}
function playqvod1(id,url){
  try{
    var panel=document.getElementById(id);
    if(panel){
      if(panel.style.display=='none'){
        panel.style.display='block';
        panel.innerHTML="<iframe src='"+lujing+"/play/play/qvod/index.htm?"+url+"' width='657' height='420' frameborder=0 scrolling=no></iframe>";
      }else{
        panel.style.display='none';
        panel.innerHTML="";
      }
    }
  }catch(e){}
}


function rechange(id){
/* 排序开始*/
 function sortData(id)
 {
	this.lis0 = document.getElementById("mhlist"+id+"").getElementsByTagName("li");
	 var mobj = this;
	document.getElementById("islt01"+id+"").onclick = function()
	{
		 mobj.sortliData();
		 this.innerHTML == "降序↓" ? this.innerHTML = "升序↑" : this.innerHTML = "降序↓";
		 this.className == "islt01"+id+"" ? this.className = "islt01u"+id+"" : this.className = "islt01"+id+"";
		 return false;
	}
 }
 sortData.prototype.sortliData = function()
 {
   var tmpArray = [];
	var tmplength = this.lis0.length;
	for( var i=0; i<tmplength; i++ )
	 {
		 tmpArray[tmplength-i-1] = this.lis0[i].innerHTML;
	 }
	for( var i=0; i<tmplength; i++ )
	 {
		this.lis0[i].innerHTML = tmpArray[i];
	 }
 }
 var sort0 = new sortData(id);
/* 排序结束*/
document.getElementById(""+id+"").style.margin.top="5px";
var va=document.getElementById("q_qe"+id+"").innerHTML;
var va = va.replace(/<a[^>]+href=[" ]?([^"]+)[" ]?[^>]*>(.*?)<\/a>/ig,"$1");
var va=va.replace(/^[ ]*(http:\/\/v.youku.com\/v_show\/id_)([^\r\n]*)(=.html)$/igm,"$2");
var va=va.replace(/^[ ]*(http:\/\/you.video.sina.com.cn\/b\/)([^\r\n]*)(-)([\w\W]*?)(.html)$/igm,"$2");
var va=va.replace(/^[ ]*(http:\/\/you.video.sina.com.cn\/pg\/topicdetail\/topicPlay.php)(.*?)(#)([\w\W]*?)$/igm,"$4");
showmovieUrl=va.split(/<br[^>]*>/ig); 
var lcl=showmovieUrl.length;
if(lcl>15)
{document.getElementById("q_Ajax_Content"+id+"").style.overflow="auto";
document.getElementById("q_Ajax_Content"+id+"").style.height="350px";
}else
{var hhh=lcl*25
document.getElementById("q_Ajax_Content"+id+"").style.height=""+hhh+"";}

{
ajax_showmovieUrl="<ul>"
for(var i =0; i < showmovieUrl.length; i++)
		 {
			showplayUrl=showmovieUrl[i].split("$");
			ajax_showmovieUrl+="<li class='bofang"+(i+1)+"'><em><a href=\"javascript:playyouku('player"+id+"','"+showplayUrl[0]+"','第"+(i+1)+"集')\">播放</a></em><span>"+(i+1)+".</span>"
			if(showplayUrl[1]){
			ajax_showmovieUrl+=""+showplayUrl[1]+""}
			else
			{ajax_showmovieUrl+="第"+(i+1)+"集"}
			ajax_showmovieUrl+="</li>"}
		ajax_showmovieUrl+="</ul>"
		document.getElementById("q_Ajax_Content"+id+"").innerHTML=ajax_showmovieUrl;}
 }
document.writeln("<style>");
document.writeln("* {margin:0;padding:0;}.playtitle{width:657px;border:1px solid #E1E1E1;height:28px;line-height:28px;overflow:hidden;}");
document.writeln(".playtitle .sp{width:120px;padding-left:10px; float:left;height:28px;line-height:28px;color:#669900;}");
document.writeln(".playtitle em{float:left;width:400px;font-style:normal;white-space:nowrap;overflow: hidden; }");
document.writeln(".playtitle .sps{height:28px;line-height:28px;text-align:right;float:right;width:100px;font-style:normal;margin-right:10px;font-weight:bold}.playtitle .sps a:link,.playtitle .sps a:visited{COLOR:red;height:28px;line-height:28px;}");
document.writeln(".qvod{margin:10px 0;width:93%;font-size:14px;padding:8px 8px 8px 24px;font-size:12px;");
document.writeln("	background-color:#FFF;");
document.writeln("	border:1px dashed #FF9A9A;margin-bottom:5px;}");
document.writeln(".qvod-t{border-bottom:1px dotted #ccc;padding:0px 0px 0px 20px;margin-top: 0px;}");
document.writeln(".qvod-p{text-align:center;}");
document.writeln(".qvod-c a{cursor: pointer;}");
document.writeln(".q_Ajax_Content UL {LIST-STYLE-TYPE: none;PADDING: 0px; MARGIN: 0px;}");
document.writeln(".q_tb {width:655px;CLEAR: both; BORDER: #e3e3e3 1px solid; BACKGROUND: #fff; COLOR: #666;PADDING: 0px; MARGIN: 0px;}");
document.writeln(".q_tba {BORDER-RIGHT: #fff 1px solid; BORDER-TOP: #fff 1px solid; BORDER-LEFT: #fff 1px solid; WIDTH: 100%; BORDER-BOTTOM: #e3e3e3 1px solid;PADDING: 0px; MARGIN: 0px;}");
document.writeln(".q_Ajax_Content li{FLOAT: left;}");
document.writeln("#listm{height: 25px;BORDER-BOTTOM: #e3e3e3 1px solid;font-size:14px;line-height: 25px;margin-left:7px;}");
document.writeln("#listm span{FLOAT: right;margin-right:7px;line-height:25px;height:25px;}");
document.writeln("#listm span a{line-height:25px;height:25px;}");
document.writeln(".q_Ajax_Content span {width:30px;display:block; float:left;line-height: 25px;height: 25px;} ");
document.writeln(".q_Ajax_Content em {display:block; float:right;font-style:normal;margin-right:7px;} ");
document.writeln(".q_Ajax_Content li a:link { color:#75522B; text-decoration: none;line-height: 25px;height: 25px; } ");
document.writeln(".q_Ajax_Content li a:visited { COLOR:red; text-decoration: none;line-height: 25px;height: 25px; } ");
document.writeln(".q_Ajax_Content {overflow-x: hidden;height:auto;margin: 10px;_margin: 5px 5px 0px 5px; \/* CSS Hack For IE6 *\/text-align: left;PADDING: 0px;}");
document.writeln(".q_Ajax_Content li {line-height: 25px;width:550px;height: 25px;FLOAT: left;font-size:12px;BORDER-BOTTOM: #cccccc 1px dashed}");
document.writeln("<\/style>") 
