<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="../LanguagesManage.ascx" %>
<%@ Control Language="c#" AutoEventWireup="True" Codebehind="ClassNavigate.ascx.cs" Inherits="DreamerShop.TP1.ClassNavigate" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
<SCRIPT>
function showMenu(obj){
//alert()
  var ob = event.srcElement;
  if(ob.tagName == "TD")
  {
  ob = ob.parentNode.childNodes[1].childNodes[0]
  }
  if(ob.tagName == "A")
  {
  ob = ob.parentNode.parentNode.childNodes[1].childNodes[0]
  }
  if(obj.style.display =="")
  {
  obj.style.display = "none"
  ob.src ="Images/TP40/jia.gif"
  }
  else
  {
  obj.style.display = ""
  ob.src = "Images/TP40/jian.gif"
  }
}
function ShowMenu()
{ 
  for(intI=110;intI<=111;intI++)
  {
    var a = document.getElementById("tabmenu" + intI);
    var b = document.getElementById("imgmenu" + intI);
    if(a!=null)
    {
    a.style.display = ""
    b.src = "Images/TP40/jian.gif"
    }
  }
  
  
}

function HideMenu()
{ 
  for(intI=1;intI<=11;intI++)
  {
    var a = document.getElementById("tabmenu" + intI);
    var b = document.getElementById("imgmenu" + intI);
    if(a!=null)
    {
    a.style.display = "none"
    b.src = "Images/TP40/jia.gif"
    }
  }
  
  
}

function showMenu2(obj){
//alert()
  var ob = event.srcElement;
  if(ob.tagName == "TD")
  {
  ob = ob.parentNode.childNodes[1].childNodes[0]
  }
  if(ob.tagName == "A")
  {
  ob = ob.parentNode.parentNode.childNodes[1].childNodes[0]
  }
  if(obj.style.display =="")
  {
  obj.style.display = "none"
  ob.src ="Images/TP40/jia.gif"
  }
  else
  {
  obj.style.display = ""
  ob.src = "Images/TP40/jian.gif"
  }
}
function ShowMenu2()
{ 
  for(intI=110;intI<=111;intI++)
  {
    var a = document.getElementById("tabmenu" + intI);
    var b = document.getElementById("imgmenu" + intI);
    if(a!=null)
    {
    a.style.display = ""
    b.src = "Images/TP40/jian.gif"
    }
  }
  
  
}

function HideMenu2()
{ 
  for(intI=1;intI<=11;intI++)
  {
    var a = document.getElementById("tabmenu" + intI);
    var b = document.getElementById("imgmenu" + intI);
    if(a!=null)
    {
    a.style.display = "none"
    b.src = "Images/TP40/jia.gif"
    }
  }
  
  
}
  </SCRIPT>
<asp:datalist id="dtlClass1" runat="server" Width="100%" DataKeyField="ClassID" RepeatColumns="0" CellPadding="0" CellSpacing="0">
	<itemstyle ></itemstyle>
	<ItemTemplate>
		<table width="210" border="0" cellspacing="0" cellpadding="0">
			<tr>
			  <td width="23" height="26" align="center" valign="bottom" background="Images/TP40/sort0.gif" class="font1"><img id="imgmenu<%# DataBinder.Eval(Container.DataItem, "ClassID") %>"  style="CURSOR: hand" onClick="showMenu(tabmenu<%# DataBinder.Eval(Container.DataItem, "ClassID") %>1,this)" src="Images/TP40/jia.gif"   /></td>
			  <td align="left" valign="bottom" background="Images/TP40/sort1.gif" class="font6"><a href='<%# DataBinder.Eval(Container.DataItem, "ClassLink") %>'><span  class="font6"><%# DataBinder.Eval(Container.DataItem, "ClassName") %></span></a></td>
			  <td width="20" align="left" valign="bottom" background="Images/TP40/sort2.gif" class="font1">&nbsp;</td>
			</tr>
		  </table>
		
		<table cellspacing="0" cellpadding="0" width="100%" border="0" id="tabmenu<%# DataBinder.Eval(Container.DataItem, "ClassID") %>1"  style="display:none" >
			<tr>
				<td align="center">
					<asp:DataList id="dtlClass2" runat="server" DataKeyField="ClassID" OnItemDataBound="dtlClass2_ItemDataBound" CellPadding="0" CellSpacing="0">
						<ItemStyle></ItemStyle>
						<ItemTemplate>
							<table width="210" border="0" cellspacing="0" cellpadding="0">
								<tr>
								  <td width="23" height="23" align="center" valign="bottom" background="Images/TP40/sort4.gif" class="font1">&nbsp;</td>
								  <td align="left" valign="bottom" background="Images/TP40/sort5.gif" class="font6"><a href='<%# DataBinder.Eval(Container.DataItem, "ClassLink") %>' ><span class="font6"><%# DataBinder.Eval(Container.DataItem, "ClassName") %></span></a></td>
								  <td width="20" align="left" valign="bottom" background="Images/TP40/sort3.gif" class="font1">&nbsp;</td>
								</tr>
							</table>
							<table cellspacing="0" cellpadding="0" width="140" border="0" id="tabmenu<%# DataBinder.Eval(Container.DataItem, "ClassID") %>2" style="display:<%# DataBinder.Eval(Container.DataItem, "ShowChild") %>">
								<tbody>
									<tr>
										<td  align="left" valign="bottom" ><asp:DataList id="dtlClass3" runat="server" RepeatDirection="Horizontal" DataKeyField="ClassID"
												RepeatColumns="1" CellPadding="0" CellSpacing="0">
												<ItemTemplate>
													<table width="140" border="0" cellspacing="0" cellpadding="1">
  <tr>
	<td height="20" align="right"  width="20">&nbsp;</td>
	<td align="left"  ><a href='<%# DataBinder.Eval(Container.DataItem, "ClassLink") %>' ><span ><%# DataBinder.Eval(Container.DataItem, "ClassName") %></span></a></td>
  </tr>
</table>
												</ItemTemplate>
											</asp:DataList></td>
									</tr>
								</tbody>
							</table>
							</ItemTemplate>
</asp:datalist>
				</td>
			</tr>
		</table>
	
</ItemTemplate> </asp:datalist>
<asp:Label id="lbShowMode" runat="server" Visible="false">1</asp:Label>
<asp:Label id="lbShowLayer" runat="server" Visible="false">3</asp:Label>
<asp:Label id="lbJiaPic" runat="server" Visible="false">Images/TP40/jia.gif</asp:Label>
<asp:Label id="lbJianPic" runat="server" Visible="false">Images/TP40/jian.gif</asp:Label>