﻿function HTMLie()
{
		 this.isIE=function()
		 {
			 var navigatorName="Microsoft Internet Explorer";
			 if(navigator.appName==navigatorName)
			 {
				 return true;
			 }
			 return false;
		 }
}

var isMyIE=new HTMLie();

if(isMyIE.isIE())
{
	var doc=document;
	eval('var document=doc;');
	document.execCommand("BackgroundImageCache",false,true); 
}

var AgainValue;
var AgainInt=15;
var TryResult="NONE";

function HTML()
{

        this.copyToClipboard=function(Url)
		{
			 var Url=document.URL;
			 var a=window.clipboardData.setData('text',Url);
			 if(a==true)
			 {
				alert("恭喜！当前网址已成功复制，请按Ctrl+v进行粘贴网址");
			 }
		}		
		
		this.Downplay=function(id,type,userid)
		{	
			 var url='/include/PlayAjax.php?id='+id+"&type="+type+"&userid="+userid;
			 var pars="";
			 var myAjax = new Ajax.Request(url,{method: 'get',asynchronous:true,parameters:pars,onComplete:this.Downplay_showResponse});
			 MyAD.PlayCount();
		}

        this.Downplay_showResponse=function(originalRequest)
        { 
		     var str=originalRequest.responseText;
			 var MyXML=new HTMLBot();
			 MyXML.WriteDown();
        } 

		this.PassWordAlert=function(id,type)
		{
			 MyDiv.BuildDiv('文件下载',"<iframe id='abc' name='abc' src='/pass.php?id="+id+"&type="+type+"' scrolling='no' border='0' frameborder='0' onload='$(\"abc\").style.display=\"block\";parent.MyDiv.Clean();parent.MyDiv.BgDiv();' height='80' style='display:none;'></iframe>",340,"Pop");
		}

		this.Down=function(id,type,userid)
		{	
			 var url='/include/DownAjax.php?id='+id+"&type="+type+"&userid="+userid;
			 var pars="";
			 var myAjax = new Ajax.Request(url,{method: 'get',asynchronous:true,parameters:pars,onComplete:this.Down_showResponse});		
			 MyAD.DownCount();
		}

		this.Down_showResponse=function(originalRequest)
		{ 
		     var str=originalRequest.responseText;
			 var MyXML=new HTMLBot();
			 MyXML.WriteDown();
		}

		this.MiaoShu=function(UserID,State,MovieID,MovieName)
		{	
			var Result=this.IsLogin();
			if(Result=="NO")
			{
					alert('请您先登录!');
			}
			else
			{
					
					var Arr=new Array();
					Arr=Result.split("|||");				
					if(Arr[1]==UserID)
					{
						  alert("您不能编辑自己的描述内容！");
					}
					else
					{
						 MyDiv.BuildDiv('提供描述',"<iframe id='abc' name='abc' src='/include/htmlmiaoshu.php?UserId="+UserID+"&MovieID="+MovieID+"&MovieName="+encodeURIComponent(MovieName)+"' width='380px' height='200' scrolling='no' border='0' frameborder='0' onload='$(\"abc\").style.display=\"block\";parent.MyDiv.Clean();parent.MyDiv.BgDiv();' style='display:none;'></iframe>",400,"Pop");	
					}
			}
		
		}

		this.addfav=function(titles)
		{
			 var Result=this.IsLogin();
			 if(Result=="NO")
			 {
				    alert('请您先登录!');
			 }
			 else
			 {
					MyAlert.LoadIt("数据请求中","200","45");
					var url='/include/fav_add.php?'+"title="+encodeURIComponent(titles)+"&url="+encodeURIComponent(document.URL);
					var pars="";
					var myAjax = new Ajax.Request(url,{method: 'get',asynchronous:true,parameters:pars,onComplete:this.fav_showResponse});		
			 }
		}

		this.fav_showResponse=function(originalRequest)
		{
			 var str=originalRequest.responseText;
 			 document.title=str;
			 MyAlert.CloseIt();
			 alert(str);
		}

		this.IsLogin=function()
		{
			 var url='/include/IsLogin.php';
			 var pars="";
			 var b;
			 var myAjax = new Ajax.Request(url,{method: 'get', asynchronous:false,parameters: pars,onComplete:function(a){b=a.responseText} });
			 return b;
		}

		var JBlogin=''; 
		this.jb=function()
		{
			var type=$("Type1").value;
			var id=$("Id1").value;
			var hideme=$("HideMe1").checked;
			var content=this.trim($("Content1").value);
			var code=$("code2").value;
			var RadioGroup1;
			var addstr='';
			for(i=0;i<document.form3.RadioGroup1.length;i++)
			{
				if(document.form3.RadioGroup1[i].checked)
				{
					RadioGroup1=document.form3.RadioGroup1[i].value;
				}
			}
			if(hideme==true)
			{
				   hideme="yes";
			}
			else
			{
				   hideme="no";
			}
			
			if($("UserName") && $("Password"))
			{
					u=this.trim($("form3").elements["UserName"].value);
					p=this.trim($("form3").elements["Password"].value);
					addstr="&username="+u+"&password="+p;
					if(MyHTML.JBlogin!='yes')
					{
					       MyHTML.JBlogin="no";
					}
			}
			else
			{
					if(content=="")
					{
					}
					else
					{
						MyHTML.JBlogin="yes";
					}
			}
			
			if(content=="")
			{
				   alert("内容不能为空")
			}
			else if(this.trim($("code2").value)=="")
			{
				   alert("请输入验证码");
			}	
			else if(MyHTML.JBlogin=="no" || MyHTML.JBlogin=="yes")
			{
				 if(MyHTML.JBlogin=="no" && hideme=="no" && this.trim(u)=="" && this.trim(p)=="")
				 {
					  alert("未登录用户只能以匿名方式发表");
				 }
				 else
				 {				 
				 
					 MyAlert.LoadIt("数据提交中","200","45");
					 $("bbsb2").disabled=true;
					 var url='/include/rep_add.php';
					 var pars="type="+type+"&id="+id+"&hideme="+hideme+"&login="+MyHTML.JBlogin+addstr+"&r="+RadioGroup1+"&code="+code+"&c="+encodeURIComponent(content);
					 var myAjax = new Ajax.Request(url,{method: 'post',asynchronous:true,parameters:pars,onComplete:this.jb_showResponse});
				 }
			}
		}

		this.jb_showResponse=function(originalRequest)
		{
			 MyAlert.CloseIt();
			 var allresult;
			 var arr=new Array();
			 arr=originalRequest.responseText.split("|||");
			 $("bbsb2").disabled=false;
			 if(arr[1]=="sucess")
			 {
					  $("Content1").value='';
					  alert(arr[0]);
					  location.href=window.location.href;
				  
			 }
			 else
			 {
					  if(arr=="sucess")
					  {
							MyHTML.jb()
					  }
					  else
					  {
							alert(arr);
					  }
			 }
		}
		
        var PLlogin=''; 
		this.pl=function()
		{
				var type=$("Type").value;
				var id=$("Id").value;
				var hideme=$("HideMe").checked;
				var content=this.trim($("Content").value);
				var code=$("code").value;
				var addstr='';
				
				if(hideme==true)
				{
					   hideme="yes";
				}
				else
				{
					   hideme="no";
				}
				
				if($("UserName") && $("Password"))
				{
						u="";
						p="";
						if(this.trim($("UserName").value)!="")
						{
							u=$("UserName").value;
						}
						if(this.trim($("Password").value)!="")
						{
							p=$("Password").value;
						}
						addstr="&username="+u+"&password="+p;
						if(MyHTML.PLlogin!="yes")
						{
						    MyHTML.PLlogin="no";
						}
				}
				else
				{
						if(content=="")
						{
						}
						else
						{
							MyHTML.PLlogin="yes";
						}
				}
				if(content=="")
				{
					 alert("内容不能为空")
				}
				else if(this.trim($("code").value)=="")
				{
					 alert("请输入验证码");
				}
				else if(MyHTML.PLlogin=="no" || MyHTML.PLlogin=="yes")
				{
					 
					 if(MyHTML.PLlogin=="no" && hideme=="no" && this.trim(u)=="" && this.trim(p)=="")
					 {
						  alert("未登录用户只能以匿名方式发表");
					 }
					 else
					 {
						 MyAlert.LoadIt("数据提交中","200","45");
						 $("bbsb1").disabled=true;
						 var url='/include/comment_add.php';
						 var pars="type="+type+"&id="+id+"&hideme="+hideme+"&login="+MyHTML.PLlogin+addstr+"&code="+code+"&c="+encodeURIComponent(content);
						 var myAjax = new Ajax.Request(url,{method: 'post',asynchronous:true,parameters:pars,onComplete:this.pl_showResponse});
					 }
				}
		}


		this.pl_showResponse=function(originalRequest)
		{
			 MyAlert.CloseIt();
			 var allresult;
			 var arr=new Array();
			 $("bbsb1").disabled=false;
			 arr=originalRequest.responseText.split("|||");
			 if(arr[1]=="sucess")
			 {
					  $("Content").value='';
					  if($("partbbs1"))
					  {
							$("partbbs1").innerHTML=arr[2]+$("partbbs1").innerHTML;
					  }
					  if($("partbbs2"))
					  {
							$("partbbs2").innerHTML=arr[3]+$("partbbs2").innerHTML;
					  }				  
					  MyHTML.getcode1()
			 }
			 else
			 {
					  if(arr=="sucess")
					  {

							var Result=MyHTML.IsLogin();
							var Arr=new Array();
							Arr=Result.split("|||");
							if(Arr[2]!=undefined)
							{
							}
							if($("loginfra1"))
							{
									$("loginfra1").innerHTML=Arr[2];
							}
							MyHTML.PLlogin="yes";
							MyHTML.pl();
					  }
					  else
					  {
							alert(arr);
							MyHTML.getcode1()
					  }
			 }
		}

		this.getcode2=function()
		{
			 var c=Math.random();
			 $("form3").elements["codeimg2"].src='../include/bbscode.php?c='+c;
		}
		
		this.getcode1=function()
		{
			 var c=Math.random();
			 $("codeimg1").src='../include/bbscode.php?c='+c;
		}

		this.adddisk=function(recordid,type)
		{	
			 var Result=this.IsLogin();
			 if(Result=="NO")
			 {
				alert('请您先登录!');
			 }
			 else
			 {
				MyAlert.LoadIt("数据提交中","200","45");
				var url='/include/Htmladddisk.php';
				var pars="id="+recordid+"&type="+type;
				var myAjax = new Ajax.Request(url,{method: 'post',asynchronous:true,parameters:pars,onComplete:this.disk_showResponse});
			 }
		
		}
		
		this.disk_showResponse=function(originalRequest)
		{
			 MyAlert.CloseIt();
			 var str=originalRequest.responseText;
			 var MyStr=str.split('|||');
			 alert(MyStr[1]);
		}

		this.setcomments=function(id,s,type)
		{
			 MyAlert.LoadIt("数据提交中","200","45");
			 var url='/include/addcomments.php'+"?id="+id+"&dowhat="+s+"&type="+type;
			 var pars='';
			 var myAjax = new Ajax.Request(url,{method: 'get',asynchronous:true,parameters:pars,onComplete:this.setcomments_showResponse})
		}

		this.setcomments_showResponse=function(originalRequest)
		{
			 MyAlert.CloseIt();
			 var str=originalRequest.responseText;
			 arr=new Array();
			 arr=str.split("|||");
			 if(arr[1]=="yes")
			 {
				var MyXML=new HTMLBot();
				MyXML.WriteCmments(arr[2]);
				alert(arr[0]);
			 }
			 else
			 {
				alert(arr[0]);
			 }
		}

		this.addlrc=function(recordid)
		{
			 var Result=this.IsLogin();
			 if(Result=="NO")
			 {
				 alert("你尚未登录!");
			 }
			 else 
			 {
				 MyDiv.BuildDiv('文件下载',"<iframe id='abc' name='abc' src='/include/addlrc.php?id="+recordid+"' scrolling='no' border='0' frameborder='0' onload='$(\"abc\").style.display=\"block\";parent.MyDiv.Clean();parent.MyDiv.BgDiv();' height='60' style='display:none;'></iframe>",340,"Pop");				
			 }
		}

		this.limitstr=function(getstr,objectstr,limitnun,limitnun2)
		{
			 var mystr;
			 if(getstr!=undefined)
			 {
				  mystr=this.trim(getstr);
				  if((mystr.length>limitnun2 || mystr.length<limitnun) && mystr.length>0)
				  {
						 $(objectstr).value=mystr.substr(0,limitnun2);
						 alert("文字范围"+limitnun+"至"+limitnun2+"个字,超出部分系统自动截取");
						 if($('ns'))
						 {
							   $('ns').innerHTML='目前有'+($(objectstr).value.length)+'个字'
						 }
						 if($('ns1'))
						 {
							   $('ns1').innerHTML='目前有'+($(objectstr).value.length)+'个字'
						 }		 
						 return false;
				  }
			} 
		}

		this.trim=function(str1)
		{
			 str1=str1.replace(/^ +/,"");
			 str1=str1.replace(/^ +/,"");
			 str1=str1.replace(/ +$/,"");
			 str1=str1.replace("object","");
			 str1=str1.replace(/<.*?>/g,"");
			 str1=str1.replace(/\</,"");
			 str1=str1.replace(/\r\n/ig,"<br/>")
			 return str1;
		}

		this.setTab=function(m,n)
		{
			var tli=$("menu"+m).getElementsByTagName("li");
			var mli=$("main"+m).getElementsByTagName("ul");
			for(i=0;i<tli.length;i++)
			{
			    tli[i].className=i==n?"hover":"";
			    mli[i].style.display=i==n?"block":"none";
			}
		}
		
		this.getRequestBody=function(oForm)
		{
			 var aParams=new Array();
			 for(var i=0;i<oForm.elements.length;i++)
			 {
				 var sParam=encodeURIComponent(oForm.elements[i].name);
				 sParam+="=";
				 sParam+=encodeURIComponent(oForm.elements[i].value);
				 aParams.push(sParam);
			 }
			 return aParams.join("&");
		}
		
		this.DownErr=function()
		{
			 alert("服务器忙,请稍后刷新页面再试");
		}
		
		this.DownSucess=function()
		{
			 alert("请求完毕,请点击[下载]按钮下载");
		}
		
		this.AgainGetDownStatus=function()
		{
			 try
			 {
				    var UrlA=sssDownUrl+decodeURIComponent(FileURL)+"?a="+b;
				    $("downAHrefA").href=UrlA;
				    TryResult="SUCESS";
					clearInterval(AgainValue);
				    MyAlert.CloseIt();
					MyHTML.DownSucess();
			 }
			 catch(e)
			 {
					$("tDate").innerHTML=" ("+AgainInt+"秒)";
					AgainInt--;
			 }
			 
			 if(AgainInt<=0)
			 {
					TryResult="FAILE";
					MyAlert.CloseIt();
					clearInterval(AgainValue);
					MyHTML.DownErr();
			 }
		}
		
		this.DownHyperlinkinitialize=function()
		{
			 if(FShare==1)
			 {
			      if(TryResult=="NONE")
				  {
					   try
					   {
							 var UrlA=sssDownUrl+decodeURIComponent(FileURL)+"?a="+b;
							 $("downAHrefA").href=UrlA;
					   }
					   catch(e)
					   {
							 if(SwapUrl=="3")
							 {
								 this.DownErr();
							 }
							 else
							 {
						 
							      MyAlert.LoadIt("正在请求下载网址","210","45");
						          AgainValue=setInterval("MyHTML.AgainGetDownStatus()",1000);
							 }
					   }
				  }
				  else if(TryResult=="FAILE")
				  {
					   this.DownErr();
				  }
				  return false;
				  
			 }
			 else if(FShare==2)
			 {
				  $("downAHrefA").href="javascript:MyHTML.PassWordAlert('"+MID+"','"+HtmlT+"');";
			 }
			 else
			 {
				  $("downAHrefA").href="javascript:;";
			 }
		}		
		
		this.DownInitialize=function()
		{
		 
		}

		
		this.PlayInitialize=function()
		{
			 var PlayU;

			 if(HtmlT=="movie")
			 {
				  if(FType==".swf")
				  {
					   PlayU="http://movie.sotee.com/online_play.php?id="+MID+"&userid="+UID;
				  }
				  else if(EnCode!='' && EnCode!='NULL')
				  {
					   PlayU="http://movie.sotee.com/"+FDir+"/"+MID+".html";
				  }
				  else
				  {
					   PlayU="http://movie.sotee.com/online/play.php?id="+MID;
				  }
			 }
			 else if(HtmlT=="music")
			 {
				  PlayU="http://music.sotee.com/online_play.php?id="+MID+"&userid="+UID;
			 }
			 $("downAHrefB").href=PlayU;
	    }
		
		this.IsLeft=function(event)
		{
			 function isIE()
			 {
				 return (document.all && window.ActiveXObject && !window.opera) ? true : false;
			 }
			 
			 e=isIE()?window.event:event; 

			 if(isIE())
			 {
				  if(e.button==2)
				  {
					  if(typeof(HtmlUId)!='undefined')
					  {
						  MyHTML.Down($("Id"),$("Type"),HtmlUId);
					  }
				  }
			 }
			 else 
			 {
				  if(e.which==3)
				  {
					  if(typeof(HtmlUId)!='undefined')
					  {
						  MyHTML.Down($("Id"),$("Type"),HtmlUId);
					  }
				  }
			 }	
		}
		
		this.ShareFile=function(Codes,Titles)
		{
			 MyDiv=new CreateDivOne();
			 p=$("GoShare").getBoundingClientRect();
			 var tTop=parseInt(document.documentElement.scrollTop)+parseInt(p.top)+35;
			 var tLeft=p.left-300;
			 var Embed="transparent";
			 
			 if(this.isIE())
			 {
				 Embed="window"; 
			 }
			 var tCode='<embed src=" http://movie.sotee.com/SoteeV1.swf"  type="application/x-shockwave-flash" width="518" height="429"scale="noborder" wmode="'+Embed+'" flashvars=config=com/config/soteeplayerConfig.xml&width=518&height=429&autoPlay=1&v='+Codes+'&Title='+Titles+'"></embed>';
			 
			 var tContent='HTML代码：<input type="text" id="CutFlvCode" value="" onmouseover="this.select()" name="CutFlvCode" style="width:240px" />&nbsp;&nbsp; <input type=\"button\" id=\"FUZHI\" name=\"FUZHI\" value=\"复制\" style=\"width:50px\" onclick=\"MyHTML.CopyText()\" /> ';
             MyDiv.BuildDiv('把视频分享到博客或论坛',tContent,400,60,"Pop",tTop,tLeft);	
			 $("CutFlvCode").value=tCode;
		}
		
		this.ChildTitle=function()
		{
			 MyDiv.ChildDivs('在撰写文章的时切换到HTML编辑模式,在指定位置粘贴当前HTML代码',380,20,"Pop","SHUOMING");	
	    }
		
		this.isIE=function()
		{
			 return (document.all && window.ActiveXObject && !window.opera) ? true : false;
		}		
		
		this.CopyText=function()
		{
			 window.clipboardData.setData("Text",$("CutFlvCode").value); 
		}		
		
}

