<!--
    // check if page is top frame and it is not a popup window - if not, go to index page
    if (top == self && opener == null) {
        var url = self.location.pathname.substring(self.location.pathname.lastIndexOf('/') + 1);
        //alert(url);
        location.href = "/index.php?url=" + escape(url + location.search);
        //location.href = "/index.php?url=" + escape(self.location.pathname) + (location.search ? escape(location.search.substring(1)) : '');
}
//-->

