<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ViewFile.aspx.vb" Inherits="_ViewFile" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>View File</title>
<link href="charter_home.css" rel="stylesheet" type="text/css" />
<link href="charter_main.css" rel="stylesheet" type="text/css" />
<link href="charter_cable.css" rel="stylesheet" type="text/css" />
<link href="charter_support.css" rel="stylesheet" type="text/css" />
<link href="charter_telephone.css" rel="stylesheet" type="text/css" />
<script src="swfobject.js" type="text/javascript"></script>
</head>
<body>
    <asp:Panel ID="pnlFlash" runat="server" Visible="true">
        <form id="frmFlashView" runat="server">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="lblXMLToLoad" runat="server" Text="Select XML File to Load:"></asp:Label>
                        <asp:DropDownList ID="ddlXMLFiles" runat="server">
                        </asp:DropDownList>
                        <asp:Button ID="btnLoad" runat="server" Text="Load Flash XML" />
                        <hr />
                    </td>
                </tr>
                <tr>
                    <td>
<script type="text/javascript">
	var flashvars = {
	<%If Len(Request.QueryString("xml")) > 0 Then %>
		"xmlPath" : "../xml/<%=Request.QueryString("xml")%>"
    <%Else %>
		"xmlPath" : ""
	<%End If %>
	};
	var params = {
		"wmode"	:	"transparent"
	};
	
    function setAttributes(id) {
		var attributes = {
			"id"		:	id,
			"class"		: 	"flashCont"
		};
		return attributes;
	}

	swfobject.embedSWF("../swf/<%=Request.Querystring("file")%>", "nonFlashHomeHero", "719", "342", "9.0.0", "../swf/expressInstall.ccswf", flashvars, params, setAttributes("swfHomeHero"));
</script>
                        <div id="flashHeroCont">
                        <div class="nonFlashCont nonFlashHeroCont" id="nonFlashHomeHero">
                        <div class="nonFlashTextCont"><!--_SERVER_SIDE_BEGIN
	                        //Creates non-Flash SEO content that gets displayed when Flash or Javascript is unavailable
	                        load "xml/home_hero.ccxml"
	                        and for each <button> create the following mark-up (values in XPath syntax)
	                        -->
                        <h1>//title</h1>
                        <h2>//desc</h2>
                        <a href="//exit_link[@link]">//exit_link</a> <!--_SERVER_SIDE_END --><!--_NOTE_BEGIN ideally this code would be in an include file--><a class="flashUpgradeLink" href="http://www.adobe.com/go/getflashplayer"><img alt="Get Adobe Flash player" src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" /> <span>To experience the most Charter.com has to offer, get Adobe Flash Player</span> <br class="clear" /></a><!--_NOTE_END --></div>
                        </div>
                        </div>
                    </td>
                </tr>
            </table>   
        </form>
    </asp:Panel>
            
    <asp:Panel ID="pnlXML" runat="server" Visible="false">
        <table>
            <tr>
                <td>
<xmp><asp:Xml ID="xmlView" runat="server"></asp:Xml></xmp>
                </td>
            </tr>
        </table>   
    </asp:Panel>

    <asp:Panel ID="pnlUnknownType" runat="server" Visible="false">
        <table>
            <tr>
                <td>
                    <asp:Label ID="lblUnknown" runat="server" Text="Unknown file type"></asp:Label>
                </td>
            </tr>
        </table>   
    </asp:Panel>

    <asp:Panel ID="pnlFLV" runat="server" Visible="true">
        <form id="frmFLVView" runat="server">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="Select XML File to Load:"></asp:Label>
                        <asp:DropDownList ID="DropDownList1" runat="server">
                        </asp:DropDownList>
                        <asp:Button ID="Button1" runat="server" Text="Load Flash XML" />
                        <hr />
                    </td>
                </tr>
                <tr>
                    <td>
<script type="text/javascript">
	var flashvars = {
	<%If Len(Request.QueryString("xml")) > 0 Then %>
		"xmlPath" : "../xml/<%=Request.QueryString("xml")%>"
    <%Else %>
		"xmlPath" : ""
	<%End If %>
	};
	var params = {
		"wmode"	:	"transparent"
	};
	
    function setAttributes(id) {
		var attributes = {
			"id"		:	id,
			"class"		: 	"flashCont"
		};
		return attributes;
	}

	swfobject.embedSWF("../swf/<%=Request.Querystring("file")%>", "nonFlashHomeHero", "719", "342", "9.0.0", "../swf/expressInstall.ccswf", flashvars, params, setAttributes("swfHomeHero"));
</script>
                        <div id="Div1">
                        <div class="nonFlashCont nonFlashHeroCont" id="Div2">
                        <div class="nonFlashTextCont"><!--_SERVER_SIDE_BEGIN
	                        //Creates non-Flash SEO content that gets displayed when Flash or Javascript is unavailable
	                        load "xml/home_hero.ccxml"
	                        and for each <button> create the following mark-up (values in XPath syntax)
	                        -->
                        <h1>//title</h1>
                        <h2>//desc</h2>
                        <a href="//exit_link[@link]">//exit_link</a> <!--_SERVER_SIDE_END --><!--_NOTE_BEGIN ideally this code would be in an include file--><a class="flashUpgradeLink" href="http://www.adobe.com/go/getflashplayer"><img alt="Get Adobe Flash player" src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" /> <span>To experience the most Charter.com has to offer, get Adobe Flash Player</span> <br class="clear" /></a><!--_NOTE_END --></div>
                        </div>
                        </div>
                    </td>
                </tr>
            </table>   
        </form>
    </asp:Panel>

</body>
</html>
