');
doc.write('<\/BODY><\/HTML>');
doc.close();
}
var swn_current_hilighted_toc_file_no=-1;
function swn_display_table_of_contents()
{
if(swn_current_hilighted_toc_file_no!=swn_selected_contents_entry.file_no)
{
swn_current_hilighted_toc_file_no=swn_selected_contents_entry.file_no;
swn_display_table_of_contents_explorer_style();
}
}
function swn_set_to_be_shown (article)
{
var sub_article;
while(article!=null)
{
article.display_article_in_contents=1;
for(sub_article=article.sub_article_list;sub_article!=null;sub_article=sub_article.next_sub_article)
sub_article.display_article_in_contents=1;
article=article.parent_article;
}
}
function swn_select_article(file_no)
{
swn_selected_contents_entry=swn_articles;
while(swn_selected_contents_entry.file_no!=file_no)
swn_selected_contents_entry=swn_selected_contents_entry.next_article;
if(swn_browser_is_nav2||swn_browser_is_nav3)
setTimeout("swn_display_table_of_contents()",0);// setTimeout is needed to keep Netscape 2&3 from crashing.
else
swn_display_table_of_contents();
if(swn_selected_contents_entry.main_frame_file_name)
window.swn_article.location.href=swn_selected_contents_entry.main_frame_file_name;
}
function swn_prop_open(file_no)
{
var article=swn_articles;
while(article.file_no!=file_no)
article=article.next_article;
article.propped_open=1;
swn_current_hilighted_toc_file_no=-1;
if(swn_browser_is_nav2||swn_browser_is_nav3)
setTimeout("swn_display_table_of_contents()",0);// setTimeout is needed to keep Netscape 2&3 from crashing.
else
swn_display_table_of_contents();
}
function swn_unprop(file_no)
{
var article=swn_articles;
while(article.file_no!=file_no)
article=article.next_article;
article.propped_open=0;
swn_current_hilighted_toc_file_no=-1;
if(swn_browser_is_nav2||swn_browser_is_nav3)
setTimeout("swn_display_table_of_contents()",0); // setTimeout is needed to keep Netscape 2&3 from crashing.
else
swn_display_table_of_contents();
}
function swn_create_article(parent,title,main_frame_file_name,file_no)
{
var article;
this.parent_article=parent;
this.title=title;
this.main_frame_file_name=swn_website_root+main_frame_file_name;
this.file_no=file_no;
this.display_article_in_contents=1;
this.propped_open=0;
this.sub_article_list=null;
this.next_sub_article=null;
// calculate level
if(parent==null)
this.level=0;
else
this.level=parent.level+1;
this.next_article=null;
if(swn_articles==null)
swn_articles=this;
else
{
article=swn_articles;
while(article.next_article!=null)
article=article.next_article;
article.next_article=this;
}
if(parent!=null)
{
if(parent.sub_article_list==null)
parent.sub_article_list=this;
else
{
article=parent.sub_article_list;
while(article.next_sub_article!=null)
article=article.next_sub_article;
article.next_sub_article=this;
}
}
return this;
}
var swn_selected_contents_entry;
var swn_node_1;
var swn_articles=new swn_create_article(null,"Contents","swn00001.htm",0);
swn_node_1=new swn_create_article(swn_articles,"Arc Boundary","ArcBoundary/swnf0002.htm",2);
new swn_create_article(swn_node_1," The Horse Dike","ArcBoundary/Horse%20Dike/swnf0005.htm",5);
new swn_create_article(swn_node_1," Hodgkins Markers","ArcBoundary/Hodgkins%20Markers/swnf0004.htm",4);
new swn_create_article(swn_articles," Mason-Dixon Line","MasonDixon/swnf0003.htm",3);
new swn_create_article(swn_articles,"White Clay Watershed Association","WCWA/swnf0001.htm",1);
function swn_on_frameset_load()
{
swn_current_hilighted_toc_file_no=-1;
window.swn_toc.location.href="swn00004.htm";
}
function swn_on_swn00004_load()
{
var article;
swn_selected_contents_entry=swn_articles;
for(article=swn_articles;article!=null;article=article.next_article)
if(article.file_no==swn_file_to_hilight)
{
swn_selected_contents_entry=article;
break;
}
if(swn_file_to_display)
window.swn_article.location.href=swn_file_to_display;
swn_display_table_of_contents();
}
function swn_on_toc_frame_load()
{
if(swn_browser_supports_scroll)
top.swn_toc.scroll (0,(swn_selected_line_no*20)-200);
}
function swn_on_article_load(file_to_hilight)
{ // highlight the requested toc line
if ((!swn_use_fixed_contents) && (swn_current_hilighted_toc_file_no!=-1))
{
swn_selected_contents_entry=swn_articles;
for(article=swn_articles;article!=null;article=article.next_article)
if(article.file_no==file_to_hilight)
{
swn_selected_contents_entry=article;
break;
}
swn_display_table_of_contents();
}
}
var swn_file_to_display='swn00001.htm',swn_file_to_hilight=0;
if (top.location.href.indexOf('?')>=0)
{
var i,href_search_part=top.location.href.substring(top.location.href.indexOf('?'),top.location.href.length);
var separator_pos=href_search_part.indexOf('*');
var s=href_search_part.substring(1,separator_pos);
swn_file_to_display='';
for(i=0;i