function AlertJsFun()
{
		var W=screen.width;//取得屏幕分辨率宽度
		var H=screen.height;//取得屏幕分辨率高度
		
		//判断浏览器是否为IE
		this.isIE=function()
		{
			 return (document.all && window.ActiveXObject && !window.opera) ? true : false;
		} 

		
		this.LoadIt=function(info,w,h)
		{
			 $("SubDiv").innerHTML="<table><tr><td><img src='/js/layer/images/05043143.gif'></td><td>"+info+"<font id='tDate'></font></td></tr></table>";

			 var MDiv=$("MDiv");
			 var SubDiv=$("SubDiv");
			  
			 MDiv.style.width =w+"px";
			 MDiv.style.height=h+"px"; 			 
			 MDiv.style.display="block";
			 MDiv.style.position="absolute";
			 MDiv.style.border="0px";
			 MDiv.style.left="0px";
			 MDiv.style.top="0px";
			 MDiv.style.background="#F6F6F6";
			 MDiv.style.width=parseFloat(document.body.clientWidth)-200+"px";
			 MDiv.style.height=document.body.clientHeight+"px"; 
			 if(this.isIE())
			 {
				   MDiv.style.filter="Alpha(Opacity=0)";
			 }
			 else
			 {
				   MDiv.style.opacity=0.6;
			 }
			 MDiv.style.zIndex="998";
			 SubDiv.style.display="block";
			 SubDiv.style.position="absolute";
			 SubDiv.style.border="1px solid #CCCCCC";
			 SubDiv.style.background="#F6F6F6";
			 SubDiv.style.left=(W/2-100)+"px";
			 SubDiv.style.top=(document.documentElement.scrollTop+document.documentElement.clientHeight/2-100)+"px";
			 SubDiv.style.width =w+"px";
			 SubDiv.style.height=h+"px"; 
			 SubDiv.style.zIndex="997";
		}
		
		this.CloseIt=function()
		{
			  $('MDiv').style.display='none';
			  $("SubDiv").style.display='none';
		}		
}

