
 
 // this is the Product drop down headings
 
 var bV = parseInt(navigator.appVersion);
NS4 = (document.layers) ? true : false;
IE4 = ((document.all) && (bV >= 4)) ? true : false;
ver4 = (NS4 || IE4) ? true : false;

  if (ver4) {
    with (document) {
        write("<style type='text/css'>");
        if (NS4) {
            write(".parent {position:absolute; visibility:visible}");
            write(".child {position:absolute; visibility:visible}");
            write(".regular {position:absolute; visibility:visible}")
        }
        else {
            write(".child {display:none}")
        }
        write("</style>");
    }
}

  
  function getIndex(n) {
    index = null;
    for (i = 0; i < document.layers.length; i++) {
        nelly = document.layers[i];
        if (nelly.id == n) {
            index = i;
            break;
        }
    }
    return index;
}

function arrange() {
    nextY = document.layers[firstIndex].pageY + document.layers[firstIndex].document.height;
    for (i = firstIndex + 1; i < document.layers.length; i++) {
        nelly = document.layers[i];
        if (nelly.visibility != "hide") {
            nelly.pageY = nextY;
            nextY += nelly.document.height;
        }
    }
}

function initIt() {
    if (!ver4) return;
    if (NS4) {
        for (i = 0; i < document.layers.length; i++) {
            nelly = document.layers[i];
            if (nelly.id.indexOf("Child") != -1) nelly.visibility = "hide";
        }
        arrange();
    }
    else {
        divColl = document.all.tags("div");
        for (i = 0; i < divColl.length; i++) {
            nelly = divColl(i);
            if (nelly.className == "child") nelly.style.display = "none";
        }
    }
}

function expandIt(element) {
    if (!ver4) return;
    if (IE4) {
        nelly = eval(element + "Child");
        if (nelly.style.display == "none") {
            nelly.style.display = "block";
        }
        else {
            nelly.style.display = "none";
        }
    }
    else {
        nelly = eval("document." + element + "Child");
        if (nelly.visibility == "hide") {
            nelly.visibility = "show";
        }
        else {
            nelly.visibility = "hide";
        }
        arrange();
    }
}




//end of function
/*********************************************************************************************/
 
 <!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//--/

function detect()
{
framesetpage="/mainframe.aspx";
thispage=window.location.href;
if (thispage.indexOf('://')<0) {thispage="://"+thispage;};
prefix=thispage.substring(0,thispage.lastIndexOf('://'));
suffix=thispage.substring(thispage.lastIndexOf('://')+3,thispage.length);
// alert('the subpage is:['+prefix+']['+suffix+']');
if (parent.location.href==window.location.href) {parent.location.href=framesetpage+"?"+prefix+"&&&"+suffix};
}
 
 
 
 //*****************************************************************************************************************
 
 <!--
function popup(url, name, width, height)
{
settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=no,"+
"resizable=yes,width="+width+",height="+height;

MyNewWindow=window.open(url,name,settings);
MyNewWindow.focus();


}
//-->


//sets timing of BM survey

function surveyTime(){
	setTimeout('timedSurvery()', 7000);
	
	}

