
var han
ns=(document.layers)?1:0
ie=(document.all)?1:0

function init()
{	
	if(ns){
		parent1=document.parent1Div
		parent1.xpos=parent1.left
		parent1.ypos=parent1.top

	}
	if(ie){
		parent1=parent1Div.style
		parent1.xpos=parent1.pixelLeft
		parent1.ypos=parent1.pixelTop

	}
}
function menu(id)
{
	var imgid=id+"img"
	id=document.all(id)
	imgid=document.all(imgid)
	if(id.style.display=='')
	{
		id.style.display='none'
		imgid.src="/skin/2007/hdjh_2.gif"
	}
	else
	{
		id.style.display=''
		imgid.src="/skin/2007/hdjh_2.gif"
	}
}
function ShowAltTable(contents)
{
	//alert(document.body.clientWidth)
	con.innerHTML=contents;
	var leftmargin=((document.body.clientWidth-760)>0)?(Math.floor(document.body.clientWidth-760)/2):(0)
	var xpos=leftmargin+415
	parent1.pixelLeft=Math.floor(xpos)
	parent1.pixelTop=Math.floor(event.y)+15+document.body.scrollTop
	parent1.display="none"
	//child1.xpos=child1.pixelLeft=0
	//child1.ypos=child1.pixelTop=0
	//han=window.setInterval('move(child1,0,-1)',40)

	//child1.top=0
	//floatPosition()
	//document.all.parent1Div.style.pixelTop=100
	//alert(event.y)
}
function HideAltTable()
{
	//alert(Math.floor(document.all.menu.style.pixelLeft))
	//con.innerHTML=""
	parent1.display="none"
	//window.clearInterval(han)
	//control.display="none"
}
///////////////////////////////////////////////////////////
function move(obj,x,y)
{
	obj.xpos+=x
	obj.ypos+=y
	obj.left=obj.xpos
	obj.top=obj.ypos
	if(y>0){
	if(obj.ypos>0){
	window.clearInterval(han)
	obj.ypos=0
	obj.top=obj.ypos
	}
	}else{
	//alert(parent1.pixelWidth)
	if(obj.ypos<parent1.pixelHeight-obj.pixelHeight){
	window.clearInterval(han)
	obj.ypos=parent1.pixelHeight-obj.pixelHeight
	obj.top=obj.ypos
	}
	}
	//alert(child1.pixelHeight)
	//parent1.ypos+parent1.
}		
function above()
{
	control.display=''
	han=window.setInterval('move(child1,0,-1)',20)
	parent1.display=''
}
function below()
{
	control.display=''
	han=window.setInterval('move(child1,0,1)',20)
	parent1.display=''	
}
function MouseOut()
{
	control.display='none'
	parent1.display='none'
	window.clearInterval(han)
}
function floatPosition()
{
	control.xpos=Math.floor(event.x)-25+document.body.scrollLeft
	control.ypos=Math.floor(event.y)-16+document.body.scrollTop
	control.left=control.xpos
	control.top=control.ypos
	control.display=""
}

//////////////////////////////////////////////////////////////////
//--> 
  