document.write('<div id="SubDiv" style="font-size:14px;text-align:center;display:none;line-height:40px" ></div>');
document.write('<div id="MDiv" style="display:none"></div>');

function BBS()
{
	     this.SetTab=function(Value)
		 {
			  if(Value=="A")
			  {
				  $("Tab1").style.display="block";
				  $("Tab2").style.display="none";
				  $("TabLi1").style.background="url(/images/movie_i/movie_19.png) repeat-x";
				  $("TabLi2").style.background="";
				  
			  }
			  else if(Value=="B")
			  {
				  $("Tab2").style.display="block";
				  $("Tab1").style.display="none";
				  $("TabLi2").style.background="url(/images/movie_i/movie_19.png) repeat-x";
				  $("TabLi1").style.background="";
			  }			  
		 }
		 
	     this.SetRenQi=function(Value)
		 {
			  if(Value=="A")
			  {
				  $("RenQi1").style.display="block";
				  $("RenQi2").style.display="none";
				  $("RenQiTab1").style.borderBottom=""; 
				  $("RenQiTab2").style.borderBottom="1px solid #ccc"; 
			  }
			  else if(Value=="B")
			  {
				   $("RenQi2").style.display="block";
				   $("RenQi1").style.display="none";
				   $("RenQiTab1").style.borderBottom="1px solid #ccc"; 
				   $("RenQiTab2").style.borderBottom=""; 
			  }			  
		 }		 
}

