﻿
var mune1=0;
var mune2=0;

var mune1ImgName="";

var to=50;
var t;

var mi;
var currentObj=null;

var startObj1=null;
var startObj2=null;

function StartStatus()
{		
	if(mune1==0)
		return ;
		
	switch(mune1)
	{
		case 1:			
			Show1();
			break;
		case 2:
			Show2();
			break;
		case 3:
			Show3();
			break;
		case 4:
			Show4();
			break;
		case 5:
			Show5();
			break;

	}
		
	currentObj=startObj1;
	
	startObj1.style.backgroundImage="url(../Images/"+mune1ImgName+")";	//设置开始默认项的样式
	
	
	if(mune2==0)
		startObj1.style.color="#ffffff";
	else
	{
		startObj2=document.getElementById("Mune"+mune1+"_"+mune2);	
		startObj2.style.backgroundImage="url(../Images/c_1.gif)";
		startObj2.style.color="#ffffff";
	}
}

function SetLoad()
{	
	mi=document.getElementById("MuneInfo");
	
	if(mune1!=0)
	{
		startObj1=document.getElementById("Mune"+mune1);	
	
		currentObj=startObj1;
	
		StartStatus();	
	}
}

function Out(obj)
{
	currentObj=obj;

	if(currentObj==null)	
		StartStatus();
	else
	{
		currentObj.style.backgroundImage="url(../Images/b_2.gif)";	//鼠标离开之后保留样式

		t=setTimeout("StartStatus()",to);
	}
}

function Show()
{
	clearTimeout(t);	
	
	if(currentObj !=null)
		currentObj.style.backgroundImage="";	//去掉前一对象保留的样式
		
	if(mune2==0)
		startObj1.style.color="";
		
	startObj2=null;
}

function Show1()
{
	Show();
	
	mi.innerHTML='';
}

function Show2()
{
	Show();

	mi.innerHTML='';
}

function Show3()
{
	Show();

	mi.innerHTML='';
}

function Show4()
{
	Show();

	mi.innerHTML='<div class="show_nav_1"><img src="../images/c_3.gif" border="0" /></div><div class="left_c_2"><div class="left_c_2_2"><a id="Mune4_1" href="growth.aspx">组织行为</a></div><div class="left_c_2_2"><a id="Mune4_2"  href="growth.aspx?TypeId=2">工作环境</a></div><div class="left_c_2_2"><a id="Mune4_3"  href="growth.aspx?TypeId=3">职业培训</a></div><div class="left_c_2_2"><a id="Mune4_4"  href="growth.aspx?TypeId=4">薪酬福利</a></div><div class="left_c_2_2"><a id="Mune4_5"  href="growth.aspx?TypeId=5">任职资格</a></div><div class="left_c_2_2"><a id="Mune4_6"  href="growth.aspx?TypeId=6">员工俱乐部</a></div><div class="left_c_2_2"><a  id="Mune4_7" href="growth.aspx?TypeId=7">图书馆</a></div><div class="left_c_2_2"><a id="Mune4_8"  href="growth.aspx?TypeId=8">创造力训练中心</a></div><div class="left_c_2_2"><a id="Mune4_9"  href="growth.aspx?TypeId=9">职工之家</a></div><div class="left_c_2_2"><a id="Mune4_10"  href="growth.aspx?TypeId=10">沟通渠道</a></div><div class="left_c_2_2"><a  id="Mune4_11" href="growth.aspx?TypeId=11">月度圆桌会议</a></div></div><div class="left_c_3"><img src="../images/c_5.gif" border="0" /></div>';
}

function Show5()
{
	Show();
	
	mi.innerHTML='';
}


