function redirectContent() { // This opens the file in the bottom frame of the main index.
var myTarget="index.html" // Edit this & both frame ids below
if ( (top == self) || (top.frames[0].name != 'ty_menu') ) {
    var localFolder  = 'public_html'  // this is the name of the hard drive folder
    var onlineFolder = 'secretstage.com'  // this is the online pathname to the uppermost folder
    var homePath = unescape(document.location);
    if ( document.location.protocol == 'http:' ) {
        homePath = homePath.substring (0,homePath.indexOf(onlineFolder)+(onlineFolder.length));
    }
    else {
        homePath = homePath.substring (0,homePath.indexOf(localFolder)+(localFolder.length));
    }
    var redirectURL = unescape( homePath + "/" + myTarget + "?" + unescape(location.href) );
    if (document.images) top.location.replace(redirectURL);
    else top.location.href = redirectURL;
    }
}
// Invoke the function
redirectContent()

