// $Id$

// Escape from frame, but retain one-click "Back". -->
/*
 Simply add a variable named "friend" to the parent frame, 
 and the try{} statement will test for it, and not break your own frames.
 Note however the "friend" must be set on parent of same domain 
*/
if (top != self) {
  try {
    if (top.friend) {
      parent.friend = true;
    }
    else {
      //alert('friend is: ' + top.friend);
      frameBust();
    }
  }
  catch (err) {
    //alert('err is: ' + err);
    frameBust();
  }
}
function frameBust() {
  if (document.images) {
    top.location.replace(document.location);
  }
  else {
    top.location = self.location;
  }
}

