topNav=new AtJsMenuBar('topbar', '');
var domainName = location.href.substring(7, location.href.length);
var slashPos = domainName.indexOf('/', 0);
if (slashPos!=-1)
{ // We have a slash and need to get rid of it.
	domainName=domainName.substring(0,slashPos);
}

/*
if (domainName == '')
{
}
*/
if (domainName == 'linserver')
{
	site=new AtJsMenu('Linserver');
	topNav.add(site);
		siteTest=new AtJsMenuItem('A test entry');
		siteTest.onclick= function (e) {location.href = "http://biz-enz.com/ubd";};
		site.add(siteTest);
}
if (domainName == 'escort-enz.com' || domainName == 'www.escort-enz.com')
{
	site=new AtJsMenu('Escort-enz');
	topNav.add(site);
		siteLogin=new AtJsMenuItem('Home');
		siteLogin.onclick= function (e) {location.href = "http://escort-enz.com/index.shtml";};
		site.add(siteLogin);
		
		siteLogin=new AtJsMenuItem('Login');
		siteLogin.onclick= function (e) {location.href = "http://escort-enz.com/escorts?sel=admin";};
		site.add(siteLogin);
		
		siteSignup=new AtJsMenuItem('Signup');
		siteSignup.onclick= function (e) {location.href = "http://www.escort-enz.com/escorts/signup.shtml";};
		site.add(siteSignup);
		
		siteBrowse=new AtJsMenuItem('Browse Escorts');
		siteBrowse.onclick= function (e) {location.href = "http://escort-enz.com/escorts";};
		site.add(siteBrowse);
		
		siteNotices=new AtJsMenuItem('Site notices');
		siteNotices.onclick= function (e) {location.href = "http://escort-enz.com/site_notices.shtml";};
		site.add(siteNotices);
		
		siteDVD=new AtJsMenuItem('DVD');
		siteDVD.onclick= function (e) {location.href = "http://escort-enz.com/dvd";};
		site.add(siteDVD);
		
		siteEros=new AtJsMenuItem('Erotic stories');
		siteEros.onclick= function (e) {location.href = "http://escort-enz.com/eros";};
		site.add(siteEros);
		
		siteChat=new AtJsMenuItem('Erotic chat');
		siteChat.onclick= function (e) {location.href = "http://escort-enz.com/chat";};
		site.add(siteChat);
		
		siteChat=new AtJsMenuItem('Terms and conditions');
		siteChat.onclick= function (e) {location.href = "http://escort-enz.com/terms.shtml";};
		site.add(siteChat);

		siteChat=new AtJsMenuItem('Links');
		siteChat.onclick= function (e) {location.href = "http://escort-enz.com/links/";};
		site.add(siteChat);
}


business=new AtJsMenu('Business');
topNav.add(business);
	businessWebEnz=new AtJsMenuItem('Web-enz');
	businessWebEnz.onclick= function (e) {location.href = "http://web-enz.com/direct";};
	business.add(businessWebEnz);
	
	businessModelEnz=new AtJsMenuItem('Models');
	businessModelEnz.onclick= function (e) {location.href = "http://model-enz.com/models";};
	business.add(businessModelEnz);

	businessEscortEnz=new AtJsMenuItem('Escorts');
	businessEscortEnz.onclick= function (e) {location.href = "http://escort-enz.com/escorts";};
	business.add(businessEscortEnz);

health=new AtJsMenu('Health');
topNav.add(health);
	nzhSubMenu=true;
	if (nzhSubMenu==true)
	{
		healthNZHealth=new AtJsMenu('Health-enz');
		nzhealth=healthNZHealth;
	}
	else
	{
		nzhealth=health;
		healthNZHealth=new AtJsMenuItem('Health-enz');
		healthNZHealth.onclick= function (e) {location.href = "http://www.health-enz.com";};
	}
	health.add(healthNZHealth);
	
	healthAyurveda=new AtJsMenuItem('Ayurveda');
	healthAyurveda.onclick= function (e) {location.href = "http://www.health-enz.com/ayurveda/";};
	nzhealth.add(healthAyurveda);
	
	healthMen=new AtJsMenuItem('Men');
	healthMen.onclick= function (e) {location.href = "http://www.health-enz.com/men/index.shtml";};
	nzhealth.add(healthMen);
	
	healthWomen=new AtJsMenuItem('Women');
	healthWomen.onclick= function (e) {location.href = "http://www.health-enz.com/women/index.shtml";};
	nzhealth.add(healthWomen);
	
	healthProductReviews=new AtJsMenuItem('Product Reviews');
	healthProductReviews.onclick= function (e) {location.href = "http://www.health-enz.com/products/index.shtml";};
	nzhealth.add(healthProductReviews);
	
	healthLibido=new AtJsMenuItem('Libido/Sexuality');
	healthLibido.onclick= function (e) {location.href = "http://libido.co.nz/";};
	health.add(healthLibido);
	
	healthMassage=new AtJsMenuItem('Massage');
	healthMassage.onclick= function (e) {location.href = "http://www.health-enz.com/massage/";};
	health.add(healthMassage);
	

travel=new AtJsMenu('Travel');
topNav.add(travel);
	travelCountries=new AtJsMenuItem('Countries');
	travelCountries.onclick= function (e) {location.href = "http://www.travel-enz.com/destinations/index.shtml";};
	travel.add(travelCountries);

	travelAfrica=new AtJsMenuItem('Africa');
	travelAfrica.onclick= function (e) {location.href = "http://www.travel-enz.com/destinations/index.shtml";};
	travel.add(travelAfrica);
	
	travelAmericas=new AtJsMenuItem('Americas');
	travelAmericas.onclick= function (e) {location.href = "http://www.travel-enz.com/destinations/index.shtml";};
	travel.add(travelAmericas);
	
	travelAsia=new AtJsMenuItem('Asia');
	travelAsia.onclick= function (e) {location.href = "http://www.travel-enz.com/destinations/index.shtml";};
	travel.add(travelAsia);
	
	travelEurope=new AtJsMenuItem('Europe');
	travelEurope.onclick= function (e) {location.href = "http://www.travel-enz.com/destinations/index.shtml";};
	travel.add(travelEurope);
	
	travelOceania=new AtJsMenuItem('Oceania');
	travelOceania.onclick= function (e) {location.href = "http://www.travel-enz.com/destinations/index.shtml";};
	travel.add(travelOceania);
	
	travelRussia=new AtJsMenuItem('Russia');
	travelRussia.onclick= function (e) {location.href = "http://www.travel-enz.com/destinations/russia/index.shtml";};
	travel.add(travelRussia);

	
	/*travelRegions=new AtJsMenuItem('Regions');
	travelRegions.onclick= function (e) {location.href = "http://www.travel-enz.com/destinations/index.shtml";};
	travel.add(travelRegions);*/

other=new AtJsMenu('Other');
topNav.add(other);
	otherPleasure=new AtJsMenuItem('Pleasure');
	otherPleasure.onclick= function (e) {location.href = "http://pleasure.co.nz/";};
	other.add(otherPleasure);
	
	otherJokerz=new AtJsMenuItem('Jokers');
	otherJokerz.onclick= function (e) {location.href = "http://jokerz.biz/";};
	other.add(otherJokerz);
	
	otherSingletown=new AtJsMenuItem('Singletown');
	otherSingletown.onclick= function (e) {location.href = "http://singletown.co.nz/";};
	other.add(otherSingletown);

