
var states = ['mout', 'mover', 'mdown'];
var bgcolors = ['#4682B4', '#6699cc', '#99ccff'];

function openweedman()
{
  window.open("http://www.weedmanusa.com/franchisehomepage2.aspx?FID=87&LN=Chatham%2fSouthern+Wake+Counties%2c+NC&State=NC","_blank");
}

/*
  --- 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_RESIDENTIAL = [
	['residential', 'residential.php', null,
		['landscape&nbsp;design/build', 'residential_construction.php', null],
		['landscape&nbsp;management', 'residential_landscape.php',{'tt':'1234567'}],
		['irrigation', 'residential_irrigation.php', null],
		['lighting', 'residential_lighting.php', null],
//		['holiday&nbsp;décor', 'residential_holiday.php', null],
		['<span style="color: yellow;">weed&nbsp;man&nbsp;lawn&nbsp;care</span>', 'javascript:openweedman();', {'tw':'_blank'}],
    ['testimonials', 'residential_testimonials.php'],
	['local water guidelines', 'local_water_guidelines.php']
//    ['latest newsletter', 'newsletter/0807newsletter.html', null]
	],
];

var MENU_ITEMS_COMMERCIAL = [
	['commercial', 'commercial.php', null,
		['landscape&nbsp;management', 'commercial_landscape.php'],
		['landscape&nbsp;construction', 'commercial_construction.php'],
		['irrigation', 'commercial_irrigation.php'],
		['lighting', 'commercial_lighting.php'],
//		['holiday&nbsp;décor', 'commercial_holiday.php']
    ['testimonials', 'commercial_testimonials.php']
//    ['latest newsletter', 'newsletter/0807newsletter.html', null]
	],
];

var MENU_ITEMS_ABOUT = [
	['about us', '#', null,
		['our&nbsp;history', 'about.php'],
		['designer\'s&nbsp;bios', 'about_bios.php'],
		['links', 'about_links.php'],
		['credentials', 'about_credentials.php'],
	],
];

var MENU_ITEMS_CAREERS = [
	['careers', '#', null,
		['opportunities', 'employment.php'],
		['benefits', 'benefits.php'],
	],
];

var MENU_ITEMS_PROJECTS = [
	['projects', '#', null,
		['the governor\'s mansion', 'projects.php'],
		['cotton incorporated', 'projects_cottoninc.php'],
//		['awards', 'awards.php'],
	],
];

var MENU_ITEMS_NEWS = [
	['news', '#', null,
		['recent news', 'news.php'],
		['news archive', 'news_archive.php'],
  	['local water guidelines', 'local_water_guidelines.php'],
    ['latest newsletter', 'newsletter/TheGreenPerspective.pdf', {'tw':'_blank'}]
	],
];

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;
}