//keywords
var code="code";var url="url";var sub="sub";
//styles
var defcolor = {"border":"#666666", "shadow":"#DBD8D1", "bgON":"white","bgOVER":"#B6BDD2", "imagebg":"#B6BDD2", "oimagebg":"#B6BDD2"};
var defcolor2 = {"border":"#666666", "shadow":"#DBD8D1", "bgON":"#EF443B","bgOVER":"#EF443B", "imagebg":"#EF443B", "oimagebg":"#EF443B"};
var defcolor3 = {"border":"#666666", "shadow":"#DBD8D1", "bgON":"#F9FAC9","bgOVER":"#F9FAC9", "imagebg":"#F9FAC9", "oimagebg":"#F9FAC9"};
var defcss = {"ON":"clsCMTopOn", "OVER":"clsCMTopOver"};
var VERT_TOP = {"border":1, "borders":[1,1,1,0], "shadow":2, "color":defcolor, "css":defcss};
var BLANK = {"border":1, "borders":[1,1,1,0], "shadow":2, "color":defcolor3, "css":defcss};
var VERT_ALT_TOP = {"border":1, "borders":[1,1,1,1], "shadow":2, "color":defcolor2, "css":defcss};
var TOP_LEFT = {"border":1, "borders":[1,1,0,1], "shadow":2, "color":defcolor, "css":defcss};
var TOP_MIDDLE = {"border":1, "borders":[0,1,0,1], "shadow":2, "color":defcolor, "css":defcss};
var TOP_RIGHT = {"border":1, "borders":[0,1,1,1],"shadow":2, "color":defcolor, "css":defcss};
var STYLE1 = {"border":1, "borders":[1,0,1,0], "shadow":2, "color":defcolor, "css":defcss};
var STYLE2 = {"border":1, "borders":[1,1,1,1], "shadow":2, "color":defcolor2, "css":defcss};
var STYLE3 = {"border":1, "borders":[1,1,1,1], "shadow":2, "color":defcolor3, "css":defcss};
var STYLE_TOP = {"border":1, "borders":[1,1,1,0], "shadow":2, "color":defcolor, "css":defcss};
var STYLE_BOTT = {"border":1, "borders":[1,1,1,1], "shadow":2, "color":defcolor, "css":defcss};


