// Reload if loaded into the top frame
// Use 'escape' to ensure that any page parameters are passed properly
if(self==top){
    var newURL=location.protocol + '\/\/' + location.host + location.pathname.substring(0,location.pathname.lastIndexOf('/')) + '/index.asp?page=' + escape(location.href.substring(location.href.lastIndexOf('/')+1));
    if(document.images){ // Detects all browsers that support 'replace'
        top.location.replace(newURL)
	} else {
	    top.location.href=newURL // Danger of 'back' button looping
	}
}