var MyTab=new BBS();
var MyAlert=new AlertJsFun();
var MyHTML=new HTML();


window.onload=function()
{
	   if($("loadpart1"))
	   {
	       $("loadpart1").style.display="block"; 
	   }
	   
	   if($("loadpart2"))
	   {
	       $("loadpart2").style.display="none"; 
	   }
	   
	   if(typeof(a)=='undefined')
	   {
		   if($("midgg"))
		   {
		       $("midgg").style.display="none";
		   }
	   }
	   else
	   {
		   if($("midgg"))
		   {
		       $("midgg").style.display="block";
		   }
	   }
	   
	   if($("downAHref"))
	   {
		   $("downAHref").onmousedown=function(event)
		   {
				MyHTML.IsLeft(event);
		   }
       }
	   
	   if($("midgg"))
	   {
	       $("midgg").style.display="block";
	   }
	   
       if(typeof(SwapUrl)!='undefined')
       {
		   var MyXML=new HTMLBot();
		   MyXML.ReadXml();
	   }
	   
       var dom = document.createElement('iframe');    
	   //dom.setAttribute('src','/js/_gg/html/iframe.php');    
	   dom.setAttribute('src','/js/_gg/selfAD.php');    
	   dom.setAttribute('id','a1');    
	   dom.setAttribute('width','1px');
	   dom.setAttribute('height','1px');
	   dom.setAttribute('frameborder','0');
	   dom.setAttribute('style','display:none;');
	   dom.setAttribute('style','margin-top:-40px;');
	   dom.setAttribute('style','margin-left:-10px;');
	   document.body.appendChild(dom);
	   
       /*var dom = document.createElement('iframe');    
	   dom.setAttribute('src','/js/_gg/lm.html');    
	   dom.setAttribute('id','a2');    
	   dom.setAttribute('width','120px');
	   dom.setAttribute('height','50px');
	   dom.setAttribute('frameborder','0');
	   dom.setAttribute('scrolling','no');
	   dom.setAttribute('border','no');	   
	   //dom.setAttribute('style','display:none;');
	   dom.setAttribute('marginheight','0');
	   dom.setAttribute('marginwidth','0');	   
	   dom.setAttribute('style','border-style:none #ffffff solid;');
	   //dom.setAttribute('style','margin-left:-10px;');
	   //$('liumang').appendChild(dom);*/   
       
	   if($("lmjs"))
	   {
		   var oScript=document.createElement("script");
		   oScript.setAttribute('type','text/javascript'); 
		   oScript.setAttribute('src','/js/_gg/lm.js'); 
		   $("lmjs").appendChild(oScript);
	   }
}

