
var states = ['mout', 'mover', 'mdown'];
var bgcolors = ['#4682B4', '#6699cc', '#99ccff'];

/*
  --- menu items --- 
  note that this structure has changed its format since previous version.
  additional third parameter is added for item scope settings.
  Now this structure is compatible with Tigra Menu GOLD.
  Format description can be found in product documentation.
*/
var MENU_ITEMS_COMMERCIAL = [
	['COMMERCIAL SERVICES', 'commercial.php', null,
		['Dry Cleaning/Laundry Service', 'commercial_drycleaning.php'],
//		['Office Cleaning', 'commercial_officecleaning.php'],
		['Carpet Cleaning', 'commercial_carpetcleaning.php'],
		['Group Car Detailing', 'commercial_cardetailing.php'],
		['Power Washing', 'commercial_powerwashing.php'],
//		['Corporate Limo Service', 'commercial_limoservice.php'],
		['Miscellaneous Services', 'commercial_misc.php'],
	],
];

var MENU_ITEMS_RESIDENTIAL = [
	['RESIDENTIAL SERVICES', 'residential.php', null,
		['Dry Cleaning/Laundry Service', 'residential_drycleaning.php'],
		['Home Cleaning', 'residential_homecleaning.php'],
		['Carpet Cleaning', 'residential_carpetcleaning.php'],
		['Group Car Detailing', 'residential_cardetailing.php'],
		['Power Washing', 'residential_powerwashing.php'],
//		['Limo Service', 'residential_limoservice.php'],
		['Miscellaneous Services', 'residential_misc.php'],
	],
];

function wrap_parent (text, pos, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="1" cellspacing="0" border="0" bgcolor="#DBEAF5" width="100%"><tr><td><table cellpadding="2" cellspacing="0" border="0" width="100%" height="24" bgcolor="' + bgcolors[i] + '"><tr><td valign="middle" width="100%">&nbsp;' + (icon != null ? '<img src="img/'  + icon + '" height="16">&nbsp;' : '') + '<font face="tahoma, verdana, arial" color="black"><span style="font-size: 13px;">' + text + '</span></font></td><td valign="middle"><img src="img/' + states[i] + '_' + pos + 'arrow.gif" width="12" height="12"></td></tr></table></td></tr></table>';
	return res;
}
function wrap_child (text, icon) {
	var res = new Array;
	for (var i=0; i<states.length; i++)
		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" bgcolor="#DBEAF5" width="100%"><tr><td><table cellpadding="3" cellspacing="1" border="0" width="100%" height="24"><tr><td bgcolor="' + bgcolors[i] + '" style="padding: 3px;" valign="middle">&nbsp;' + (icon != null ? '<img src="img/'  + icon + '" height="16" align="absmiddle">&nbsp;' : '') + '<font face="tahoma, verdana, arial" color="black"><span style="font-size: 12px;">' + text + '</span></font></td></tr></table></td></tr></table>';
	return res;
}