//Global Menu Variables
if (navigator.appName == "Microsoft Internet Explorer")
{
var MENU_ITEMS = [
	{"pos":"relative", "size":[25,180], "itemoff":[25,0], "imgsize":[16,27], "leveloff":[0,10], "delay":300, "image":"/img/blank.gif", "imgsize":[20,24], "arrow":"/img/arrow.gif", "arrsize":[13,13],  "style":TOP_LEFT},	

//buttons...

//Order Cert button
{code:"<b>Order Your Certificate</b>", "format":{"arrow":"/img/arrow.gif", "oarrow":"/img/arrow.gif", "image":null, "style":VERT_TOP},
        sub:[
		//{"size":[20,280], "itemoff":[20,0], "leveloff":[-25,149], "style":STYLE1},
		{"size":[25,240], "itemoff":[25,0], "leveloff":[-7,149], "style":STYLE1},
		{code:"<b>US, GB, CA, AU, NZ citizens</b>", url:"/registration_Process.html", target:"_top", "format":{"image":"/img/fc2.gif", "oimage":"/img/fe2.gif", "style":VERT_TOP}},
		{code:"<b>All other Foreign Nationals</b>", url:"/registration_Process_FN.html", target:"_top", "format":{"image":"/img/fc2.gif", "oimage":"/img/fe2.gif", "style":STYLE_BOTT}},
			]
	},
     //Policies button
 {code:"<b>Policies</b>", url:"/policies.html", target:"_top", "format":{"arrow":null, "image":null, "style":VERT_TOP},
 		sub:[
			
			]
		},
	//Cost Info button	
 {code:"<b>Certificate Pricing</b>", url:"/costinfo.html", target:"_top", "format":{"arrow":null, "image":null, "style":VERT_TOP},
		sub:[
			
			]
		},
		
	//Instructions button	
 {code:"<b>Instructions</b>", url:"/instructions.html", target:"_top", "format":{"arrow":null, "image":null, "style":VERT_TOP},
 		sub:[
			
			]
		},
		
	//Print button	
 {code:"<b>Print Instructions</b>", url:"javascript:openWindow('printwarning.html');", target:"_top", "format":{"arrow":null, "image":null, "style":VERT_TOP},
 		sub:[
			
			]
		},
		
		
		
	//Help button	
 {code:"<b>Help Desk</b>", url:"/help.html", target:"_top", "format":{"arrow":null, "image":null, "style":VERT_TOP},
 		sub:[
			
			]
		},
		
	//Home button	
 {code:"<b>Home</b>", url:"/index.html", "target":"_top", "format":{"arrow":null, "image":null, "style":VERT_TOP},
 		sub:[
			
			]
		},

//ECA Repository button

 {code:"<b>ECA Repository</b>", url:"/repository.html", "target":"_top", "format":{"arrow":"/img/arrow.gif", "oarrow":"/img/arrow.gif", "image":null, "style":VERT_TOP},
 		sub:[
			{"size":[20,280], "itemoff":[20,0], "leveloff":[-25,149], "style":STYLE1},
            		{code:"<b>Understanding the Repository</b>", url:"/repository.html", target:"_top", "format":{"image":"/img/fc2.gif", "oimage":"/img/fe2.gif", "style":VERT_TOP}},
            		//{code:"<b>Directory</b>", url:"ldap://eca-ds.orc.com", target:"_blank", "format":{"image":"/img/tree.gif", "oimage":"/img/otree.gif", "style":VERT_TOP}},
			{code:"<b>Download an ORC ECA CRL</b>", "format":{"image":"img/dl.gif", "oimage":"img/dl2.gif", "style":VERT_TOP},
                        sub:[
                                {"size":[25,230], "itemoff":[20,0], "leveloff":[-20,260], "style":STYLE1},
                                {code:"<b>ORC ECA</b>", url:"CRLs/ORCECA.crl", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA 2</b>", url:"CRLs/ORCECA2.crl", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA Foreign National</b>", url:"CRLs/ORCECAFN1.crl", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA SW 3</b>", url:"CRLs/ORCECASW3.crl", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA HW 3</b>", url:"CRLs/ORCECAHW3.crl", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":STYLE_BOTT}},
                        ]
                },
			{code:"<b>ECA Root Certificate</b>", url:"https://eca-sw3.orc.com/ca/caCerts/eca_root.cer", target:"_blank", "format":{"image":"/img/dl.gif", "oimage":"/img/dl2.gif", "style":VERT_TOP}},
			{code:"<b>ECA Root 2 Certificate</b>", url:"https://eca-sw3.orc.com/ca/caCerts/ECA-ROOT2.cer", target:"_blank", "format":{"image":"/img/dl.gif", "oimage":"/img/dl2.gif", "style":VERT_TOP}},
			{code:"<b>ORC ECA Signing Certificates</b>", "format":{"image":"/img/dl.gif", "oimage":"/img/dl2.gif", "style":VERT_TOP},
			sub:[
                                {"size":[25,230], "itemoff":[20,0], "leveloff":[-20,260], "style":STYLE1},
                                {code:"<b>ORC ECA</b>", url:"https://eca-sw3.orc.com/ca/caCerts/ORCECA.cer", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA 2</b>", url:"https://eca-sw3.orc.com/ca/caCerts/ORCECA2.cer", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA Foreign National</b>", url:"https://eca-sw3.orc.com/ca/caCerts/ORCECAFN1.cer", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA SW 3</b>", url:"https://eca-sw3.orc.com/ca/caCerts/ECA-SW3.cer", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA HW 3</b>", url:"https://eca-sw3.orc.com/ca/caCerts/ECA-HW3.cer", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":STYLE_BOTT}},
			]
		},
			{code:"<b>Display CA Certificate Chain</b>", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":VERT_TOP},
			sub:[
                                {"size":[25,230], "itemoff":[20,0], "leveloff":[-20,260], "style":STYLE1},
                                {code:"<b>ORC ECA</b>", url:"CAChain.html", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA 2</b>", url:"CAChain2.html", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA Foreign National</b>", url:"CAChainFN.html", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA SW 3</b>", url:"CAChainSW3.html", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA HW 3</b>", url:"CAChainHW3.html", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":STYLE_BOTT}},
			]
		},
			{code:"<b>ECA Master Directory</b>", url:"javascript:openDirectoryWindow('https://eca.orc.com/dsgw/bin/csearch?context=eca');", target:"_top", "format":{"image":"/img/tree.gif", "oimage":"/img/otree.gif", "style":STYLE_BOTT}},
			]
		},

	//Certificate Tools button
		
 {code:"<b>Certificate Tools</b>","target":"_top", "format":{"arrow":"/img/arrow.gif", "oarrow":"/img/arrow.gif", "image":null, "style":STYLE_BOTT},
 		sub:[
			{"size":[20,260], "itemoff":[20,0], "leveloff":[0,149], "style":STYLE1},
      {code:"<b>Soft Certificate Renewal</b>", url:"https://eca-sw3.orc.com/custom/UserRenewal.jsp", target:"_top", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":VERT_TOP}},
      {code:"<b>Hardware/Token Cert Renewal</b>", url:"https://eca-hw3.orc.com/custom/UserRenewal.jsp", target:"_top", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":VERT_TOP}},
			{code:"<b>Certificate Revocation</b>", url:"/revocation_reasons.html", target:"_top", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":VERT_TOP}},
			{code:"<b>Certificate Status</b>", url:"javascript:openDirectoryWindow('https://eca-ca.orc.com/ca/valid_check.html');", target:"_top", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":VERT_TOP}},
			{code:"<b>Certificate Test</b>", url:"https://confirm.eca.orc.com/ecatest.html", target:"_top", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":STYLE_BOTT}},
			]
		},
		
	// IECA Legacy Support button
/* {code:"<b>IECA Support</b>", "target":"_top", "format":{"arrow":"/img/arrow.gif", "oarrow":"/img/oarrow.gif", "image":null, "style":STYLE_BOTT},
                sub:[
                        {"size":[20,280], "itemoff":[20,0], "leveloff":[0,149], "style":STYLE1},
                        {code:"<b>Import CA Chain</b>", url:"/IECA/chainretrieval.html", target:"_top", "format":{"image":"/img/dl.gif", "oimage":"/img/dl2.gif", "style":VERT_TOP}},
			{code:"<b>Display CA Chain</b>", url:"/IECA/CAChain.html", target:"_top", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":VERT_TOP}},
			{code:"<b>Certificate Revocation List (CRL)</b>", url:"https://ieca.orc.com/getCRL?op=getCRL&issuepoint=MasterCRL", target:"_blank", "format":{"image":"/img/dl.gif", "oimage":"/img/dl2.gif", "style":VERT_TOP}},
                        {code:"<b>Certificate Revocation</b>", url:"https://ieca.orc.com/frames/indexB.html", target:"_top", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":VERT_TOP}},
                        {code:"<b>Certificate Test</b>", url:"https://confirm.eca.orc.com/iecatest.html", target:"_blank", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":STYLE_BOTT}},
                        
                        ]
                }, */

      ]; 
} else {
var MENU_ITEMS = [
	{"pos":"relative", "size":[25,180], "itemoff":[25,0], "imgsize":[16,27], "leveloff":[0,10], "delay":300, "image":"/img/blank.gif", "imgsize":[20,24], "arrow":"/img/arrow.gif", "arrsize":[13,13],  "style":TOP_LEFT},	

//buttons...

//Order Cert button
 {code:"<b>Order Your Certificate</b>", "format":{"arrow":"/img/arrow.gif", "oarrow":"/img/arrow.gif", "image":null, "style":VERT_TOP},
        sub:[
            //{"size":[21,140], "itemoff":[21,0], "leveloff":[25,0], "style":STYLE1},
		{"size":[25,240], "itemoff":[25,0], "leveloff":[-7,149], "style":STYLE1},
		{code:"<b>US, GB, CA, AU, NZ citizens</b>", url:"/registration_Process.html", target:"_top", "format":{"image":"/img/fc2.gif", "oimage":"/img/fe2.gif", "style":VERT_TOP}},
		{code:"<b>All other Foreign Nationals</b>", url:"/registration_Process_FN.html", target:"_top", "format":{"image":"/img/fc2.gif", "oimage":"/img/fe2.gif", "style":STYLE_BOTT}},
			]
	},
     //Policies button
 {code:"<b>Policies</b>", url:"/policies.html", target:"_top", "format":{"arrow":null, "image":null, "style":VERT_TOP},
 		sub:[
			
			]
		},
	//Cost Info button	
 {code:"<b>Certificate Pricing</b>", url:"/costinfo.html", target:"_top", "format":{"arrow":null, "image":null, "style":VERT_TOP},
		sub:[
			
			]
		},
		
	//Instructions button	
 {code:"<b>Instructions</b>", url:"/instructions.html", target:"_top", "format":{"arrow":null, "image":null, "style":VERT_TOP},
 		sub:[
			
			]
		},
		
	//Print button	
 {code:"<b>Print Instructions</b>", url:"javascript:openWindow('printwarning.html');", target:"_top", "format":{"arrow":null, "image":null, "style":VERT_TOP},
 		sub:[
			
			]
		},
		
		
		
	//Help button	
 {code:"<b>Help Desk</b>", url:"/help.html", target:"_top", "format":{"arrow":null, "image":null, "style":VERT_TOP},
 		sub:[
			
			]
		},
		
	//Home button	
 {code:"<b>Home</b>", url:"/index.html", "target":"_top", "format":{"arrow":null, "image":null, "style":VERT_TOP},
 		sub:[
			
			]
		},

//ECA Repository button

 {code:"<b>ECA Repository</b>", url:"/repository.html", "target":"_top", "format":{"arrow":"/img/arrow.gif", "oarrow":"/img/arrow.gif", "image":null, "style":VERT_TOP},
 		sub:[
			{"size":[20,280], "itemoff":[20,0], "leveloff":[-25,149], "style":STYLE1},
            		{code:"<b>Understanding the Repository</b>", url:"/repository.html", target:"_top", "format":{"image":"/img/fc2.gif", "oimage":"/img/fe2.gif", "style":VERT_TOP}},
			{code:"<b>Download an ORC ECA CRL</b>", "format":{"image":"img/dl.gif", "oimage":"img/dl2.gif", "style":VERT_TOP},
                        sub:[
                                {"size":[25,230], "itemoff":[20,0], "leveloff":[-20,260], "style":STYLE1},
                                {code:"<b>ORC ECA</b>", url:"CRLs/ORCECA.crl", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA 2</b>", url:"CRLs/ORCECA2.crl", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA Foreign National</b>", url:"CRLs/ORCECAFN1.crl", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA SW 3</b>", url:"CRLs/ORCECASW3.crl", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA HW 3</b>", url:"CRLs/ORCECAHW3.crl", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":STYLE_BOTT}},
                        ]
                },
			{code:"<b>ECA Root Certificate</b>", url:"https://eca-sw3.orc.com/getCAChain?op=download&mimeType=application/x-x509-ca-cert", target:"_blank", "format":{"image":"/img/dl.gif", "oimage":"/img/dl2.gif", "style":VERT_TOP}},
			{code:"<b>ECA Root 2 Certificate</b>", url:"https://eca-sw3.orc.com/getCAChain?op=download&mimeType=application/x-x509-ca-cert", target:"_blank", "format":{"image":"/img/dl.gif", "oimage":"/img/dl2.gif", "style":VERT_TOP}},
			{code:"<b>ORC ECA Signing Certificates</b>", "format":{"image":"/img/dl.gif", "oimage":"/img/dl2.gif", "style":VERT_TOP},
			sub:[
                                {"size":[25,230], "itemoff":[20,0], "leveloff":[-20,260], "style":STYLE1},
                                {code:"<b>ORC ECA</b>", url:"https://eca-sw3.orc.com/ca/caCerts/ORCECA.cer", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA 2</b>", url:"https://eca-sw3.orc.com/ca/caCerts/ORCECA2.cer", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA Foreign National</b>", url:"https://eca-sw3.orc.com/ca/caCerts/ORCECAFN1.cer", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA SW 3</b>", url:"https://eca-sw3.orc.com/ca/caCerts/ECA-SW3.cer", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA HW 3</b>", url:"https://eca-sw3.orc.com/ca/caCerts/ECA-HW3.cer", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":STYLE_BOTT}},
			]
		},
			{code:"<b>Display CA Certificate Chain</b>", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":VERT_TOP},
			sub:[
                                {"size":[25,230], "itemoff":[20,0], "leveloff":[-20,260], "style":STYLE1},
                                {code:"<b>ORC ECA</b>", url:"CAChain.html", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA 2</b>", url:"CAChain2.html", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA Foreign National</b>", url:"CAChainFN.html", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA SW 3</b>", url:"CAChainSW3.html", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":VERT_TOP}},
                                {code:"<b>ORC ECA HW 3</b>", url:"CAChainHW3.html", target:"_top", "format":{"image":"img/fc2.gif","oimage":"img/fe2.gif", "style":STYLE_BOTT}},
			]
		},
			{code:"<b>ECA Master Directory</b>", url:"javascript:openDirectoryWindow('https://eca.orc.com/dsgw/bin/csearch?context=eca');", target:"_top", "format":{"image":"/img/tree.gif", "oimage":"/img/otree.gif", "style":STYLE_BOTT}},
			]
		},

	//Certificate Tools button
		
 {code:"<b>Certificate Tools</b>","target":"_top", "format":{"arrow":"/img/arrow.gif", "oarrow":"/img/arrow.gif", "image":null, "style":STYLE_BOTT},
 		sub:[
			{"size":[20,260], "itemoff":[20,0], "leveloff":[0,149], "style":STYLE1},
      {code:"<b>Soft Certificate Renewal</b>", url:"https://eca-sw3.orc.com/custom/UserRenewal.jsp", target:"_top", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":VERT_TOP}},
      {code:"<b>Hardware/Token Cert Renewal</b>", url:"https://eca-hw3.orc.com/custom/UserRenewal.jsp", target:"_top", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":VERT_TOP}},
			{code:"<b>Certificate Revocation</b>", url:"/revocation_reasons.html", target:"_top", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":VERT_TOP}},
			{code:"<b>Certificate Status</b>", url:"javascript:openDirectoryWindow('https://eca-ca.orc.com/ca/valid_check.html');", target:"_top", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":VERT_TOP}},
			{code:"<b>Certificate Test</b>", url:"https://confirm.eca.orc.com/ecatest.html", target:"_top", "format":{"image":"/img/page.gif", "oimage":"/img/page2.gif", "style":STYLE_BOTT}},
			]
		},

      ]; 
}
