
function myBrowserWidth() 
{
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;

  } else if (document.documentElement && document.documentElement.clientWidth) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;

  } else if (document.body && document.body.clientWidth) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }

  if (myWidth < 1024){myWidth=720}
  else {myWidth = myWidth*.83}

  return [myWidth];
}




function myBrowserWidthCD() 
{
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;

  } else if (document.documentElement && document.documentElement.clientWidth) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;

  } else if (document.body && document.body.clientWidth) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }

  if (myWidth < 900 ){myWidth=180}
  else {myWidth = myWidth*.40}

  return [myWidth];
}



function myBrowserWidthBlog() 
{
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;

  } else if (document.documentElement && document.documentElement.clientWidth) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;

  } else if (document.body && document.body.clientWidth) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }

  if (myWidth < 900){myWidth=650}
  else {myWidth = myWidth*.75}

  return [myWidth];
}



function stuffSize() 
{
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = (window.innerWidth/2)-136;

  } else if (document.documentElement && document.documentElement.clientWidth) {
    //IE 6+ in 'standards compliant mode'
    myWidth = (document.documentElement.clientWidth/2)-136;

  } else if (document.body && document.body.clientWidth) {
    //IE 4 compatible
    myWidth = (document.body.clientWidth/2)-136;
  }

  if (myWidth < 256){myWidth=256}
  return [myWidth];
}


function techSize() 
{
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = (window.innerWidth/2)-46;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = (document.documentElement.clientWidth/2)-46;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = (document.body.clientWidth/2)-46;
  }

  if (myWidth < 346){myWidth=346}
  return [myWidth];
}



function resSize() 
{
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = (window.innerWidth/2)+46;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = (document.documentElement.clientWidth/2)+46;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = (document.body.clientWidth/2)+46;
  }

  if (myWidth < 438){myWidth=438}
  return [myWidth];
}




function loadMenus () 
{
    window.Stuff = new Menu("Stuff");
    Stuff.addMenuItem("../../leeheader/link_hometheater.gif", "top.location='../../hometheater/hometheaterpagemain.htm'");
    Stuff.addMenuItem("../../leeheader/link_dvd.gif", "top.location='../../scripts/movies/main.htm'" );
    Stuff.addMenuItem("../../leeheader/link_music.gif", "top.location='../../scripts/cddatabase/cddatabasemain.htm'" );
    Stuff.addMenuItem("../../leeheader/link_Z.gif", "top.location='../../car/volume01_issue01/index.htm'" );
    Stuff.addMenuItem("../../leeheader/link_M3.gif", "top.location='../../car/volume01_issue07/index.htm'" );
    Stuff.addMenuItem("../../leeheader/link_arcade.gif", "top.location='../../scripts/games/main.htm'" );
    Stuff.menuItemWidth  = 180;
    Stuff.menuItemHeight = 30;
    Stuff.menuItemBorder = 1;
    Stuff.menuItemIndent = 0;
    Stuff.bgColor = "#dddddd";
    Stuff.menuItemBgColor = "white";
    Stuff.menuHiliteBgColor = "#94A5FF";
    Stuff.disableDrag = true;
 

    window.Tech = new Menu("Tech");
    Tech.addMenuItem("../../leeheader/link_about.gif", "top.location='../../scripts/utilities/siteinfo.htm'" );
    Tech.addMenuItem("../../leeheader/link_computers.gif", "top.location='../../computerpage/index.htm'" );
    Tech.addMenuItem("../../leeheader/link_monitor.gif", "top.location='../../scripts/webstats/webstatsmain.htm'" );
    Tech.menuItemWidth  = 180;
    Tech.menuItemHeight = 30;
    Tech.menuItemBorder = 1;
    Tech.menuItemIndent = 0;
    Tech.bgColor = "#dddddd";
    Tech.menuItemBgColor = "white";
    Tech.menuHiliteBgColor = "#DEA5AD";
    Tech.disableDrag = true;


    window.Resources = new Menu("Resources");
    Resources.addMenuItem("../../leeheader/link_user.gif", "top.location='../../scripts/login/user.htm'" );
    Resources.addMenuItem("../../leeheader/link_pm.gif", "top.location='../../scripts/discussionforum/pmlist.htm'" );
    Resources.addMenuItem("../../leeheader/link_forum.gif", "top.location='../../scripts/discussionforum/discussionmain.htm?forum=mike-lee.org forums'" );
    Resources.addMenuItem("../../leeheader/link_ftp.gif", "top.location='ftp://mike-lee.org'" );
    Resources.addMenuItem("../../leeheader/link_email.gif", "top.location='../../scripts/mail/mailbox.htm'" );
    Resources.menuItemWidth  = 180;
    Resources.menuItemHeight = 30;
    Resources.menuItemBorder = 1;
    Resources.menuItemIndent = 0;
    Resources.bgColor = "#dddddd";
    Resources.menuItemBgColor = "white";
    Resources.menuHiliteBgColor = "#DECEF7";
    Resources.disableDrag = true;

    Stuff.writeMenus();

}


if (document.images) { 
    pic1000on= new Image(39,39); 
    pic1000on.src="../../leeheader/mike-leedotorg_pre.gif"; 
    pic1000off= new Image(39,39); 
    pic1000off.src="../../leeheader/mike-leedotorg.gif"; 

    pic1001on= new Image(39,39); 
    pic1001on.src="../../leeheader/button_photographs_dark.gif"; 
    pic1001off= new Image(39,39); 
    pic1001off.src="../../leeheader/button_photographs.gif"; 

    pic1002on= new Image(39,39); 
    pic1002on.src="../../leeheader/button_mikestuff_dark.gif"; 
    pic1002off= new Image(39,39); 
    pic1002off.src="../../leeheader/button_mikestuff.gif"; 

    pic1003on= new Image(39,39); 
    pic1003on.src="../../leeheader/button_technology_dark.gif"; 
    pic1003off= new Image(39,39); 
    pic1003off.src="../../leeheader/button_technology.gif"; 

    pic1004on= new Image(39,39); 
    pic1004on.src="../../leeheader/button_resources_dark.gif"; 
    pic1004off= new Image(39,39); 
    pic1004off.src="../../leeheader/button_resources.gif"; 

    pic1005on= new Image(39,39); 
    pic1005on.src="../../leeheader/button_resume_dark.gif"; 
    pic1005off= new Image(39,39); 
    pic1005off.src="../../leeheader/button_resume.gif";
} 

function lightup(imgName) { 
    if (document.images) { 
        imgOn=eval(imgName + "on.src"); 
        document[imgName].src= imgOn; 
    } 
} 

function turnoff(imgName) { 
    if (document.images) { 
        imgOff=eval(imgName + "off.src"); 
        document[imgName].src= imgOff; 
    } 
} 



function showstuffmenu() {
    var locval;

    locval=stuffSize();

    if ((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)>=3)){
        eval( "showMenu(Stuff," +  0 + ",108)" );
    }
    else {
       eval( "showMenu(Stuff," +  locval + ",108)" );
    }

}
 
function showresourcemenu() {
    var locval;
    locval=resSize();

    if ((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)>=3)){
        eval( "showMenu(Resources," +  0 + ",108)" );
    }
    else {
        eval( "showMenu(Resources," +  locval + ",108)" );
    }
}
 

function showtechmenu() {
    var locval;
    locval=techSize();

    if ((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)>=3)){
        eval( "showMenu(Tech," +  0 + ",108)" );
    }
    else {
        eval( "showMenu(Tech," +  locval + ",108)" );
    }
}



