/*ergi.js 
*/

function checkforframe() {
    if (document.layers && (self.innerHeight == 0 && self.innerWidth == 0)) return;
    if ((top == self) || ((document.images) ? (parent.ergi20811453 ? false : true) : (parent.frames[1].name != 'ergi20811453'))) {
        var newURL = self.location.protocol + '//' + self.location.host + self.location.pathname.substring(0,self.location.pathname.lastIndexOf('/')) + '/index.html?frame1.html&frame2.html&frame3.html&intro.html';
        if (document.images) top.location.replace(newURL);
        else top.location.href = newURL;
    }
}
//end