// global menu state
var menuReady = false;

function SeachSetup() {
    var sStr= document.getElementById("sstr");
    var oSelect= document.getElementById("search_frm");
    var sVdr= document.getElementById("vdr");
    
   oSelect.action = "Products.asp?keyType=3&kWord=" + sStr.value + "&sVdr=" + sVdr.options[sVdr.selectedIndex].value + "&vName=" + sVdr.options[sVdr.selectedIndex].text;
 }

function SearchClear() {
    var sStr= document.getElementById("sstr");
    sStr.value = "";
}

function getSelVendor() {
    var oSelect= document.getElementById("vdr");
    var oOption;
    var SelectedText =oSelect.options[0].text;
    oSelect.options[0] = new Option("Search by Vendor","0");
    oSelect.options[0].className ="vendor"
    for (var i = 1; i < vdrs.length+1; i++) {
        oSelect.options[i] = new Option(vdrs[i-1].txt,vdrs[i-1].val);
        oSelect.options[i].className ="vendor";
        if ( oSelect.options[i].text == SelectedText ) {
            oSelect.options[i].selected =true
        }
    }
 //   window.alert( "vdrs=" + vdrs[i].txt);
}

function getElementStyle(elem, IEStyleProp, CSSStyleProp) {
    if (elem.currentStyle) {
        return elem.currentStyle[IEStyleProp];
    } else if (window.getComputedStyle) {
        var compStyle = window.getComputedStyle(elem, "");
        return compStyle.getPropertyValue(CSSStyleProp);
    }
    return "";
}

// carry over some critical menu style sheet attribute values
var CSSRuleValues = {menuItemHeight:"18px",
                     menuItemLineHeight:"1.4em",
                     menuWrapperBorderWidth:"2px",
                     menuWrapperPadding:"3px",
                     defaultBodyFontSize:"12px"
                    };

// specifications for menu contents and menubar image associations
// create hash table-like lookup for menu objects with id string indexes
function makeHashes() {
    for (var i = 0; i < menus.length; i++) {
        menus[menus[i].elemId] = menus[i];
        menus[menus[i].mBarImgId] = menus[i];
    }
}
// assign menu label image event handlers
function assignLabelEvents() {
    var elem;
    for (var i = 0; i < menus.length; i++) {
        elem = document.getElementById(menus[i].mBarImgId);
        elem.onmouseover = swap;
        elem.onmouseout = swap;
    }
}
// invoked from init(), generates the menu div elements and their contents.
// all this action is invisible to user during construction
function makeMenus() {
    var menuDiv, menuItem, itemLink, mbarImg, textNode, offsetLeft, offsetTop;
    var menuBarId, j;
    // determine key adjustment factors for the total height of menu divs
    var menuItemH = 0;
    var bodyFontSize = parseInt(getElementStyle(document.body, "fontSize", "font-size"));
    // test to see if browser's font size has been adjusted by the user
    // and that the new size registers as an applied style property
    if (bodyFontSize == parseInt(CSSRuleValues.defaultBodyFontSize)) {
        menuItemH = (parseFloat(CSSRuleValues.menuItemHeight));
    } else {
        // works nicely in Netscape 7
        menuItemH = parseInt(parseFloat(CSSRuleValues.menuItemLineHeight) * bodyFontSize);
    }
    var heightAdjust = parseInt(CSSRuleValues.menuWrapperPadding) + 
        parseInt(CSSRuleValues.menuWrapperBorderWidth);
    if (navigator.appName == "Microsoft Internet Explorer" && 
        navigator.userAgent.indexOf("Win") != -1 && 
        (typeof document.compatMode == "undefined" || 
        document.compatMode == "BackCompat")) {
        heightAdjust = -heightAdjust;
    }
    
    // use menus array to drive div creation loop
//    oTable = document.getElementById("Table4" );
//     window.alert(menuBarPosi + "at " + oTable.style.top);
    for (var i = 0; i < menus.length; i++) {
        j = i + 1;
        menuBarId = document.getElementById("menuImg_" + j );
        menuBarId.href = "Products.asp?keyType=2&sKey=" + menus[i].href + "&kWord=" + menus[i].cName;
//    window.alert(menuBarId.style.top + "at " + menuBarId.style.top);
 //       menuBarId.style.top = 150 + menuItemH * j + "px";
        menuDiv = document.createElement("div");
        menuDiv.id = "popupmenu" + i;
        // preserve menu's ID as property of the menus array item
        menus[i].elemId = "popupmenu" + i;
        menuDiv.className = "menuWrapper" ;
        if (menus[i].menuItems.length > 0) {
            menuDiv.style.height = (menuItemH * menus[i].menuItems.length) - 
            heightAdjust + "px";
        } else {
            // don't display any menu div lacking menu items
            menuDiv.style.display = "none";
        }
        // define event handlers
        menuDiv.onmouseover = keepMenu;
        menuDiv.onmouseout = requestHide;
        // set stacking order in case other layers are around the page
        menuDiv.style.zIndex = 1000;
        // assemble menu item elements for inside menu div
        for (var j = 0; j < menus[i].menuItems.length; j++) {
            menuItem = document.createElement("div");
            menuItem.id = "popupmenuItem_" + i + "_" + j;
            menuItem.className = "menuItem";
            menuItem.onmouseover = toggleHighlight;
            menuItem.onmouseout = toggleHighlight;
            menuItem.onclick = hideMenus;
            menuItem.style.top = menuItemH * j + "px";
            itemLink = document.createElement("a");
            itemLink.href = "Products.asp?keyType=1&sKey=" + menus[i].menuItems[j].href + "&kWord=" + menus[i].menuItems[j].text;
            itemLink.className = "menuItem";
            itemLink.onmouseover = toggleHighlight;
            itemLink.onmouseout = toggleHighlight;
            textNode = document.createTextNode(menus[i].menuItems[j].text);
            itemLink.appendChild(textNode);
            menuItem.appendChild(itemLink);
            menuDiv.appendChild(menuItem);
        }
        // append each menu div to the body
       document.body.appendChild(menuDiv);
    }
    makeHashes();
    assignLabelEvents();
     // pre-position menu
    for (i = 0; i < menus.length; i++) {
        positionMenu(menus[i].elemId);
    }
    menuReady = true;
}



