﻿



var ie=document.all;   
var nn6=document.getElementById&&!document.all;   
var isdrag=false;   
var y,x;   
var oDragObj;   
  
function moveMouse(e) {   
 if (isdrag) {   
 oDragObj.style.top  =  (nn6 ? nTY + e.clientY - y : nTY + event.clientY - y)+"px";   
 oDragObj.style.left  =  (nn6 ? nTX + e.clientX - x : nTX + event.clientX - x)+"px";   
 return false;   
 }   
}   
  
function initDrag(e) {   
 var oDragHandle = nn6 ? e.target : event.srcElement;   
 var topElement = "HTML";   
 while (oDragHandle.tagName != topElement && oDragHandle.className != "itxstudiodiv") {   
 oDragHandle = nn6 ? oDragHandle.parentNode : oDragHandle.parentElement;   
 }   
 if (oDragHandle.className=="itxstudiodiv") {   
 isdrag = true;   
 oDragObj = oDragHandle;   
 nTY = parseInt(oDragObj.style.top+0);   
 y = nn6 ? e.clientY : event.clientY;   
 nTX = parseInt(oDragObj.style.left+0);   
 x = nn6 ? e.clientX : event.clientX;   
 document.onmousemove=moveMouse;   
 return false;   
 }   
}   
document.onmousedown=initDrag;   
document.onmouseup=new Function("isdrag=false");  

function Shownavlist(index,Max){
	for(var i=0;i<=Max;i++){
		document.getElementById("Navcentent"+i).style.display="none";
		document.getElementById("NavlistHeader"+i).className="";
	}
	document.getElementById("NavlistHeader"+index).className="current";
	document.getElementById("Navcentent"+index).style.display="";
}



function Showmenulist(index,Max){
	for(var i=0;i<=Max;i++){
		document.getElementById("centent"+i).style.display="none";
		document.getElementById("MenulistHeader"+i).className="tabmenu_title_off";
	}
	document.getElementById("MenulistHeader"+index).className="tabmenu_title_on";
	document.getElementById("centent"+index).style.display="";
}




function Showmenusublist(index,Max){
	for(var i=0;i<=Max;i++){
		document.getElementById("procontent"+i).style.display="none";
		document.getElementById("MenusubHeader"+i).className="menusuboff";
	}
	document.getElementById("MenusubHeader"+index).className="menusubon";
	document.getElementById("procontent"+index).style.display="";
}


        document.onreadystatechange = fnStartInit; 
        function fnStartInit() 
        { 
          if (document.readyState=='complete') 
          { 
                if (document.all['waitingDiv']) { 
                    document.all['waitingDiv'].style.visibility = 'hidden'; 
                } 
          } 
        } 





function LoadFlash(url,wmode,width,Height)
{ 
document.write(
  '<embed src="' + url + '" wmode=' + wmode +
  ' quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="' + width + 
  '" height="' + Height + '"></embed>');   
}



// 
function ContentSize(size)
{
var obj=document.getElementById("size");obj.style.fontSize=size+"px";
}
// 
function copyText(obj) 
{
var rng = document.body.createTextRange();rng.moveToElementText(obj);rng.scrollIntoView();rng.select();rng.execCommand("Copy");rng.collapse(false);
}











var old='';
var old_subject='';
var old_icon='';
function ripp(name)
{
	ripple=eval("ripple_"+name+".style");
	subject=eval("subject_"+name+".style");
	icon=eval("faqico_"+name);
	
	
	if(old!=ripple)
	{
		if(old!='')
		{
			old.display='none';
			old_subject.color='#666666';
			old_subject.fontWeight='normal';
			old_icon.src='img/down.gif';
		}
		ripple.display='block';
		subject.color='#5A8AA7';
		subject.fontWeight='bold';
		icon.src='img/up.gif';
		old=ripple;
		old_subject=subject;
		old_icon=icon;
	}
	else
	{
		ripple.display='none';
		subject.color='#666666';
		subject.fontWeight='normal';
		icon.src='img/down.gif';
		old='';
	}
}










function dis(sid)
				{
					var num=3;
					if(document.all(sid).style.display == "none")
					{
					  document.all(sid).style.display="block";
					  for(i=1;i<=num;i++)
					  {
											  }
					}
					else
					{
					  document.all(sid).style.display="none";
					}
				}


/*WEB标准的新窗口打开页面*/
function externallinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 } 
} 
window.onload = externallinks;


























function getURL(url){
	if(url.indexOf("http://") == 0){window.open(url);}
	else{window.location = url;}
}





function dis(sid)
				{
					var num=3;
					if(document.all(sid).style.display == "none")
					{
					  document.all(sid).style.display="block";
					  for(i=1;i<=num;i++)
					  {
											  }
					}
					else
					{
					  document.all(sid).style.display="none";
					}
				}








