
/*-------------------------------- style ----------------------------------*/
function pdStyle ()
{
	var ulId = document.getElementById("yqlj");
	if(ulId.hasChildNodes())
	{
	  if(ulId.firstChild.nodeName == "LI")
		{
			ulId.firstChild.style.paddingLeft = "0px";
		}
		else
		{
			ulId.removeChild(ulId.firstChild);
			ulId.firstChild.style.paddingLeft = "0px";
		}
	}
}

function nrHeght()
{
	var cl_nr1 = document.getElementById("cl_nr1");
	if(cl_nr1.offsetHeight < 100)
	{
		cl_nr1.style.height = 340 + "px";
	}
}


function nrHeght2()
{
	var cl_nr1 = document.getElementById("cl_nr1");
	var l_id_1 = document.getElementById("l_id_1");
	if(cl_nr1.offsetHeight < l_id_1.offsetHeight)
	{
		cl_nr1.style.height = (l_id_1.offsetHeight - 12) + "px";
	}
	if(l_id_1.offsetHeight < cl_nr1.offsetHeight)
	{
		l_id_1.style.height = (cl_nr1.offsetHeight + 12) + "px";
	}
}


/*--------------------- µ¯³ö²Ëµ¥ --------------------------*/
function xs_xl(id,kdu)
{
  var _id = document.getElementById(id);
  var pmk = document.documentElement.clientWidth;
  _id.style.left = (pmk - 950)/2 + kdu + "px";
  _id.style.display = "block";
  
  if(document.getElementById("ss_xl"))
  {
  var ss_id = document.getElementById("ss_xl");
  ss_id.style.display = "none";
  }
}
function yc_xl(id)
{
 var _id = document.getElementById(id);
 _id.style.display = "none";
 
 if(document.getElementById("ss_xl"))
  {
 var ss_id = document.getElementById("ss_xl");
  ss_id.style.display = "block";
  }
}


/*---------------------- ×ó±ßµ¯³ö²Ëµ¥ --------------------*/

function startList() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}