function movepic(img_name,img_src) {
document[img_name].src=img_src;
}

function movebg(id,src) {
document.getElementById(id).background=src;
}


function show_menu(x) 
					{ 
						if(tpxw == x)
						{
					
						tpxw.style.visibility="visible"
						MediaPlayer.pause(); 
						}
						else
						{
					
						tpxw.style.visibility="hidden"
						
						}
						if(spxw == x)
						{
					  MediaPlayer.pause(); 
						spxw.style.visibility="visible";

						}
						else
						{
					
						spxw.style.visibility="hidden";
						
						}
					}	

function show_menu1(x,y) 
					{ 
						for(var id = 1;id<y+1;id++)
						{
							var law="law"+id;
							if(x == law)
							{					   
							document.getElementById(law).style.visibility="visible";
							}
							else
							{
							document.getElementById(law).style.visibility="hidden";
							}
						}
					}
function show_menux(x,y) 
					{ 
						for(var id = 0;id<y;id++)
						{
							var law1="law1"+id;
							if(x == law1)
							{					   
							document.getElementById(law1).style.visibility="visible";
							}
							else
							{
							document.getElementById(law1).style.visibility="hidden";
							}
						}
					}

function show_menu2(x,y) 
					{ 
						for(var id = 0;id<=y;id++)
						{
							var law="law"+id;
							if(x == law)
							{					   
							document.getElementById(law).style.display="block";
							}
							else
							{
							document.getElementById(law).style.display="none";
							}
						}
					}		
function show_menu11(x,y) 
					{ 
						y=y+10;
						for(var id = 11;id<=y;id++)
						{
							var law="law"+id;
							if(x == law)
							{					   
							document.getElementById(law).style.visibility="visible";
							}
							else
							{
							document.getElementById(law).style.visibility="hidden";
							}
						}
					}	
function show_menu21(x,y) 
					{ 
						y=y+20;
						for(var id = 21;id<=y;id++)
						{
							var law="law"+id;
							if(x == law)
							{					   
							document.getElementById(law).style.visibility="visible";
							}
							else
							{
							document.getElementById(law).style.visibility="hidden";
							}
						}
					}

					
function doClick(o){    
     o.className="nav_current";   
     var j;   
     var id;   
     var e;   
     for(var i=1;i<=8;i++){   
       id ="td"+i;
       j = document.getElementById(id);   
       e = document.getElementById("sub"+i); 
       if(id != o.id){   
         e.style.display = 'none';   
       }else{   
        e.style.display = 'block';   
       }   
     }   
}

 
 function Player(src,w,h){


	var x=w;
	var y=h;
	var url = src;
	var type = url.replace(/.+[\/\.]/g,'');

	var wmp = "wmv,mp3,mpeg,wma";
	var rm = "rm,ram,rmvb,3gp";
	var flv = "flv";

	if(!x) {x=245}
	if(!y) {y=185}

	if(wmp.indexOf(type)!=-1)
	{
		try
		{
			 WMP();
				var mp = document.getElementById("MediaPlayer");
				mp.style.display = "block";
				mp.setAttribute("Filename",url);
				mp.width=x;
				mp.height=y;
		}
		catch (e)
		{
			alert("你的机器可能没有装window media player 播放器,所以无法观看,请安装");
		}

	}
else if (rm.indexOf(type)!=-1)
	{
		 try
		 {
			RM();
			var rp = document.getElementById("RmPlayer");
			rp.style.display = "block";
			rp.SetSource(url);
			rp.width=x;
			rp.height=y;
		 }
		 catch (e)
		 {
			alert("你的机器可能没有安装RealPlayer播放器,请安装后观看");
		 }
	}
else if (flv.indexOf(type)!=-1)
	{

		 try
		 {
			FLV(url);
			var fp = document.getElementById("FlashPlayer");
			fp.style.display = "block";
			
		 }
		 catch (e)
		 {
			alert("你的机器可能没有安装Flash播放器,请安装后观看");
		 }
	}
}

 function Player1(id,src,w,h){
	var outElement = document.getElementById(id);

	var x=w;
	var y=h;
	var url = src;
	var type = url.replace(/.+[\/\.]/g,'');

	var wmp = "wmv,mp3,mpeg,wma";
	var rm = "rm,ram,rmvb,3gp";
	var flv = "flv";

	if(!x) {x=245}
	if(!y) {y=185}

	if(wmp.indexOf(type)!=-1)
	{
		try
		{
				outElement.innerHTML = WMP1(x,y,url);
				//var mp = document.getElementById("MediaPlayer");
				//mp.style.display = "block";
				//mp.setAttribute("Filename",url);
				//mp.width=x;
				//mp.height=y;
		}
		catch (e)
		{
			alert("你的机器可能没有装window media player 播放器,所以无法观看,请安装");
		}

	}
else if (rm.indexOf(type)!=-1)
	{
		 try
		 {
			outElement.innerHTML =RM1(x,y,url);
		//	var rp = document.getElementById("RmPlayer");
		//	rp.style.display = "block";
		//	rp.SetSource(url);
		//	rp.width=x;
		//	rp.height=y;
		 }
		 catch (e)
		 {
			alert("你的机器可能没有安装RealPlayer播放器,请安装后观看");
		 }
	}
else if (flv.indexOf(type)!=-1)
	{

		 try
		 {
			outElement.innerHTML =FLV1(url);
			var fp = document.getElementById("FlashPlayer");
			fp.style.display = "block";
			
		 }
		 catch (e)
		 {
			alert("你的机器可能没有安装Flash播放器,请安装后观看");
		 }
	}
}




