function help( szRoot, szTitle, szTopicTab, szResultsTab, szTopic )
{
    szTopicsRoot = "/help/index_new.html";
    szResultsRoot = "/help/index2.html";
    szTitle = "Help";
    szTopicTab = "/help/topics_tab.html";
    szResultsTab = "/help/results_tab.html";
    szTopic = "/help/topics.html";

    this.szTitle = szTitle;
    this.szResultsRoot = szResultsRoot;
    this.szTopicsRoot = szTopicsRoot;
    this.szTopicTab = szTopicTab;
    this.szResultsTab = szResultsTab;
    this.szTopic = szTopic;

    var szPageTitle = "MyTelescope.com - ";
    var arHelp = new Array();
    arHelp[szPageTitle + "general"] = "/help/general_info.html";
    arHelp[szPageTitle + "Account Info"] = "/help/account_info.html";
    arHelp[szPageTitle + "MyGallery"] = "/help/account_info.html";
    arHelp[szPageTitle + "Projects"] = "/help/account_info.html";
    this.arHelp = arHelp;
}

help.prototype.Location = function()
{   
   var szLink = parent.location.search + parent.location.hash;

   if ( top.location != location && szLink != "" )
   {
   	var szUrl = szLink.replace("?","");
   	top.frames[1].location = szUrl;
   }
}

help.prototype.changePage = function( szLink )
{
    top.frames[0].location = this.szResultsTab;
    top.frames[1].location = szLink;
}

help.prototype.Opener = function( szUrl )
{
    if ( szUrl + "" != "undefined" )
    {
	window_handle = window.open( this.szResultsRoot + "?"  + szUrl, this.szTitle,"width=300,height=500,resizable=no,scrollbars=auto,toolbar=no" );
    }

    else if ( this.arHelp[document.title] + "" != "undefined" )
    {
	window_handle = window.open( this.szResultsRoot + "?"  + this.arHelp[document.title], this.szTitle,"width=300,height=500,resizable=no,scrollbars=auto,toolbar=no" );
    }
	
    else
    {
	window_handle = window.open( this.szTopicsRoot, this.szTitle,"width=300,height=500,resizable=no,scrollbars=auto,toolbar=no" );
    }
    
    window_handle.focus();
}

help.prototype.showTopic = function( szTopic )
{
    var szSubtop = document.all( szTopic + "_subtopic" );

    if ( szSubtop.style.display == "inline" )
    {
	szSubtop.style.display = "none";
    }
    
    else
    {
	szSubtop.style.display = "inline";
    }
}
