msg = new Array
(
    "",
    "Company Information, Contact, Sales Partners",
    "HowTos, FAQs, Updates, Tools, Contact Support",
    "Compiler, In-Circuit Emulators, EVMs and DSKs",
    "D.Module.BIOS, TCP/IP, Device Drivers", 
    "Customized Hardware Designs",
    "DSP Modules, Data Acquisition, Networking, I/O",
    "Return to the D.SignT Homepage" 
);

var child_list_saved = false;
var first_child_data;
child_list = new Array;

// display current navigation path on mouseout event (num = 0) 
// or message on mouseover event (num > 0)
function writemsg(num)
{
    var node;
    var no_of_childs;
    var i;
    
    if (document.getElementById)
    {
        if (!child_list_saved)
        {
            // save the current navigation path in global array child_list[]
            // on first mouseover event
            child_list_saved = true;
        
            i = 0;
            node = document.getElementById("NavMsg").firstChild;
            while (node != null)
            {
                child_list[i] = node.cloneNode(true);
                node = node.nextSibling;
                i++;
            }
            child_list[i] = null;
            first_child_data = child_list[0].data;
        }

        // remove all childs but the first
        no_of_childs = document.getElementById("NavMsg").childNodes.length;
        for (i=1; i<no_of_childs; i++)
        {
            document.getElementById("NavMsg").removeChild(document.getElementById("NavMsg").firstChild);
        }

        // restore the first child's data
        document.getElementById("NavMsg").firstChild.data = first_child_data;

        if (num == 0)
        {
            // on mouseout event, restore navigation path
            document.getElementById("NavMsg").replaceChild (child_list[0], document.getElementById("NavMsg").childNodes[0]);
            i = 1;
            while (child_list[i] != null)
            {
                document.getElementById("NavMsg").appendChild(child_list[i]);
                i++;
            }
        }
        else
        {
            // on mouseover event, display message
            document.getElementById("NavMsg").firstChild.data = msg[num];
        }
    }
}


function quicknav()
{
    document.writeln(" <form name=\"QuickNav\" action=\"\"> ");
    document.writeln(" <div style=\"display:inline; font-size:1em;\"> "); 
    document.writeln(" <select name=\"Choose\" size=\"1\" onchange=\"QuickNavGo(document.QuickNav.Choose.options[document.QuickNav.Choose.options.selectedIndex].value)\"> ");
    document.writeln(" <option value=\"\">Product Selector");
    document.writeln(" <option value=\"\">---------------- ");
    document.writeln(" <option value=\"\/products\/dspmodule\/dm2c6747.html\">D.Module2.C6747 ");
    document.writeln(" <option value=\"\/products\/dspmodule\/dm2dm642.html\">D.Module2.DM642 ");
    document.writeln(" <option value=\"\/products\/dspmodule\/dm2ts203.html\">D.Module2.TS203 ");
    document.writeln(" <option value=\"\">---------------- ");
    document.writeln(" <option value=\"\/products\/peripherals\/dm26slx45t.html\">D.Module2.6SLX45T ");
    document.writeln(" <option value=\"\/products\/peripherals\/d2adda8m12.html\">D.Module2.ADDA8M12 ");
    document.writeln(" <option value=\"\/products\/peripherals\/d2adda500k16.html\">D.Module2.ADDA500K16 ");
    document.writeln(" <option value=\"\">---------------- ");
    document.writeln(" <option value=\"\/products\/dspmodule\/d6713.html\">D.Module.C6713 ");
    document.writeln(" <option value=\"\/products\/dspmodule\/d6203.html\">D.Module.C6203 ");
    document.writeln(" <option value=\"\/products\/dspmodule\/d33.html\">D.Module.VC33 ");
    document.writeln(" <option value=\"\/products\/dspmodule\/d21065.html\">D.Module.21065 ");
    document.writeln(" <option value=\"\">---------------- ");
    document.writeln(" <option value=\"\/products\/peripherals\/dadda12.html\">D.Module.ADDA12 ");
    document.writeln(" <option value=\"\/products\/peripherals\/dadda16.html\">D.Module.ADDA16 ");
    document.writeln(" <option value=\"\/products\/peripherals\/dad7722.html\">D.Module.AD7722 ");
    document.writeln(" <option value=\"\/products\/peripherals\/dpcm3003.html\">D.Module.PCM3003 ");
    document.writeln(" <option value=\"\/products\/peripherals\/ads12.html\">ADS12-300 ");
    document.writeln(" <option value=\"\/products\/peripherals\/sm16.html\">S.Module.16-100 ");
    document.writeln(" <option value=\"\">---------------- ");
    document.writeln(" <option value=\"\/products\/peripherals\/dusb2plus.html\">D.Module.USB2+ ");
    document.writeln(" <option value=\"\/products\/peripherals\/d91c111.html\">D.Module.91C111 ");
    document.writeln(" <option value=\"\/products\/peripherals\/dcan.html\">D.Module.CAN ");
    document.writeln(" <option value=\"\/products\/peripherals\/ddio20.html\">D.Module.DIO20 ");
    document.writeln(" <option value=\"\">---------------- ");
    document.writeln(" <option value=\"\/products\/dsk\/dsk91c111.html\">DSK91C111 ");
    document.writeln(" <option value=\"\/products\/dsk\/ezdsk91c111.html\">eZdsk91C111 ");
    document.writeln(" <option value=\"\">---------------- ");
    document.writeln(" <option value=\"\/devtools\">Development Tools ");
    document.writeln(" <option value=\"\/products\/index.html#SD\">Spectrum Digital ");
    document.writeln(" <\/select> ");
    document.writeln(" <\/div> "); 
    document.writeln(" <\/form> ");
}


function QuickNavGo(url)
{
  if (document.QuickNav.reset) document.QuickNav.reset();
  if (url != "") window.location=url;
}


function regform(module)
{
    if (    (module == 'DSK.91C111') 
         || (module == 'eZdsk.91C111')
       )
    {    
        alert (module + ":\r\n\nPlease specify the serial number printed on the Support Software CD\r\nNOT the serial number attached to the board!");
    }
    else if (    (module == 'DS.TCP/IP-DSK6455')
              || (module == 'DS.TCP/IP-EVMDM642')
            )
    {    
        alert (module + ":\r\n\nPlease specify the serial number printed on the Support Software CD\r\nNOT the serial number attached to the board!\r\n\n Also specify the MAC address of your DSK or EVM board, printed on the bottom side of the board");
    }
    else 
    {
        alert (module + ":\r\n\nThe serial number is found on a white sticker on the module's top or bottom side");
    }
    
}

function ticker()
{
    if (document.getElementById)
    {
        document.getElementById("Newsticker").firstChild.data = tickermsg.substring(0,pos)+"-";

        if(pos++==tickermsg.length)
        {
            pos=0;
            setTimeout("ticker()",1000);
        } 
        else
        {
            setTimeout("ticker()",200);
        }
    }
}

function hide(elem)
{
    document.getElementById(elem).style.visibility = 'hidden';
}