function WMP(){

document.write("<object  class=OBJECT classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95  id=MediaPlayer  style=display:none>");
document.write("<param name=ShowStatusBar value=0>")
document.write("<param name=AutoStart value='false'>")
document.write("<param name=Filename value=''>")
document.write("</object>");

}
function WMP1(x,y,url){
   var sb = ""
	sb += "<object width='"+x+"' height='"+y+"'  class=OBJECT classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95  id=MediaPlayer >";
	sb += "<param name=ShowStatusBar value=0>";
	sb += "<param name=AutoStart value='true'>";
	sb +="<param name=Filename value='"+url+"'>";
	sb += "</object>";
	return sb;
}

function RM(){
document.write("<object id='RmPlayer' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'   style='display:none'>")
document.write("<param name='AUTOSTART' value='0'>");
document.write("<param name='SHUFFLE' value='0'>")
document.write("<param name='PREFETCH' value='0'>")
document.write("<param name='SRC' value='';>")
document.write("<param name='CONTROLS'value='Imagewindow,controlpanel'>")
document.write("<param name='CONSOLE' value='clip1'>")
document.write("<param name='NUMLOOP' value='0'>")
document.write("<param name='MAINTAINASPECT' value='0'>")
document.write("</object>")
}
function RM1(x,y,url){
	var sb ="";
	sb +=  "<object id='RmPlayer' width='"+x+"' height='"+y+"' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' >";
	sb +=  "<param name='AUTOSTART' value='0'>";
	sb +=  "<param name='SHUFFLE' value='0'>";
	sb +=  "<param name='PREFETCH' value='0'>";
	sb +=  "<param name='SRC' value='"+url+"'>";
	sb +=  "<param name='CONTROLS'value='Imagewindow,controlpanel'>";
	sb +=  "<param name='CONSOLE' value='clip1'>";
	sb +=  "<param name='NUMLOOP' value='0'>";
	sb +=  "<param name='MAINTAINASPECT' value='0'>";
	sb +=  "</object>";
	return sb;
}

function FLV(url){
var url=url;
document.write("<object type='application/x-shockwave-flash' data='flv.swf' width='200' height='150' id='FlashPlayer'>")
document.write("<param name='movie' value='flv.swf'/>")
document.write("<param name='allowFullScreen' value='true' />")
document.write("<param name='FlashVars' value='xml=<vcastr><channel><item><source>"+url+"</source><duration></duration><title></title></item></channel></vcastr>'/></param>")
document.write("</object>")
}

