var m1, m2;
function createMenu(menuName, menuItems) {
	if (m1==null) {
		m1=new COOLjsMenuPRO(menuName, menuItems)
		m1.initTop();
	} else {
		m2=new COOLjsMenuPRO(menuName, menuItems)
		m2.initTop();
	}
}
function doMenu() {
	if (m1!=null) {
		m1.init();
		m1.show();
	}
	if (m2!=null) {
		m2.init();
		m2.show();
	}
}

BLANK_IMAGE="/assets/b.gif";
//keywords
var code="code";var url="url";var sub="sub";
//styles
var color = {"border":"#ccc", "shadow":"#DBD8D1", "bgON":"#efefef","bgOVER":"#B6BDD2"};
var css = {"ON":"clsCMOn", "OVER":"clsCMOver"};
var STYLE = {"border":1, "shadow":0, "color":color, "css":css};

var color1 = {"border":"#ccc", "shadow":"#DBD8D1", "bgON":"#003366","bgOVER":"#003366"};
var css1 = {"ON":"clsCMOn", "OVER":"clsCMOn"};
var STYLE1 = {"border":1, "shadow":0, "color":color1, "css":css1};
var STYLE2 = {"border":0, "shadow":0, "color":color, "css":css};


//items and formats
var US_MENU =
[
	{"pos":"relative", "itemoff":[31,0], "leveloff":[0,89], "style":STYLE, "size":[32,179]},
	{code:"<span style='color:#ffffff;text-align:center;'>Non-Immigrant Visas</span>", "format": { "style": STYLE1}, url:"javascript:" },
	{code:"How to Visit the United States for Business (B Visas)", url: "javascript:",
		sub:[
			{"size":[30, 180], "itemoff":[29, 0]},
			{code:"B-1 Business Visas", url: "/us/b1_visa.html"},
			{code:"Work Permitted on a B-1 Visa", url: "/us/b1_permitted.html"},
			{code:"Visa Waiver Pilot Program", url: "/us/waiver.html"}
		]
	},
	{code:"Generally Applicable Work Visas (H Visas)", url: "javascript:",
		sub:[
			{"size":[30, 180], "itemoff":[29, 0]},
			{code:"H1B and E-3 Temporary Work Visas", url: "/us/h1b_sheet.html"},
			{code:"The H1B \"Cap\"", url: "/us/h1b_cap.html"},
			{code:"H2B Visas for Temporary Nonagricultural Workers", url: "/us/h2b_nonagricultural.html"}
		]
	},
	{code:"Work Visas for Canadians and Mexicans (TN Visas)", url: "javascript:",
		sub:[
			{"size":[30, 180], "itemoff":[29, 0]},
			{code:"TN Temporary Work Visas", url: "/us/tn1.html"},
			{code:"TN Visa Qualifying Occupations", url: "/us/tn_occupations.html"},
		]
	},
	{code:"Transferring Employees to the United States (L & E Visas)", url: "javascript:",
		sub:[
			{"size":[30, 180], "itemoff":[29, 0]},
			{code:"L1A/B \"Intra-Company Transfer\" Visas", url: "/us/l1ab.html"},
			{code:"E-2 \"Treaty Investor\" Visas", url: "/us/e2_treaty2.html"},
		]
	},
	{code:"Starting a New Business in the United States (L & E Visas)", url: "javascript:",
		sub:[
			{"size":[30, 180], "itemoff":[29, 0]},
			{code:"L1A/B \"Intra-Company Transfer\" Visas", url: "/us/l1ab.html"},
			{code:"E-2 \"Treaty Investor\" Visa", url: "/us/e2_treaty2.html"}
		]
	},
	{code:"How to Obtain or Renew a Passport Visa Stamp",url: "/us/visa_stamp.html"},
	{code:"Employers' I-9 Employment Verification Process",url: "javascript:",
		sub:[
			{"size":[30, 180], "itemoff":[29, 0]},
			{code:"What is the I-9 Employment Verification Process?", url: "/us/i9_verification.html"},
			{code:"Which Employees Should Go Through the Employment Verification Process?", url: "/us/i9_who_verify.html",
			"format":{"size":[42, 179], "itemoff":[29,0]}},
			{code:"When Should an Employee's I-9 Form be Completed?", url: "/us/i9_when_verify.html",
				"format":{"itemoff":[41,0], "size":[30, 179]}},
			{code:"When Should an Employee's Employment Authorization be Re-Verified?", url: "/us/i9_reverify.html",
			"format":{"size":[42, 179], "itemoff":[29,0]}},
			{code:"What Documentation is Required for the I-9 Verification Process?", url: "/us/i9_documentation.html",
				"format":{"itemoff":[41,0], "size":[30, 179]}},
			{code:"I-9 Guidelines for Corporate Managers ", url: "/us/i9_guide.html"},
			{code:"How Long and Where Must an Employer Maintain its I-9 Forms?", url: "/us/i9_maintain.html"},
			{code:"Government Inspections", url: "/us/i9_inspections.html"},
			{code:"Fillable Version of the I-9 Form", url: "i9_form.pdf", target:"_blank"},
		]},

	{code:"<span style='color:#ffffff;text-align:center;'>Employment Based Green Cards</span>", "format": { "style": STYLE1} },

	{code:"Labor Certification Green Card Process",url: "/us/def.html"},
	{code:"Other Employment-Based Green Card Options", url: "javascript:",
		sub:[
			{"size":[42, 180], "itemoff":[41, 0]},
			{code:"Immigrant Visas/Green Cards for Aliens of Extraordinary Ability ", url: "/us/ae.html"},
			{code:"Immigrant Visas/Green Cards for Outstanding Professors and Researchers", url: "/us/professor_gc.html"},
			{code:"Immigrant Visas/Green Cards for Aliens of Exceptional Ability ", url: "/us/aea.html"},
			{code:"Immigrant Visas/Green Cards for Advanced Degreed Professionals", url: "/us/adg.html"}
		]
	},
	{code:"Investment-Based Green Card Process",url: "/us/investor_gc.html" },

	{code:"<span style='color:#ffffff;text-align:center;'>Other</span>", "format": { "style": STYLE1} },
	{code:"Family-Based Green Card Process",url: "/us/family_gc.html"},
	{code:"Citizenship Requirements",url: "/us/citizenship.html"}
];


