﻿if (window != window.top && window.location.href.indexOf('cmspagemode', 0) == -1) // we're in an iframe
  top.location.replace(window.location);
