// THIS FILE  will  be DYNAMICALLY CREATED in the future
//Credits: We wish to  thank 
//<a HREF="http://www.twinhelix.com">Angus Turnbull</a>
//for his javaScripts that help drive the popup menus used here.

hbarOff = new Image();
hbarOff = '/webfiles/images/V_btn_off.png';
hbarOn = new Image();
hbarOn = '/webfiles/images/V_btn_on.png';
subMOff = new Image();
subMOff = '/webfiles/images/btn_subToolbar_off.png';
subMOn = new Image();
subMOn = '/webfiles/images/btn_subToolbar_on.png';
var hBar = new ItemStyle(24, 0, '', 0, 0,
		'/webfiles/images/V_btn_off.png',
		'/webfiles/images/V_btn_on.png',
		'toolbarOff', 'toolbarOn', '', '', null, null, 'hand', 'default');
var subM = new ItemStyle(24, 0, '', 0, 0,
		'/webfiles/images/btn_subToolbar_off.png',
		'/webfiles/images/btn_subToolbar_on.png',
		'subToolbarOff', 'subToolbarOn',
		'itemBorder', 'itemBorder', null, null, 'hand', 'default');
var pMenu = new PopupMenu('pMenu');
var  VERTICAL=true;
var  HORIZONTAL=false;
with (pMenu) {
if (isIE&&!window.opera)
	{
	startMenu('root', true,
		// next line allow dynamic resize of the menu position
		(page.winW()/2 < 385) ?  8  : (page.winW()/2 - 340),
		 140, 175, hBar);
	} else {
	startMenu('root', VERTICAL,
		// allow dynamic resize of the menu position
	 	(page.winW()/2 < 385) ?  8  :  page.winW()/2 - 350,
	 //'if ((page.winW()/2) < 385) { 8; } else { page.winW()/2 - 350;}',
	 120, 175, hBar); }
	 //'if ((page.winW()/2) < 385) { 5; } else { page.winW()/2 - 394;}',
		 //8, 100, 175, hBar); }
addItem('Ten Queue Systems&nbsp;', 'http:/index.html', '');
addItem('Who we are&nbsp;', 'http:/webfiles/aboutUs.html', '');
addItem('What we do&nbsp;', 'http:/webfiles/mission.html', '');
addItem('Professional Services&nbsp;', 'm100', 'sm:', hBar, 24, 0, '', 168);
addItem('Products We Offer&nbsp;', 'm110', 'sm:', hBar, 24, 0, '', 168);
addItem('Free Services&nbsp;', 'm120', 'sm:', hBar, 24, 0, '', 168);
addItem('Contact Us&nbsp;', 'm130', 'sm:', hBar, 24, 0, '', 168);
addItem('Employment&nbsp;', 'm140', 'sm:', hBar, 24, 0, '', 168);
startMenu('m140', true, 172, 0, 155, subM);
addItem('Engineers&nbsp', 'http:/webfiles/employment/employmentEngineers.html', '');
addItem('Sales & Marketing&nbsp', 'http:/webfiles/employment/employmentSales.html', '');
startMenu('m130', true, 172, 0, 155, subM);
addItem('by Email', 'http:/webfiles/ContactUs/sendMail.html', '');
addItem('Investors', 'http:/webfiles/InvestsorRelations.html', '');
addItem('Driving Directions', 'http:/webfiles/directions.html', '');
startMenu('m100', true, 172, 0, 155, subM);
addItem('Custom Software', 'http:/webfiles/ServicesPremierProfessionalServices.html', '');
addItem('Linux', 'http:/webfiles/ServicesLinux.html', '');
startMenu('m110', true, 172, 0, 155, subM);
addItem('Checkout', 'http:/webfiles/ProductsCheckOut.html', '');
addItem('IPS', 'http:/webfiles/ProductsIPS.html', '');
addItem('Tithe', 'http:/webfiles/ProductsTithe.html', '');
addItem('EzScale', 'http:/webfiles/ProductsEzScale.html', '');
startMenu('m120', true, 172, 0, 155, subM);
addItem('time card', 'http:/webfiles/freeservices/calculateTimecard.html', '');
}
pMenu.onclick = function() { with (this) {
 if (overM == 'root' && overI == 3) location.href = 'http:/webfiles/aboutUs.html';
 if (overM == 'm130' && overI == 20) location.href = 'http:/webfiles/contactUs.html';
}}


