<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Right.ascx.cs" Inherits="TourOnline.TemplateDefault.Guide.Right" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<style type="text/css">.style1 { COLOR: #ffffff }
	.style2 { COLOR: #111177 }
</style>
<table cellSpacing="0" cellPadding="0" width="150" border="0">
	<tr>
		<td bgColor="#226cc3" height="25">&nbsp;<IMG height="15" src="../images/icon2.gif" width="13">
			<asp:label id="Label5" ForeColor="White" runat="server"></asp:label><span class="style1">风光
				<asp:Label id="Label6" runat="server">Label</asp:Label></span></td>
	</tr>
	<tr>
		<td height="3"><FONT face="宋体"></FONT></td>
	</tr>
	<script language="javascript">
<!--
var adNum = 0;
var preloadedimages=new Array(); 
for (i=1;i<cpAD.length;i++){ 
preloadedimages[i]=new Image(); 
preloadedimages[i].src=cpAD[i]; 
} 

//跳转的URL地址
function jump2url()
{ 
jumpUrl=cpADlink[adNum]; 
jumpTarget='_blank'; 
if (jumpUrl != '')
{ 
 if (jumpTarget != '')
  window.open(jumpUrl,jumpTarget); 
 else location.href=jumpUrl; 
 } 
}

//图片变化的函数
function changeimg(n)
{
	if(n == 0)
	{
		adNum = adNum - 1;
		if(adNum < 0)
		{
			adNum = 0;
		}
	}
	else
	{
		adNum = adNum + 1;
		if(adNum > cpAD.length)
		{
			adNum = 0;
		}
	}
 
 window.clearInterval(theTimer);
 nextAd(n);
}
//当点击时直接跳转
function nextAd(n){ 
if(n == 1)
{
if(adNum<cpAD.length-1)adNum++ ; 
else adNum=0; 
}
setTransition(); 
document.images.cpADrush.src=cpAD[adNum]; 
document.images.cpADrush.alt=cpADmsg[adNum]; 
playTransition(); 
//定义了轮换时间 5s
theTimer=setTimeout("nextAd(1)", 4000); 
} 

function setTransition(){ 
if (document.all){ 
//document.getElementById("cpADrush").filters.revealTrans.Transition=23; 
//document.getElementById("cpADrush").filters.revealTrans.apply(); 
} 

} 
function playTransition(){ 
if (document.all) 
document.getElementById("cpADrush").filters.revealTrans.play() 
} 
function displayStatusMsg() { 
document.returnValue = true; 
} 
//结束
// -->
	</script>
	<tr>
		<td>
			<table height="138" cellSpacing="0" cellPadding="0" border="0">
				<tr>
					<td width="4"></td>
					<td align="center"><A href="javascript:jump2url()"><img style="FILTER: revealTrans(duration=2,transition=23)" height="138" width="142" border="0"
								name="cpADrush"></A></td>
					<script language="JavaScript">nextAd(1)</script>
					<td width="4"></td>
				</tr>
				<tr>
					<td align="left" colspan="3">
						<table id="T1" cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td height="7"></td>
							</tr>
							<tr>
								<td>&nbsp;<IMG onclick="changeimg(0)" src="../images/i_ph_prev_o.gif" border="0" name="Image2"
										style="CURSOR: hand" alt="上一张"> <IMG onclick="changeimg(1)" src="../images/i_ph_next_o.gif" border="0" name="Image2"
										style="CURSOR: hand" alt="下一张"><FONT face="宋体">&nbsp; </FONT>
								</td>
								<td><asp:HyperLink id="HyperLink9" runat="server" Target="_blank">所有风光>></asp:HyperLink></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td bgColor="#226cc3" height="25">&nbsp;<IMG height="15" src="../images/icon2.gif" width="13">
			<asp:label id="Label1" ForeColor="White" runat="server"></asp:label><span class="style1">宾馆酒店</span></td>
	</tr>
	<tr>
		<td height="3"></td>
	</tr>
	<tr>
		<td><asp:datalist id="dlstHotel" runat="server" ShowFooter="False" ShowHeader="False" Width="100%"
				CellPadding="0" BorderStyle="None" DataKeyField="HId">
				<AlternatingItemStyle VerticalAlign="Middle"></AlternatingItemStyle>
				<SeparatorStyle Height="2px"></SeparatorStyle>
				<ItemStyle VerticalAlign="Middle"></ItemStyle>
				<ItemTemplate>
					<FONT face="宋体">&nbsp;<img src="../images/menu_icon2.gif" width="7" height="13">&nbsp;
						<asp:HyperLink id=HyperLink1 runat="server" ForeColor="#111177" Text='<%# DataBinder.Eval(Container, "DataItem.HCNName") %>' Target="_blank">
						</asp:HyperLink></FONT>
				</ItemTemplate>
				<SeparatorTemplate>
					<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
						<tr>
							<td height="3"></td>
						</tr>
						<TR>
							<TD height="2"><IMG height="2" src="../images/menu_line.gif" width="100%"></TD>
						</TR>
					</TABLE>
				</SeparatorTemplate>
			</asp:datalist>
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td align="right" height="21"><asp:hyperlink id="Hyperlink5" runat="server" Target="_blank">更多>>&nbsp;</asp:hyperlink></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td bgColor="#226cc3" height="25">&nbsp;<IMG height="15" src="../images/icon2.gif" width="13">
			<asp:label id="Label2" ForeColor="White" runat="server"></asp:label><span class="style1">旅游线路</span></td>
	</tr>
	<tr>
		<td height="3"></td>
	</tr>
	<tr>
		<td><asp:datalist id="dlstLine" runat="server" ShowFooter="False" ShowHeader="False" Width="100%"
				CellPadding="0" BorderStyle="None" DataKeyField="LId">
				<AlternatingItemStyle VerticalAlign="Middle"></AlternatingItemStyle>
				<SeparatorStyle Height="2px"></SeparatorStyle>
				<ItemStyle VerticalAlign="Middle"></ItemStyle>
				<ItemTemplate>
					<FONT face="宋体">&nbsp;<IMG height="13" src="../images/menu_icon2.gif" width="7">
						<asp:HyperLink id=Hyperlink2 ForeColor="#111177" runat="server" Target="_blank" Text='<%# DataBinder.Eval(Container, "DataItem.LName") %>'>
						</asp:HyperLink></FONT>
				</ItemTemplate>
				<SeparatorTemplate>
					<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
						<tr>
							<td height="3"></td>
						</tr>
						<TR>
							<TD height="2"><IMG height="2" src="../images/menu_line.gif" width="100%"></TD>
						</TR>
					</TABLE>
				</SeparatorTemplate>
			</asp:datalist>
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td align="right" height="21"><asp:hyperlink id="Hyperlink6" runat="server" Target="_blank">更多>>&nbsp;</asp:hyperlink></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td bgColor="#226cc3" height="25">&nbsp;<IMG height="15" src="../images/icon2.gif" width="13">
			<asp:label id="Label3" runat="server" ForeColor="White"></asp:label><span class="style1">景区景点</span></td>
	</tr>
	<tr>
		<td height="3"></td>
	</tr>
	<tr>
		<td><asp:datalist id="dlstSight" DataKeyField="SId" BorderStyle="None" CellPadding="0" Width="100%"
				ShowHeader="False" ShowFooter="False" runat="server">
				<AlternatingItemStyle VerticalAlign="Middle"></AlternatingItemStyle>
				<SeparatorStyle Height="2px"></SeparatorStyle>
				<ItemStyle VerticalAlign="Middle"></ItemStyle>
				<ItemTemplate>
					<FONT face="宋体">&nbsp;<img src="../images/menu_icon2.gif" width="7" height="13">&nbsp;
						<asp:HyperLink id=Hyperlink3 runat="server" ForeColor="#111177" Text='<%# DataBinder.Eval(Container, "DataItem.SName") %>' Target="_blank">
						</asp:HyperLink></FONT>
				</ItemTemplate>
				<SeparatorTemplate>
					<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
						<tr>
							<td height="3"></td>
						</tr>
						<TR>
							<TD height="2"><IMG height="2" src="../images/menu_line.gif" width="100%"></TD>
						</TR>
					</TABLE>
				</SeparatorTemplate>
			</asp:datalist>
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td height="21" align="right">
						<asp:HyperLink id="Hyperlink7" runat="server" Target="_blank">更多>>>&nbsp;</asp:HyperLink>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td height="25" bgcolor="#226cc3">&nbsp;<img src="../images/icon2.gif" width="13" height="15">
			<asp:Label id="Label4" runat="server" ForeColor="White"></asp:Label><span class="style1">家庭宾馆</span></td>
	</tr>
	<tr>
		<td height="3"></td>
	</tr>
	<tr>
		<td>
			<asp:DataList id="dlstHouse" runat="server" ShowFooter="False" ShowHeader="False" Width="100%"
				CellPadding="0" BorderStyle="None" DataKeyField="HiId">
				<AlternatingItemStyle VerticalAlign="Middle"></AlternatingItemStyle>
				<SeparatorStyle Height="2px"></SeparatorStyle>
				<ItemStyle VerticalAlign="Middle"></ItemStyle>
				<ItemTemplate>
					<FONT face="宋体">&nbsp;<IMG height="13" src="../images/menu_icon2.gif" width="7">&nbsp;
						<asp:HyperLink id=Hyperlink4 runat="server" ForeColor="#111177" Text='<%# DataBinder.Eval(Container, "DataItem.HiName") %>' Target="_blank">
						</asp:HyperLink></FONT>
				</ItemTemplate>
				<SeparatorTemplate>
					<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
						<tr>
							<td height="3"></td>
						</tr>
						<TR>
							<TD height="2"><IMG height="2" src="../images/menu_line.gif" width="100%"></TD>
						</TR>
					</TABLE>
				</SeparatorTemplate>
			</asp:DataList>
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td height="21" align="right">
						<asp:HyperLink id="Hyperlink8" runat="server" Target="_blank">更多>>&nbsp;</asp:HyperLink>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
