/*HM_Loader.js
* by Peter Belesis. v4.2.2 020307
* Copyright (c) 2002 Peter Belesis. All Rights Reserved.
*/

HM_DOM = (document.getElementById) ? true : false;
HM_NS4 = (document.layers) ? true : false;
HM_IE = (document.all) ? true : false;
HM_IE4 = HM_IE && !HM_DOM;
HM_Mac = (navigator.appVersion.indexOf("Mac") != -1);
HM_IE4M = HM_IE4 && HM_Mac;

HM_Opera = (navigator.userAgent.indexOf("Opera")!=-1);
HM_Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

HM_IsMenu = (HM_DOM || HM_NS4 || (HM_IE4 && !HM_IE4M));

HM_BrowserString = HM_NS4 ? "NS4" : HM_DOM ? "DOM" : "IE4";

if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

HM_GL_MenuWidth          = 100;
HM_GL_FontFamily         = "Verdana, Arial, Sans-serif";
HM_GL_FontSize           = 8;
HM_GL_FontBold           = false;
HM_GL_FontItalic         = false;
HM_GL_FontColor          = "#FFFFFF";
HM_GL_FontColorOver      = "Yellow";
HM_GL_BGColor            = "#455084";
HM_GL_BGColorOver        = "#455084";
HM_GL_ItemPadding        = 3;

HM_GL_BorderWidth       = 1;
HM_GL_BorderColor       = "#000000";
HM_GL_BorderStyle       = "solid";
HM_GL_SeparatorSize     = 1;
HM_GL_SeparatorColor    = "#000000";

HM_GL_ImageSize          = 3;
HM_GL_ImageHorizSpace    = 3;
HM_GL_ImageVertSpace     = 3;

HM_GL_ImageSrc = "/images/right.gif";
HM_GL_ImageSrcLeft = "/images/left.gif";

HM_GL_ImageSrcOver = "/images/right.gif";
HM_GL_ImageSrcLeftOver = "/images/left.gif";

HM_GL_KeepHilite         = true;
HM_GL_ClickStart         = false;
HM_GL_ClickKill          = 0;
HM_GL_ChildOverlap       = 20;
HM_GL_ChildOffset        = 0;
HM_GL_ChildPerCentOver   = null;
HM_GL_TopSecondsVisible  = .5;
HM_GL_ChildSecondsVisible = .3;
HM_GL_StatusDisplayBuild = 0;
HM_GL_StatusDisplayLink  = 1;
HM_GL_UponDisplay        = null;
HM_GL_UponHide           = null;

HM_GL_RightToLeft     	 = false;
HM_GL_CreateTopOnly      = HM_NS4 ? true : false;
HM_GL_ShowLinkCursor     = true;

HM_GL_ScrollEnabled = false;
HM_GL_ScrollBarHeight = 14;
HM_GL_ScrollBarColor = "lightgrey";
HM_GL_ScrollImgWidth = 9;
HM_GL_ScrollImgHeight = 5;

//**********************
// 8/26/2003
// Arrays for main page

HM_Array66 = [
[190,256,311],
["<b>Product</b> - Multi-User creation and viewing of D-FMEA's, Control Plans, and Product Configurations.  Users can link documents, including CAD files and Digital pictures to components and assemblies, and even launch MS-Windows based applications by selecting files from the documents interface.","#",1,0,0]
]

HM_Array22 = [
[190,256,311],
["<b>Process</b> - Multi-User creation and viewing of Operation sheets, Observed and Predetermined Time studies (MTM/Modpats), Line Balancing, Process charts, Value Stream Maps, Operator Work Instructions, PFMEA's/Controls Plans and Manufactured Costing studies.","#",1,0,0]
]

HM_Array33 = [
[190,256,311],
["<b>Engineer</b> - Proplanner includes many applications to create and analyze your manufacturing information, including Product FMEA, MTM/MODAPTS time and line balancing, Ergonomics Evaluator, MSDS manager and Work Instruction Authoring.","#",1,0,0]
]


