<!--

//"Sliding Menu with Submenus" - by Tim Guhl ©2002 - All Rights Reserved
//Site: http://www.guhl.co.uk/ EMail: webmaster@guhl.co.uk

//For full source, and 100's more DHTML scripts, visit http://www.dynamicdrive.com

/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
*/

// general 
YOffset=150; // no quotes!!
XOffset=-1;
SubXOffset = -20; // to display the submenu such that it is overlapping with its parent.
SubYOffset = -10;
staticYOffset=30; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=100; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
hideDelay=100; // default 100, max time to get from link to submenu before it gets hidden. 
namePic="tri.gif"; // name of file containing submenu picture
// menu
menuBGColor="black";
menuIsStatic="yes"; //this sets whether menu should stay static on the screen
menuWidth=160; // Must be a multiple of 10! no quotes!!
menuCols=2;
// header 
hdrFontFamily="arial,helvetica,sans-serif";
hdrFontSize="10px";
hdrFontColor="white";
hdrBGColor="#330099";
hdrSubBGColor="#3333ff";
hdrSubOverBGColor="#3333ff";//"#00ccff";
hdrAlign="left";
hdrVAlign="middle";
hdrHeight="20"; //has to be large enough for the text not to stretch the rows or the submenus will appear in the wrong places
// link
linkFontFamily="arial,helvetica,sans-serif";
linkFontSize="10px";
linkFontColor="black"
linkBGColor="white";
linkOverBGColor="#FFFF99";
linkSubBGColor = "#33ccff";
linkSubOverBGColor = "#99ccff";
linkTarget="_top";
linkAlign="Left";
// bar (at the right hand side)
barBGColor="#444444";
barFontFamily="arial,helvetica,sans-serif";
barFontSize="16px";
barFontColor="white";
barVAlign="center";
barWidth=20; // no quotes!! 
maxMenuItems = 100; //number of items in the base menu (if too small -> the sidebar will be to short)
barText="SIDE MENU"; // <IMG> tag supported. Put exact html for an image to show. 
					 //Has to be small enough for the this column not to strech the tabel. or change hdrHeight

///////////////////////////

maxDepth=4; // whats the highest level?  e.g  if the deepest is a "submenu of submenu of mainmenu" then maxDepth=3
menuNumber = 8; // total # of menus? e.g. only main: 1; main plus two sub menus: 3

/* ssmItems[...]=[menuNumber, level, submenuNumber, name, link, target, colspan, endrow?] 
	* menuNumber: start at 0 and increase for each menu. If two submenus are the same, you have to make a second copy.
	* level: At which level is the menu meant to be? e.g.
		|
		|-1-
		|   -2-
		|      -3-
		|
	* submenuNumber: the menuNumber of the submenu asociated with this menu. "no" of not submenu.
	* leave 'link' and 'target' blank to make a header
	* colspan and endrow are used to have two or mor items next to each other. 
		Leave for an item to cover the whole width.
		If you want more than 2 next to each other you will have to change "menuCols"
		An example are Email and Address (items 8 and 9)
*/
ssmItems[0]=[0, 0, "no", "Main Menu"] 											
ssmItems[1]=[0, 0, "no", "Introduction", "index.htm", ""] 	
ssmItems[2]=[0, 0, 1, "The Course", "course.htm",""]
ssmItems[3]=[0, 0, 2, "UROP", "urop.htm", ""]
ssmItems[4]=[0, 0, "no", "Department Facilities", "facilities.htm", ""]
ssmItems[5]=[0, 0, 3, "Facilities On and Off Campus", "campus.htm", ""]
ssmItems[6]=[0, 0, 4, "Living in Halls", "halls.htm", ""]	 					
ssmItems[7]=[0, 0, 5, "Get a Life!", "life.htm", ""]
ssmItems[8]=[0, 0, 6, "Accommodation", "accommodation.htm", ""] 
ssmItems[9]=[0, 0, "no", "A Day in the Life of...", "day.htm", ""]		
ssmItems[10]=[0, 0, "no", "Authors", "authors.htm", ""] 	
ssmItems[11]=[0, 0, 7, "www.guhl.co.uk", "http://www.guhl.co.uk", "new"] 
 
ssmItems[12]=[1, 1, "no", "Lists the optional and compulsory subjects", "http://www.ee.ic.ac.uk/courses/curriculum.html", "new"]	
ssmItems[13]=[1, 1, "no", "A Guide to the Course", "http://www.ee.ic.ac.uk/admissions/ug_admissions/ug_admissions.html", "new"]

ssmItems[14]=[2, 1, "no", "The official UROP website", "http://www.urop.ic.ac.uk/", "new"]	
ssmItems[15]=[2, 1, "no", "Tim's Webpage", "http://www.guhl.co.uk/", "new"]

ssmItems[16]=[3, 1, "no", "Imperial College Library", "http://www.lib.ic.ac.uk/", "new"]	

ssmItems[17]=[4, 1, "no", "Imperial College Halls of Residence Websites", "http://union.ic.ac.uk/halls/", "new"]	

ssmItems[18]=[5, 1, "no", "Lastminute.com", "http://www.lastminute.com/", "new"]	
ssmItems[19]=[5, 1, "no", "Imperial College Student Union", "http://union.ic.ac.uk/", "new"]
 
ssmItems[20]=[6, 1, "no", "University of London Housing website", "http://housing.lon.ac.uk/", "new"]	
ssmItems[21]=[6, 1, "no", "Loot", "http://property.loot.com/", "new"]
ssmItems[22]=[6, 1, "no", "London Tube", "http://www.thetube.com/", "new"]
ssmItems[23]=[6, 1, "no", "Black Katz", "http://www.black-katz.co.uk/students/index.asp", "new"]
ssmItems[24]=[6, 1, "no", "Find A Property", "http://www.findaproperty.com/search.html", "new"]
ssmItems[25]=[6, 1, "no", "London Property Guide", "http://www.londonpropertyguide.co.uk/netguide/PPF/London_Property_Guide/Property_Rentals/GCID/1202/Start/1/Guide.asp", "new"]
ssmItems[26]=[6, 1, "no", "Winkworth", "http://www.winkworth.co.uk/newsite/winksearchra.htm", "new"]
ssmItems[27]=[6, 1, "no", "Ludlow Thompson", "http://www.ludlowthompson.com/", "new"]
ssmItems[28]=[6, 1, "no", "Up My Street", "http://www.upmystreet.com/", "new"]

ssmItems[29]=[7, 1, "no", "Rustic Creations", "http://rusticcreations.guhl.co.uk", "new"] 	
ssmItems[30]=[7, 1, "no", "Studying Abroad", "http://abroadexperience.guhl.co.uk/","new"]
ssmItems[31]=[7, 1, "no", "Studying @ Imperial College", "http://abroadexperience.guhl.co.uk/uni.htm", "new"]
ssmItems[32]=[7, 1, "no", "Living in London", "http://abroadexperience.guhl.co.uk/london.htm", "new"]
ssmItems[33]=[7, 1, "no", "Email", "mailto:webmaster@guhl.co.uk", "", 1, "no"]		
ssmItems[34]=[7, 1, "no", "Address", "http://abroadexperience.guhl.co.uk/contact.htm", "new", 1] 	

buildMenu();

//-->

