var contentDirs = new Array('pages');function checkTitle(){    var myNode = parent.mpContent.document.getElementsByTagName("title");    var contentTitle = myNode[0].innerHTML;    var breadCrumbNode = getObj("breadcrumb");    var theURL = parent.mpContent.document.URL;    var pathNameStart = theURL.indexOf("//") + 2;    theURL = theURL.substring(pathNameStart,theURL.length);        var stopLoop = false;        while (!stopLoop){        if (theURL.indexOf("/") != -1){            firstSlash = theURL.indexOf("/") + 1;            theNewURL = theURL.substring(firstSlash,theURL.length);            if (theNewURL.indexOf("/") == -1){                stopLoop = true;            }else{                theURL = theNewURL;            }        }        if (theURL.indexOf("\\") != -1){            firstSlash = theURL.indexOf("\\") + 1;            theNewURL = theURL.substring(firstSlash,theURL.length);            if (theNewURL.indexOf("\\") == -1){                stopLoop = true;            }else{                theURL = theNewURL;            }        }    }        var theDirectory = theURL.substring(0,theURL.indexOf("/"));        var msg = "<a href='";    var dirstatus = false;    for (i=0;i<contentDirs.length;i++){        if (theDirectory == contentDirs[i]){            dirstatus = true;        }    }    if (dirstatus == true){        msg += theDirectory + "/" + theDirectory;        msg += ".html' target='mpContent'>";        msg += theDirectory.toUpperCase() + "<\/a> ";    }    msg = " | <a href='javascript:scrollContentTop();'";    msg += " title='Scroll to top'>";    msg += contentTitle + "<\/a> | ";    breadCrumbNode.innerHTML= msg;}function scrollContentTop(){    parent.mpContent.scrollTo(0,0);}