$(document).ready(function(){
	cls = "down active";
	loc = new Array("/discoverbellevue/","/conventions/","/hotels/","/whereisbellevue/","/gettinghere/","/about/");
	
	for ( var i=0, len=loc.length; i<len; ++i )
	{
		if(location.href.indexOf(loc[i]) > -1)
		{
			//URL matches pattern, loop through each overview link and apply neccessary class
			jQuery('a[href*="'+loc[i]+'overview"]').each(function(index)
					{
						if(jQuery(this).parent().attr('class').indexOf('top') >= 0)
						{
							//If this link belongs to the menu apply neccessary classes
							jQuery(this).parent().addClass(cls);//('down active');
						}else if((location.href.indexOf('overview') >= 0) && (jQuery(this).parent().parent().attr('class').indexOf('menulft') >= 0))
						{
							//If this is an overview page then highlight the overview sub-menu link.  Otherwise we will apply
								//the sub-menu class outside of this loop 
							jQuery(this).parent().addClass(cls);//('down active');
						}
					});
			//if sublink:
			if(	location.href.indexOf('overview') < 0	)
			{
				jQuery('a[href*="'+ location.href.substr( location.href.indexOf(loc[i]) ) +'"]').parent().addClass(cls);//('down active');
			}
		}
	}
});

	


