/* Load stuff in the frames - 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 */

var passed = location.search ? unescape(location.search.substring(1)) + '&' : '';

var myMain = passed ? passed.substring(0,passed.indexOf('&')) : 'home';



    if (myMain == "navi" || myMain == "header") {myMain = "home"} 

    document.write('<frameset rows="150,*" cols="*" frameborder="NO" border="0" framespacing="0">');
    document.write('  <frame src="header.htm" name="montagnaproperties" scrolling="NO" noresize >');
    document.write('  <frameset rows="*" cols="172,*" framespacing="0" frameborder="NO" border="0">');
    document.write('    <frame src="navi.htm" name="leftFrame" scrolling="auto" noresize>');
    document.write('    <frame src="' + myMain + '.htm" name="mainFrame">');
    document.write('  </frameset>');
    document.write('</frameset>');



