/* Make sure I'm load in a frame - JAVASCRIPT */
/* If a "body" file was addressed directly by a user it will notice that it is on top and call the index file with instructions to load itself in the main section of the frame */

if ((top == self) || (parent.frames[0].name != 'montagnaproperties')) {
   var fn = location.pathname.substring(location.pathname.lastIndexOf('/')+1)
   var dotloc = fn.indexOf(".")
   if (dotloc >= 0) {fn = fn.substring(0,dotloc)}
   var newURL = location.protocol + '//' + location.host + location.pathname.substring(0,location.pathname.lastIndexOf('/')) + '/?' + fn
    if (document.images)
        top.location.replace(newURL);
    else
        top.location.href = newURL;
}