// set menu position just before displaying it
function positionMenu(menuId){
     // use the menu bar image for position reference of related div
    var mBarImg = document.getElementById(menus[menuId].mBarImgId);
    var offsetTrail = mBarImg;
    var offsetLeft = 132; //90
    var offsetTop = -3 //-20;
    while (offsetTrail) {
//  window.alert("offsetTrail.offsetLeft1= " + offsetLeft + " " + offsetTrail);
       offsetLeft += offsetTrail.offsetLeft;
        offsetTop += offsetTrail.offsetTop;
        offsetTrail = offsetTrail.offsetParent;
   }
    if (navigator.userAgent.indexOf("Mac") != -1 && 
        typeof document.body.leftMargin != "undefined") {
     window.alert("document.body.leftMargin= " + document.body.leftMargin);
        offsetLeft += document.body.leftMargin;
        offsetTop += document.body.topMargin;
    }
    var menuDiv = document.getElementById(menuId);
    menuDiv.style.left = offsetLeft + "px";
    menuDiv.style.top = offsetTop //+ CSSRuleValues.menuItemHeight ;
}

// display a particular menu div
function showMenu(menuId) {
    if (menuReady) {
       keepMenu();
       hideMenus();
       positionMenu(menuId);
       var menu = document.getElementById(menuId);
       menu.style.visibility = "visible";
    }
}

// menu bar image swapping, invoked from mouse events in menu bar
// swap style sheets for menu items during rollovers
function toggleHighlight(evt) {
    evt = (evt) ? evt : ((event) ? event : null);
    if (typeof menuReady != "undefined") {
        if (menuReady && evt) {
            var elem = (evt.target) ? evt.target : evt.srcElement;
            if (elem.nodeType == 3) {
               elem = elem.parentNode;
            }
            if (evt.type == "mouseover") {
                keepMenu();
                elem.className ="menuItemOn";
            } else {
                elem.className ="menuItem";
                requestHide();
            }
            evt.cancelBubble = true;
        }
    }
}
function swap(evt) {
    evt = (evt) ? evt : ((event) ? event : null);
    if (typeof menuReady != "undefined") {
        if (menuReady && evt) {
            var elem = (evt.target) ? evt.target : evt.srcElement;
            if (elem.nodeType == 3) {
               elem = elem.parentNode;
            }
            if (evt.type == "mouseover") {
                 showMenu(menus[elem.id].elemId);
                elem.className ="menuCatOn";
            } else {
               elem.className ="menuCat";
               requestHide();
            }
            evt.cancelBubble = true;
        }
    }
}

// create menus only if key items are supported
function initMenus() {
    var wpath = document.getElementById("WebPath" );
    if (document.getElementById && document.styleSheets) {
        setTimeout("makeMenus()", 25);
        window.onunload=cancelAll;
    }
    // find web path 
//     window.alert( "OldPath= " + wpath);
//    if (wpath.substring(0,3)="C:\") {
//        wpath = "7qpc.com";
////    }
//    window.alert( "NewPath" + wpath);
}
// initialize global that helps manage menu hiding
var timer;

// invoked from mouseovers inside menus to cancel hide
// request from mouseout of menu bar image et al.
function keepMenu() {
    clearTimeout(timer);
}

