function LabelAddEvent()
	{
		var labels = document.getElementById("Label").childNodes;
		for(var iLoop = 0; iLoop < labels.length; iLoop ++)
		{
			var label = labels[iLoop];
			if ("LI" == label.nodeName)			
			{
				label.value = iLoop;
				label.onclick = function()
				{
					ChangeLabel(this)
				};
			}
		}
	}
	
function ChangeLabel(oCur)
	{
		var containers = document.getElementById("Container").childNodes;
		var labels = document.getElementById("Label").childNodes;
		for(var iLoop = 0; iLoop < containers.length; iLoop ++)
		{
			var container = containers[iLoop];			
			var label = labels[iLoop];
			var current = iLoop == oCur.value;
			
			if ("DIV" == container.nodeName)	container.style.display = current ? "block" : "none";
			
			if ("LI" == label.nodeName) label.style.backgroundColor = current ? "#FFF" : "#CCC";
			if ("LI" == label.nodeName) label.style.borderTopColor = current ? "#FE3900" : "#CCC";
			if ("LI" == label.nodeName) label.style.color = current ? "#FE3900" : "#000";
		}
	}
	


function ImgAddEvent()
	{
		var imgs = document.getElementById("Img").childNodes;
		for(var iLoop = 0; iLoop < imgs.length; iLoop ++)
		{
			var img = imgs[iLoop];
			if ("LI" == img.nodeName)			
			{
				img.value = iLoop;
				img.onclick = function()
				{
					ImgShow(this)
				};
			}
		}
	}
	
function ImgShow(oCur)
	{
		var containers = document.getElementById("Container").childNodes;
		var imgs = document.getElementById("Img").childNodes;
		for(var iLoop = 0; iLoop < containers.length; iLoop ++)
		{
			var container = containers[iLoop];			
			var img = imgs[iLoop];
			var current = iLoop == oCur.value;
			
			if ("DIV" == container.nodeName)	container.style.display = current ? "block" : "none";
			
			
			if ("LI" == img.nodeName) img.style.borderColor = current ? "#FE3900" : "#CCC";
			if ("LI" == img.nodeName) img.style.color = current ? "#FE3900" : "#000";
		}
	}