function FLV1(url){
	var url=url;
	var sb = "";
	sb += "<object type='application/x-shockwave-flash' data='flv.swf' width='200' height='150' id='FlashPlayer'>";
	sb += "<param name='movie' value='flv.swf'/>";
	sb += "<param name='allowFullScreen' value='true' />";
	sb += "<param name='FlashVars' value='xml=<vcastr><channel><item><source>"+url+"</source><duration></duration><title></title></item></channel></vcastr>'/></param>";
	sb += "</object>";
	return sb;
}


function fontZoom(size)
{ 
document.getElementById('fontzoom').style.fontSize=size+'px'
}

function openwin(){
var openwin=0;
  if(openwin){
    if(!openwin.closed){openwin.close();}
  }
openwin = window.open('/szllm/wsdc/index.htm', 'wsdc','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width=200,height=230,left=100,top=100,screenX=600,screenY=200');
openwin.focus();
}
	
	
function marquee1()                       
{                       
  document.write("<div style='width:100%;overflow:hidden;' id=marquee onmouseover=clearInterval(repeat)  onmouseout=repeat=setInterval(scrollMarquee,1)>")                       
}                       
function marquee2()                       
{                 
  document.write("</div>")    
  marquee.childNodes[0].align='left'; 
  
  if(marquee.childNodes[0].offsetWidth>marquee.offsetWidth) { 
   marquee.appendChild(marquee.childNodes[0].cloneNode(true)); 
   } 
  else { 
   for(var i=0;i<Math.round(marquee.offsetWidth/marquee.childNodes[0].offsetWidth)+1;i++) { 
    marquee.appendChild(marquee.childNodes[0].cloneNode(true)); 
    } 
   } 
  repeat=setInterval(scrollMarquee,1); 
}                       
function scrollMarquee() { 
 if(marquee.scrollLeft<marquee.childNodes[0].offsetWidth) 
  marquee.scrollLeft++; 
 else  
  marquee.scrollLeft=0; 
  }   
  
  




function tablezk(y){
	for(var id = 0;id<=y;id++)
	{
		if(id==y)
		{
			var x="table"+id;
			if (document.getElementById(x).style.display == 'none')	
			{
				document.getElementById(x).style.display = 'block';
			}
			else
			{document.getElementById(x).style.display = 'none';}	
		}
	}
}

function chjpg(y){
	for(var id = 0;id<=y;id++)
	{
		if(id==y)
		{
			var x="qian"+id;
			var z="table"+id
			if(document.getElementById(z).style.display == 'none')
				{
					document.getElementById(x).src='/images/plusbottom.gif';	
				}
			else
				{
					document.getElementById(x).src='/images/minusbottom.gif';}
		}	
	}	
}

function $G(){
var Url=window.location.href;
var u,g,StrBack='';
if(arguments[arguments.length-1]=="#")
    u=Url.split("#");
else
    u=Url.split("?");
if (u.length==1) g='';
else g=u[1];

if(g!=''){
    gg=g.split("&");
    var MaxI=gg.length;
    str = arguments[0]+"=";
    for(xm=0;xm<MaxI;xm++){
       if(gg[xm].indexOf(str)==0) {
         StrBack=gg[xm].replace(str,"");
         break;
       }
    }
}
return StrBack;
}


function openDC(){
var openwin=0;
if(openwin){
if(!openwin.closed) openwin.close();}
openwin = window.open('/xxsz/wsdctcy/index.htm', 'wsdc','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width=200,height=230,left=100,top=100,screenX=600,screenY=200');
openwin.focus();
}
function input(y)
	{
		document.all.input1.value=y;	
	}


function hide()
	{
		setTimeout('hideWaiCeng()',2000);	
	}
			
function hideSub()
	{  
		document.getElementById("subChannel").style.visibility = "hidden";
		document.getElementById("scroll").style.visibility = "visible";
	}

function showSub()
	{
		document.getElementById("subChannel").style.visibility = "visible";
		document.getElementById("scroll").style.visibility = "hidden";
	}
function hideSub2()
	{  
		document.getElementById("subch").style.visibility = "hidden";
	}

function showSub2()
	{
		document.getElementById("subch").style.visibility = "visible";
	}