document.writeln("<script type=\"text\/javascript\"");
document.writeln("  src=\"\/js\/layer\/Div.js\">");
document.writeln("<\/script>");

document.writeln("<script type=\"text\/javascript\"");
document.writeln("  src=\"\/js\/layer\/OneDiv.js\">");
document.writeln("<\/script>");

document.writeln("<script type=\"text\/javascript\"");
document.writeln("  src=\"\/js\/disk\/disk.js\">");
document.writeln("<\/script>"); 

document.writeln("<script type=\"text\/javascript\"");
document.writeln("  src=\"\/js\/_gg\/var\/PlayAndDownGlbalVar.js\">");
document.writeln("<\/script>");

document.writeln("<script type=\"text\/javascript\"");
document.writeln("  src=\"\/js\/G_G.js\">");
document.writeln("<\/script>");

document.writeln("<script type=\"text\/javascript\"");
document.writeln("  src=\"\/js\/alldisk.js\">");
document.writeln("<\/script>");


function MovieS(S_ADID,S_IMGURL,S_BIGPIC,S_SPIC,S_WIDTH,S_HEIGHT,S_CLICK,S_HREF)
{$("ADJS"+S_ADID).style.display="none";$("BIGADJS"+S_ADID).style.display="block";}
function MovieB(S_ADID,S_IMGURL,S_BIGPIC,S_SPIC,S_WIDTH,S_HEIGHT,S_CLICK,S_HREF)
{$("ADJS"+S_ADID).style.display="block";$("BIGADJS"+S_ADID).style.display="none";}
