<%@ Master Language="VB" CodeFile="CBSite.master.vb" Inherits="CBSite" %>
<%@ Register Src="~/Controls/LiveZone.ascx" TagPrefix="uc" TagName="LiveZone" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head  runat="server">
    <title>Charter Business Communications</title>
    <%=_metaTags %>
    <script language="javascript" type="text/javascript" src="../Scripts/Charter.js"></script>
      <!--###########################################################################################
                                    MODIFICATION   SIVA DOLA  27-03-2008
        ###########################################################################################
        BELOW SCRIPTS ARE USED FOR Charter SEARCH FUNCTIONALITY
        ###########################################################################################-->
                
    <script type="text/javascript">
        var browserSpecificRelativePosition = 780;
        
        //############################################################################
        //6/23/2008       MARK SNYDER
        //ADDED NEW BROWSER-SPECIFIC VALUE FOR USE WITH SAFARI BROWSER. THE 
        //POSITIONING OF THE SEARCH CONTROLS IN SAFARI WAS INCORRECT.
        //############################################################################
        var browserSpecificTextBoxSize = 25;
         
         
        //##################################################         
        if(navigator.userAgent.indexOf("Firefox")!=-1){
            var versionindex=navigator.userAgent.indexOf("Firefox")+8
            if (parseInt(navigator.userAgent.charAt(versionindex))>=1)
            //alert("You are using Firefox 1.x or above")
            browserSpecificRelativePosition = 780;
        }
        //##################################################        
        
        

        //##################################################
        //Detect IE5.5+
        version=0
        if (navigator.appVersion.indexOf("MSIE")!=-1){
            temp=navigator.appVersion.split("MSIE")
            version=parseFloat(temp[1])
        }
        if (version>=5.5) //NON IE browser will return 0
        //alert("You're using IE version " + version)
        browserSpecificRelativePosition =780;
        //##################################################
        
        
        
        //##################################################
        if(navigator.userAgent.indexOf("Opera")!=-1){
            var versionindex=navigator.userAgent.indexOf("Opera")+6
            if (parseInt(navigator.userAgent.charAt(versionindex))>=8)
            //alert("You are using Opera 8 or 9")
            browserSpecificRelativePosition = 780;
        }
        //##################################################                


        //##################################################
        if(navigator.userAgent.indexOf("Safari")!=-1){
            browserSpecificRelativePosition = 770;
            browserSpecificTextBoxSize = 20;
        }
        //##################################################     
        

        function findPos(obj) {
	        var curleft = curtop = 0;
	        if (obj.offsetParent) {
		        curleft = obj.offsetLeft
		        curtop = obj.offsetTop
		        
		        while (obj = obj.offsetParent) {
			        curleft += obj.offsetLeft
			        curtop += obj.offsetTop
			         
		        }
	        }
	        return [curleft,curtop];
        }     
        

        function _alignSearch(){
       
        
            //alert(document.getElementById('divSearch'))
            //alert(document.getElementById('topNavContainer').offsetLeft)
            if (document.getElementById('divSearch')){
           
                document.getElementById('divSearch').style.left = findPos(document.getElementById('FrHeader'))[0] + browserSpecificRelativePosition + 'px';
            
            }
        }
        
      
    </script>	
    
    <% If Request.Url.ToString().ToLower().Trim().Contains("customers/support.aspx") Then%>
        <script type="text/javascript">
            function _alignSearch_Support(){
                //alert(document.getElementById('divSearch_Support'))
                //alert(document.getElementById('topNavContainer').offsetLeft)
                if (document.getElementById('divSearch_Support')){
                   document.getElementById('divSearch_Support').style.left = findPos(document.getElementById('FrHeader'))[0] + (browserSpecificRelativePosition + 90)  + 'px';
                }
            }      
        </script>	
        
    <% ElseIf Request.Url.ToString().ToLower().Trim().Contains("customers/searchsupport.aspx") Then%> 
        <script type="text/javascript">
            function _alignSearch_Support_Results(){
                //alert(document.getElementById('divSearch_Support'))
                //alert(document.getElementById('topNavContainer').offsetLeft)
                if (document.getElementById('divSearch_Support_Results')){
                    document.getElementById('divSearch_Support_Results').style.left = findPos(document.getElementById('FrHeader'))[0] + (browserSpecificRelativePosition - 370) + 'px';
                }
            }      
        </script>              
    <% end if %>  
       <!--#####################################END#################################################-->
    
    
    
    <%=_stylesheetURL %>
    <link rel="shortcut icon" href="Images/favirate.ico" />
    
    
    <!--###########################################################################################
                                    MODIFICATION   SIVA DOLA  27-03-2008
        ###########################################################################################
        BELOW STYLES ARE USED FOR CHARTER BUSINESS HEADER AND FOOTER
        ###########################################################################################-->
            <link href="css/Styles.css" rel="stylesheet" type="text/css" />
            <link href="css/StylesBackgroundImage.css" rel="stylesheet" type="text/css" />
                  
            <link href="CBdotCom.css" rel="stylesheet" type="text/css" />
          
          
    <!--#####################################END#################################################-->
    
    <script language="javascript" type="text/javascript" >
    
    function showcolor()
    {
    
      // alert("resize");
//        document.body.style.backgroundColor='white';
       
        
    
    }
   
    
    
   
    </script>
