//-----------------------------------//
//	ADD DYNAMIC CODE TO ASSIST JOE'S PROJECT
//-----------------------------------//
// LOCALHOST HOST DEVELOPMENT DETECTION
//-----------------------------------//
//	DEBUG
//-----------------------------------//
//alert("Your host is: " + document.domain);

var hostsearch_re = /[localhost]+/;
var hostsearch = document.domain.search(hostsearch_re);
if(hostsearch == -1){
//alert("localhost not detected!");
//return false;
//keywords
var code="code";var url="url";var targ="target";var sub="sub";
//styles
var VSTYLE = {"border":1, "shadow":0, "color":{"border":"#43486F", "shadow":"#43486F", "bgON":"#FFFF00","bgOVER":"#43486F"}, "css":{"ON":"clsCMVOn", "OVER":"clsCMVOver"}}; //"css":{"ON":"clsCMVOn", "OVER":"clsCMVOver"}};
var VSTYLE2 = {"border":1, "shadow":1, "color":{"border":"#43486F", "shadow":"#43486F", "bgON":"#FFFF00","bgOVER":"#43486F"}, "css":{"ON":"clsCMVOn", "OVER":"clsCMVOver"}};
//items and formats
var V_MENU_ITEMS =
[
	{"pos":[0,129], "size":[24,129], "itemoff":[23,0], "leveloff":[0,140], "delay":500, "style":VSTYLE},
	{code:"About",url:"http://www.mikeholt.com/about.php?id=aboutgeneral",
		sub:[
			{"size":[25,150],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'Mike Holt Enterprises',url:"http://www.mikeholt.com/about.php?id=aboutenterprise"},
			{code:'About Mike Holt',url:"http://www.mikeholt.com/about.php?id=aboutmike"},
			{code:'Comments/Feedback',url:"http://www.mikeholt.com/about.php?id=abouttestimonials"},
			{code:'Disclaimer',url:"http://www.mikeholt.com/disclaimer.php"},
			{code:'Copyright',url:"http://www.mikeholt.com/copyright.php"},
			{code:'Link to this Site',url:"http://www.mikeholt.com/links.php?id=linksaddalink"},
			{code:'Message from Mike',url:"http://www.mikeholt.com/about.php?id=aboutmessage"},
			{code:'Privacy Policy',url:"http://www.mikeholt.com/about.php?id=aboutprivacy"},
			{code:'Publicity Photo',url:"http://www.mikeholt.com/about.php?id=aboutphoto"},
			{code:'Video Team',url:"http://www.mikeholt.com/videoteamall.php"}
			]
	},
	{code:"Affiliate Program",url:"http://www.mikeholt.com/affiliatepromo.php"},
	{code:"Best Values",url:"http://www.mikeholt.com/specialoffersmenu.php"},
	{code:'Books',
		sub:[
			{"size":[25,140],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			//{code:'2002 Books & Video & DVD',url:"http://www.mikeholt.com/products.php?year=2002"},
			{code:'2011 Books & DVDs',url:"http://www.mikeholt.com/products.php?year=2011"},
			{code:'2008 Books & DVDs',url:"http://www.mikeholt.com/products.php?year=2008"},
			{code:'2005 Books & DVDs',url:"http://www.mikeholt.com/products.php?year=2005"},
			{code:'Corrections',url:"http://www.mikeholt.com/catalog.php?id=catalogbookcorrections"}
		]
	},
//	{code:"Chat",url:"http://www.mikeholt.com/register/chat_login.htm",target:"_blank"},
	{code:"Clearance",url:"http://www.mikeholt.com/clearance.php"},
	{code:"Code Forum",url:"http://forums.mikeholt.com"},
	//{code:"Code Forum",url:"http://www.mikeholt.com/CodeForumDown.php"},
//	{code:"Code Forum",url:"http://www.mikeholt.com/free-exams-menu.php"},
/*
	{code:'Code Quiz',
		sub:[
			{"size":[25,220],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'Code Quizzes',url:"http://www.mikeholt.com/codeQuizzes.php"},
			{code:'Grounding vs Bonding',url:"http://www.mikeholt.com/MHGVB/"},
			{code:'Journeyman Simulated Exams',url:"http://www.mikeholt.com/examprep.php?id=exampreponlinejourneyman"},
			{code:'Master/Contractor Simulated Exams',url:"http://www.mikeholt.com/examprep.php?id=exampreponlinemaster"},
			{code:'Theory Quiz',url:"http://www.mikeholt.com/MQ4/"},
			{code:'Low Voltage Quiz',url:"http://www.mikeholt.com/MQ6/"}
		]
	},
*/
	{code:'Continuing Ed',url:"continuingEducation.php",

		sub:[
			{"size":[25,120], "itemoff":[24,0], "leveloff":[0,115], "style":VSTYLE},
			{code:'Approved Courses',url:"http://www.mikeholt.com/continuingEducation.php",
				sub:[
				{"size":[25,140],"itemoff":[24,0],"leveloff":[0,120],"style":VSTYLE2},
				{code:'&nbsp; Electrical Contractors',url:"http://www.mikeholt.com/stateceu.php"},
				{code:'&nbsp; Engineers',url:"http://www.mikeholt.com/stateengineerlicense.php"}
				]
			},
			{code:'Seminars',url:"http://www.mikeholt.com/seminar.php?id=seminarabout"},
			{code:'Course Login',url:"http://www.mikeholt.com/classroom.php"},
			{code:'Testimonials',url:"http://www.mikeholt.com/about.php?id=abouttestimonials&types=2"},
			{code:'FAQs',url:"http://www.mikeholt.com/continuingEducationFAQ.php"}
		]

	},
/*
	{code:'Continue Education',url:"conedu.php?id=conedugeneral",
		sub:[
			{"size":[25,150],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'2002 Courses',url:"http://www.mikeholt.com/productcategorylist.php?id=12&from=Products&title=Continuing%20Education&year=2002"},
			{code:'2005 Courses',url:"http://www.mikeholt.com/productcategorylist.php?id=12&title=Continuing+Education&year=2005&from=Products&product_type=&searchtext"},
			{code:'Online CEU Courses',url:"http://www.mikeholt.com/examprep.php?id=examprepceupromo"},
			{code:'State CEU Requirements',
				sub:[
				{"size":[25,225],"itemoff":[24,0],"leveloff":[0,145],"style":VSTYLE2},
				{code:'Electrician / Contractor Requirements',url:"http://www.mikeholt.com/statelicense.php"},
				{code:'Engineer Requirements',url:"http://www.mikeholt.com/stateengineerlicense.php"}
				]
			}
		]
	},
*/
	//{code:'Espa&ntilde;ol',url:"http://www.cyamsa.com.mx/",target:"_blank"},
	{code:'Estimating Software',url:"http://www.mikeholt.com/EstimatingSoftware.php"},
	{code:'Exam Prep',url:"http://www.mikeholt.com/examprep.php?id=examprepgeneral"},
//	{code:'Exam Prep',
//		sub:[
//			{"size":[25,220],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
//			{code:'Detailed Information',url:"http://www.mikeholt.com/examprep.php?id=examprepgeneral"},
//			{code:'Free Exam Prep Quiz',url:"http://www.mikeholt.com/productcategorylist.php?id=20&from=Products&title=Exam%20Preparation&year=2005"}
//		]
//	},
	{code:"Find an Expert",url:"http://www.mikeholt.com/e-rolodex-intro.php"},
	{code:"Find a School",url:"http://www.mikeholt.com/findaschool_search.php"},
	{code:"Florida Exams",url:"http://www.mikeholt.com/florida.php?id=floridamenu"},
	{code:"Free Stuff",url:"http://www.mikeholt.com/freestuff.php?id=freegeneral"},
	//{code:'In-House Training',url:"http://www.mikeholt.com/inhousetraining.php"},
	{code:"INSTRUCTORS",url:"http://www.mikeholt.com/instructors.php"},
	{code:"ISBN",url:"http://www.mikeholt.com/isbn.php"},
	//{code:'ISBN Information',url:"http://www.mikeholt.com/nstructor2/isbn.php"},
	{code:'Links',url:"http://www.mikeholt.com/links.php?id=linksgeneral"},
	//{code:"Magazines",url:"http://www.mikeholt.com/links.php?id=linksmagazines"},
	//{code:"Miscellaneous",url:"http://www.mikeholt.com/misc.php?id=miscnewslettersmenu"},
	//{code:'Miscellaneous',
		//sub:[
		//	{"size":[25,150],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			//{code:'Articles',url:"http://www.mikeholt.com/misc.php?id=miscnewslettersmenu"}
		//]
	//},
	{code:"NEC<sup>&reg;</sup>",url:"http://www.mikeholt.com/technical.php?id=nec/technicalnecmenu"},
	{code:'Newsletters / Blog',url:"http://www.mikeholt.com/newslettersCategories.php",
		sub:[
			{"size":[25,150],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'Subscribe!',url:"http://www.mikeholt.com/newslettersRegister.php"},
			{code:'Change Email Address',url:"http://www.mikeholt.com/newslettersRegister.php?action=modify"},
			{code:'Change Subscriptions',url:"http://www.mikeholt.com/newslettersRegister.php?action=modify"},
			{code:'Search Newsletters',url:"http://www.mikeholt.com/nlsearch.php"},
			{code:'View Archives',url:"http://www.mikeholt.com/newslettersCategories.php"},
			//{code:'Search Archives',url:"searcharchives.php"},
			{code:'Having Trouble?',url:"http://www.mikeholt.com/newsletter.php?id=unformatted/newslettertroubleshooting&type=u&title=Newsletter%20Troubleshooting"},
			{code:'UNsubscribe',url:"http://www.mikeholt.com/newslettersRegister.php?action=modify"}
		]
	},
	{code:'Online Training',url:"http://www.mikeholt.com/onlinetraining.php",
		sub:[
			{"size":[25,150],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'Login',url:"http://www.mikeholt.com/classroom.php"},
			{code:'Inspector',url:"http://www.mikeholt.com/examprep.php?id=exampreponlinemaster"},
			{code:'Journeyman',url:"http://www.mikeholt.com/examprep.php?id=exampreponlinejourneyman"},
			{code:'Master',url:"http://www.mikeholt.com/examprep.php?id=exampreponlinemaster"}
		]
	},
	//{code:"Question Forum",url:"codeForum/"},
	{code:'Quizzes',url:"http://www.mikeholt.com/free-exams-menu.php"},
	{code:"Safety",url:"http://www.mikeholt.com/technical.php?id=safety/safetylinks"},
/*	{code:'Quizzes',
		sub:[
			{"size":[25,220],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'Code Quizzes',url:"http://www.mikeholt.com/codeQuizzes.php"},
			{code:'Free Exam Prep Quiz',url:"http://www.mikeholt.com/productcategorylist.php?id=20&from=Products&title=Exam%20Preparation&year=2005"},
			{code:'Grounding vs Bonding',url:"http://www.mikeholt.com/MHGVB/"},
			{code:'Journeyman Simulated Exams',url:"http://www.mikeholt.com/examprep.php?id=exampreponlinejourneyman"},
			{code:'Master/Contractor Simulated Exams',url:"http://www.mikeholt.com/examprep.php?id=exampreponlinemaster"},
			{code:'Theory Quiz',url:"http://www.mikeholt.com/MQ4/"},
			{code:'Low Voltage Quiz',url:"http://www.mikeholt.com/MQ6/"}
		]
	},
*/
	{code:'Seminars',url:"http://www.mikeholt.com/seminar.php?id=seminarabout"},
	//{code:'SnapZ Pro',url:"http://www.mikeholt.com/SnapzPro.php"},
	{code:'Technical',url:"http://www.mikeholt.com/technical.php?id=technicalgeneral"},
	//{code:'Technical Q&A',url:"http://www.mikeholt.com/technical.php?id=questions/technicalquestionsandanswers"},
	{code:'Thoughts',url:"thoughts.php?id=thoughtsnewslettersmenu"},
/*
	{code:'Thoughts',url:"http://www.mikeholt.com/thoughts.php?id=thoughtsgeneral",
		sub:[
			{"size":[25,175],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'Articles',url:"http://www.mikeholt.com/thoughts.php?id=thoughtsnewslettersmenu"},
			{code:'911 Tribute',url:"http://www.mikeholt.com/tribute/tribute.htm",target:"_blank"},
			{code:'Thoughts For the Day',url:"http://www.mikeholt.com/thoughts.php?id=thoughtsfortheday"},
			{code:'Quotes, Philosophy',url:"http://www.mikeholt.com/thoughts.php?id=thoughtsquotes"}
		]
	},
*/
	{code:'Video/Graphics',url:"http://www.mikeholt.com/videographicsintro.php"}
];
} else {
//keywords
var code="code";var url="url";var targ="target";var sub="sub";
//styles
var VSTYLE = {"border":1, "shadow":0, "color":{"border":"#000000", "shadow":"#43486F", "bgON":"#43486F","bgOVER":"#43486F"}, "css":{"ON":"clsCMVOn", "OVER":"clsCMVOver"}}; //"css":{"ON":"clsCMVOn", "OVER":"clsCMVOver"}};
var VSTYLE2 = {"border":1, "shadow":1, "color":{"border":"#000000", "shadow":"#43486F", "bgON":"#43486F","bgOVER":"#43486F"}, "css":{"ON":"clsCMVOn", "OVER":"clsCMVOver"}};
//items and formats
var V_MENU_ITEMS =
[
	{"pos":[0,129], "size":[24,129], "itemoff":[23,0], "leveloff":[0,140], "delay":500, "style":VSTYLE},
	{code:"About",url:"about.php?id=aboutgeneral",
		sub:[
			{"size":[25,170],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'Mike Holt Enterprises',url:"about.php?id=aboutenterprise"},
			{code:'About Mike Holt',url:"about.php?id=aboutmike"},
			{code:'Comments/Feedback',url:"about.php?id=abouttestimonials"},
			{code:'Disclaimer',url:"disclaimer.php"},
			{code:'Copyright',url:"copyright.php"},
			{code:'Link to this Site',url:"links.php?id=linksaddalink"},
			{code:'Message from Mike',url:"about.php?id=aboutmessage"},
			{code:'Privacy Policy',url:"about.php?id=aboutprivacy"},
			{code:'Publicity Photo',url:"about.php?id=aboutphoto"},
			{code:'Video Team',url:"videoteamall.php"}
			]
	},
	{code:"Affiliate Program",url:"affiliatepromo.php"},
	{code:"<b>Best Values <font color=\"yellow\"> * </font></b>",url:"specialoffersmenu.php"},
	{code:'Books',
		sub:[
			{"size":[25,140],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
//			{code:'Book List',url:"books.php?id=bookmenu"},
			//{code:'2002 Books & Video & DVD',url:"products.php?year=2002"},
			{code:'2011 Books & DVDs',url:"http://www.mikeholt.com/products.php?year=2011"},
			{code:'2008 Books & DVDs',url:"http://www.mikeholt.com/products.php?year=2008"},
			{code:'2005 Books & DVDs',url:"http://www.mikeholt.com/products.php?year=2005"},
			{code:'Corrections',url:"http://www.mikeholt.com/catalog.php?id=catalogbookcorrections"}
		]
	},
//	{code:"Chat",url:"http://www.mikeholt.com/register/chat_login.htm",target:"_blank"},
	{code:"Clearance",url:"clearance.php"},
	{code:"Code Forum",url:"http://forums.mikeholt.com"},
	//{code:"Code Forum",url:"http://www.mikeholt.com/CodeForumDown.php"},
	//{code:"Code Quiz",url:"free-exams-menu.php"},
/*
	{code:'Code Quiz',
		sub:[
			{"size":[25,220],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'Code Quiz',url:"codeQuizzes.php"},
			{code:'Grounding vs Bonding',url:"MHGVB/"},
			{code:'Journeyman Simulated Exams',url:"examprep.php?id=exampreponlinejourneyman"},
			{code:'Master/Contractor Simulated Exams',url:"examprep.php?id=exampreponlinemaster"},
			{code:'Theory Quiz',url:"MQ4/"},
			{code:'Low Voltage Quiz',url:"MQ6/"}
		]
	},
*/
	{code:'Continuing Ed',url:"continuingEducation.php",

		sub:[
			{"size":[25,120], "itemoff":[24,0], "leveloff":[0,115], "style":VSTYLE},
			{code:'Approved Courses',url:"http://www.mikeholt.com/continuingEducation.php",
				sub:[
				{"size":[25,140],"itemoff":[24,0],"leveloff":[0,120],"style":VSTYLE2},
				{code:'&nbsp; Electrical Contractors',url:"http://www.mikeholt.com/stateceu.php"},
				{code:'&nbsp; Engineers',url:"http://www.mikeholt.com/stateengineerlicense.php"}
				]
			},
			{code:'Seminars',url:"http://www.mikeholt.com/seminar.php?id=seminarabout"},
			{code:'Course Login',url:"http://www.mikeholt.com/classroom.php"},
			{code:'Testimonials',url:"http://www.mikeholt.com/about.php?id=abouttestimonials&types=2"},
			{code:'FAQs',url:"http://www.mikeholt.com/continuingEducationFAQ.php"}
		]

	},
/*
	{code:'Continue Education',url:"conedu.php?id=conedugeneral",
		sub:[
			{"size":[25,150],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'2002 Courses',url:"productcategorylist.php?id=12&from=Products&title=Continuing%20Education&year=2002"},
			{code:'2005 Courses',url:"productcategorylist.php?id=12&title=Continuing+Education&year=2005&from=Products&product_type=&searchtext"},
			{code:'Online CEU Courses',url:"examprep.php?id=examprepceupromo"},
			{code:'State CEU Requirements',
				sub:[
				{"size":[25,225],"itemoff":[24,0],"leveloff":[0,145],"style":VSTYLE2},
				{code:'Electrician / Contractor Requirements',url:"statelicense.php"},
				{code:'Engineer Requirements',url:"stateengineerlicense.php"}
				]
			}
		]
	},
*/
	//{code:'Espa&ntilde;ol',url:"http://www.cyamsa.com.mx/",target:"_blank"},
	{code:'Estimating Software',url:"EstimatingSoftware.php"},
	{code:'Exam Prep',url:"examprep.php?id=examprepgeneral"},
//	{code:'Exam Prep',
//		sub:[
//			{"size":[25,220],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
//			{code:'Detailed Information',url:"examprep.php?id=examprepgeneral"},
//			{code:'Free Exam Prep Quiz',url:"productcategorylist.php?id=20&from=Products&title=Exam%20Preparation&year=2005"}
//		]
//	},
	{code:"Find an Expert",url:"e-rolodex-intro.php"},
	{code:"Find a School",url:"http://www.mikeholt.com/findaschool_search.php"},
	{code:"Florida Exams",url:"florida.php?id=floridamenu"},
	{code:"Free Stuff",url:"freestuff.php?id=freegeneral"},
	//{code:'In-House Training',url:"inhousetraining.php"},
	{code:"INSTRUCTORS",url:"instructors.php"},
	{code:'ISBN',url:"isbn.php"},
	{code:'Links',url:"links.php?id=linksgeneral"},
	//{code:"Magazines",url:"links.php?id=linksmagazines"},
	//{code:"Miscellaneous",url:"misc.php?id=miscnewslettersmenu"},
	//{code:'Miscellaneous',
		//sub:[
		//	{"size":[25,150],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			//{code:'Articles',url:"misc.php?id=miscnewslettersmenu"}
		//]
	//},
	{code:"NEC<sup>&reg;</sup>",url:"technical.php?id=nec/technicalnecmenu"},
	{code:'Newsletters / Blog',url:"newslettersCategories.php",
		sub:[
			{"size":[25,150],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'Subscribe!',url:"newslettersRegister.php"},
			{code:'Change Email Address',url:"newslettersRegister.php?action=modify"},
			{code:'Change Subscriptions',url:"newslettersRegister.php?action=modify"},
			{code:'Search Newsletters',url:"http://www.mikeholt.com/nlsearch.php"},
			{code:'View Archives',url:"newslettersCategories.php"},
			//{code:'Search Archives',url:"searcharchives.php"},
			{code:'Having Trouble?',url:"newsletter.php?id=unformatted/newslettertroubleshooting&type=u&title=Newsletter%20Troubleshooting"},
			{code:'UNsubscribe',url:"newslettersRegister.php?action=modify"}
		]
	},
	{code:'Online Training',url:"onlinetraining.php",
		sub:[
			{"size":[25,150],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'Login',url:"classroom.php"},
			{code:'Inspector',url:"examprep.php?id=exampreponlinemaster"},
			{code:'Journeyman',url:"examprep.php?id=exampreponlinejourneyman"},
			{code:'Master',url:"examprep.php?id=exampreponlinemaster"}
		]
	},
	//{code:"Question Forum",url:"codeForum/"},
	{code:'Quizzes',url:"free-exams-menu.php"},
	{code:"Safety",url:"http://www.mikeholt.com/technical.php?id=safety/safetylinks"},
/*
	{code:'Quizzes',
		sub:[
			{"size":[25,220],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'Code Quiz',url:"codeQuizzes.php"},
			{code:'Free Exam Prep Quiz',url:"productcategorylist.php?id=20&from=Products&title=Exam%20Preparation&year=2005"},
			{code:'Grounding vs Bonding',url:"MHGVB/"},
			{code:'Journeyman Simulated Exams',url:"examprep.php?id=exampreponlinejourneyman"},
			{code:'Master/Contractor Simulated Exams',url:"examprep.php?id=exampreponlinemaster"},
			{code:'Theory Quiz',url:"MQ4/"},
			{code:'Low Voltage Quiz',url:"MQ6/"}
		]
	},
*/
	{code:'Seminars',url:"seminar.php?id=seminarabout"},
	//{code:'SnapZ Pro',url:"SnapzPro.php"},
	{code:'Technical',url:"technical.php?id=technicalgeneral"},
	//{code:'Technical Q&A',url:"technical.php?id=questions/technicalquestionsandanswers"},

	{code:'Thoughts',url:"thoughts.php?id=thoughtsnewslettersmenu"},
/*
	{code:'Thoughts',url:"thoughts.php?id=thoughtsgeneral",
		sub:[
			{"size":[25,175],"itemoff":[24,0],"leveloff":[0,115],"style":VSTYLE2},
			{code:'Articles',url:"thoughts.php?id=thoughtsnewslettersmenu"},
			{code:'911 Tribute',url:"http://www.mikeholt.com/tribute/tribute.htm"},
			{code:'Thoughts For the Day',url:"thoughts.php?id=thoughtsfortheday"},
			{code:'Quotes, Philosophy',url:"thoughts.php?id=thoughtsquotes"}
		]
	},
*/
	{code:'Video/Graphics',url:"videographicsintro.php"}
];
}
