if (top.location == self.location) {
    filePath = location.pathname.substring(0,location.pathname.lastIndexOf('/Demos/')+1)
    leftHalf = "http://" + location.host 
    rightHalf = "/" + location.pathname
    bothHalf = leftHalf + rightHalf
    //alert(bothHalf);
    //location.href = bothHalf * Commented out by JG due to errors.
}
