function openWindow(url, w, h)
{
    var options = "width = " + w + ",height = " + h + ",";
    options +=  "resizable = yes,scrollbars = yes,status = no,";
    options +=  "menubar=no,toolbar=no,location=no,directories=no,top=150,left=350";
    var newWin = window.open(url, 'newWin', options);
    newWin.focus();
}

function MM_findObj(n, d)
{
    var p, i, x;
    if (!d) d = document;
    if ((p = n.indexOf("?")) > 0 && parent.frames.length)
    {
        d = parent.frames[n.substring(p+1)].document;
        n = n.substring(0,p);
    }
    if (!(x = d[n]) && d.all)
        x = d.all[n];
    for (i = 0; !x && i < d.forms.length; i++)
        x = d.forms[i][n];
    for (i = 0; !x && d.layers && i<d.layers.length; i++)
        x = MM_findObj(n, d.layers[i].document);
    if (!x && d.getElementById)
        x = d.getElementById(n);
    return x;
}

function MM_swapImage()
{
    var i, j = 0, x, a = MM_swapImage.arguments;
    document.MM_sr = new Array;
    for (i = 0; i < (a.length - 2); i += 3)
        if ((x = MM_findObj(a[i])) != null)
        {
            document.MM_sr[j++] = x;
            if (!x.oSrc)
                x.oSrc = x.src;
            x.src = a[i + 2];
        }
}

function MM_preloadImages()
{
    var d = document;
    if (d.images)
    {
        if (!d.MM_p)
            d.MM_p = new Array();
        var i, j = d.MM_p.length, a = MM_preloadImages.arguments;
        for (i = 0; i < a.length; i++)
            if (a[i].indexOf("#") != 0)
            {
                d.MM_p[j] = new Image;
                d.MM_p[j++].src = a[i];
            }
    }
}

function mmLoadMenus()
{
    if (window.mm_menu_0216173639_0) return;
    window.mm_menu_0216173639_0 = new Menu("root",110,18,"Verdana, Arial, Helvetica, sans-serif",9,"#003366","#ab5318","#ffffff","#ffffff","left","middle",3,1,1000,0,0,true,false,true,0,false,false);
    mm_menu_0216173639_0.addMenuItem("&gt;&nbsp;company&nbsp;history","location='company_history.shtml'");
    mm_menu_0216173639_0.addMenuItem("&gt;&nbsp;locations","location='locations.cgi'");
    mm_menu_0216173639_0.addMenuItem("&gt;&nbsp;news&nbsp;&amp;&nbsp;press","location='news_press.shtml'");
    mm_menu_0216173639_0.addMenuItem("&gt;&nbsp;video","location='company_video.shtml'");
    mm_menu_0216173639_0.fontWeight="bold";
    mm_menu_0216173639_0.hideOnMouseOut=true;
    mm_menu_0216173639_0.menuBorder=0;
    mm_menu_0216173639_0.menuLiteBgColor='#ffffff';
    mm_menu_0216173639_0.menuBorderBgColor='#d4d0c8';
    mm_menu_0216173639_0.bgColor='#ffffff';
    window.mm_menu_0216184547_0 = new Menu("root",125,18,"Verdana, Arial, Helvetica, sans-serif",9,"#003366","#ab5318","#ffffff","#ffffff","left","middle",3,1,1000,0,0,true,false,true,0,false,false);
    mm_menu_0216184547_0.addMenuItem("&gt;&nbsp;products&nbsp;&amp;&nbsp;services","location='products_services.shtml'");
    mm_menu_0216184547_0.addMenuItem("&gt;&nbsp;ISO&nbsp;9001","location='iso9001.shtml'");
    mm_menu_0216184547_0.addMenuItem("&gt;&nbsp;safety","location='safety.shtml'");
    mm_menu_0216184547_0.fontWeight="bold";
    mm_menu_0216184547_0.hideOnMouseOut=true;
    mm_menu_0216184547_0.menuBorder=0;
    mm_menu_0216184547_0.menuLiteBgColor='#ffffff';
    mm_menu_0216184547_0.menuBorderBgColor='#d4d0c8';
    mm_menu_0216184547_0.bgColor='#ffffff';
    window.mm_menu_0216184820_0 = new Menu("root",129,18,"Verdana, Arial, Helvetica, sans-serif",9,"#003366","#ab5318","#ffffff","#ffffff","left","middle",3,1,1000,0,0,true,false,true,0,false,false);
    mm_menu_0216184820_0.addMenuItem("&gt;&nbsp;company&nbsp;profile","location='company_profile.shtml'");
    mm_menu_0216184820_0.addMenuItem("&gt;&nbsp;management&nbsp;profile","location='company_management.shtml'");
    mm_menu_0216184820_0.addMenuItem("&gt;&nbsp;employment","location='employment.shtml'");
    mm_menu_0216184820_0.fontWeight="bold";
    mm_menu_0216184820_0.hideOnMouseOut=true;
    mm_menu_0216184820_0.menuBorder=0;
    mm_menu_0216184820_0.menuLiteBgColor='#ffffff';
    mm_menu_0216184820_0.menuBorderBgColor='#d4d0c8';
    mm_menu_0216184820_0.bgColor='#ffffff';
    window.mm_menu_0216185240_0 = new Menu("root",126,18,"Verdana, Arial, Helvetica, sans-serif",9,"#003366","#ab5318","#ffffff","#ffffff","left","middle",3,1,1000,0,0,true,false,true,0,false,false);
    mm_menu_0216185240_0.addMenuItem("&gt;&nbsp;industry&nbsp;experience","location='industry_experience.shtml'");
    mm_menu_0216185240_0.addMenuItem("&gt;&nbsp;affiliates&nbsp;&amp;&nbsp;links","location='affiliates_links.shtml'");
    mm_menu_0216185240_0.addMenuItem("&gt;&nbsp;international&nbsp;options","location='international_options.shtml'");
    mm_menu_0216185240_0.fontWeight="bold";
    mm_menu_0216185240_0.hideOnMouseOut=true;
    mm_menu_0216185240_0.menuBorder=0;
    mm_menu_0216185240_0.menuLiteBgColor='#ffffff';
    mm_menu_0216185240_0.menuBorderBgColor='#d4d0c8';
    mm_menu_0216185240_0.bgColor='#ffffff';

    mm_menu_0216185240_0.writeMenus();
}

function menu_jump(path)
{
    window.location.href = path.options[path.selectedIndex].value;
}

function showCert(imageName) {
    var dialog = dijit.byId("certificateDialog");
    dialog.attr("content", "<img src='images/temp/" + imageName + "' />");
    dialog.show();
}

