// JavaScript Document
			<!--
		var Timer = new Array;
	
		function FindTopDoc(curWindow)
		{

			if (curWindow == null)
				return null;
			if ((curWindow.parent != null) && (curWindow.parent != curWindow)) {
				return this.FindTopDoc(curWindow.parent);
			}
			return curWindow.document;	
		}
		
		function FindParentDoc(curWindow)
		{
			if (curWindow == null)
				return null;
			if (curWindow.parent == null)
				return null;
			return curWindow.parent.document;
		}
		
		function FindTargetDoc(curWindow, target)
		{
			if (curWindow == null)
				return null;
		
			if (curWindow.frames[target]) {
				return curWindow.frames[target];
			} else if ((curWindow.parent != null) && (curWindow.parent != curWindow)) {
				return this.FindTargetDoc(curWindow.parent, target);
			}
			return null; 
		}
		
		function GoLink(url,target)
		{
		//	gaurd
			if (url == null) 
				return;
			if (url.length == 0) 
				return;
		
			//.
			if (target == "_blank") {
				window.open(url);
			} else {
				var target_doc = null;
				if (target == null || target.length == 0 || target == "_self") {
					target_doc = document;
				} else if (target == "_top") {
					target_doc = FindTopDoc(window);
				} else if (target == "_parent") {
					target_doc = FindParentDoc(window);
				} else {
					target_doc = FindTargetDoc(window, target);
				}
		
				//.
				if (target_doc == null) {
					window.open(url);
				} else {
					target_doc.location.href = url;
				}
			}
		}

	function PopupEffect_GetItem(name)
	{	for (i = 0 ; i < this.itemlist.length; i++)
		{	
			if (name == this.itemlist[i].name)
				return this.itemlist[i];
		}
	}
	function PopupEffect_enterMenu(event)
	{	var Me	= this;
		Me.IsInMenu	= true;
    }
	function PopupEffect_leaveMenu(event)
	{
	//	local
		var Me	= this;
		Me.IsInMenu	= false;

		if ((false == Me.IsShowMenu) &&	(false == Me.IsInMenu) &&  (false == Me.IsInTimer))
		{
			Me.IsInTimer	= true;
			setTimeout(Me.name + ".hideMenuTimer();",100);
		}
	}
	function PopupEffect_enterItem(target,MeLayer,text)
	{
		var info = this.GetItem(target);
		var Me	= this;

		if (document.all)
		{
			document.all[target].style.color = Me.focus_color;   
			document.all[target].style.backgroundColor = Me.focus_backcolor;
		}
		if (0 == info.status.length)
			window.status = info.url;
		else
			window.status = info.status;
	}
		
	function PopupEffect_leaveItem(target,MeLayer,text)
	{
		var Me	= this;
	
		if (document.all)
		{
			document.all[target].style.color = Me.normal_color;   	
			document.all[target].style.backgroundColor = Me.normal_backcolor;
		}
		window.status = "";
	}
	function PopupEffect_AlignMenu(MeLayer)
	{

		var MaxWidth = 0;
	
		for (i = 0; i < this.itemlist.length; i++)
		{
			var name = this.itemlist[i].name;
			var width;
			
			if (document.all)
				width = document.all[name].offsetWidth;
			if (width > MaxWidth) MaxWidth = width;
		}

		for (i = 0; i < this.itemlist.length; i++)
		{
			var name = this.itemlist[i].name;

			if (document.all)
				document.all[name].style.width = MaxWidth;
		}
	}
	
	function PopupEffect_layoutMenu(MeLayer)
	{
	//	local
		var Me	= this;

	//	Init

        Me.IsShowMenu	= true;
		trigger			= Me.trigger;
		target			= Me.target;
		trigger_layer	= Me.trigger + "_layer";
		target_layer	= Me.target	 + "_layer";

	//	get cell info

		CellLeft	= Me.AreaLeft;
		CellTop		= Me.AreaTop;
		CellRight	= CellLeft;
		CellBottom	= CellTop;
		
		if (document.all)
		{	
			MenuWidth	= document.all[target].offsetWidth;
			MenuHeight	= document.all[target].offsetTop;
		}

	//	calc layout position
	    NewCellLeft	= CellLeft;
		NewCellTop	= CellTop;

	//	set new position
		if (document.all)
		{	
			document.all[target].style.posLeft= NewCellLeft + this.OffsetX;
			document.all[target].style.posTop = NewCellTop + this.OffsetY;	
		}
		
	}
	function PopupEffect_showMenu(MeLayer)
	{
		var Me	= this;
		Me.IsShowMenu	= true;
		if (document.all)
		{	Me.layoutMenu();
			document.all[Me.target].style.visibility	="visible"; 
		}
	}
	function PopupEffect_hideMenu()
	{	var Me	= this;
		Me.IsShowMenu	= false;
		if ((false == Me.IsShowMenu) &&	(false == Me.IsInMenu) &&  (false == Me.IsInTimer))
		{	Me.IsinTimer	= true;
			setTimeout(Me.name + ".hideMenuTimer();",100);
		}
	}	

	function PopupEffect_hideMenuTimer()
	{	var Me	= this;
		if ((false == Me.IsShowMenu) && (false == Me.IsInMenu))
		{
			if (document.all)
			{
				document.all[Me.target].style.visibility="hidden"; 
			}
	 		window.status	= "";
		}	
		Me.IsInTimer	= false;
	}
	function PopupEffect_AddItem(name,text,url,target,status,alt)
	{	var Me		= this;

		Index	= Me.itemlist.length;
		Me.itemlist[Index]	= new PopupItem(name,text,url,target,status,alt);
	}

	function PopupEffect_InitImageMap(Left,Top,target,OffsetX,OffsetY)
	{	var Me	= this;

		this.type = 1;
		this.AreaLeft = Left;
		this.AreaTop = Top;
		this.target = target;
		this.OffsetX = OffsetX;
		this.OffsetY = OffsetY;
	}
	function PopupEffect_GoLink(url,target,id,item)
	{	var info = this.GetItem(item);
		var menu_layer;
	
		window.status = info.status;
		if (document.all) {
			menu_layer = document.all[this.target];
		}	
		menu_layer.visibility="hidden"; 	
		setTimeout(this.name + ".goLinkTimer('" + url + "','" + target + "');",10);
	}
	
	function PopupEffect_FindTopDoc(curWindow)
	{
		if (curWindow == null)
			return null;
		if ((curWindow.parent != null) && (curWindow.parent != curWindow)) {
			return this.FindTopDoc(curWindow.parent);
		}
	
		return curWindow.document;	
	}
	
	function PopupEffect_FindParentDoc(curWindow)
	{
		if (curWindow == null)
			return null;
		if (curWindow.parent == null)
			return null;
	
		return curWindow.parent.document;
	}
	
	function PopupEffect_FindTargetDoc(curWindow, target)
	{
		if (curWindow == null)
			return null;
	
		if (curWindow.frames[target]) {
			return curWindow.frames[target];
		} else if ((curWindow.parent != null) && (curWindow.parent != curWindow)) {
			return this.FindTargetDoc(curWindow.parent, target);
		}
		
		return null; 
	}
	
	function PopupEffect_GoLinkTimer(url,target)
	{
		//.
		if (url == null) 
			return;
		if (url.length == 0) 
			return;
		//.
		if (target == "_blank") {
			window.open(url);
		} else {
			var target_doc = null;
			if (target == null || target.length == 0 || target == "_self") {
				target_doc = document;
			} else if (target == "_top") {
				target_doc = this.FindTopDoc(window);
			} else if (target == "_parent") {
				target_doc = this.FindParentDoc(window);
			} else {
				target_doc = this.FindTargetDoc(window, target);
			}
	
			//.
			if (target_doc == null) {
				window.open(url);
			} else {
				target_doc.location.href = url;
			}
		}
	}
	
	function PopupEffect_CreateMenu(id,font,fontsize,bold,italic,normal_color,focus_color,normal_backcolor,focus_backcolor)
	{	var Me	= this;
		Me.MenuID = id;
		Me.normal_color	= normal_color;
		Me.focus_color	= focus_color;
		Me.normal_backcolor = normal_backcolor;
		Me.focus_backcolor = focus_backcolor;
		Me.font = font;
		Me.fontsize = fontsize;
		Me.IsBold = bold;
		Me.IsItalic = italic;


		for (i = 0; i < Me.itemlist.length; i++)
		{
			if (document.all)
			{
				itemlayer = document.all[Me.itemlist[i].name];
				itemlayer.style.color = Me.normal_color;
				itemlayer.onmousedown = new Function("event",Me.name + ".goLink('" + Me.itemlist[i].url + "','" + Me.itemlist[i].target + "','" + id + "','" + Me.itemlist[i].name + "')" );
			}
		}	
		this.AlignMenu();
	}
	function PopupItem(name,text,url,target,status,alt)
	{
		this.name	= name;
		this.text	= text;
		this.url	= url;
		this.target = target;
		this.status = status;
		this.alt	= alt;
	}
	function PopupEffect_OutputDebug(msg)
	{
	//	window.status = msg;
	}
	function PopupEffect(name)
	{
	//	Data
		this.name		= name;
		this.IsShowMenu	= false;
		this.IsInMenu	= false;
		this.IsInTimer	= false;
		this.xlayout	= 1;	//xlayout;
		this.ylayout	= 1;	//ylayout;
		this.IsFirst	= true;
		this.itemlist	= new Array;
		this.normal_color	= 'blue';
		this.focus_color	= 'red';
		this.UseAnchor		= false;
		this.focus_backcolor	= '';
		this.normal_backcolor	= '';
	//	Method
		this.debug		= false;
		this.OutputDebug= PopupEffect_OutputDebug;
		this.layoutMenu	= PopupEffect_layoutMenu;
		this.AlignMenu	= PopupEffect_AlignMenu;
		this.showMenu	= PopupEffect_showMenu;
		this.hideMenu	= PopupEffect_hideMenu;
		this.hideMenuTimer= PopupEffect_hideMenuTimer;
		this.enterMenu	= PopupEffect_enterMenu;
		this.leaveMenu	= PopupEffect_leaveMenu;
		this.enterItem	= PopupEffect_enterItem;
		this.leaveItem	= PopupEffect_leaveItem;
		this.InitImageMap= PopupEffect_InitImageMap;
		this.addItem	= PopupEffect_AddItem;
		this.createMenu	= PopupEffect_CreateMenu;
		this.goLink		= PopupEffect_GoLink;
		this.goLinkTimer= PopupEffect_GoLinkTimer;
		this.GetItem	= PopupEffect_GetItem;
		this.FindTopDoc = PopupEffect_FindTopDoc;
		this.FindParentDoc = PopupEffect_FindParentDoc;
		this.FindTargetDoc = PopupEffect_FindTargetDoc;
	}
	