var ABOUT_MENU =
[
	{"pos":"relative", "itemoff":[31,0], "leveloff":[0,164], "style":STYLE, "size":[32,179]},
	{code:"Firm Overview ", url: "/aboutus/firm.html"},
	{code:"Firm Biography: P.Robert Thompson ", url: "/aboutus/bio.html"},
	{code:"Legal Fees", url: "/aboutus/lfees.html"}
];

var GLOBAL_MENU =
[
	{"pos":"relative", "itemoff":[31,0], "leveloff":[0,89], "style":STYLE, "size":[32,179]},
	{code:"Factors Affecting Migration Laws in Different Countries", url: "/global/global_factors.html"},
	{code:"International Agreements Affecting Global Migration", url: "javascript:",
	sub:[
		{"size":[30, 180], "itemoff":[29, 0]},
		{code:"General Information", url: "/global/int_agreements.html"},		
		{code:"General Agreement on Trade In Services (GATS)", url: "/global/gats.html"},		
		{code:"Schengen Agreement", url: "/global/schengen.html"}	,
		{code:"North American Free Trade Agreement (NAFTA)", url: "/global/nafta.html"},	
		{code:"Asia Pacific Economic Cooperation (APEC)", url: "/global/apec.html"}	
	]},
	{code:"Business Visas", url: "/global/global_business.html"},
	{code:"Work Permits", url: "/global/work_permits.html"},
	{code:"Additional Global Migration Resources", url: "/global/resources.html"}
];

var HEALTHCARE_MENU =
[
	{"pos":"relative", "itemoff":[41,0], "leveloff":[0,164], "style":STYLE, "size":[42,179]},
	{code:"<span style='color:#ffffff;text-align:center;'>Physicians </span>", "format": { "style": STYLE1, "size":[30, 179]}, url:"javascript:" },
	{code:"Credentialing &amp; Licensing Requirements for Foreign Medical Graduates (Physicians)", url: "/healthcare/licensing.html",
		"format":{"size":[42, 179], "itemoff":[29,0]}},
	{code:"Nonimmigrant Visas for Foreign Medical Graduates (Physicians)", url: "/healthcare/nonimmigrant_physicians.html"},
	{code:"Immigrant Visas (Green Cards) for Foreign Medical Graduates (Physicians)", url: "/healthcare/gc_graduates.html"},
	{code:"<span style='color:#ffffff;text-align:center;'>Nurses</span>", "format": { "style": STYLE1, "size":[30, 179]}, url:"javascript:" },
	{code:"Visa Screen Requirements for Nurses", url: "/healthcare/requirements.html",
		"format":{"itemoff":[29,0], "size":[30, 179]}},
	{code:"Nonimmigrant Visas for Foreign Nurses", url: "/healthcare/nonimmigrant_nurses.html",
		"format":{"itemoff":[29,0], "size":[30, 179]}},
	{code:"Immigrant Visas (Green Cards) for Foreign Nurses", url: "/healthcare/gc_nurses.html","format":{"itemoff":[29,0], "size":[30, 179]}},
	{code:"<span style='color:#ffffff;text-align:center;'>Other Healthcare Workers </span>", "format": { "style": STYLE1, "size":[30, 179], "itemoff":[29,0]}, url:"javascript:" },
	{code:"Visa Screen Requirements for Other Healthcare Workers", url: "/healthcare/requirements_workers.html", 
	"format":{"itemoff":[29,0], "size":[42, 179]}},
	{code:"Nonimmigrant Visas for Foreign Healthcare Workers Other Than Nurses and Physicians", url: "/healthcare/other_non_gc.html", 
	"format":{"itemoff":[41,0], "size":[42, 179]}},
	{code:"Immigrant Visas (Green Cards) for Foreign Healthcare Workers Other Than Nurses and Physicians", url: "/healthcare/other_gc.html", 
	"format":{"itemoff":[41,0], "size":[52, 179]}},
];

var QUEST_MENU =
[
	{"pos":"relative", "itemoff":[31,0], "leveloff":[0,89], "style":STYLE, "size":[32,179]},
	{code:"Initial Review Data Information Sheet", url: "javascript:setContent('l1')"},
	{code:"Employer Sponsor Data Information Sheet", url: "javascript:setContent('l2')"},
];


/* top drop-down menu starts here */


