////// FORMAT MENU ///////////////////////////////////////////////////////////////////
orientation = "horizontal" // Orientation of menu. (horizontal, vertical)
cellPadding = 3 // Cell Padding
cellBorder = 0 // Include table border (for no border, enter 0)
verticalOffset = 0 // Vertical offset of Sub Menu. (if set to 0, default offset will be used)
horizontalOffset = 0 // Horizontal offset of Sub Menu. (if set to 0, default offset will be used)
subMenuDelay = 1 // Time sub menu stays visible for (in seconds)
// Main Menu Items
borderColor = "" // Border Colour
menuBackground = "#ffcc33" // Cell Background Colour
menuHoverBackground = "#ffff99" // Cell Background Colour on mouse rollover
fontFace = "arial" // Font Face
fontColour = "#555555" // Font Colour
fontHoverColour = "#555555" // Font Colour on mouse rollover
fontSize = "12px" // Font Size
fontDecoration = "none" // Style of the link text (none, underline, overline, line-through)
fontWeight = "bold" // Font Weight (normal, bold)
// Sub Menu Items
sborderColor = "#568DB1" // Border Colour
smenuBackground = "#ffcc33" // Cell Background Colour
smenuHoverBackground = "#ffff99" // Cell Background Colour on mouse rolloverr
sfontFace = "arial" // Font Face
sfontColour = "#555555" // Font Colour
sfontHoverColour = "#555555" // Font Colour on mouse rollover
sfontSize = "12px" // Font Size
sfontDecoration = "none" // Style of the link text (none, underline, overline, line-through)
sfontWeight = "normal" // Font Weight (normal, bold)
////// DO NOT EDIT BELOW THIS LINE ///////////////////////////////////////////////////////////////////
var screenW = 640, screenH = 480;
if (parseInt(navigator.appVersion)>3) {
screenW = screen.width;
screenH = screen.height;
}
else if (navigator.appName == "Netscape"
&& parseInt(navigator.appVersion)==3
&& navigator.javaEnabled()
)
{
var jToolkit = java.awt.Toolkit.getDefaultToolkit();
var jScreenSize = jToolkit.getScreenSize();
screenW = jScreenSize.width;
screenH = jScreenSize.height;
}
// Browser Sniffer
var isIE = (document.getElementById && document.all)?true:false;
var isNS4 = (document.layers)?true:false;
var isNS6 = (document.getElementById && !document.all)?true:false;
var timer
var obj = (isIE)?"document.all":"document.getElementById"
// Default horizontal and vertical offsets
if (verticalOffset == 0 || verticalOffset == "")
{
verticalOffset = (orientation=="horizontal")?20:5
}
if (horizontalOffset == 0 || horizontalOffset == "")
{
horizontalOffset = (orientation=="horizontal")?-1:70
}
// Menu Styles
document.writeln ('');
// Build and show the main menu items
function showMenus()
{
if (orientation == "vertical")
{
document.writeln ('
')
}
else
{
document.writeln ('')
}
for (x=0; x '+Menu[x][0]+'';
}else{
menlink = '
'+Menu[x][0]+'';
}
if (orientation=="vertical") document.writeln('')
document.writeln (' | ');
if (orientation=="vertical") document.writeln('
')
}
if (orientation == "vertical")
{
document.writeln ('
');
}
else
{
document.writeln ('
');
}
}
// Build the sub menu items
for (x=0; x 0)
{
document.writeln ('');
}
}
// Change colour or menu and submenu items when the mouse hovers over.
function highlightMenu(element,mainMenu,dropMenu,state)
{
state=(state == "hover")?"rcMenuHover":"rcMenuStatic"
if (element == "sub")
{
for (x=0; x < subMenu[mainMenu].length; x++)
{
eval(obj+'("subMenu'+mainMenu+x+'").className = "rcSubMenuStatic"')
eval(obj+'("subLink'+mainMenu+x+'").className = "rcSubMenuStatic"')
}
eval(obj+'("subMenu'+mainMenu+dropMenu+'").className="rcSubMenuHover"')
eval(obj+'("subLink'+mainMenu+dropMenu+'").className="rcSubMenuHover"')
}
else
{
eval(obj+'("cell'+mainMenu+'").className = "'+state+'"')
eval(obj+'("mainLink'+mainMenu+'").className = "'+state+'"')
}
}
// Find positioning for sub menus
function getOffset(obj, dim)
{
if(dim=="left")
{
oLeft = obj.offsetLeft;
while(obj.offsetParent!=null)
{
oParent = obj.offsetParent
oLeft += oParent.offsetLeft
obj = oParent
}
return oLeft;
}
else if(dim=="top")
{
oTop = obj.offsetTop;
while(obj.offsetParent!=null)
{
oParent = obj.offsetParent
oTop += oParent.offsetTop
obj = oParent
}
return oTop
}
else
{
alert("Error: invalid offset dimension '" + dim + "' in getOffset()")
return false;
}
}
// Show sub menus
function popDown(param, id)
{
var menu;
var button;
if (id)
{
getOffset(eval(obj+'(id)'),'left');
getOffset(eval(obj+'(id)'),'top');
}
n = 0;
while (n < Menu.length)
{
//button = eval(obj+'("cell'+n+'")')
menu = "MENU"+n
if (param == n)
{
if (eval(obj+'(menu)'))
{
eval(obj+'(menu).style.visibility = "visible"')
eval(obj+'(menu).style.left = oLeft + horizontalOffset;')
eval(obj+'(menu).style.top = oTop + verticalOffset;')
}
highlightMenu('main',n,'','hover')
if (subMenu[param].length > 0)
{
for (x=0; x 0)?setDelay:1
timer = setTimeout("popDown("+(Menu.length + 1)+")",delay)
}
// when you click the box, perform the same function as if the user had clicked the hyperlink
function tdMouseClick(theElement)
{
eval(obj+'(theElement).click()')
}