/*<[CDATA[*/
/**********************************************
*this script ripped almost without shame *
*from http://www.teckis.com , *
*I am sure Mark does not mind .. if he does I will *
*do something about it , probably cry or something :( *
*but thats where I got it from anyway. *
*any other complaints to fire@firepages.com.au *
**********************************************/
num_links = menu.length;
link_height = 22;
l_height = 22;
link_width = (800 / num_links)-(num_links+2);
l_width = (800 / num_links)-(num_links+2);
if (navigator.userAgent.indexOf('Gecko') != -1)
{
link_height = 18;
link_width = (800 / num_links)-(num_links+2);
}
document.write('
');/*link_height-link_height or link_height*/
function show_props(obj, obj_name) {
var result = "";
for (var i in obj)
result += obj_name + "." + i + " = " + obj[i] + " ";
return result
}
function show_stuff(){
/*if there is a form that needs showing then show it*/
if(document.all){ /* moz does not have the divs over form elements issue so just IE to worry about */
var div = document.all.hide_me;
if(div){
div.style.visibility = 'visible' ;
}
}
return ;
}
function hide_stuff(){
/*if there is a form that needs hiding then hide it*/
if(document.all){ /* moz does not have the divs over form elements issue so just IE to worry about */
var div = document.all.hide_me;
if(div){
div.style.visibility = 'hidden' ;
}
}
//timer = setTimeout('show_stuff()',2000);
return ;
}
function do_menu(menu_ref)
{
if (menu[menu_ref])
{
eval("sl" +menu_ref+ "_pos += sl" +menu_ref+ "_dir;");
for (mm = 1; mm < menu[menu_ref].length; mm++)
{
eval("divpos = (mm)*sl" +menu_ref+ "_pos-48;");//-42
document.getElementById('ml' +menu_ref+ '_sl' +mm).style.top = divpos+5;//+3
}
eval("menu_pos = sl" +menu_ref+ "_pos;");
if (menu_pos > -1 && menu_pos < (link_height-1))
{
menu_ref_b = menu_ref;
eval("st" +menu_ref+ " = window.setTimeout('do_menu(" +menu_ref_b+ ")',1);");
}
else
{
eval("sl" +menu_ref+ "_pos = (menu_pos < 2) ? 0 : link_height-1;");
/*unhide form elements*/
if(menu_pos == -1){
if(document.all){
show_stuff() ;
}
}
}
}
}
for(cm = 0; cm < num_links; cm++)
{
num_submenu = menu[cm].length;
cell_l_pos = (cm < 2) ? ((link_width+5)*cm)-53 : ((link_width+5)*cm)-53;//OR//cell_l_pos = ((link_width+5)*cm)-48 ;//53
link_text = menu[cm][0].replace(/\s+/g,"_");
link_link= menul[cm][0].replace(/\s+/g,"_");
document.write('
');/* link_height (+32+)*/
if (num_submenu > 0)
{
eval("sl" +cm+ "_pos = 0;");
eval("sl" +cm+ "_dir = -1;");
for (cs = 1; cs < num_submenu; cs++)
{
sublink_text = menu[cm][cs].replace(/\s+/g,"_");//top:-42 to top -44
sublink_link= menul[cm][cs].replace(/\s+/g,"_");
document.write('
');
}
}
}
document.write('
');
if (navigator.userAgent.indexOf('Gecko') != -1) { link_height+=4; }
/*]]>*/