﻿// JavaScript Document

// @author  bnuboboy@hotmail.com

// @copyright 2008
var now_pro;
var old_pro = 0;
var now_imgnum = 1;
var old_imgnum = "nan";
var page = 0;
var step = 5;
var zt = 0;
var img_val;
var s_img_p;
function makevisible(cur,which,id,ele)
{

	 if (which==0)
	{

		document.getElementById(ele + '_description_box').style.display = "block";

		document.getElementById(ele + '_title_').innerText = cur.title;
		
		document.getElementById(ele + '_description').innerText =  cur.name;
		
		document.getElementById(ele + '-'+ id).style.display = "block";
		
	}
	else
	{
				document.getElementById(ele + '-'+ id).style.display = "none";
		}


}


function pageOnLoad()
{

navHover = function() {
  var lis = document.getElementById("navmenu").getElementsByTagName("LI");
  for (var i=0; i<lis.length; i++) {
    lis[i].onmouseover=function() {
      this.className+=" iehover";
    }
    lis[i].onmouseout=function() {
      this.className=this.className.replace(new RegExp(" iehover\\b"), "");
    }
  }
}
if (window.attachEvent) window.attachEvent("onload", navHover);
	pro_bh(2);
}


function pro_bh(now_num){
	if(old_pro != 0){
		document.getElementById("tlt_img_"+old_pro).removeAttribute("class");
		document.getElementById("tlt_img_"+old_pro).removeAttribute("className");
		document.getElementById("pro"+old_pro).style.display = "none";
	}
	document.getElementById("pro"+now_num).style.display = "block";
	document.getElementById("tlt_img_"+now_num).setAttribute("class","on");
	document.getElementById("tlt_img_"+now_num).setAttribute("className","on");
	old_pro = now_num;
}

