<%@ Register TagPrefix="Portal" TagName="Divider" Src="~/ModuleDivider.ascx"%>
<%@ Register TagPrefix="Portal" TagName="Title" Src="~/DesktopModuleTitle.ascx"%>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="BannerList.ascx.cs" Inherits="Xpdt.Portal.BannerList" TargetSchema="http://schemas.microsoft.com/intellisense/ie3-2nav3-0" %>
<TABLE width="100%" background="<%=BackgroundImage%>" height="<%=TableHeight%>">
	<TR>
		<TD class="<%=ClassForMargin%>" valign="middle" height="100%" >
			<portal:Title id="Title1" runat="server" EditText="Edit Banners" EditUrl="~/DesktopModules/EditBannerList.aspx"></portal:Title><br>
			<asp:datalist id="myDataList" runat="server" Width="100%" CellPadding="4">
				<ItemTemplate>
					<center>
						<span class="<%# GetNormalStyle() %>">
							<asp:HyperLink ImageUrl='<%# EvalTextOrImage((string) DataBinder.Eval(Container.DataItem,"ImageOrText"), Convert.ToBoolean(DataBinder.Eval(Container.DataItem,"IsBannerImage")))%>' 
						Text='<%# EvalTextOrImage((string) DataBinder.Eval(Container.DataItem,"ImageOrText"), Convert.ToBoolean((!(bool) DataBinder.Eval(Container.DataItem,"IsBannerImage"))) )%>'
						NavigateUrl='<%# BuildRedirect((string)DataBinder.Eval(Container.DataItem,"Url"),(string)DataBinder.Eval(Container.DataItem,"FriendlyName")) %>' ToolTip='<%# DataBinder.Eval(Container.DataItem,"Tooltip") %>' Target="_new" runat="server" ID="Hyperlink1"/>
						</span>
						<br>
					</center>
				</ItemTemplate>
			</asp:datalist>
		</TD>
	</TR>
</TABLE>
<TABLE width="100%">
	<TR>
		<TD class="<%=ClassForMargin%>" valign="middle" height="100%" >
			<PORTAL:DIVIDER id="Divider1" runat="server"></PORTAL:DIVIDER>
		</TD>
	</TR>
</TABLE>
