var NoOffFirstLineMenus=6;			// Number of main menu items
						// Colorvariables:
						// Color variables take HTML predefined color names or "#rrggbb" strings
						// For transparency make colors and border color ""
var LowBgColor="#0000EE";			// Background color when mouse is not over
var HighBgColor="#88AAFF";			// Background color when mouse is over
var FontLowColor="#00EE00";			// Font color when mouse is not over
var FontHighColor="#00FF00";			// Font color when mouse is over
var BorderColor="black";			// Border color
var BorderWidthMain=1;				// Border width main items
var BorderWidthSub=1;				// Border width sub items
var BorderBtwnMain=1;				// Border between elements main items 1 or 0
var BorderBtwnSub=1;				// Border between elements sub items 1 or 0
var FontFamily="comic sans ms,technical,arial";	// Font family menu items
var FontSize=12;				// Font size menu items
var FontBold=1;					// Bold menu items 1 or 0
var FontItalic=0;				// Italic menu items 1 or 0
var MenuTextCentered="center";			// Item text position left, center or right
var MenuCentered="center";			// Menu horizontal position can be: left, center, right, justify,
						// leftjustify, centerjustify or rightjustify. 
						// PartOfWindow determines part of window to use
var MenuVerticalCentered="top";			// Menu vertical position top, middle, bottom or static
var ChildOverlap=.2;				// horizontal overlap child/parent
var ChildVerticalOverlap=.2;			// vertical overlap child/parent
var StartTop=10;				// Menu offset x coordinate
						// If StartTop is between 0 and 1 StartTop is calculated as part of windowheight
var StartLeft=0;				// Menu offset y coordinate
						// If StartLeft is between 0 and 1 StartLeft is calculated as part of windowheight
var VerCorrect=0;				// Multiple frames y correction
var HorCorrect=0;				// Multiple frames x correction
var LeftPaddng=3;				// Left padding
var TopPaddng=2;				// Top padding
var FirstLineHorizontal=1;			// First level items layout horizontal 1 or 0
var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
var DissapearDelay=1000;			// delay before menu folds in
var UnfoldDelay=100;				// delay before sub unfolds	
var TakeOverBgColor=1;				// Menu frame takes over background color subitem frame
var FirstLineFrame="";				// Frame where first level appears
var SecLineFrame="";				// Frame where sub levels appear
var DocTargetFrame="";				// Frame where target documents appear
var TargetLoc="";				// span id for relative positioning
var MenuWrap=1;					// enables/disables menu wrap 1 or 0
var RightToLeft=0;				// enables/disables right to left unfold 1 or 0
var BottomUp=0;					// enables/disables Bottom up unfold 1 or 0
var UnfoldsOnClick=0;				// Level 1 unfolds onclick/onmouseover
var BaseHref="";				// base href for relative liks
var Arrws=[BaseHref+"scripts/img/tri.gif",5,10,BaseHref+"scripts/img/tridown.gif",10,5,	// Arrow source, width and height.
BaseHref+"scripts/img/trileft.gif",5,10,BaseHref+"scripts/img/triup.gif",10,5];	// If arrow images are not needed keep source ""
var MenuUsesFrames=0;				// MenuUsesFrames is only 0 when Main menu, submenus,
						// document targets and script are in the same frame.
						// In all other cases it must be 1
var RememberStatus=0;				// When set to 1, menu unfolds to the presetted menu item. 
						// The preset is done by the body onload of target document.
						// In frame setup the body onload is:
						// onload="if(parent.frames[0]&&parent.frames['navig'].SetMenu)
						// parent.frames['navig'].SetMenu='x_x';"
						// In a single page the body onload is:
						// onload="if(window.SetMenu)window.SetMenu='x_x'"
						// x_x represents the menu item MenuX_X=new Array(.......
						// To preset the menu to no item use '0' for 'x_x' 
var PartOfWindow=.8;				// When MenuCentered is justify, sets part of window width to stretch to
						// Below some pretty useless effects, since only IE6+ supports them
						// I provided 3 effects: MenuSlide, MenuShadow and MenuOpacity
						// If you don't need MenuSlide just leave in the line var MenuSlide="";
						// delete the other MenuSlide statements
						// In general leave the MenuSlide you need in and delete the others.
						// Above is also valid for MenuShadow and MenuOpacity
						// You can also use other effects by specifying another
						// filter for MenuShadow and MenuOpacity.
						// You can add more filters by concanating the strings
var BuildOnDemand=0;				// 1/0 When set to 1 the sub menus are build when the parent is moused over
var MenuSlide="";
var MenuSlide="progid:DXImageTransform.Microsoft.RevealTrans(duration=.1, transition=19)";
var MenuSlide="progid:DXImageTransform.Microsoft.GradientWipe(duration=.1, wipeStyle=1)";

