//Jumps to the index.php?content=... in root directory

basisloc=new Array();

basisloc[0]="http://www.stepcenter.com/";
basisloc[1]="http://stepcenter.com/";
basisloc[2]="http://moves.stepcenter.com/";
basisloc[3]="http://routines.stepcenter.com/";
basisloc[4]="http://polls.stepcenter.com/";
basisloc[5]="http://music.stepcenter.com/";
basisloc[6]="http://links.stepcenter.com/";
basisloc[7]="http://forum.stepcenter.com/";
basisloc[8]="http://videos.stepcenter.com/";
basisloc[9]="http://137.248.142.40:1234/";
basisloc[10]="http://chat.stepcenter.com/";
basisloc[11]="http://web100.hostde1.de/";
basisloc[12]="http://www.stepcenter.loc/";

indexloc=new Array();

indexloc[0]="http://www.stepcenter.com/";
indexloc[1]="http://www.stepcenter.com/";
indexloc[2]="http://www.stepcenter.com/";
indexloc[3]="http://www.stepcenter.com/";
indexloc[4]="http://www.stepcenter.com/";
indexloc[5]="http://www.stepcenter.com/";
indexloc[6]="http://www.stepcenter.com/";
indexloc[7]="http://www.stepcenter.com/";
indexloc[8]="http://www.stepcenter.com/";
indexloc[9]="http://137.248.142.40:1234/";
indexloc[10]="http://www.stepcenter.com/";
indexloc[11]="http://web100.hostde1.de/";
indexloc[12]="http://www.stepcenter.loc/";

///alert("!!!");

if (parent == null || parent == self)
{
  if (window.location.protocol=="file:")
  {
    docurl=window.location.href;
    subpath="";
    for (ij=0;ij<=dirlevel;ij++)
    { slashpos=docurl.lastIndexOf("/");
      lastpos=docurl.length;
      if (ij!=0) subpath="/"+subpath;
      subpath=docurl.substring(slashpos+1,lastpos)+subpath;
      docurl=docurl.substring(0,slashpos);
    }
  
//  alert(docurl);
  
    window.location.replace(docurl+"/start.shtml?content="+escape(subpath));
  }
  
  else if (window.location.protocol=="http:")
  { 
    docurl=window.location.href;

    for (i=0;i<basisloc.length;i++)
    { if (docurl.substr(0,basisloc[i].length)==basisloc[i])
      { subpath=docurl.substring(basisloc[i].length,docurl.length);
        window.location.replace(indexloc[i]+"?content="+escape(subpath));
        break;
//      alert(subpath);
      }
    }

    if (i==basisloc.length)
      window.location.replace(indexloc[0]);
  }
}
