var addEvent = function(obj, type, fn) {
	if (obj.addEventListener)
		obj.addEventListener(type, fn, false);
	else if (obj.attachEvent)
		obj.attachEvent('on' + type, function() {
			return fn.apply(obj, new Array(window.event));
		});
}

function initMenu(flOx, flOy, slOx, slOy, menuLayout)
{
	if(typeof menuLayout == 'undefined')
	{
		menuLayout = 'vertical'
	}

	Menu = new AsylumNav('navMenu');
	Menu.menuLayout = menuLayout;
	Menu.firstLevelOffsetX = flOx;
	Menu.firstLevelOffsetY = flOy;
	Menu.subLevelOffsetX = slOx;
	Menu.subLevelOffsetY = slOy;

	Menu.AddLink('0', '3463', 'http://www.priscillakay.co.nz/', 'Welcome to Priscilla Kay\'s Helpline!', '_top');
	Menu.AddLink('0', '3464', 'http://www.priscillakay.co.nz/about-priscilla.html', 'About Priscilla', '_top');
	Menu.AddLink('0', '3465', 'http://www.priscillakay.co.nz/future.html', 'Future analysis and counselling', '_top');
	Menu.AddLink('3465', '31167', 'http://www.priscillakay.co.nz/credit-card-reading.html', 'Credit Card Reading via Phone', '_top');
	Menu.AddLink('0', '3506', 'http://www.priscillakay.co.nz/ordering.html', 'Ordering and payment instructions', '_top');
	Menu.AddLink('0', '3508', 'http://www.priscillakay.co.nz/questions.html', 'Questions you might ask', '_top');
	Menu.AddLink('3508', '4025', 'http://www.priscillakay.co.nz/information.html', 'Understanding the analysis methods', '_top');
	Menu.AddLink('0', '3962', 'http://www.priscillakay.co.nz/results.html', 'Results', '_top');
	Menu.AddLink('0', '3963', 'http://www.priscillakay.co.nz/contact.html', 'Contact Priscilla', '_top');
	Menu.AddLink('0', '7118', 'http://www.priscillakay.co.nz/links-from-priscilla.html', 'Links', '_top');
	Menu.Construct();
}