HM_Array44 = [
[190,256,311],
["<b>Plant</b> - Multi-user creation and viewing of layout drawings in AutoCAD, as well as associated Ergonomic Asessments, MSDS - Material Safety Data Sheets, Operator Work Instructions and Digital pictures/video.","#",1,0,0]
]


HM_Array55 = [
[190,256,311],
["<b>Product-Engineer</b> - Create and manage Design FMEA studies and associated control plans.  Define product configurations and attach CAD drawings and digital pictures.","#",1,0,0]
]

HM_Array6 = [
[190,256,311],
["<b>Manage</b> - Proplanner's sophisticated data management capabilities include the ability to assign versions and effectivity dates to products, processes and plants.  Users may also define alternate processes and track the history of process design changes.","#",1,0,0]
]


HM_Array7 = [
[190,256,311],
["<b>Collaborate</b> - Proplanner allows users to organize and share files and applications, or track issues related to product/process/plant changes between multiple concurrent users via a simple Internet/Intranet interface.","#",1,0,0]
]

HM_Array8 = [
[190,256,311],
["<b>Process-Engineer </b>- Create process plans from user-defined libraries of operations and activities.  Perform Observed and Predetermined time studies, analyze assembly line balancing, evaluate ergonomics issues and generate operator work instructions.","#",1,0,0]
]

HM_Array9 = [
[190,256,311],
["<b>Plant-Engineer</b> - Define departments and zones, hyperlink web sites and attach documents to plants, departments and work centers.  Create and link ergonomics studies and operator work instructions to work areas.","#",1,0,0]
]

HM_Array10 = [
[190,256,311],
["<b>Product-Manage</b> - Assign versions and alternates to components.  Track end items, assemblies, features, raw materials and manufactured/purchased parts individually.  Reconcile Engineering and Manufacturing Bills of Material.","#",1,0,0]
]

HM_Array11 = [
[190,256,311],
["<b>Process-Manage</b> - Assign versions and lock down process definitions, and time studies.  Track the history of process changes and assign process effectivity dates.  Define and manage alternate operations.  Assign and manage documents to Operations and Activities.","#",1,0,0]
]


HM_Array12 = [
[190,256,311],
["<b>Plant-Manage</b> - Check AutoCAD layout drawings in and out.  Assign, lock down and manage versions and alternates of plants, departments and workcenters.  Assign and view MSDS information by department and workcenter.","#",1,0,0]
]


HM_Array13 = [
[190,256,311],
["<b>Product-Collaborate</b> - View CAD drawings, digital pictures and 3D VRML/JT models via the web.  Assign and track product issues.","#",1,0,0]
]

HM_Array14 = [
[190,256,311],
["<b>Process-Collaborate</b> - Share documents assigned to Operations and Activities.  Assign and track issues to process changes.  Share operator work instructions containing digital video and photos via the web.","#",1,0,0]
]

HM_Array15 = [
[190,256,311],
["<b>Plant-Collaborate</b> - Hyperlink web sites and access documents to plants, departments and work centers.  Create and link ergonomics studies and operator work instructions to work areas.  View, print and markup AutoCAD layout drawings.","#",1,0,0]
]



//end Arrays for main page.

//4.2.2
HM_GL_ScrollBothBars = true;

// the following function is included to illustrate the improved JS expression handling of
// the left_position and top_position parameters introduced in 4.0.9
// and modified in 4.1.3 to account for IE6 standards-compliance mode
// you may delete if you have no use for it

function HM_f_CenterMenu(topmenuid) {
    var MinimumPixelLeft = 0;
    var TheMenu = HM_DOM ? document.getElementById(topmenuid) : window[topmenuid];
    var TheMenuWidth = HM_DOM ? parseInt(TheMenu.style.width) : HM_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width;
    var TheWindowWidth = HM_IE ? (HM_DOM ? HM_IEcanvas.clientWidth : document.body.clientWidth) : window.innerWidth;
    return Math.max(parseInt((TheWindowWidth-TheMenuWidth) / 2),MinimumPixelLeft);
}

if(HM_IsMenu) {
    document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='/includes/menuArrays.ashx' TYPE='text/javascript'><\/SCR" + "IPT>");
    document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='/includes/HM_Script"+ HM_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}
