location e' una proprieta' di window, non di document...

if(self == top) top.location.href = "home.asp?page=" + self.location.href ;

ciao