var MenuShadow="";
var MenuShadow="progid:DXImageTransform.Microsoft.DropShadow(color=#888888, offX=2, offY=2, positive=1)";
var MenuShadow="progid:DXImageTransform.Microsoft.Shadow(color=#0000A0, direction=135, strength=3)";

var MenuOpacity="";
var MenuOpacity="progid:DXImageTransform.Microsoft.Alpha(opacity=90)";

function BeforeStart(){ return }
function AfterBuild(){ return }
function BeforeFirstOpen(){ return }
function AfterCloseAll(){ return }
function UnLddExt(){ if(!document.layers) checkit() }

// Menu tree:
// MenuX=new Array("ItemText","Link","background image",number of sub elements,height,width,"bgcolor","bghighcolor",
//	"fontcolor","fonthighcolor","bordercolor","fontfamily",fontsize,fontbold,fontitalic,"textalign","statustext");
// Color and font variables defined in the menu tree take precedence over the global variables
// Fontsize, fontbold and fontitalic are ignored when set to -1.
// For rollover images ItemText format is: "rollover?"+BaseHref+"Image1.jpg?"+BaseHref+"Image2.jpg" 

Menu1=new Array("My work","","",2,20,100,"","","","","","",-1,-1,-1,"","");
  Menu1_1=new Array("My work","../../work/","",0,20,100,"","","","","","",-1,-1,-1,"","");
  Menu1_2=new Array("Projects","","",3,20,100,"","","","","","",-1,-1,-1,"","");
    Menu1_2_1=new Array("Muon Monte Carlo","../../work/MUONPR","",0,20,130,"","","","","","",-1,-1,-1,"","");
    Menu1_2_2=new Array("CORSIKA","../../work/CORSIKA/","",0,20,130,"","","","","","",-1,-1,-1,"","");
    Menu1_2_3=new Array("Mie Scattering","../../work/ICESCA/","",0,20,130,"","","","","","",-1,-1,-1,"","");
Menu2=new Array("Languages","","",6,20,100,"","","","","","",-1,-1,-1,"","");
  Menu2_1=new Array("Russian dictionary","../rus/","",3,20,140,"","","","","","",-1,-1,-1,"","");
    Menu2_1_1=new Array("russian dictionary","../rus/","",0,20,130,"","","","","","",-1,-1,-1,"","");
    Menu2_1_2=new Array("vocabulary trainer","../rus/rtr.html","",0,20,130,"","","","","","",-1,-1,-1,"","");
    Menu2_1_3=new Array("recall my entries","../rus/rlg.html","",0,20,130,"","","","","","",-1,-1,-1,"","");
  Menu2_2=new Array("German dictionary","../multi/","",3,20,140,"","","","","","",-1,-1,-1,"","");
    Menu2_2_1=new Array("german dictionary","../multi/","",0,20,130,"","","","","","",-1,-1,-1,"","");
    Menu2_2_2=new Array("vocabulary trainer","../multi/multr.html","",0,20,130,"","","","","","",-1,-1,-1,"","");
    Menu2_2_3=new Array("recall my entries","../multi/mullg.html","",0,20,130,"","","","","","",-1,-1,-1,"","");
  Menu2_3=new Array("Chinese dictionary","../chinese/","",3,20,140,"","","","","","",-1,-1,-1,"","");
    Menu2_3_1=new Array("chinese dictionary","../chinese/","",0,20,130,"","","","","","",-1,-1,-1,"","");
    Menu2_3_2=new Array("vocabulary trainer","","",2,20,130,"","","","","","",-1,-1,-1,"","");
      Menu2_3_2_1=new Array("vocabulary trainer","../chinese/chinetr.html","",0,20,120,"","","","","","",-1,-1,-1,"","");
      Menu2_3_2_2=new Array("ic vocab. trainer","../ic/","",0,20,120,"","","","","","",-1,-1,-1,"","");
    Menu2_3_3=new Array("recall my entries","../chinese/chinelg.html","",0,20,130,"","","","","","",-1,-1,-1,"","");
  Menu2_4=new Array("Japanese dictionary","../japanese/","",3,20,140,"","","","","","",-1,-1,-1,"","");
    Menu2_4_1=new Array("japanese dictionary","../japanese/","",0,20,130,"","","","","","",-1,-1,-1,"","");
    Menu2_4_2=new Array("vocabulary trainer","../japanese/japanetr.html","",0,20,130,"","","","","","",-1,-1,-1,"","");
    Menu2_4_3=new Array("recall my entries","../japanese/japanelg.html","",0,20,130,"","","","","","",-1,-1,-1,"","");
  Menu2_5=new Array("Online dictionaries","../dict/","",0,20,140,"","","","","","",-1,-1,-1,"","");
  Menu2_6=new Array("Countries/courses","../dict/languages.html","",0,20,140,"","","","","","",-1,-1,-1,"","");