</head>
<%--<body  >--%>

 <% If Request.Url.ToString().ToLower().Trim().Contains("customers/support.aspx") Then%>
    <body onload="_alignSearch();_alignSearch_Support();" onresize="_alignSearch();_alignSearch_Support();" >
 <% ElseIf Request.Url.ToString().ToLower().Trim().Contains("customers/searchsupport.aspx") Then%> 
    <body onload="_alignSearch();_alignSearch_Support_Results();" onresize="_alignSearch();_alignSearch_Support_Results();" >
 <% Else %> 
    <body onload="_alignSearch()" onresize="_alignSearch();" >
 <% end if %>
 
     
        
        
        
        
    <script language="JavaScript">    
    function AppendToSearchSiteForm() {
        document.forms[0].q.value = document.forms[0].q_Displayed.value;
    }
    </script>
    <div id="divSearch" class="SearchStyle">
        <!-- Google CSE Site Search Box Begins  -->
        <form action="http://www.Charter-Business.com/Charter-Business-SearchResults.aspx" id="searchbox_SeachSite" onsubmit="AppendToSearchSiteForm()">
         
          
          <input type='hidden' name='cx' value='010118600806282837042:0anfjqswi8i' />
            <input type='hidden' name='cof' value='FORID:9' />
            <input type="hidden" name="q" value="" />

          
          
          <table>
            <tr>
                <td nowrap valign="middle"><input id="txtSearch_1" type="text" name="q_Displayed" /></td>
                <td nowrap valign="middle"><input type="image" src="../Images/but_search.gif" value="Search" alt="Search" name="sa"></td>
            </tr>
          </table>
        </form> 
        	
    </div>	
    
    
