/* jlib.js by Johan A Sarkinen 
   2000-10-31 
*/

function jplib_SideBySide_w( vWidth, vContents, vMain, vRelPath ) {
	document.writeln('<frameset cols="' + vWidth + ',*" border="1" bordercolor="#000000" framespacing="1">')
	document.writeln('<frame src="' + vContents + '" name="contents">')
	document.writeln('<frame src="'+vMain+'" name="main">')
//	document.writeln('<noframes>')
//	document.writeln('<body bgcolor="#808000">
//    <p><!--webbot bot="PurpleText"
//    preview="The frameset on this page can be edited with the FrontPage Frames Wizard; use the Open or Open With option from the FrontPage Explorer's edit menu.This page must be saved to a web before you can edit it with the Frames Wizard.Browsers that don't support frames will display the contents of this page, without these instructions. Use the Frames Wizard to specify an alternate page for browsers without frames."
//    s-viewable=" " --> </p>
//    <p>This web page uses frames, but your browser doesn't
//    support them.</p>
//    </body>
//    </noframes>
	document.writeln('</frameset>')
} // SideBySide()

function jplib_SideBySide( vContents, vMain, vRelPath ) {
	jplib_SideBySide_w( 140, vContents, vMain, vRelPath )
}

// 2001-03-11
function jplib_SideBySideX( vContents, vMain, vRelPath ) {
	document.writeln('<frameset cols="140,*" border="1" bordercolor="#000000" framespacing="1">')
	document.writeln('<frame src="' + vContents + '" name="contents">')
	document.writeln('<frame src="'+vMain+'" name="main">')
//	document.writeln('<noframes>')
//	document.writeln('<body bgcolor="#808000">
//    <p><!--webbot bot="PurpleText"
//    preview="The frameset on this page can be edited with the FrontPage Frames Wizard; use the Open or Open With option from the FrontPage Explorer's edit menu.This page must be saved to a web before you can edit it with the Frames Wizard.Browsers that don't support frames will display the contents of this page, without these instructions. Use the Frames Wizard to specify an alternate page for browsers without frames."
//    s-viewable=" " --> </p>
//    <p>This web page uses frames, but your browser doesn't
//    support them.</p>
//    </body>
//    </noframes>
	document.writeln('</frameset>')
} // SideBySide()


function jlib_index_html ( relPath, mainFile ) { 
        document.writeln(' <frameset rows="70,*"> '); 
        document.writeln(' <frame name="header" src="' + relPath + 'header.html" '); 
        document.writeln(' target="main" noresize scrolling=no frameborder=0 '); 
        document.writeln(' marginwidth="1" marginheight="1"> '); 
        document.writeln(' <frame name="tmain" src="' + mainFile + '" scrolling="auto"> '); 
        document.writeln(' <noframes> '); 
        document.writeln(' <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> '); 
        document.writeln(' <p>This page uses frames, but your browser doesn\'t support them.</p> '); 
        document.writeln(' </body> '); 
        document.writeln('   </noframes> '); 
        document.writeln(' </frameset> '); 
} /* jlib_index_html  */ 

function jlib_frameset( ) { 
        document.writeln(' <frameset rows="70,*"> '); 
} 


function jlibIndexPage( relPath ) { 
        if ("1" == "2" ) { 
                document.writeln('<body bgcolor=white>'); 
                document.writeln('function IndexPage() in external lib...'); 
                document.writeln('</body>'); 
        } 
        else 
        { 

/* 
        document.writeln(' <frameset rows="70,*" border="yes">' ); 
        document.writeln('<frame src="' + relPath + 'header.html" name="banner" scrolling="no"'); 
        document.writeln('noresize>'); 
        document.writeln('<frame src="' + relPath + 'cm.html" name="mainframe">'); 
        document.writeln('<noframes>'); 
        document.writeln('<body bgcolor="#000080" text="#C0C0C0" topmargin="1"'); 
        document.writeln('leftmargin="1">'); 
        document.writeln('<p>This web page uses frames, but your browser doesn\'t'); 
        document.writeln('support them.</p>'); 
        document.writeln('</body>'); 
        document.writeln('</noframes>'); 
        document.writeln('</frameset>'); 
*/ 
        
        document.writeln(' <frameset rows="70,*"> '); 
        
        document.writeln(' <frame name="header" src="' + relPath + 'header.html" '); 
        document.writeln(' target="main" noresize scrolling=no frameborder=0 '); 
        document.writeln(' marginwidth="1" marginheight="1"> '); 
        document.writeln(' <frame name="tmain" src="' + relPath + 'main.html" scrolling="auto"> '); 
        document.writeln(' <noframes> '); 
        document.writeln(' <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> '); 
        document.writeln(' <p>This page uses frames, but your browser doesn\'t support them.</p> '); 
        document.writeln(' </body> '); 
        document.writeln('   </noframes> '); 
        document.writeln(' </frameset> '); 

        } 

} /* jlibIndexPage */ 

function pw( f, w, h)
{
	w = 650;
	h = 500;
	opts='"width=' + w + ",height=" + h +'"';
	win = window.open( f, "Havspaviljongen", opts )
	win.focus()
}