Menu3=new Array("Computers","","",4,20,100,"","","","","","",-1,-1,-1,"","");
  Menu3_1=new Array("HTML guides","../comp/","",0,20,100,"","","","","","",-1,-1,-1,"","");
  Menu3_2=new Array("Video - DVD","../comp/video.html","",0,20,100,"","","","","","",-1,-1,-1,"","");
  Menu3_3=new Array("Linux Video","../comp/linux.html","",0,20,100,"","","","","","",-1,-1,-1,"","");
  Menu3_4=new Array("Hardware","../comp/hardware.html","",0,20,100,"","","","","","",-1,-1,-1,"","");
Menu4=new Array("Fun - News","","",4,20,100,"","","","","","",-1,-1,-1,"","");
  Menu4_1=new Array("Fun and Stories","../misc/","",0,20,100,"","","","","","",-1,-1,-1,"","");
  Menu4_2=new Array("Photo gallery","../misc/pictures/","",0,20,100,"","","","","","",-1,-1,-1,"","");
  Menu4_3=new Array("Search/News","../misc/theweb.html","",0,20,100,"","","","","","",-1,-1,-1,"","");
  Menu4_4=new Array("My friends","../misc/myfriends/","",0,20,100,"","","","","","",-1,-1,-1,"","");
Menu5=new Array("Home","","",4,20,100,"","","","","","",-1,-1,-1,"","");
  Menu5_1=new Array("My homepage","../../","",0,20,100,"","","","","","",-1,-1,-1,"","");
  Menu5_2=new Array("Ftp frontpage","/","",0,20,100,"","","","","","",-1,-1,-1,"","");
  Menu5_3=new Array("Mirrors","","",3,20,100,"","","","","","",-1,-1,-1,"","");
    Menu5_3_1=new Array("dima.lbl","http://dima.lbl.gov/~dima/","",0,20,120,"","","","","","",-1,-1,-1,"","");
    Menu5_3_2=new Array("IceCube.Wisc","http://icecube.wisc.edu/~dima/","",0,20,120,"","","","","","",-1,-1,-1,"","");
    Menu5_3_3=new Array("IceCube.Berkeley","http://icecube.berkeley.edu/~dima/","",0,20,120,"","","","","","",-1,-1,-1,"","");
  Menu5_4=new Array("My Email","mailto: dima@icecube.wisc.edu","",0,20,100,"","","","","","",-1,-1,-1,"","");