function cancelAll() {
    keepMenu();
    menuReady = false;
}

// invoked from mouseouts to request hiding all menus
// in 1/4 second, unless cancelled
function requestHide() {
    timer = setTimeout("hideMenus()", 250);
}

// "brute force" hiding of all menus and restoration
// of normal menu bar images
function hideMenus() {
    for (var i = 0; i < menus.length; i++) {
///       document.getElementById(menus[i].mBarImgId).src = menus[i].mBarImgNormal.src;
       var menu = document.getElementById(menus[i].elemId);
       menu.style.visibility = "hidden";
    }
}

var vdrs = new Array();
var menus = new Array();
//CatArrayMakingHead

 menus[0] = {mBarImgId:"menuImg_1", 
             href:"1",
             cName:"Cables                  ",
             elemId:"",
             menuItems:[  {text:"Cable, External", href:"61"} 
                        , {text:"Cable, Internal", href:"99"} 
                        , {text:"Cat 5 Cables", href:"34"} 
                        , {text:"Cat 6 Cables", href:"133"} 
                        , {text:"USB Cable", href:"127"} 
                         ] }; 

 menus[1] = {mBarImgId:"menuImg_2", 
             href:"7",
             cName:"Cameras                 ",
             elemId:"",
             menuItems:[  {text:"Camera", href:"98"} 
                        , {text:"PC Camera", href:"103"} 
                         ] }; 

 menus[2] = {mBarImgId:"menuImg_3", 
             href:"2",
             cName:"Cases                   ",
             elemId:"",
             menuItems:[  {text:"Case CG", href:"10"} 
                        , {text:"Case, AT", href:"145"} 
                        , {text:"Case, Server", href:"138"} 
                        , {text:"Cases", href:"63"} 
                        , {text:"External Enclosure", href:"81"} 
                        , {text:"External Storages", href:"56"} 
                        , {text:"Server Case", href:"60"} 
                         ] }; 

 menus[3] = {mBarImgId:"menuImg_4", 
             href:"6",
             cName:"Controller Cards        ",
             elemId:"",
             menuItems:[  {text:"Adapters", href:"62"} 
                        , {text:"Firewire", href:"122"} 
                        , {text:"I/O", href:"38"} 
                        , {text:"Memory for RAID Card", href:"77"} 
                        , {text:"Sata I/O", href:"149"} 
                        , {text:"SCSI Accessories", href:"100"} 
                         ] }; 

 menus[4] = {mBarImgId:"menuImg_5", 
             href:"8",
             cName:"CPUs                    ",
             elemId:"",
             menuItems:[  {text:"CPU -  I5 Socket 1156", href:"51"} 
                        , {text:"CPU -  I7 Socket 1366", href:"49"} 
                        , {text:"CPU, Athlon 64bit Socket 754", href:"114"} 
                        , {text:"CPU, Athlon 64bit Socket 939", href:"143"} 
                        , {text:"CPU, Athlon 64bit Socket 940", href:"152"} 
                        , {text:"CPU, Mobile", href:"80"} 
                        , {text:"Fans", href:"36"} 
                        , {text:"Other CPUs", href:"8"} 
                        , {text:"PIV CPU - LGA775", href:"126"} 
                        , {text:"PIV CPU - LGA775 Celeron", href:"130"} 
                        , {text:"PIV CPU - Skt 478", href:"50"} 
                        , {text:"Server CPU, AMD", href:"58"} 
                        , {text:"Server CPU, Intel", href:"141"} 
                         ] }; 

 menus[5] = {mBarImgId:"menuImg_6", 
             href:"9",
             cName:"Hard Drives             ",
             elemId:"",
             menuItems:[  {text:"Hard Drive, IDE", href:"21"} 
                        , {text:"Hard Drive, SATA", href:"109"} 
                        , {text:"Hard Drive, SCSI", href:"32"} 
                        , {text:"Solid State Drive", href:"76"} 
                         ] }; 

 menus[6] = {mBarImgId:"menuImg_7", 
             href:"10",
             cName:"Input Devices           ",
             elemId:"",
             menuItems:[  {text:"Keyboard", href:"11"} 
                        , {text:"Keyboard, M & L", href:"140"} 
                        , {text:"Mouse", href:"12"} 
                        , {text:"Mouse, M & L", href:"136"} 
                        , {text:"Wireless Keyboard & Mouse", href:"82"} 
                         ] }; 

 menus[7] = {mBarImgId:"menuImg_8", 
             href:"11",
             cName:"Memory                  ",
             elemId:"",
             menuItems:[  {text:"", href:"101"} 
                        , {text:"RAM - DD200 PC2100", href:"28"} 
                        , {text:"RAM - DDR1066Mhz", href:"84"} 
                        , {text:"RAM - DDR3 >=1600Mhz", href:"43"} 
                        , {text:"RAM - DDR3, 1333Mhz", href:"85"} 
                        , {text:"RAM - DDR333, PC2700", href:"131"} 
                        , {text:"RAM - DDR400, PC3200", href:"128"} 
                        , {text:"RAM - DDR400, PC3200, DDR2", href:"88"} 
                        , {text:"RAM - DDR500", href:"132"} 
                        , {text:"RAM - DDR600 PC4200", href:"86"} 
                        , {text:"RAM - DDR800", href:"135"} 
                        , {text:"RAM - OVERCLOCK RAM", href:"89"} 
                        , {text:"RAM - RAMBUS", href:"30"} 
                        , {text:"RAM - SDR", href:"29"} 
                         ] }; 

 menus[8] = {mBarImgId:"menuImg_9", 
             href:"25",
             cName:"Miscellence             ",
             elemId:"",
             menuItems:[  {text:"CamCorders", href:"119"} 
                        , {text:"GPS Devices", href:"83"} 
                        , {text:"Others", href:"23"} 
                        , {text:"Point of Sale", href:"52"} 
                         ] }; 

 menus[9] = {mBarImgId:"menuImg_10", 
             href:"12",
             cName:"Modems                  ",
             elemId:"",
             menuItems:[  {text:"Modem", href:"13"} 
                         ] }; 

 menus[10] = {mBarImgId:"menuImg_11", 
             href:"13",
             cName:"Monitors & Displays     ",
             elemId:"",
             menuItems:[  {text:"CRT Monitors", href:"93"} 
                        , {text:"Laptop, DDRAM 3", href:"26"} 
                        , {text:"LCD Monitors", href:"92"} 
                        , {text:"Projectors", href:"94"} 
                         ] }; 

 menus[11] = {mBarImgId:"menuImg_12", 
             href:"14",
             cName:"Motherboards            ",
             elemId:"",
             menuItems:[  {text:"Mainboard", href:"24"} 
                        , {text:"Mainboard -  478", href:"48"} 
                        , {text:"Mainboard -  775", href:"125"} 
                        , {text:"Mainboard - I5, 1156", href:"47"} 
                        , {text:"Mainboard - I7, 1366", href:"46"} 
                        , {text:"Mainboard - Skt 478, ASUS", href:"134"} 
                        , {text:"Mainboards,  939", href:"144"} 
                        , {text:"Mainboards, 754", href:"115"} 
                        , {text:"Mainboards, 940", href:"153"} 
                        , {text:"Server Mainboard, AMD", href:"59"} 
                        , {text:"Server Mainboard, Intel", href:"142"} 
                         ] }; 

 menus[12] = {mBarImgId:"menuImg_13", 
             href:"16",
             cName:"Networking              ",
             elemId:"",
             menuItems:[  {text:"Hub & Switch, Gigabit", href:"117"} 
                        , {text:"Hub, Switch", href:"33"} 
                        , {text:"KVM Switch", href:"107"} 
                        , {text:"Network Interface Card", href:"14"} 
                        , {text:"NIC, Gigabit/s", href:"116"} 
                        , {text:"Routers", href:"110"} 
                        , {text:"Routers ( VPN, Firewall )", href:"113"} 
                        , {text:"Switch Box", href:"41"} 
                        , {text:"Switch, Cisco, 3COM", href:"112"} 
                        , {text:"Wireless, Access Point", href:"108"} 
                        , {text:"Wireless, Adapters", href:"79"} 
                        , {text:"Wireless, Device & Misc", href:"102"} 
                         ] }; 

 menus[13] = {mBarImgId:"menuImg_14", 
             href:"17",
             cName:"Notebooks               ",
             elemId:"",
             menuItems:[  {text:"2.5in Hard Drive for Laptop", href:"78"} 
                        , {text:"2.5in SATA Hard Drives ", href:"150"} 
                        , {text:"AC Adapter for Notebook", href:"146"} 
                        , {text:"Laptop PC", href:"53"} 
                        , {text:"Laptop, DDRAM", href:"75"} 
                        , {text:"Laptop, DDRAM 2", href:"151"} 
                        , {text:"Laptop, SDRAM", href:"66"} 
                        , {text:"PCMCIA", href:"54"} 
                         ] }; 

 menus[14] = {mBarImgId:"menuImg_15", 
             href:"18",
             cName:"Optical Drives          ",
             elemId:"",
             menuItems:[  {text:"CD-RW", href:"20"} 
                        , {text:"CD-RW + DVD", href:"105"} 
                        , {text:"DVD", href:"18"} 
                        , {text:"DVD BLU-RAY", href:"19"} 
                        , {text:"DVDRW", href:"106"} 
                         ] }; 

 menus[15] = {mBarImgId:"menuImg_16", 
             href:"19",
             cName:"Power Suppies           ",
             elemId:"",
             menuItems:[  {text:"Power", href:"40"} 
                        , {text:"UPS", href:"17"} 
                         ] }; 

 menus[16] = {mBarImgId:"menuImg_17", 
             href:"20",
             cName:"Printers & Scanners     ",
             elemId:"",
             menuItems:[  {text:"Inks & Toners", href:"96"} 
                        , {text:"Printer Cables", href:"90"} 
                        , {text:"Printer Servers", href:"95"} 
                        , {text:"Printers", href:"37"} 
                        , {text:"Scanners", href:"97"} 
                         ] }; 

 menus[17] = {mBarImgId:"menuImg_18", 
             href:"23",
             cName:"Removables              ",
             elemId:"",
             menuItems:[  {text:"Floppy & Zip Drives", href:"31"} 
                        , {text:"Memory Stick", href:"67"} 
                        , {text:"Memory, Compact Flash", href:"65"} 
                        , {text:"MultiMedia Card Memory", href:"68"} 
                        , {text:"Security Digital Memory", href:"70"} 
                        , {text:"Shuf & Nano", href:"72"} 
                        , {text:"Smart Media Memory", href:"71"} 
                        , {text:"Super Talent", href:"69"} 
                        , {text:"Tape Drives", href:"111"} 
                        , {text:"USB Devices", href:"154"} 
                        , {text:"USB Flash Drive", href:"73"} 
                        , {text:"xD-Picture", href:"74"} 
                         ] }; 

 menus[18] = {mBarImgId:"menuImg_19", 
             href:"22",
             cName:"Software                ",
             elemId:"",
             menuItems:[  {text:"Software, Microsoft", href:"27"} 
                        , {text:"Software, Operating System", href:"137"} 
                        , {text:"Software, Other", href:"64"} 
                         ] }; 

 menus[19] = {mBarImgId:"menuImg_20", 
             href:"15",
             cName:"Sound Devices           ",
             elemId:"",
             menuItems:[  {text:"MP3/4 Players", href:"120"} 
                        , {text:"Sound Card", href:"15"} 
                        , {text:"Speakers", href:"9"} 
                         ] }; 

 menus[20] = {mBarImgId:"menuImg_21", 
             href:"21",
             cName:"USB                     ",
             elemId:"",
             menuItems:[  {text:"USB", href:"39"} 
                         ] }; 

 menus[21] = {mBarImgId:"menuImg_22", 
             href:"24",
             cName:"Video Cards             ",
             elemId:"",
             menuItems:[  {text:"Video Cables", href:"121"} 
                        , {text:"Video Card  AGP, >=256MB", href:"123"} 
                        , {text:"Video Card  PCIExp, 128MB", href:"124"} 
                        , {text:"Video Card  PCIExp, 1GB", href:"87"} 
                        , {text:"Video Card  PCIExp, 256MB", href:"155"} 
                        , {text:"Video Card  PCIExp, 512MB", href:"156"} 
                        , {text:"Video Card, AGP, <128MB", href:"16"} 
                        , {text:"Video Card, AGP, =128MB", href:"129"} 
                           ] }; 
 
 vdrs[0] = {txt:"11Wave", val:"420"};
 vdrs[1] = {txt:"3COM", val:"139"};
 vdrs[2] = {txt:"3D Labs", val:"202"};
 vdrs[3] = {txt:"3Ware", val:"382"};
 vdrs[4] = {txt:"ABIT", val:"118"};
 vdrs[5] = {txt:"Acer", val:"410"};
 vdrs[6] = {txt:"Action Tech", val:"345"};
 vdrs[7] = {txt:"Adaptec", val:"280"};
 vdrs[8] = {txt:"ADI", val:"300"};
 vdrs[9] = {txt:"Aduveu", val:"370"};
 vdrs[10] = {txt:"Aeneon", val:"460"};
 vdrs[11] = {txt:"Ahanix", val:"436"};
 vdrs[12] = {txt:"Aigo", val:"358"};
 vdrs[13] = {txt:"Albatron", val:"175"};
 vdrs[14] = {txt:"Allied", val:"506"};
 vdrs[15] = {txt:"Altec", val:"429"};
 vdrs[16] = {txt:"Aluratek", val:"504"};
 vdrs[17] = {txt:"AMD", val:"398"};
 vdrs[18] = {txt:"Amigo", val:"360"};
 vdrs[19] = {txt:"Antec", val:"424"};
 vdrs[20] = {txt:"AOC", val:"299"};
 vdrs[21] = {txt:"Aopen", val:"364"};
 vdrs[22] = {txt:"Apacer", val:"482"};
 vdrs[23] = {txt:"Apollo", val:"200"};
 vdrs[24] = {txt:"Apple", val:"349"};
 vdrs[25] = {txt:"AQUABAY", val:"464"};
 vdrs[26] = {txt:"Arctic", val:"457"};
 vdrs[27] = {txt:"Areca", val:"455"};
 vdrs[28] = {txt:"Areca", val:"505"};
 vdrs[29] = {txt:"Asrock", val:"288"};
 vdrs[30] = {txt:"ASUS", val:"112"};
 vdrs[31] = {txt:"Athenatech", val:"439"};
 vdrs[32] = {txt:"ATI", val:"124"};
 vdrs[33] = {txt:"Audigo", val:"469"};
 vdrs[34] = {txt:"Audiovox", val:"471"};
 vdrs[35] = {txt:"Averatec", val:"497"};
 vdrs[36] = {txt:"BAFO", val:"415"};
 vdrs[37] = {txt:"BeatSounds", val:"356"};
 vdrs[38] = {txt:"Belkin", val:"394"};
 vdrs[39] = {txt:"BENQ", val:"212"};
 vdrs[40] = {txt:"BFG", val:"483"};
 vdrs[41] = {txt:"Biostar", val:"211"};
 vdrs[42] = {txt:"Brother", val:"501"};
 vdrs[43] = {txt:"Buffalo", val:"458"};
 vdrs[44] = {txt:"Buslink", val:"407"};
 vdrs[45] = {txt:"CA", val:"323"};
 vdrs[46] = {txt:"Canon", val:"228"};
 vdrs[47] = {txt:"Cardex", val:"294"};
 vdrs[48] = {txt:"CasEdge", val:"319"};
 vdrs[49] = {txt:"Casetronics", val:"454"};
 vdrs[50] = {txt:"Casio", val:"444"};
 vdrs[51] = {txt:"Centon", val:"353"};
 vdrs[52] = {txt:"CG", val:"109"};
 vdrs[53] = {txt:"Chaintech", val:"162"};
 vdrs[54] = {txt:"Chenbro", val:"422"};
 vdrs[55] = {txt:"Chenbro", val:"423"};
 vdrs[56] = {txt:"Chips", val:"289"};
 vdrs[57] = {txt:"Cisco", val:"333"};
 vdrs[58] = {txt:"CM", val:"442"};
 vdrs[59] = {txt:"CMI", val:"291"};
 vdrs[60] = {txt:"CNET", val:"221"};
 vdrs[61] = {txt:"Connect3D", val:"481"};
 vdrs[62] = {txt:"CoolMax", val:"430"};
 vdrs[63] = {txt:"Corel", val:"324"};
 vdrs[64] = {txt:"CSCM", val:"134"};
 vdrs[65] = {txt:"CTX", val:"418"};
 vdrs[66] = {txt:"Daytona", val:"206"};
 vdrs[67] = {txt:"DELL", val:"136"};
 vdrs[68] = {txt:"Designer", val:"286"};
 vdrs[69] = {txt:"DFI", val:"207"};
 vdrs[70] = {txt:"D-Link", val:"222"};
 vdrs[71] = {txt:"Dyna", val:"441"};
 vdrs[72] = {txt:"ECS", val:"121"};
 vdrs[73] = {txt:"Elixir", val:"233"};
 vdrs[74] = {txt:"Elpida", val:"503"};
 vdrs[75] = {txt:"Encore", val:"111"};
 vdrs[76] = {txt:"Enermax", val:"432"};
 vdrs[77] = {txt:"Enhance", val:"449"};
 vdrs[78] = {txt:"Enlight", val:"320"};
 vdrs[79] = {txt:"Epower", val:"431"};
 vdrs[80] = {txt:"EPOWER", val:"466"};
 vdrs[81] = {txt:"EPOX", val:"125"};
 vdrs[82] = {txt:"Epson", val:"226"};
 vdrs[83] = {txt:"Escalade", val:"284"};
 vdrs[84] = {txt:"EverCase", val:"400"};
 vdrs[85] = {txt:"eVGA", val:"203"};
 vdrs[86] = {txt:"Ezonics", val:"346"};
 vdrs[87] = {txt:"FIC", val:"208"};
 vdrs[88] = {txt:"Foxconn", val:"342"};
 vdrs[89] = {txt:"FSP", val:"445"};
 vdrs[90] = {txt:"Fuji", val:"179"};
 vdrs[91] = {txt:"GainTech", val:"343"};
 vdrs[92] = {txt:"Gainward", val:"326"};
 vdrs[93] = {txt:"Gateway", val:"498"};
 vdrs[94] = {txt:"Gigabytes", val:"169"};
 vdrs[95] = {txt:"Goldstar", val:"217"};
 vdrs[96] = {txt:"Hansole", val:"336"};
 vdrs[97] = {txt:"Harma", val:"194"};
 vdrs[98] = {txt:"Hawking", val:"387"};
 vdrs[99] = {txt:"Highpoint", val:"282"};
 vdrs[100] = {txt:"Hipro", val:"427"};
 vdrs[101] = {txt:"HIS", val:"414"};
 vdrs[102] = {txt:"Hitachi", val:"199"};
 vdrs[103] = {txt:"HP", val:"421"};
 vdrs[104] = {txt:"HTL", val:"277"};
 vdrs[105] = {txt:"Hyundai", val:"214"};
 vdrs[106] = {txt:"IBM", val:"131"};
 vdrs[107] = {txt:"iMicro", val:"502"};
 vdrs[108] = {txt:"Infineon", val:"232"};
 vdrs[109] = {txt:"Infocus", val:"225"};
 vdrs[110] = {txt:"Intel", val:"397"};
 vdrs[111] = {txt:"Intuit", val:"564"};
 vdrs[112] = {txt:"In-Win", val:"435"};
 vdrs[113] = {txt:"IOgear", val:"507"};
 vdrs[114] = {txt:"Iomega", val:"127"};
 vdrs[115] = {txt:"Iriver", val:"357"};
 vdrs[116] = {txt:"I-Rock", val:"462"};
 vdrs[117] = {txt:"IStar", val:"450"};
 vdrs[118] = {txt:"Jaton", val:"204"};
 vdrs[119] = {txt:"Jetta", val:"328"};
 vdrs[120] = {txt:"JetWay", val:"408"};
 vdrs[121] = {txt:"Juster", val:"101"};
 vdrs[122] = {txt:"JVC", val:"347"};
 vdrs[123] = {txt:"KDS", val:"213"};
 vdrs[124] = {txt:"Kensington", val:"477"};
 vdrs[125] = {txt:"Keytronic", val:"285"};
 vdrs[126] = {txt:"KingMax", val:"171"};
 vdrs[127] = {txt:"Kingston", val:"170"};
 vdrs[128] = {txt:"KingWin", val:"117"};
 vdrs[129] = {txt:"Kodak", val:"330"};
 vdrs[130] = {txt:"KWorld", val:"478"};
 vdrs[131] = {txt:"K-World", val:"293"};
 vdrs[132] = {txt:"Lab", val:"290"};
 vdrs[133] = {txt:"LanReady", val:"335"};
 vdrs[134] = {txt:"LeadTek", val:"205"};
 vdrs[135] = {txt:"Lenovo", val:"534"};
 vdrs[136] = {txt:"Lexar", val:"452"};
 vdrs[137] = {txt:"Lexmark", val:"227"};
 vdrs[138] = {txt:"LinkDepot", val:"451"};
 vdrs[139] = {txt:"Linksys", val:"223"};
 vdrs[140] = {txt:"Lite-On", val:"218"};
 vdrs[141] = {txt:"Logitech", val:"210"};
 vdrs[142] = {txt:"LSI", val:"281"};
 vdrs[143] = {txt:"Lucent", val:"297"};
 vdrs[144] = {txt:"Maruson", val:"468"};
 vdrs[145] = {txt:"Matrox", val:"176"};
 vdrs[146] = {txt:"M-ATX", val:"463"};
 vdrs[147] = {txt:"MaxTop", val:"133"};
 vdrs[148] = {txt:"Maxtor", val:"129"};
 vdrs[149] = {txt:"Micro Star", val:"113"};
 vdrs[150] = {txt:"Microsoft", val:"413"};
 vdrs[151] = {txt:"Mitsubish", val:"216"};
 vdrs[152] = {txt:"Mosel", val:"234"};
 vdrs[153] = {txt:"Motorola", val:"484"};
 vdrs[154] = {txt:"MSI", val:"115"};
 vdrs[155] = {txt:"MT", val:"173"};
 vdrs[156] = {txt:"Mystique", val:"480"};
 vdrs[157] = {txt:"Nanya", val:"172"};
 vdrs[158] = {txt:"NEC", val:"195"};
 vdrs[159] = {txt:"Neovo", val:"298"};
 vdrs[160] = {txt:"Neovo", val:"472"};
 vdrs[161] = {txt:"Nestar", val:"470"};
 vdrs[162] = {txt:"Netgear", val:"224"};
 vdrs[163] = {txt:"NewPoint", val:"402"};
 vdrs[164] = {txt:"Nikon", val:"331"};
 vdrs[165] = {txt:"NMedia", val:"448"};
 vdrs[166] = {txt:"None", val:"465"};
 vdrs[167] = {txt:"Novatech", val:"440"};
 vdrs[168] = {txt:"OEM", val:"318"};
 vdrs[169] = {txt:"OEM", val:"137"};
 vdrs[170] = {txt:"Olympus", val:"447"};
 vdrs[171] = {txt:"Omega", val:"438"};
 vdrs[172] = {txt:"Omisys", val:"437"};
 vdrs[173] = {txt:"Optorite", val:"271"};
 vdrs[174] = {txt:"Panasonic", val:"273"};
 vdrs[175] = {txt:"PC Chip", val:"417"};
 vdrs[176] = {txt:"Philips", val:"474"};
 vdrs[177] = {txt:"Pinnacle", val:"295"};
 vdrs[178] = {txt:"Pioneer", val:"220"};
 vdrs[179] = {txt:"Pixo", val:"355"};
 vdrs[180] = {txt:"Plextor", val:"219"};
 vdrs[181] = {txt:"PNY", val:"201"};
 vdrs[182] = {txt:"Power Color", val:"177"};
 vdrs[183] = {txt:"Princeton", val:"317"};
 vdrs[184] = {txt:"Promise", val:"283"};
 vdrs[185] = {txt:"Quantum", val:"476"};
 vdrs[186] = {txt:"Raidmax", val:"426"};
 vdrs[187] = {txt:"Ramol", val:"278"};
 vdrs[188] = {txt:"Samsung", val:"126"};
 vdrs[189] = {txt:"SanDisk", val:"274"};
 vdrs[190] = {txt:"SAP", val:"411"};
 vdrs[191] = {txt:"Seagate", val:"153"};
 vdrs[192] = {txt:"Seasonic", val:"428"};
 vdrs[193] = {txt:"Sharp", val:"348"};
 vdrs[194] = {txt:"Shuttle", val:"181"};
 vdrs[195] = {txt:"Sicuro", val:"337"};
 vdrs[196] = {txt:"Simple", val:"344"};
 vdrs[197] = {txt:"SMC", val:"301"};
 vdrs[198] = {txt:"SonicWall", val:"334"};
 vdrs[199] = {txt:"Sony", val:"159"};
 vdrs[200] = {txt:"Soundblaster", val:"307"};
 vdrs[201] = {txt:"SOYO", val:"287"};
 vdrs[202] = {txt:"Sparkle", val:"322"};
 vdrs[203] = {txt:"SpecTek", val:"231"};
 vdrs[204] = {txt:"Spire", val:"443"};
 vdrs[205] = {txt:"StarTech", val:"311"};
 vdrs[206] = {txt:"Suntec", val:"359"};
 vdrs[207] = {txt:"Super Case", val:"168"};
 vdrs[208] = {txt:"Super Micro", val:"180"};
 vdrs[209] = {txt:"SuperT", val:"235"};
 vdrs[210] = {txt:"SVA", val:"395"};
 vdrs[211] = {txt:"Syba", val:"406"};
 vdrs[212] = {txt:"Sylvan", val:"270"};
 vdrs[213] = {txt:"Symantec", val:"174"};
 vdrs[214] = {txt:"TEAC", val:"215"};
 vdrs[215] = {txt:"Thermaltake", val:"321"};
 vdrs[216] = {txt:"Toshiba", val:"178"};
 vdrs[217] = {txt:"Trendent", val:"302"};
 vdrs[218] = {txt:"Tripro Power", val:"325"};
 vdrs[219] = {txt:"TYAN", val:"130"};
 vdrs[220] = {txt:"Uniwill", val:"327"};
 vdrs[221] = {txt:"USAP", val:"292"};
 vdrs[222] = {txt:"V7", val:"493"};
 vdrs[223] = {txt:"Vanguard", val:"236"};
 vdrs[224] = {txt:"Vantec", val:"425"};
 vdrs[225] = {txt:"Vector", val:"403"};
 vdrs[226] = {txt:"VIA", val:"120"};
 vdrs[227] = {txt:"Viewsonic", val:"135"};
 vdrs[228] = {txt:"Viking", val:"272"};
 vdrs[229] = {txt:"Vitex", val:"296"};
 vdrs[230] = {txt:"VM", val:"310"};
 vdrs[231] = {txt:"W.D.", val:"160"};
 vdrs[232] = {txt:"Winbond", val:"276"};
 vdrs[233] = {txt:"Wyse", val:"341"};
 vdrs[234] = {txt:"Xerox", val:"419"};
 vdrs[235] = {txt:"XFX", val:"396"};
 vdrs[236] = {txt:"Yamaha", val:"416"};
 vdrs[237] = {txt:"Zalmax", val:"434"};
 vdrs[238] = {txt:"Zebra", val:"492"};
 vdrs[239] = {txt:"Zippy", val:"433"};
 vdrs[240] = {txt:"ZM", val:"446"};
 vdrs[241] = {txt:"Zonet", val:"303"};
 vdrs[242] = {txt:"ZuMax", val:"473"};
//CatArrayMakingEnd




































