
// BFS A modification to help with positioning the menu
function checkWidth()
{ 
width=document.body.offsetWidth; height=document.body.offsetHeight;
if (navigator.appName=="Netscape")	//BFS Take care of Netscape also
	{width=window.innerWidth; height= window.innerHeight;}
if (width < 800) nav_width = 5 ;
if (width < 1020 && width > 800) nav_width = (width - 760)/2 ;

} 

var nav_width
if (screen.width == 640) {
 nav_width = 8
}
if (screen.width == 800) {
 nav_width = 11
}
if (screen.width == 1024) {
 nav_width = 123
}
if (screen.width == 1152) {
 nav_width = 187
}
if (screen.width == 1280) {
 nav_width = 252
}
if (screen.width == 1600) {
 nav_width = 412
}

checkWidth();


//document.write (nav_width);
//document.write (width);
var TREE_FORMAT =
[
//0. left position
        nav_width,
//1. top position
        170,
//2. show +/- buttons
        true,
//3. couple of button images (collapsed/expanded/blank)
        ["images/nav/c.gif", "images/nav/e.gif", "img/b.gif"],
//4. size of images (width, height,ident for nodes w/o children)
        [16,16,16],
//5. show folder image
        true,
//6. folder images (closed/opened/document)
//        ["img/fc.gif", "img/fe.gif", "img/i.gif"],
        ["images/nav/fc.gif", "images/nav/fe.gif", "images/nav/books/i.gif"],
//7. size of images (width, height)
        [16,16],
//8. identation for each level [0/*first level*/, 16/*second*/, 32/*third*/,...]
        [0,16,32,48],
//9. tree background color ("" - transparent)
        "",
//10. default style for all nodes
        "koyu",
//11. styles for each level of menu (default style will be used for undefined levels)
        [],//["clsNodeL0","clsNodeL1","clsNodeL2","clsNodeL3","clsNodeL4"],
//12. true if only one branch can be opened at same time
        true,
//13. item pagging and spacing
        [0,2],
];