var sLocPath,doMove=0;

if (self.parent.frames.length != 0)
{
    self.parent.location = self.location;
}

if (self.location.hash != "")
{
    sLocPath = self.location.hash.substring(1,self.location.hash.length);
    self.location.hash = "";                // Hide hash in address bar
    doMove++;
}

function RestoreFrameStructure()
{
    if (doMove != 0)
        self.frames[2].location = sLocPath;
}
