<?xml version="1.0"?>
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://communicator/skin/search/search.css" type="text/css"?>
<?xml-stylesheet href="chrome://communicator/skin/search/internetresults.css" type="text/css"?>
<?xml-stylesheet href="chrome://communicator/skin/search/icons.css" type="text/css"?>

<!DOCTYPE window SYSTEM "chrome://communicator/locale/search/internetresults.dtd">

<window class="color-dialog" orient="vertical" onload="onLoadInternetResults();"
        xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        title="&internetresults.title;"
        context="disallowcontext">

  <popupset>
    <popup id="disallowcontext" oncreate="return false;" />
  </popupset>

  <script type="application/x-javascript" src="chrome://global/content/nsUserSettings.js"/>
  <script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
  <script type="application/x-javascript" src="chrome://communicator/content/search/internetresults.js"/>
  <script type="application/x-javascript" src="chrome://communicator/content/search/shared.js"/>

  <box id="multi-results-header"> 
    <text value="&results.header.label;"/>
  </box>

  <box id="engineTabs" autostretch="never"
       ref="NC:SearchResultsSitesRoot" datasources="rdf:internetsearch" 
       style="overflow: none; min-width: 1px;">
    <template>
      <button class="engineTabs button-toolbar-3 button-slimline" uri="..." 
              oncommand="doEngineClick(event, this);" crop="right" 
              src="rdf:http://home.netscape.com/NC-rdf#StatusIcon" 
              label="rdf:http://home.netscape.com/NC-rdf#Name" 
              loading="rdf:http://home.netscape.com/NC-rdf#loading" />
    </template>
    <button class="engineTabs button-toolbar-3 button-slimline" id="allEngines" 
            oncommand="doEngineClick(event, this);" label="&allresults.title.label;"
            toggled="true"/>
    <separator orient="vertical"/>
    <text value="&viewbyprovider.label;"/>
    <separator orient="vertical" class="thin"/>
  </box>

  <popupset>
    <popup id="contextual" oncreate="return fillContextMenu('contextual', 'internetresultstree');" >
      <menu/>
    </popup>
  </popupset>
  <tree id="internetresultstree" ref="" flex="1" datasources="rdf:internetsearch" context="contextual"
    onselect="treeSelect(event);" onclick="treeClick(event);">

  <treecolgroup>
    <treecol id="NameColumn" resource="http://home.netscape.com/NC-rdf#Name" flex="1"/>
    <splitter class="tree-splitter"/>
    <treecol id="PageRankColumn" resource="http://home.netscape.com/NC-rdf#PageRank"
             resource2="http://home.netscape.com/NC-rdf#Name" flex="1"/>
    <splitter class="tree-splitter"/>
    <treecol id="RelevanceColumn" resource="http://home.netscape.com/NC-rdf#Relevance"
             resource2="http://home.netscape.com/NC-rdf#Name"
             hidden="true" flex="1"/>
    <splitter class="tree-splitter"/>
    <treecol id="PriceColumn" resource="http://home.netscape.com/NC-rdf#Price"
             resource2="http://home.netscape.com/NC-rdf#Availability"
             hidden="true" flex="1"/>
    <splitter class="tree-splitter"/>
    <treecol id="AvailabilityColumn" resource="http://home.netscape.com/NC-rdf#Availability"
             resource2="http://home.netscape.com/NC-rdf#Price"
             hidden="true" flex="1"/>
    <splitter class="tree-splitter"/>
    <treecol id="DateColumn" resource="http://home.netscape.com/NC-rdf#Date"
             resource2="http://home.netscape.com/NC-rdf#Name"
             hidden="true" flex="1"/>
    <splitter class="tree-splitter"/>
    <treecol id="SiteColumn" resource="http://home.netscape.com/NC-rdf#Site"
             resource2="http://home.netscape.com/NC-rdf#Name" flex="1"/>
    <splitter class="tree-splitter"/>
    <treecol id="EngineColumn" resource="http://home.netscape.com/NC-rdf#Engine"
             resource2="http://home.netscape.com/NC-rdf#Name" flex="1"/>
  </treecolgroup>

    <template>
      <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
        <treechildren flex="1">
          <treeitem uri="..." rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
            <treerow>
              <treecell>
                <separator class="groove"/>
              </treecell>
            </treerow>
          </treeitem>   
        </treechildren> 
      </rule>
      <rule>
        <treechildren flex="1">
          <treeitem uri="..." rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
            <treerow>
              <treecell class="treecell-iconic" crop="right"
                        src="rdf:http://home.netscape.com/NC-rdf#Icon" 
                        label="rdf:http://home.netscape.com/NC-rdf#Name" />
              <treecell crop="right" label="rdf:http://home.netscape.com/NC-rdf#PageRank" />
              <treecell>
                <progressmeter align="horizontal" value="rdf:http://home.netscape.com/NC-rdf#Relevance" mode="normal" />
                <text crop="right" value="rdf:http://home.netscape.com/NC-rdf#Relevance"/>
              </treecell>
              <treecell crop="right" label="rdf:http://home.netscape.com/NC-rdf#Price" />
              <treecell crop="right" label="rdf:http://home.netscape.com/NC-rdf#Availability" />
              <treecell crop="right" label="rdf:http://home.netscape.com/NC-rdf#Date" />
              <treecell crop="right" label="rdf:http://home.netscape.com/NC-rdf#Site" />
              <treecell crop="right" label="rdf:http://home.netscape.com/NC-rdf#Engine" />
            </treerow>
          </treeitem>
        </treechildren>
      </rule>
    </template>

    <treehead>
      <treerow>
        <treecell id="NameCell" class="treecell-header sortDirectionIndicator"
          label="&name.column.label;" observes="NameColumn"
          resource="http://home.netscape.com/NC-rdf#Name"
          onclick="return doSort('NameColumn', null);" />
        <treecell id="PageRankCell" class="treecell-header sortDirectionIndicator"
          label="&pagerank.column.label;" observes="PageRankColumn"
          resource="http://home.netscape.com/NC-rdf#PageRank"
          onclick="return doSort('PageRankColumn', null);" />
        <treecell id="RelevanceCell" class="treecell-header sortDirectionIndicator"
          label="&relevance.column.label;" observes="RelevanceColumn"
          resource="http://home.netscape.com/NC-rdf#Relevance"
          onclick="return doSort('RelevanceColumn', null);" />
        <treecell id="PriceCell" class="treecell-header sortDirectionIndicator"
          label="&price.column.label;" observes="PriceColumn"
          resource="http://home.netscape.com/NC-rdf#Price"
          onclick="return doSort('PriceColumn', null);" />
        <treecell id="AvailabilityCell" class="treecell-header sortDirectionIndicator"
          label="&availability.column.label;" observes="AvailabilityColumn"
          resource="http://home.netscape.com/NC-rdf#Availability"
          onclick="return doSort('AvailabilityColumn', null);" />
        <treecell id="DateCell" class="treecell-header sortDirectionIndicator"
          label="&date.column.label;" observes="DateColumn"
          resource="http://home.netscape.com/NC-rdf#Date"
          onclick="return doSort('DateColumn', null);" />
        <treecell id="SiteCell" class="treecell-header sortDirectionIndicator"
          label="&site.column.label;" observes="SiteColumn"
          resource="http://home.netscape.com/NC-rdf#Site"
          onclick="return doSort('SiteColumn', null);" />
        <treecell id="EngineCell" class="treecell-header sortDirectionIndicator"
          label="&engine.column.label;" observes="EngineColumn"
          resource="http://home.netscape.com/NC-rdf#Engine"
          onclick="return doSort('EngineColumn', null);" />

      </treerow>
    </treehead>

  </tree>

  <splitter id="results-splitter" persist="state" collapse="after" orient="vertical" autostretch="never">
    <grippy/>
  </splitter>
  <box class="double-box-top" flex="1">
    <iframe id="content" flex="1" src="chrome://communicator/locale/search/default.htm"/>
  </box>
  
</window>
