// JavaScript Document
// JavaScript Document
var winWidth = 0;
var winHeight = 0;
var stageH=0;
function findDimensions() //函数：获取尺寸
{
//获取窗口高度
if (window.innerHeight){
   stageH = window.innerHeight;
}else if ((document.body) && (document.body.clientHeight)){
   stageH = document.documentElement.clientHeight;
}

winHeight = document.body.scrollHeight ;
//通过深入Document内部对body进行检测，获取窗口大小
if(window.innerWidth){
	winWidth = window.innerWidth;
}else if (document.documentElement.clientWidth)
{
    winWidth = document.documentElement.clientWidth;
}
}

//调用函数，获取数值




function lookfun(id,contentid){
	document.getElementById(id).style.display='block';
	document.getElementById(contentid).style.display='block';
	findDimensions();
	document.getElementById(id).style.height=winHeight+"px";
	var lefts=(winWidth-607)/2;
	var tops=(stageH-285)/2;
	document.getElementById(contentid).style.left=lefts+"px";
	document.getElementById(contentid).style.top=tops+"px";
}

function closefun(id,contentid){
	document.getElementById(id).style.display='none';
	document.getElementById(contentid).style.display='none';
}

function onClickfun(obj){
   //alert(obj.boo)
   var Pobject=obj.parentNode;
   var Cobj= Pobject.childNodes;
   for(var i=0;i<Cobj.length;i++){
	   if(obj.parentNode.boo==undefined){
	      if(Cobj[i].className=='current'||Cobj[i].className==' current'){
		      Cobj[i].cN='';
	      }else{
	          Cobj[i].cN=Cobj[i].className;
	      }
	   }
      if(Cobj[i].className!='more'){               
         Cobj[i].className= Cobj[i].cN+'';
	  }
	  
   }
   //alert(obj.cN);
   obj.className=obj.cN+" current";
   obj.parentNode.boo=false;
   
}


function qysj_fun(obj,current,id,num){
	onClickfun(obj);	
	for(var j=0;j<num;j++){
		document.getElementById(id+j).style.display='none';
	}
	document.getElementById(id+current).style.display='block';
}



function mouseBook(boo){
	if(boo){
	    document.getElementById('swf_warp').style.zIndex=100;
	}else{
		document.getElementById('swf_warp').style.zIndex=0;
	}
}









