// Frameset integrity script (C) Damn Good Web Design, Australia.
//
// The vars 'ReloadPageURL' and 'FramesetIntegrityType' must be
// defined in the HTML page calling this script.


if (FramesetIntegrityType == 'child') {
  // stops the page from being loaded/view outside of its parent frameset
  if (top.location.href == self.location.href) {
    self.location.href = ReloadPageURL;
  }
}

if (FramesetIntegrityType == 'parent') {
  // stops the page from being embedded in a third party frameset
  if (top.location.href != self.location.href) {
    self.location.href = ReloadPageURL;
  }
}
