//window.onerror=function(){return true}
var A=new Function('obj','return alert(obj);')
Array.prototype.A_suv=function(){var reg,s,temp=this,i=0
if(temp=="" )return false
do{reg=eval("/\\b"+temp[i]+"\\b/g")
if(temp.toString().match(reg).length>1){temp.splice(i,1);i=0}else i++}while(i<temp.length)
return temp}
Array.prototype.A_Del=function(O,G){
var t1,t2
G?t1=eval("/\\b"+O+"\,|\,"+O+"\\b/g"):t1=eval("/\\b"+O+"\,|\,"+O+"\\b/");with(this){if(length==1)t1=O;t2=toString().replace(t1,"");t2==""?splice(0,length):eval("splice(0,length,"+t2+")")};return this}
var D=new Function('obj','return obj!="body"?document.getElementById(obj):document.body;')
var Dn=new Function('obj','return document.getElementsByName(obj);')
var E=new Function('e','return !e?window.event:e')
var Dt=new Function('obj','return document.getElementsByTagName(obj);')
var D_id_tag=new Function('id,tag','return document.getElementById(id).getElementsByTagName(tag)')
var IE=new Function('','var N=navigator.appName;if(N.indexOf("Explorer")>=0)return 1;if(N.indexOf("Netscape")>=0)return 2;if(N.indexOf("Opera")>=0)return 3')
var W=new Function('str','return document.write(str)')
var Today=new Date()
var Get_body_wh=new Function('N','return N==0?document.body.offsetWidth:document.body.offsetHeight')
var Get_win_wh=new Function('N','return N==0?document.documentElement.offsetWidth:document.documentElement.offsetHeight')
var Get_scr_LT=new Function('str','if(str==0){return document.documentElement.scrollLeft}else{return document.documentElement.scrollTop}')
var Get_scr_xy=new Function('str','if(str==0){return document.documentElement.scrollLeft}else{return document.documentElement.scrollTop}')
var Get_scr_wh=new Function('str','if(str==0){return document.body.scrollWidth}else{return document.body.scrollHeight}')
var xd_var={}
var Get_top_scr_LT=new Function('str','if(str==0){return top.document.documentElement.scrollLeft}else{return top.document.documentElement.scrollTop}')
var Set_scr_LT=new Function('str,n','if(str==0){return document.documentElement.scrollLeft=n}else{return document.documentElement.scrollTop=n}')
var Get_key=Function('e','return E(e).keyCode')
var Set_top_scr_LT=new Function('str,n','if(str==0){return top.document.documentElement.scrollLeft=n}else{return top.document.documentElement.scrollTop=n}')
var IE_lt=new Function('str','if(str==0){return window.screenLeft}else{return window.screenTop}')
var FF_lt=new Function('str','if(str==0){return window.screenX}else{return window.screenY}')
var Get_win_lt=new Function('str','if(str==0){if(IE()==1){return IE_lt(0)}else{return FF_lt(0)} }else{if(IE()==1){return IE_lt(1)}else{return FF_lt(1)}}')
var Get_mou_xy=new Function('E,N','if(N==0){return E.pageX?E.pageX:E.clientX}else{return E.pageY?E.pageY:E.clientY}');
var Get_mou_lr=new Function('obj','return obj.button');
var Get_obj_wh=new Function('obj,str','if(str==0){return document.getElementById(obj).offsetWidth}else{return D(obj).offsetHeight}')
var tag_js='<script name="xdjs" id="xdjs" language="JavaScript"><\/script>'
function clicks(e){
IE()==1?(function(){if(event.button==2||event.button==3)oncontextmenu='return false';}()):(function(){if(e.which==3)oncontextmenu='return false'}())}
function no_click(){with(document){if(IE()!=1)captureEvents(Event.MOUSEDOWN);onmousedown=clicks;oncontextmenu=new Function("return false;")};}
var Set_obj_wh=new Function('obj,str,n','if(str==0){return D(obj).style.width=n}else{return D(obj).style.height=n}')
var Get_obj_lt=new Function('obj,str','if(str==0){return D(obj).offsetLeft}else{return D(obj).offsetTop}')
var Set_obj_lt=new Function('obj,str,n','str?D(obj).style.top=n+"px":D(obj).style.left=n+"px"')
var Set_tag_att=new Function('O,att,V','var o=O.getAttribute(att);if(o=="[object]"){o.setAttribute("cssText",V);O.setAttribute(att,V)}else O.setAttribute(att,V)')
var Get_tag_att=new Function('obj,str','return eval(obj).getAttribute(str);')
var Del_tag_att=new Function('obj,str','return eval(obj).removeAttribute(str)')
var tag_no_server='<noscript><iframe scr="*.htm"></iframe></noscript>'
var Get_url=new Function('str','switch(str){case 0:return location.hostname;break;case 1:return location;break;case 2:return location.search.substring(1);break}')
var C_L=new Function('str,s,b','if(str.length<s||str.length>b)return false;else return true')
var N_L=new Function('str,s,b','if(str==""||isNaN(str)||str<s||str>b)return false;else return true')
function Xml_obj(){try{return new ActiveXObject('Microsoft.XMLHTTP')}catch(e){try{return new XMLHttpRequest()}catch(e){return null};}}
var Url_index=Function('N','var u=new Array();for(var i=0;i<Get_url(1).toString().length;i++)if(Get_url(1).toString().charAt(i)=="/")u.push(i);return (u.reverse()[N-1])')
var Go_path=new Function('N','return(Get_url(1).toString().substring(0,Url_index(N)))')
Number.prototype.Round=function(){var O=this.toString().split(".")
with(Math)return abs(O[0]+"."+ceil(O[1].substr(0,2)*0.1))}
String.prototype.Get_path=function(N){
var p=this.toString(),L
p.match(/http\:|ftp\:/)==null?L=1:L=0
switch(N){case 0:	
	   L?(function(){
	   if(p.match(/\\/g).length>1)p=p.substr(0,/\w\\/g.exec(p).lastIndex-1)
	   })():(function(){
	   if(p.match(/\w\/\w/g).length>1)p=p.substr(0,/\w\//g.exec(p).lastIndex-1)
	   })()
	break;
	case 1:
	   L?p=p.substr(0,p.lastIndexOf("\\")):p=p.substr(0,p.lastIndexOf("\/"))
	break;
	default:
	   L?p=p.substr(p.lastIndexOf("\\")+1):p=p.substr(p.lastIndexOf("\/")+1)
}
return p
}

var Goto=new Function('url,target','return (target=="blank")?window.open(url,""):eval(target).location=url')
var Bookmark=Function('str','IE()==1?window.external.AddFavorite(str,"心动网络"):window.sidebar.addPanel("心动网络", str,"")')

function Sethomepage(url){
if(IE()==1)with(document.body){style.behavior='url(#default#homepage)';setHomePage(url)}else{ 
try{ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}
catch (e){
alert( "该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true" )}
var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
prefs.setCharPref('browser.startup.homepage',top.location);}
} 
var Re=new Function('obj,str1,str2','return obj.replace(eval(str1),str2)')
var Get_Dat=new Function('S','S.match(/\\./g);;return RegExp.rightContext')
String.prototype.Request=function(O){
	var reg = new RegExp("\\b"+O+"=[^&]+","g");
	var ss=reg.exec(this)
	var reg = new RegExp("[^"+O+"=]+","g");
	return reg.exec(ss)
}
function Set_cookie(key,obj,time){
var tt
var expireDay=new Date()
switch(time){
case 0:tt=0;break;
case 1:tt=24*60*60*1000;break;
case 2:tt=24*60*60*1000*31;break;
case 3:tt=24*60*60*1000*31*12;break;
case 4:tt=100000000000;break;
default :tt=time}
expireDay.setTime(Today.getTime()+tt)
var arg = arguments;
var argl = arguments.length;
var path =(argl> 3)?arg[3]:null;
var domain =(argl>4)?arg[4]:null;
var secure =(argl>5)?arg[5]:false;
document.cookie=escape(key)+"="+escape(obj)+";expires="+expireDay.toGMTString()+
((path == null)?"":("; path="+ path))+
((domain == null)?"":("; domain="+domain))+
((secure == true) ? "; secure":"");
}
function Get_cookie(key){
var key=key+"=";
var N1=document.cookie.indexOf(key)
if(N1<0) return "Null"
else {
var N2=document.cookie.indexOf(";",N1)
N2>0?N2=document.cookie.indexOf(";",N1):N2=document.cookie.length
return document.cookie.slice(N1+key.length,N2)}
}
function Del_cookie(key){document.cookie=key+"=;expires="+Today.toGMTString()}
function Set_tag(type){
var temp1=type.split(","),temp2,temp3,tag
for(var i=0;i<temp1.length;i++){
temp2=temp1[i].split("|")
switch(temp2[0]){
	case "tag":
		tag=document.createElement(temp2[1])
		break;
	case "box":
		D(temp2[1]).appendChild(tag)
		break;
	case "style":
	    temp3=temp2[1].replace(/\-./g,Function('return arguments[0].toUpperCase().substring(1)')).split(";")
		for(var w=0;w<temp3.length;w++)
	    eval("tag.style."+Re(temp3[w],/\:/,"=\"")+"\"")
		break;
	case "fun":
	    eval(temp2[1])
	    break;	
	default:
	tag.setAttribute(temp2[0],temp2[1])
   }
 }
}
function del_tag(obj){
var i=document.getElementsByTagName("input").length
obj=document.getElementById(obj)
document.body.removeChild(document.getElementsByTagName("input")[i-1])
document.body.removeChild(obj)
}
var IE_top_wh=new Function('str','if(str==0){return top.document.body.offsetWidth}else{return top.document.body.offsetHeight}')
var FF_top_wh=new Function('str','if(str==0){return window.outerWidth}else{return window.outerHeight}')
var Get_top_wh=new Function('str','if(str==0){if(IE()==1){return IE_top_wh(0)}else{return FF_top_wh(0)}}else{if(IE()==1){return IE_top_wh(1)}else{return FF_top_wh(1)}}')
var x,y
var drag_=false

function selectAll(O,N,B){
var obj=arguments[3]
	switch(N){
		case "Name":
		obj!=null?(function(){
		B?BT=false:B=true
		for(var i=0;i<Dn(O).length;i++)Dn(O)[i].checked=BT
		obj.checked=B
		})():(function(){for(var i=0;i<Dn(O).length;i++)Dn(O)[i].checked=B})()
		break
		case "ID":
		obj!=null?(function(){
		B?BT=false:B=true
		for(var i=0;i<O.length;i++)D(O[i]).checked=BT
		obj.checked=B
		})():(function(){for(var i=0;i<O.length;i++)D(O[i]).checked=B})()
		break
	}
}	

function Move_obj(m,obj){
			D(m).onmousedown=function(e){drag_=true
				  with(D(obj)){style.position="absolute";temp1=offsetLeft;temp2=offsetTop;
				  if(IE()==1){x=event.clientX;y=event.clientY
				      document.onmousemove=function(e){
					     if(drag_==false)return false
				         with(obj){style.left=temp1+event.clientX-x+"px";style.top=temp2+event.clientY-y+"px"}
					  }
				  }
				  if(IE()==2||IE()==undefined){x=e.pageX;y=e.pageY;
				      document.onmousemove=function(e){
					     if(drag_==false)return false
				         with(this){style.left=temp1+e.pageX-x+"px";style.top=temp2+e.pageY-y+"px"}
					  }
				  }
			   }
           document.onmouseup=new Function("drag_=false")
			}
}
function show_swf(S,W,H){document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="697" height="230"><param name="movie" value="'+S+'" /><param name="wmode" value="transparent" /><param name="wmode" value="opaque" /><param name="quality" value="high" /><embed src="swf/index.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+W+'" height="'+H+'" wmode="transparent" ></embed></object>')}
function zhezhao(){
Set_obj_wh("div_id_bg",0,"100%")
Set_obj_wh("div_id_bg",1,"100%")
Set_obj_lt("div_id_bg",0,0+"px")
Set_obj_lt("div_id_bg",1,0+"px")
Set_obj_wh("div_id_",0,"100%")
Set_obj_wh("div_id_",1,"100%")
Set_obj_lt("div_id_",0,0)
Set_obj_lt("div_id_",1,0)
D("div_id_").style.display=""
D("div_id_bg").style.display="";
top.Dt("html")[0].style.overflow="hidden"}

function close_zhezhao(){
top.D("div_id_").style.display="none"
top.D("div_id_bg").style.display="none"
top.Dt("html")[0].style.overflow=""
}

var colors={a:"#FFCC33",b:"#FFF",c:"#FFFF00",t:1,only:false,temp:"",tname:"",time:200}
var PD={
str:function(obj,s,b,str,B,C,N){
if(!C_L(D(obj).value,s,b)){colors.temp=D(obj).value;colors.only=true;Alert(obj,N,str,B,C);return false}else return true},
num:function(obj,s,b,str,B,C,N){
if(!N_L(D(obj).value,s,b)){colors.temp=D(obj).value;colors.only=true;Alert(obj,N,str,B,C);return false}else return true},
mob:function(obj,emai,str){}
}
function Alert(obj,N,str,B,C){
D(obj).value=str 
if(colors.t<N){
if(B==1||B==3)colors.t%2==1?D(obj).style.background=colors.a:D(obj).style.background=colors.b
if(B==2||B==3)D(obj).style.border="1px solid #7F9DB9"
colors.t++
colors.tname=setTimeout("Alert('"+obj+"',"+N+",'"+str+"',"+B+",'"+C+"')",colors.time)	
}else{clearTimeout(colors.tname)
if(C!=0)D(obj).style.background=C
colors.only=false
colors.t=1
D(obj).value=colors.temp
return false
}	
}
function obj_input(obj,N,str,char){if(D(obj).value==""){colors.temp=D(obj).value;colors.only=true;Alert(obj,N,str);return false}else return true}
function run_Menu(M,N,B,I){
	switch(N){
		case 1:
	if(I!=-1){D(M.id).rows[0].cells[I].style.background=M.bg(I)}
	for(var i=0;i<M.a.length;i++){
	if(M.a[i]==I)continue
		else{
			with({i:i}){
				with(D(M.id).rows[0].cells[M.a[i]]){
					onmouseover=function(){style.background="url("+Menu.bg[1]+")";return false}
					onmouseout=function(){style.background="url("+Menu.bg[0]+")";return false;}
					onclick=function(){run_Menu(M,i);
					with(this){onmouseover=null;onmouseout=null;};return false}
				}
			}
		D(M.id).rows[0].cells[i].style.background="url("+M.bg[0]+")"			
		}
	}
	D(M.id).rows[0].cells[I].style.background="url("+M.bg[2]+")"
	break;
		case 2:
	for(var i=0;i<M.a.length;i++){
		if(M.a[i]==I)continue;
		with({i:i}){
			with(D(M.id).getElementsByTagName("img")[M.a[i]]){
				onmouseover=function(){style.border=M.bor[1];return false}
				onmouseout=function(){style.border=M.bor[0];return false}
				onclick=function(){alert(M.a[i]);return false}
			}
		}
	}		
	break;
		case 3:
		for(var i=0;i<M.a.length;i++){
	if(M.a[i]==I){
		Dn(M.id)[i].style.background="url("+M.bg[1]+")"
		Dn("search_div")[i].style.display=""
       continue
		}else{
		with({i:i}){
			with(Dn(M.id)[i]){
				Dn("search_div")[i].style.display="none"
				style.background="url("+M.bg[0]+")"	
				onmouseover=function(){Set_cookie("search_tit",i,4);run_Menu(M,N,B,i)}
				}
			}
		}
	}
	break;
	case 4:
 for(var i=0;i<M.a.length;i++){
	if(M.a[i]==I){
		Dn(M.id)[i].style.background="url("+M.bg[1]+")"
		Dn("cp_class_div")[i].style.display=""
       continue
		}else{
		with({i:i}){
			with(Dn(M.id)[i]){
				Dn("cp_class_div")[i].style.display="none"
				onmouseover=function(){run_Menu(M,N,B,i)}
				}
			}
		}
	}
	break
  }
}
function show_b(O){D(O).style.display==''?D(O).style.display='none':D(O).style.display=''}
function show_list(Div1,Div2){
 var objs=D_id_tag(Div1,"ul"),classN
   objs[0].className=="list"?classN="tabe":classN="list"
   for(var i=0;i<objs.length;i++)
       objs[i].className=classN
 return false
}	

function star_m(Fun){clearInterval(Time);Time=setInterval(Fun,Times)}
function stop_m(){clearInterval(Time)}
var div_box="div_box",div1,div2,Time,div_N=1,vW,vH,vX,vY,Times=10,xd_cs,Temp_x,Temp_y,t1=t2=t3=t4=t6=t8=Speed=0,oW,oH,oY,oX,vXY
function xd_M_Move_xy(T,V,Div,xy,e){
t2=T;vXY=V;div1=Div;xd_cs=e
xy=="X"?star_m(Move_x):star_m(Move_y)
}
function Move_x(){
    t1=D(div1).offsetLeft
	if(t1!=t2){
		Speed=xd_cs*(t2-t1)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		vXY +=Speed
		D(div1).style.left =vXY+"px"
	}else clearInterval(Time)
}
function Move_y(){
    t1=D(div1).offsetTop
	if(t1!=t2){
		Speed=xd_cs*(t2-t1)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		vXY +=Speed
		D(div1).style.top =vXY+"px"
	}else clearInterval(Time)
}
var vXY1,vXY2,run_t=1
function xd_M_Move_2xy(cs,T1,V1,Div1,T2,V2,Div2,xy){
if(run_t==0){return false}else{run_t=0}
t2=T1,vXY1=V1,t4=T2,vXY2=V2
div1=Div1,div2=Div2,xd_cs=cs
xy=="X"?star_m(Move_2x):star_m(Move_2y)
}
function Move_2x(){
    t1=D(div1).offsetLeft
	if(t1!=t2){
		Speed=xd_cs*(t2-t1)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		vXY1 +=Speed
		D(div1).style.left =vXY1+"px"
	}else{
	t3=D(div2).offsetLeft
	if(t3!=t4){
		Speed=xd_cs*(t4-t3)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		vXY2 +=Speed
		D(div2).style.left =vXY2+"px"	
	}else{clearInterval(Time);run_t=1}
	}
}
function Move_2y(){
    t1=D(div1).offsetTop
	if(t1!=t2){
		Speed=xd_cs*(t2-t1)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		vXY1 +=Speed
		D(div1).style.top =vXY1+"px"
	}else{
	t3=D(div2).offsetTop
	if(t3!=t4){
		Speed=xd_cs*(t4-t3)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		vXY2 +=Speed
		D(div2).style.top =vXY2+"px"	
	}else{clearInterval(Time);run_t=1}
	}
}

var mzdiv,mzoX,mzoY,mzoW,mzoH,mzvX,mzvY,mzvW,mzvH,mzt1,mzt2,mzt3,mzt4,xd_cs,mzB1,mzB2,mzB3,mzB4
function M_Z(W,H,X,Y,Div,N){
	with(D(Div)){mzoW=offsetWidth;mzoH=offsetHeight;mzoY=offsetTop;mzoX=offsetLeft}
	mzvW=W,mzvH=H;mzvX=X;mzvY=Y
	mzt2=mzoW+W;mzt4=mzoH+H;mzt6=mzoY+Y;mzt8=mzoX+X	
	mzdiv=Div;Times=1
	xd_cs=0.55
mzB1=mzB2=mzB3=mzB4=false
	switch(N){
		case 1:
			 mzvX=-mzvW/2
			 mzvY=-mzvH/2
	         star_m(MZ_m_z)
		break	 
	    case 2:
			mzt6=mzoY-H/2
			mzt8=mzoX-W/2
			star_m(MZ_z_m)
	    break
		case 3:
			mzvX=-mzvX
			mzvY=-mzvY
			star_m(MZ_m_z)
		break
	}
}

function MZ_z_m(){
with(D(mzdiv)){mzt1=offsetWidth,mzt3=offsetHeight;mzt5=offsetTop;mzt7=offsetLeft}
	if(mzt1!=mzt2){	Speed=xd_cs*(mzt2-mzt1);Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		mzoW +=Speed}else mzB1=true
	if(mzt3!=mzt4){	Speed=xd_cs*(mzt4-mzt3);Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		mzoH +=Speed}else mzB2=true
	if(mzt5!=mzt6){	Speed=xd_cs*(mzt6-mzt5);Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		mzoY +=Speed}else mzB3=true
	if(mzt7!=mzt8){	Speed=xd_cs*(mzt8-mzt7);Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		mzoX +=Speed}else mzB4=true
	if(mzoW<0){mzoW=mzt1};if(mzoH<0){mzoH=mzt3}
with(D(mzdiv).style){top=mzoY+"px";left=mzoX+"px";width=mzoW+"px";height=mzoH+"px"}
if(mzB1&&mzB2){clearInterval(Time)
xd_M_Zoom(0,0,mzvX,mzvY,mzdiv)
}
}

function MZ_m_z(){
with(D(mzdiv)){mzt5=offsetTop;mzt7=offsetLeft}
	if(mzt5!=mzt6){	Speed=xd_cs*(mzt6-mzt5);Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		mzoY +=Speed}else mzB3=true
	if(mzt7!=mzt8){	Speed=xd_cs*(mzt8-mzt7);Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		mzoX +=Speed}else mzB4=true
	with(D(mzdiv).style){left=mzoX+"px";top=mzoY+"px"}
	if(mzB3&&mzB4){clearInterval(Time)
	xd_M_Zoom(mzvW,mzvH,mzvX,mzvY,mzdiv)
	}
}
function xd_M_Zoom(W,H,X,Y,Div){
	with(D(Div)){mzoW=offsetWidth;mzoH=offsetHeight;mzoY=offsetTop;mzoX=offsetLeft}//当前宽度高度Top位置Left位置
	mzt2=mzoW+W;mzt4=mzoH+H;
	mzt6=mzoY+Y;mzt8=mzoX+X	
xd_cs=0.15
mzdiv=Div
Times=1
mzB1=mzB2=mzB3=mzB4=false
star_m(Zoom)
}

Speed1=Speed2=Speed3=Speed4=0
function Zoom(){
with(D(mzdiv)){mzt1=offsetWidth;mzt3=offsetHeight;mzt5=offsetTop;mzt7=offsetLeft}
	if(mzt1!=mzt2){	Speed1=xd_cs*(mzt2-mzt1);mzoW +=Speed1}else mzB1=true
	if(mzt3!=mzt4){	Speed2=xd_cs*(mzt4-mzt3);mzoH +=Speed2}else mzB2=true
	if(mzt5!=mzt6){	Speed3=xd_cs*(mzt6-mzt5);mzoY +=Speed3}else mzB3=true
	if(mzt7!=mzt8){	Speed4=xd_cs*(mzt8-mzt7);mzoX +=Speed4}else mzB4=true	
	if(mzoW<0){mzoW=mzt1}
    if(mzoH<0){mzoH=mzt3}	
with(D(mzdiv).style){top=mzoY+"px";left=mzoX+"px";width=mzoW+"px";height=mzoH+"px"}
if(mzB1&&mzB2&&mzB3&&mzB4){clearInterval(Time)}
}



var h2,vWH=0
function xd_M_Zoom_wh(T,V,Div,wh,cs){clearInterval(Time)
div1=Div
h2=T
vWH=D(div1).offsetWidth
xd_cs=cs
star_m(Zoom_w)}
function Zoom_w(){
   var h1=D(div1).offsetWidth
	if(h1!=h2){
		Speed=xd_cs*(h2-h1)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		vWH +=Speed
		D(div1).style.width =vWH+"px"
	}else clearInterval(Time)
}


function Tan(T,V,Div){clearInterval(Time);t2=T;vY=V;div1=Div;star_m(run_tan)}//
function run_tan(){
    t1=D(div1).offsetTop
	if(t1!=t2){
		Speed=xd_cs*(t2-t1)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		vY +=Speed
		D(div1).style.top =vY+"px"
	}else{clearInterval(Time);t2=100;star_m(run_tan2)
	}
D("str").value="t1:"+t1+" t2:"+t2+" vY:"+vY+" speed:"+Speed
}

var temp_n=1
function run_tan2(){
    t1=D(div1).offsetTop
	if(t1>t2){
		Speed=xd_cs*(t2-t1)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)	
		vY +=Speed
		D(div1).style.top =vY+"px"
	}else{clearInterval(Time)}
D("str").value="t1:"+t1+" t2:"+t2+" vY:"+vY+" speed:"+Speed
}

var_pro=function(index,Arrays,t){
	this.Arrays=Arrays 
	this.i=index;      
	this.t=t          
  }	
function xd_menu2(Arrays,Th,C_name){
	this.Arrays=Arrays  
	this.Th=Th  		
	this.C=C_name       
  }

xd_menu2.prototype.Run=function(index,cs,time){
	with(this){
	var vars=new var_pro(index,Arrays,time) 
	    vars.cs=cs
		vars.run_t=1    
		vars.C=C       
	  for(var e=0;e<Arrays.length;e++)
	 	 new xdM(Arrays[e],e,Th).xdM_pro(vars) 
	   	switch(Th){
			case "L":
				if(index+1==Arrays.length)return false
				for(var e=index+1;e<Arrays.length;e++)
				D(Arrays[e].N).style.left=Arrays[e].R+"px"
			break
			case "T":
				if(index+1==Arrays.length)return false
				for(var e=index+1;e<Arrays.length;e++)
				D(Arrays[e].N).style.top=Arrays[e].B+"px"	
			break
			case "W":
			   D(Arrays[index].N).style.width=Arrays[index].eW+"px"
			break
			case "H":
			   D(Arrays[index].N).style.display=""
			   D(Arrays[index].N).style.height=Arrays[index].eH+"px"
			break		
		}
	 }
} 
function eventC(Objs,E){
		if(IE()==1)D(Objs).click()
		else{
			var evt=document.createEvent("MouseEvents");  
			evt.initEvent("click",true,true);	
			D(Objs).dispatchEvent(evt)
		}
	}
	
function xdM(Arrays,i,Th){
this.objs=Arrays 
this.index=i
this.Th=Th
}

xdM.prototype.xdM_pro=function(vars){
	with(this){
		D(objs.cH).onclick=function(){
		if(vars.i==index||vars.run_t==0)return false
		else{  
		vars.run_t=0        
		vars.objs=[]	    	
		switch(Th){
			case "L":
				if(vars.i<index){
				   for(var e=vars.i+1;e<index+1;e++){vars.objs.push(vars.Arrays[e].N)}	
					with(vars.Arrays[index]){vars.N=N;vars.eL=L;vars.sL=R;vars.sW=sW}
				}else{
				   for(var e=index+1;e<vars.i+1;e++){vars.objs.push(vars.Arrays[e].N)}
					with(vars.Arrays[index+1]){vars.N=N;vars.eL=R;vars.sL=L;vars.sW=sW}
				}		  
				vars.time_n=setInterval(function(){Move_L(vars)},vars.t)
			break
			case "T":
				if(vars.i<index){
				   for(var e=vars.i+1;e<index+1;e++){vars.objs.push(vars.Arrays[e].N)}	
					with(vars.Arrays[index]){vars.N=N;vars.eT=T;vars.sT=B;vars.sH=sH}
				}else{
				   for(var e=index+1;e<vars.i+1;e++){vars.objs.push(vars.Arrays[e].N)}
					with(vars.Arrays[index+1]){vars.N=N;vars.eT=B;vars.sT=T;vars.sH=sH}
				}
				vars.time_n=setInterval(function(){Move_T(vars)},vars.t)		
			break
			case "W":
			  with(vars.Arrays[index]){vars.N=N;vars.eW=eW,vars.W=D(N).offsetWidth}
			  with(vars.Arrays[vars.i]){vars.N1=N;vars.eW1=sW,vars.W1=D(N).offsetWidth}
			  vars.time_n=setInterval(function(){Move_2W(vars)},vars.t)
			break
			case "H":
			  with(vars.Arrays[index]){vars.N=N;vars.eH=eH,vars.H=D(N).offsetHeight;vars.iN=iN}
			  with(vars.Arrays[vars.i]){vars.N1=N;vars.eH1=sH,vars.H1=D(N).offsetHeight;vars.iN1=iN}
			  vars.time_n=setInterval(function(){Move_2H(vars)},vars.t)
			break	  
			}
		  vars.i=index
		}
	  }
  }
}

function Move_L(vars){
 var sL=D(vars.N).offsetLeft
	if(sL!=vars.eL){
		Speed=vars.cs*(vars.eL-sL)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
        vars.sL +=Speed
		for(var i=0;i<vars.objs.length;i++)
		D(vars.objs[i]).style.left=vars.sL+(i*vars.sW)+"px"
	}else{clearInterval(vars.time_n);Set_cookie(vars.C,vars.i,1,"/");vars.run_t=1}
}

function Move_T(vars){
 var sT=D(vars.N).offsetTop
	if(sT!=vars.eT){
		Speed=vars.cs*(vars.eT-sT)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
        vars.sT +=Speed
		for(var i=0;i<vars.objs.length;i++)
		D(vars.objs[i]).style.top=vars.sT+(i*vars.sH)+"px"
	}else{clearInterval(vars.time_n);Set_cookie(vars.C,vars.i,1,"/");vars.run_t=1}
}

function Move_W(vars){
 var sW=D(vars.N).offsetWidth
	if(sW!=vars.eW){
		Speed=vars.cs*(vars.eW-sW)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		vars.W +=Speed
		D(vars.N).style.width =vars.W+"px"
	}else{clearInterval(vars.time_n);Set_cookie(vars.C,vars.i,1,"/");vars.run_t=1}
}
function Move_2W(vars){
 var sW=D(vars.N1).offsetWidth
	if(sW!=vars.eW1){
		Speed=vars.cs*(vars.eW1-sW)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		vars.W1 +=Speed
		D(vars.N1).style.width =vars.W1+"px"
	}else{
	clearInterval(vars.time_n);
	vars.time_n=setInterval(function(){Move_W(vars)},vars.t)
	}
}

function Move_H(vars){
 var sH=D(vars.N).offsetHeight
	if(sH!=vars.eH){
		Speed=vars.cs*(vars.eH-sH)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		vars.H +=Speed
		D(vars.N).style.height =vars.H+"px"
	}else{clearInterval(vars.time_n);Set_cookie(vars.C,vars.i,1,"/");vars.run_t=1}
}
function Move_2H(vars){
 var sH=D(vars.N1).offsetHeight
	if(sH!=vars.eH1){
		Speed=vars.cs*(vars.eH1-sH)
		Speed>0?Speed=Math.ceil(Speed):Speed=Math.floor(Speed)
		vars.H1 +=Speed
		D(vars.N1).style.height =vars.H1+"px"
	}else{
	clearInterval(vars.time_n);
	D(vars.N1).style.display="none"
	D(vars.iN1).src=ico_m1
	D(vars.iN).src=ico_m2
	D(vars.N).style.display=""
	D(vars.N).style.height="1px";
	vars.time_n=setInterval(function(){Move_H(vars)},vars.t)
	}
}
var var_fonts=12
function Fonts(N){
	switch(N){
		case 1:
		var_fonts--
		break
		case 2:
		var_fonts++
		break
		case 0:
		var_fonts=12
		break
		}
		D_id_tag("div_box","ul")[0].style.fontSize=var_fonts	+"px"
}