Menu6=new Array("System","","",6,20,100,"","","","","","",-1,-1,-1,"","");
  Menu6_1=new Array("Show","","",4,20,100,"","","","","","",-1,-1,-1,"","");
    Menu6_1_1=new Array("Abe","javascript:simpson(true)","",0,20,70,"","","","","","",-1,-1,-1,"","");
    Menu6_1_2=new Array("Pirate","javascript:pirate(true)","",0,20,70,"","","","","","",-1,-1,-1,"","");
    Menu6_1_3=new Array("Clock","javascript:startclock()","",0,20,70,"","","","","","",-1,-1,-1,"","");
    Menu6_1_4=new Array("Window","javascript:showinds()","",0,20,70,"","","","","","",-1,-1,-1,"","");
  Menu6_2=new Array("Hide","","",4,20,100,"","","","","","",-1,-1,-1,"","");
    Menu6_2_1=new Array("Abe","javascript:simpson(false)","",0,20,70,"","","","","","",-1,-1,-1,"","");
    Menu6_2_2=new Array("Pirate","javascript:pirate(false)","",0,20,70,"","","","","","",-1,-1,-1,"","");
    Menu6_2_3=new Array("Clock","javascript:stopclock()","",0,20,70,"","","","","","",-1,-1,-1,"","");
    Menu6_2_4=new Array("Window","javascript:hidewins()","",0,20,70,"","","","","","",-1,-1,-1,"","");
  Menu6_3=new Array("Icon","","",7,20,100,"","","","","","",-1,-1,-1,"","");
    Menu6_3_1=new Array("Add","javascript:addicon()","",0,20,100,"","","","","","",-1,-1,-1,"","");
    Menu6_3_2=new Array("Move","javascript:moveicon()","",0,20,100,"","","","","","",-1,-1,-1,"","");
    Menu6_3_3=new Array("Do not move","javascript:donotmoveicon()","",0,20,100,"","","","","","",-1,-1,-1,"","");
    Menu6_3_4=new Array("Reset icons","javascript:iconsreset()","",0,20,100,"","","","","","",-1,-1,-1,"","");
    Menu6_3_5=new Array("Delete","javascript:deleteicon()","",0,20,100,"","","","","","",-1,-1,-1,"","");
    Menu6_3_6=new Array("Do not delete","javascript:donotdeleteicon()","",0,20,100,"","","","","","",-1,-1,-1,"","");
    Menu6_3_7=new Array("Use as context","javascript:enablecontext()","",0,20,100,"","","","","","",-1,-1,-1,"","");
  Menu6_4=new Array("Settings","","",6,20,100,"","","","","","",-1,-1,-1,"","");
    Menu6_4_1=new Array("show cookies","javascript:showcookies()","",0,20,120,"","","","","","",-1,-1,-1,"","");
    Menu6_4_2=new Array("randomize midi","javascript:randomizeMidi()","",0,20,120,"","","","","","",-1,-1,-1,"","");
    Menu6_4_3=new Array("open new url","javascript:opensite()","",0,20,100,"","","","","","",-1,-1,-1,"","");
    Menu6_4_4=new Array("apply theme","","",7,20,120,"","","","","","",-1,-1,-1,"","");
      Menu6_4_4_1=new Array("Icons","javascript:applytheme('icons')","",0,20,70,"","","","","","",-1,-1,-1,"","");
      Menu6_4_4_2=new Array("Flags","javascript:applytheme('flags')","",0,20,70,"","","","","","",-1,-1,-1,"","");
      Menu6_4_4_3=new Array("Space","javascript:applytheme('space')","",0,20,70,"","","","","","",-1,-1,-1,"","");
      Menu6_4_4_4=new Array("Flame","javascript:applytheme('flame')","",0,20,70,"","","","","","",-1,-1,-1,"","");
      Menu6_4_4_5=new Array("Cartn","javascript:applytheme('cartn')","",0,20,70,"","","","","","",-1,-1,-1,"","");
      Menu6_4_4_6=new Array("Birds","javascript:applytheme('birds')","",0,20,70,"","","","","","",-1,-1,-1,"","");
      Menu6_4_4_7=new Array("Clear","javascript:applytheme('clear')","",0,20,70,"","","","","","",-1,-1,-1,"","");
    Menu6_4_5=new Array("open windows","","",5,20,120,"","","","","","",-1,-1,-1,"","");
      Menu6_4_5_1=new Array("News","javascript:openwindows('news')","",0,20,70,"","","","","","",-1,-1,-1,"","");
      Menu6_4_5_2=new Array("Search","javascript:openwindows('search')","",0,20,70,"","","","","","",-1,-1,-1,"","");
      Menu6_4_5_3=new Array("Clock","javascript:openwindows('clock')","",0,20,70,"","","","","","",-1,-1,-1,"","");
      Menu6_4_5_4=new Array("Games","javascript:openwindows('games')","",0,20,70,"","","","","","",-1,-1,-1,"","");
      Menu6_4_5_5=new Array("None","javascript:openwindows('none')","",0,20,70,"","","","","","",-1,-1,-1,"","");
    Menu6_4_6=new Array("hidden settings","","",5,20,120,"","","","","","",-1,-1,-1,"","");
      Menu6_4_6_1=new Array("remember","javascript:savesettings(true)","",0,20,80,"","","","","","",-1,-1,-1,"","");
      Menu6_4_6_2=new Array("forget","javascript:savesettings(false)","",0,20,80,"","","","","","",-1,-1,-1,"","");
      Menu6_4_6_3=new Array("change","javascript:trstyle()","",0,20,80,"","","","","","",-1,-1,-1,"","");
      Menu6_4_6_4=new Array("settings","javascript:xsettings()","",0,20,80,"","","","","","",-1,-1,-1,"","");
      Menu6_4_6_5=new Array("presets","javascript:document.getElementById?showbox('presets'):myalert('Not available in this browser')","",0,20,80,"","","","","","",-1,-1,-1,"","");
  Menu6_5=new Array("Sources","","",5,20,120,"","","","","","",-1,-1,-1,"","");
    Menu6_5_1=new Array("Folding Menu Tree","http://www.dynamicdrive.com/dynamicindex1/navigate1.htm","",0,20,150,"","","","","","",-1,-1,-1,"","");
    Menu6_5_2=new Array("HV Menu","http://www.burmees.nl/menu/menus.htm","",0,20,150,"","","","","","",-1,-1,-1,"","");
    Menu6_5_3=new Array("Popup Windows","http://scriptasylum.com/miscpage.html","",0,20,150,"","","","","","",-1,-1,-1,"","");
    Menu6_5_4=new Array("Wipe Effects","http://www.dyn-web.com/dhtml/wipes.html","",0,20,150,"","","","","","",-1,-1,-1,"","");
    Menu6_5_5=new Array("Games - Minesweeper","http://javascript.internet.com/games/","",0,20,150,"","","","","","",-1,-1,-1,"","");
  Menu6_6=new Array("Quit","javascript:quit()","",0,20,100,"","","","","","",-1,-1,-1,"","");