<%  If Request.Url.ToString().ToLower().Trim().Contains("customers/support.aspx") Then%>
    <script language="JavaScript">    
    function AppendToSupportForm() {
        document.forms[1].q.value = document.forms[1].q_Displayed.value + ' more:support';
    }
    </script>

    <div id="divSearch_Support" class="SearchStyle_Support">
        <!-- Google CSE Support Search Box Begins  -->
        <form action="http://www.Charter-Business.com/Charter-Business-SearchResults.aspx" id="searchbox_Support" onsubmit="AppendToSupportForm()">
         
          
           <input type='hidden' name='cx' value='010118600806282837042:0anfjqswi8i' />
            <input type='hidden' name='cof' value='FORID:9' />
            <input type="hidden" name="q" value="" />

          <table>
            <tr>
                <td nowrap valign="middle"><input id="txtSearch_2" type="text" name="q_Displayed" /></td>
                <td nowrap valign="middle"><input type="image" src="../Images/but_goSearch.gif" value="Search" alt="Search" name="sa"></td>
            </tr>
          </table>
        </form>
        <!-- Google CSE Support Search Box Ends -->
    </div>     
 <% ElseIf Request.Url.ToString().ToLower().Trim().Contains("customers/searchsupport.aspx") Then%>  
    <script language="JavaScript">    
    function AppendToSupportForm() {
        document.forms[1].q.value = document.forms[1].q_Displayed.value + ' more:support';
    }
    </script>   
     <div id="divSearch_Support_Results" class="SearchStyle_Support_Results">
        <!-- Google CSE Support Search Box Begins  -->
        <form action="http://www.Charter-Business.com/Charter-Business-SearchResults.aspx" id="searchbox_Support_Results" onsubmit="AppendToSupportForm()">
          
          
           <input type='hidden' name='cx' value='010118600806282837042:0anfjqswi8i' />
            <input type='hidden' name='cof' value='FORID:9' />
            <input type="hidden" name="q" value="" />

          <table>
            <tr>
                <td nowrap valign="middle"><input id="txtSearch_3" type="text" name="q_Displayed" /></td>
                <td nowrap valign="middle"><input type="image" src="../Images/but_goSearch.gif" value="Search" alt="Search" name="sa"></td>
            </tr>
          </table>
        </form>
        <!-- Google CSE Support Search Box Ends -->
    </div>   
 <% end if %>            
        


    <form id="Charter" runat="server"  >
        <uc:LiveZone ID="ucLiveZone" runat="server"  Visible="false" Scrolling="no" />
       
        
        <asp:ContentPlaceHolder ID="cphTop" runat="server" >        
        </asp:ContentPlaceHolder>
        
        <table id="contentTable" cellpadding="0" cellspacing="0" >
            <tr>
                <td class="margins">
                    &nbsp;</td>
                <td >
                    <asp:Literal ID="ltrCol1" runat="server"></asp:Literal>
                    
                    <asp:ContentPlaceHolder ID="cphLeft" runat="server">
                    </asp:ContentPlaceHolder>
                </td>
                <td>
                    <asp:Literal ID="ltrCol2" runat="server"></asp:Literal>
                    <!--<td class="col2">-->
                    <asp:ContentPlaceHolder ID="cphCenter" runat="server">
                    </asp:ContentPlaceHolder>
                </td>
                <td>
                    <asp:Literal ID="ltrCol3" runat="server"></asp:Literal>
                    <!--<td class="col3">-->
                    <asp:ContentPlaceHolder ID="cphRight" runat="server">
                    </asp:ContentPlaceHolder>
                </td>
                <td class="margins">
                    &nbsp;</td>
            </tr>
         
        </table>
        
        
        <asp:ContentPlaceHolder ID="cphBottom" runat="server"> 
          
        </asp:ContentPlaceHolder>
        
       
    </form>
    
    
    <script type="text/javascript">
        //############################################################################
        //6/23/2008       MARK SNYDER
        //SET THE TEXTBOX SIZE IN SCRIPT - FOR USE WITH SAFARI BROWSER. THE 
        //POSITIONING OF THE SEARCH AND SEARCH SUPPORT CONTROLS IN SAFARI WAS INCORRECT.
        //############################################################################
        if (document.all("txtSearch_1") != null)
        {
            document.all("txtSearch_1").size = browserSpecificTextBoxSize;
        }
        
        if (document.all("txtSearch_2") != null)
        {
            document.all("txtSearch_2").size = browserSpecificTextBoxSize;
        }
        
        if (document.all("txtSearch_3") != null)
        {
            document.all("txtSearch_3").size = browserSpecificTextBoxSize;
        }
    </script>
    
    
   <!-- Added for production statistical tracing          CODE INSERTED FOR GOOGLE TRACKING -->
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-563737-1";
urchinTracker();
</script>
<!-- end added Production tracing code -->
</body>
</html>

