﻿// JavaScript Document
function show(num){
 	var lish = document.getElementById('SynopsisH3').getElementsByTagName('a');
	for(i=0;i<lish.length;i++){
		lish[i].className = '';
		document.getElementById('h3con'+(i+1)).style.display = 'none';
	}
	document.getElementById('h3tit'+num).className = 'current';
	document.getElementById('h3con'+num).style.display = 'block';
 }
 
function leadshow(num){
 	var leadlis = document.getElementById('LeadH3').getElementsByTagName('a');
	for(i=0;i<leadlis.length;i++){
		leadlis[i].className = '';
		document.getElementById('leadh3con'+(i+1)).style.display = 'none';
	}
	document.getElementById('leadh3tit'+num).className = 'current';
	document.getElementById('leadh3con'+num).style.display = 'block';
 }
 
 
function Vocationshow(num){
 	var vocationlis = document.getElementById('VocationH3').getElementsByTagName('a');
	for(i=0;i<vocationlis.length;i++){
		vocationlis[i].className = '';
		document.getElementById('Vocationh3con'+(i+1)).style.display = 'none';
	}
	document.getElementById('Vocationh3tit'+num).className = 'current';
	document.getElementById('Vocationh3con'+num).style.display = 'block';
 }


function showHead() {
	if(document.getElementById("nav")){
	var lis = document.getElementById("nav").getElementsByTagName("td");
	for(var i=0; i<lis.length; i++){
		lis[i].onmouseover=function(){
			this.className+=(this.className.length>0?" ":"") + "show";
		}
		lis[i].onmouseout=function(){
			this.className=this.className.replace(new RegExp("( ?|^)show\\b"), "");
		}
	}
	}
}
 
