﻿var nPage;
function sSelNav(str){
	if(str==nPage)
	{
	document.write("<span style=\"color:#F10013;\">"+ str +"</span>") ;				  
	}else{
		document.write("<span>"+ str +"</span>") ;
	}
}

var oobj, mytimer;
function sNavOver(nobj){
	window.clearTimeout(mytimer);
	if(oobj) oobj.style.display = "none";
	var obj = document.getElementById(nobj);
	mNavTopChild.style.backgroundColor = "#EDEDED";
	obj.style.display = "block";
	oobj = obj;
}
function sNavOut(){
	mytimer = window.setTimeout("NavOutFun()", 6000);
}
function NavOutFun(){
	mNavTopChild.style.backgroundColor = "#FFFFFF";
	if(oobj) oobj.style.display = "none";
	oobj = null;
}
function SelCase(obj,id){
	var case1 = document.getElementById("case1img");
	var case2 = document.getElementById("case2img");
	var case3 = document.getElementById("case"+id+"img");
	case1.src = case1.src.replace("_s.gif",".gif");
	case2.src = case2.src.replace("_s.gif",".gif");
	case3.src = case3.src.replace(".gif","_s.gif");
	document.getElementById("case1").style.display="none";
	document.getElementById("case2").style.display="none";
	document.getElementById("case"+id).style.display="block";
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

var guide_x="";
var current_listid;
var current_artid;
function ClassTypeInit(className,listID,artID)
{
	if(listID>0)
	{ 
		current_listid=listID;
	}
	else
	{
		current_listid=0;
	}
	if(artID>0)
	{
		current_artid=artID;
	}
	else
	{
		current_artid=0;
	}
}
function ClassType1(className,listID,artID)
{
	guide_x="";
	if(listID>0)
	{ 
		if(listID==current_listid)
		{
			guide_x="guide_a";
		}
	}

	document.getElementById(className).className= guide_x;
}
function ClassType2(className,listID,artID)
{
	guide_x="";
	if(artID>0)
	{
		if(artID==current_artid)
		{
			if(listID==current_listid)
			{
				guide_x="guide_b";
			}
		}
	}

	document.getElementById(className).className= guide_x;
}
