if (typeof part == 'undefined') {
	part = 'http://' + document.domain + '/';
}

if (sta == 1) {
	var lc_arr = new Array(
		143,
		'',
		new Array(srv + '/launchcast/stations/default.asp', 'radio station guide','-1'),
		new Array(srv + '/launchcast/play/default.asp', 'play my station','-1'),
		new Array(srv + '/launchcast/station.asp?edit=1', 'edit my station','-1'),
		new Array('http://uk.rd.yahoo.com/evt=41582/*http://uk.messenger.yahoo.com/launch.php', 'Listen in Messenger','-1'),
		new Array('http://help.yahoo.com/l/uk/yahoo/music/launchcast/', 'LAUNCHcast help','-1')
	);
} else {
	var lc_arr = new Array(
		143,
		'',
		new Array(srv + '/launchcast/stations/default.asp', 'radio station guide','-1'),
		new Array(srv + '/launchcast/setup.asp', 'customise my station','-1'),
		new Array('http://uk.rd.yahoo.com/evt=41582/*http://uk.messenger.yahoo.com/launch.php', 'Listen in Messenger','-1'),
		new Array('http://help.yahoo.com/l/uk/yahoo/music/launchcast/', 'LAUNCHcast help','-1')
	);
}

if (guest == 1) {
	var mv_arr = new Array(
		122,
		'',
		new Array(srv + '/musicvideos/lists/top.asp', 'top 100','-1'),
		new Array(srv + '/musicvideos/lists/new.asp', 'new videos','-1'),
		new Array(part + '/premieres/', 'Video Premieres','-1'),
		new Array(srv + '/musicvideos/', 'videos by genre','-1'),
		new Array(part + 'digordis/', 'dig it -or- dis it','-1'),
		new Array('http://help.yahoo.com/l/uk/yahoo/music/videos/index.html', 'music videos help','-1')
	);
} else {
	var mv_arr = new Array(
		122,
		'',
		new Array(srv + '/video/?sx=p/m.xml', 'play my station','-1'),
		new Array(srv + '/musicvideos/myvideos.asp', 'my videos','-1'),
		new Array(srv + '/musicvideos/lists/top.asp', 'top 100','-1'),
		new Array(part + '/premieres/', 'Video Premieres','-1'),
		new Array(srv + '/musicvideos/lists/new.asp', 'new videos','-1'),
		new Array(srv + '/musicvideos/', 'videos by genre','-1'),
		new Array(part + 'digordis/', 'dig it -or- dis it','-1'),
		new Array('http://help.yahoo.com/l/uk/yahoo/music/videos/index.html', 'music videos help','-1')
	);
}


var menu_arr = new Array (
	new Array(
		'but_LAUNCHcastRadio-up.gif',
		'but_LAUNCHcastRadio-over.gif',
		'lcMenu',
		lc_arr,
		-1,
		''
	),
	new Array(
		'but_videos-up.gif',
		'but_videos-over.gif',
		'mvMenu',
		mv_arr,
		-1,
		''
	),
	new Array(
		'but_artists-up.gif',
		'but_artists-over.gif',
		'artistMenu',
		new Array(
			145,
			'',
			new Array(part + 'aom', 'artist of the month','-1'),
			new Array(part + 'a/', 'artist spotlights','-1'),
			new Array(part + 'walkman-video/index.html', 'walkman video tour','-1'),
			new Array(part + 'emerging/', 'emerging artist','-1')
		),
		-1,
		''
	),
	new Array(
		'but_news-up.gif',
		'but_news-over.gif',
		'newsMenu',
		new Array(
			112,
			'',
			new Array(part + 'n/', 'latest news', '-1'),
			new Array(part + '50/index.html', 'album reviews', '-1'),
			new Array(part + '51/index.html', 'singles reviews', '-1'),
			new Array(part + '59/index.html', 'live reviews', '-1'),
			new Array('http://uk.launch.yahoo.com/newsletter/', 'Newsletter', '-1')

		),
		-1,
		''
	),
	new Array(
		'but_charts-up.gif',
		'but_charts-over.gif',
		'chartsMenu',
		new Array(
			120,
			'',
			new Array(part + 'c/uk/single_charts.html','uk singles','-1'),
			new Array(part + 'c/uk/album_charts.html','uk albums','-1'),
			new Array(part + 'c/uk/download_charts.html','uk downloads','-1'),
			new Array(part + 'charts/comment.html','chart commentary','-1')
		),
		-1,
		''
	)
);

/*
,
	new Array(
		'but_shop-up.gif',
		'but_shop-over.gif',
		'shopMenu',
		new Array(
			72,
			'',
			new Array('http://shopping.yahoo.co.uk/category.jsp?catId=150401','cds','-1')
		),
		-1,
		''
	)
*/	
/*
			new Array('http://uk.mobile.yahoo.com/ringtones/', 'ringtones', '-1'),
			new Array('http://uk.mobile.yahoo.com/pictures/wallpapers/category.html?cat=916', 'wallpapers', '-1'),
*/

function ln(url) {
	if (url != '') {
		if (url.indexOf('mf.launch') == -1 && url.indexOf('help.yahoo') == -1 && url.indexOf('launch.yahoo') == -1 && url.indexOf('music.yahoo') == -1) {
			window.open(url);
		} else {
			document.location = url;
		}
	}
}
