function showHideZanwai(){
var obj = document.getElementById("bookZhanwai")
if (obj.style.height!="auto"){
   obj.style.height="auto"
  }
  else{
  obj.style.height="112px"
  }
}

function showHidedirZanwai(){
var obj = document.getElementById("dirZhanwai")
if (obj.style.height!="auto"){
   obj.style.height="auto"
  }
  else{
  obj.style.height="278px"
  }
}

function showHideZjZanwai(num){
var obj = document.getElementById("zj"+num)
if (obj.style.display!=""){
   obj.style.display=""
  }
  else{
  obj.style.display="none"
  }
}

function showHideTxt(o) {
	
	if (o.nextSibling.style.display != "none"){
	o.nextSibling.style.display="none"
	}else{
	o.nextSibling.style.display=""
	window.top.hiddenfavoriteframe.location.href='http://www.du8.com/images_www/chaptername.html';
	}

}

function setTab(area,id) {
		 var tabArea=document.getElementById(area);

		 var contents=tabArea.childNodes;
		 for(i=0; i<contents.length; i++) {
		 		 if(contents[i].className=='tabcontent'){contents[i].style.display='none';}
		 }
		 document.getElementById(id).style.display='';

		 var tabs=document.getElementById(area+'tabs').getElementsByTagName('a');
		 for(i=0; i<tabs.length; i++) { tabs[i].className='tab'; }
		 document.getElementById(id+'tab').className='tab curtab';
		 document.getElementById(id+'tab').blur();
}

var du8Detime = 120000;


