// INLINE FRAME REDIRECTS - Redirects the user to the Main Entrance when
//                          attempting to view the inline frame document
//                          as a parent document.

if ( (parent.location == "http://zionmatrix.com/easytracker/changelog.php") ||
     (parent.location == "http://bnbteasytracker.sourceforge.net/changelog.php") ) {
   window.location.replace("index.php");
}

if ( (parent.location == "http://zionmatrix.com/easytracker/downloads.php") ||
     (parent.location == "http://bnbteasytracker.sourceforge.net/downloads.php") ) {
   window.location.replace("index.php");
}

if ( (parent.location == "http://zionmatrix.com/easytracker/faq.php") ||
     (parent.location == "http://bnbteasytracker.sourceforge.net/faq.php") ) {
   window.location.replace("index.php");
}

if ( (parent.location == "http://zionmatrix.com/easytracker/features.php") ||
     (parent.location == "http://bnbteasytracker.sourceforge.net/features.php") ) {
   window.location.replace("index.php");
}

if ( (parent.location == "http://zionmatrix.com/easytracker/main.php") ||
     (parent.location == "http://bnbteasytracker.sourceforge.net/main.php") ) {
   window.location.replace("index.php");
}

if ( (parent.location == "http://zionmatrix.com/easytracker/support.php") ||
     (parent.location == "http://bnbteasytracker.sourceforge.net/support.php") ) {
   window.location.replace("index.php");
}

// Sitemap Links

function main() {
  window.console.location = "main.php";
}

function features() {
  window.console.location = "features.php";
}

function downloads() {
  window.console.location = "downloads.php";
}

function changelog() {
  window.console.location = "changelog.php";
}

function support() {
  window.console.location = "support.php";
}

function faq() {
  window.console.location = "faq.php";
}

// Sitemap Highlights

function nohighlight() {
  document.sitemap.src = sm0.src
  document.mapdesc.src = md0.src
}

function highlight1() {
  document.sitemap.src = sm1.src
  document.mapdesc.src = md1.src
}

function highlight2() {
  document.sitemap.src = sm2.src
  document.mapdesc.src = md2.src
}

function highlight3() {
  document.sitemap.src = sm3.src
  document.mapdesc.src = md3.src
}

function highlight4() {
  document.sitemap.src = sm4.src
  document.mapdesc.src = md4.src
}

function highlight5() {
  document.sitemap.src = sm5.src
  document.mapdesc.src = md5.src
}

//

function maketorrent_single() {
  window.open ("caps/maketorrent_single.png","screencap",config="height=600,width=425,resizable=1");
}

function maketorrent_folder() {
  window.open ("caps/maketorrent_folder.png","screencap",config="height=600,width=425,resizable=1");
}

function uploadtorrent() {
  window.open ("caps/uploadtorrent.png","screencap",config="height=270,width=420,resizable=1");
}

function install() {
  window.open ("install/index.php","net_installer",config="height=527,width=574,resizable=1");
}

function loadYes() {
  alert ("You answered YES. \n\n Therefore, it is not necessary for you to modify your computer's HOSTS file. \n\n Congratulations!");
}

function loadNo() {
  alert ("Since your tracker webpage did not load, you will most likely have to " +
    "configure your router and/or modify your computer\'s HOSTS file. Please see the Appendix for help " +
    "in setting up your router and modifying your HOSTS file. \n\n You should skip Test #2 until you can answer YES to Test #1.");
}

// DEFINITIONS

function define_external_css() {
  alert("An external cascading stylesheet is a separate document that contains " +
        "style information for specified elements found in a webpage document. \n\n" +
        "It can be used to apply these specifications for multiple documents using " +
        "the <link> HTML tag; typically placed in the <head> section of an HTML " +
        "document. \n\n" +
        "It differs from an inline stylesheet, which is specified within a " +
        "particular webpage document, and can only be applied to elements found " +
        "in that one document. \n\n");
}

// EXTERNAL LINKS

function link_forums() {
  window.open ("http://zionmatrix.com/forum/index.php","forums");
}

function link_bnbt() {
  window.open ("http://bnbt.go-dedicated.com","bnbt");
}

function link_filesoup() {
  window.open ("http://www.filesoup.com/forum/","filesoup");
}

function downloadFM20() {
  parent.location = "http://download.microsoft.com/download/office97pro/fm2past/97/WIN98/EN-US/fm2paste.exe";
}

function dl_bluesteel301() {
  window.open ("http://prdownloads.sourceforge.net/bnbteasytracker/bluesteel-3.01.css.zip?download")
}

function dl_newfillbars() {
  window.open ("http://prdownloads.sourceforge.net/bnbteasytracker/replacement.progress.bar.images.zip?download");
}
