// menu_items.js file
// comments block here

address=window.location.href;
addressarray=address.split(':');
address=addressarray[0];

function centre (text) { 
 return '<div style="width: 100%; text-align: left; cursor: hand"><img border=0 src='+address+'://www.musicsocket.com/images/arrow.gif width=14 height=11>' + text + '</div>'; 
} 

function header (text) { 
 return '<div style="padding: 1px; cursor: arrow; height: 20; color: #CC0000; text-align: center; background-image: url('+address+'://www.musicsocket.com/images/yellowbar25.gif)">' + text + '</div>'; 
} 

function getCookie(name){
  var cname = name + "=";               
  var dc = document.cookie;             
  if (dc.length > 0) {              
    begin = dc.indexOf(cname);       
    if (begin != -1) {           
      begin += cname.length;       
      end = dc.indexOf(";", begin);
      if (end == -1) end = dc.length;
        return unescape(dc.substring(begin, end));
    } 
  }
  return null;
}

if ((getCookie('subscriber'))=='yes'){

checklocation=window.location.href;
checklocationarray=checklocation.split('/');
addresschange="no";

  if (checklocationarray[3]=="recordlabels"){
     checklocationarray[3]="subscriber/recordlabels";
     addresschange="yes";}

  if (checklocationarray[3]=="managers"){
     checklocationarray[3]="subscriber/managers";
     addresschange="yes";}

  if (checklocationarray[3]=="subscriber" && address=="http"){
     checklocationarray[0]="https:";
     addresschange="yes";}

  if (addresschange=="yes"){
    newaddress=checklocationarray.join('/');
    window.location.href=newaddress;
  }

}


if((getCookie('subscriber'))=='yes' || (getCookie('loggedin'))=='yes'){var MENU_ITEMS = [ 
	[[ centre('Home')], "http://www.musicsocket.com",
		[[ header('<b>Home</b>')], "http://www.musicsocket.com"],
		["&nbsp;Main Home Page", "http://www.musicsocket.com"],
		["&nbsp;Subscribers' Home Page", "https://www.musicsocket.com/subscriber"]
	],
	[[ centre('Your Account')], "https://www.musicsocket.com/subscriber",
		[[ header('<b>Your Account</b>')], "https://www.musicsocket.com/subscriber"],
		["&nbsp;Access your account", "https://www.musicsocket.com/subscriber"],
		["&nbsp;Your saved searches", "https://www.musicsocket.com/subscriber/savedsearches"],
		["&nbsp;Your reminders", "https://www.musicsocket.com/subscriber/interactions/reminders.cgi"],
		["&nbsp;Your notes", "https://www.musicsocket.com/subscriber/interactions/notes.cgi"],
		["&nbsp;Recently viewed listings", "https://www.musicsocket.com/subscriber/interactions/viewedlistings.cgi"],
		["&nbsp;Configure InstantAlerts", "https://www.musicsocket.com/subscriber/instantalerts"],
		["&nbsp;Retrieve data", "https://www.musicsocket.com/subscriber/retrievedata"],
		["&nbsp;Help logging in", "http://www.musicsocket.com/subscribe/help.shtml"],
		["&nbsp;Cancel your account", "http://www.musicsocket.com/cancel.shtml"],
		["&nbsp;Open new account", "https://www.musicsocket.com/subscribe"],
		["&nbsp;Request a refund", "http://www.musicsocket.com/refunds"]
	],
	[[ centre('Record Labels')], "https://www.musicsocket.com/subscriber/recordlabels",
		[[ header('<b>Record Labels</b>')], "https://www.musicsocket.com/subscriber/recordlabels"],
		["&nbsp;Search Record Labels Database", "https://www.musicsocket.com/subscriber/recordlabels"],
		["&nbsp;Advanced Search", "https://www.musicsocket.com/subscriber/recordlabels/advanced_search.shtml"],
		["&nbsp;Submit Label Listing", "http://www.musicsocket.com/suggest/recordlabels"]
	],
	[[ centre('Managers')], "https://www.musicsocket.com/subscriber/managers",
		[[ header('<b>Managers</b>')], "https://www.musicsocket.com/subscriber/managers"],
		["&nbsp;Search Managers Database", "https://www.musicsocket.com/subscriber/managers"],
		["&nbsp;Advanced Search", "https://www.musicsocket.com/subscriber/managers/advanced_search.shtml"],
		["&nbsp;Submit Manager Listing", "http://www.musicsocket.com/suggest/managers"]
	],
	[[ centre('Copyright Information')], "http://www.firstwriter.com/copyright",
		[[ header('<b>Copyright Information</b>')], "http://www.firstwriter.com/copyright"],
		["&nbsp;What is copyright?", "http://www.firstwriter.com/copyright"],
		["&nbsp;Copyright law and its history", "http://www.firstwriter.com/copyright/law_history.shtml"],
		["&nbsp;Protecting your copyright", "http://www.firstwriter.com/copyright/copyright_registration.shtml"],
		["&nbsp;Use of the copyright symbol", "http://www.firstwriter.com/copyright/symbol.shtml"],
		["&nbsp;Countries covered", "http://www.firstwriter.com/copyright/berne_convention.shtml"]
	],

	[[ centre('RSS Feeds')], "http://www.musicsocket.com/rss",
		[[ header('<b>RSS Feeds</b>')], "http://www.musicsocket.com/rss"],
		["&nbsp;What is an RSS feed?", "http://www.musicsocket.com/rss"],
		["&nbsp;Subscribing to RSS feeds", "http://www.musicsocket.com/rss/#subscribe"],
		["&nbsp;RSS feeds from MusicSocket", "http://www.musicsocket.com/rss/#whatRSS"],
		["&nbsp;InstantAlert RSS feed", "http://www.musicsocket.com/rss/#InstantAlertRSS"],
		["&nbsp;Database RSS feeds", "http://www.musicsocket.com/rss/#databaseRSS"],
		["&nbsp;Customise your RSS feeds", "http://www.musicsocket.com/rss/#customise"]
	],

	[[ centre('Free Newsletter')], "http://www.musicsocket.com/newsletter",
		[[ header('<b>Free Music Newsletter</b>')], "http://www.musicsocket.com/newsletter"],
		["&nbsp;Sign up to fmn for Free", "http://www.musicsocket.com/newsletter"],
		["&nbsp;Unsubscribe from fmn", "http://www.musicsocket.com/newsletter/#form"],
		["&nbsp;View fmn back issues", "http://www.musicsocket.com/newsletter/archive/"],
		["&nbsp;Contribute to fmn", "http://www.musicsocket.com/newsletter/press_room.shtml"],
		["&nbsp;Advertise in fmn", "http://www.musicsocket.com/advertising/fmnadvertising.shtml"]
	],

	[[ centre('Advertising')], "http://www.musicsocket.com/advertising",
		[[ header('<b>Advertising</b>')], "http://www.musicsocket.com/advertising"],
		["&nbsp;Advertising information", "http://www.musicsocket.com/advertising"],
		["&nbsp;Website advertising", "http://www.musicsocket.com/advertising"],
		["&nbsp;Newsletter advertising", "http://www.musicsocket.com/advertising/fmnadvertising.shtml"]
	],

	[[ centre('About Us')], "http://www.musicsocket.com/about_us",
		[[ header('<b>About Us</b>')], "http://www.musicsocket.com/about_us"],
		["&nbsp;About us", "http://www.musicsocket.com/about_us"],
		["&nbsp;Contact us", "http://www.musicsocket.com/contactus"]
	],

	[[ centre('Links')], "http://www.musicsocket.com/links",
		[[ header('<b>Links</b>')], "http://www.musicsocket.com/links"],
		["&nbsp;Search Links", "http://www.musicsocket.com/links"],
		["&nbsp;Browse Links", "http://www.musicsocket.com/links"],
		["&nbsp;Submit Website for Inclusion", "http://www.musicsocket.com/links/submit.cgi"]
	],

	[[ centre('Affiliate Program')], "http://www.musicsocket.com/affiliates",
	]
		
]}else{var MENU_ITEMS = [ 
	[[ centre('Home')], "http://www.musicsocket.com",
		[[ header('<b>Home</b>')], "http://www.musicsocket.com"],
		["&nbsp;Main Home Page", "http://www.musicsocket.com"],
		["&nbsp;Subscribers' Home Page", "https://www.musicsocket.com/subscriber"]
	],
	[[ centre('Record Labels')], "http://www.musicsocket.com/recordlabels",
		[[ header('<b>Record Labels</b>')], "http://www.musicsocket.com/recordlabels"],
		["&nbsp;Search Record Labels Database", "http://www.musicsocket.com/recordlabels"],
		["&nbsp;Advanced Search", "http://www.musicsocket.com/recordlabels/advanced_search.shtml"],
		["&nbsp;Submit Label Listing", "http://www.musicsocket.com/suggest/recordlabels"]
	],

	[[ centre('Managers')], "http://www.musicsocket.com/managers",
		[[ header('<b>Managers</b>')], "http://www.musicsocket.com/managers"],
		["&nbsp;Search Managers Database", "http://www.musicsocket.com/managers"],
		["&nbsp;Advanced Search", "http://www.musicsocket.com/managers/advanced_search.shtml"],
		["&nbsp;Submit Manager Listing", "http://www.musicsocket.com/suggest/managers"]
	],

	[[ centre('Copyright Information')], "http://www.firstwriter.com/copyright",
		[[ header('<b>Copyright Information</b>')], "http://www.firstwriter.com/copyright"],
		["&nbsp;What is copyright?", "http://www.firstwriter.com/copyright"],
		["&nbsp;Copyright law and its history", "http://www.firstwriter.com/copyright/law_history.shtml"],
		["&nbsp;Protecting your copyright", "http://www.firstwriter.com/copyright/copyright_registration.shtml"],
		["&nbsp;Use of the copyright symbol", "http://www.firstwriter.com/copyright/symbol.shtml"],
		["&nbsp;Countries covered", "http://www.firstwriter.com/copyright/berne_convention.shtml"]
	],

	[[ centre('Subscribe')], "https://www.musicsocket.com/subscribe",
		[[ header('<b>Subscribe</b>')], "https://www.musicsocket.com/subscribe"],
		["&nbsp;Why Subscribe?", "https://www.musicsocket.com/subscribe"],
		["&nbsp;Subscribe now!", "https://www.musicsocket.com/subscribe"],
		["&nbsp;Subscribers' Area", "https://www.musicsocket.com/subscriber/"],
		["&nbsp;Help Logging in", "http://www.musicsocket.com/subscribe/help.shtml"],
		["&nbsp;Buy a Gift Subscription", "http://www.musicsocket.com/writer_gift"],
		["&nbsp;Cancel your account", "http://www.musicsocket.com/cancel.shtml"],
		["&nbsp;Request a refund", "http://www.musicsocket.com/refunds"]
	],

	[[ centre('RSS Feeds')], "http://www.musicsocket.com/rss",
		[[ header('<b>RSS Feeds</b>')], "http://www.musicsocket.com/rss"],
		["&nbsp;What is an RSS feed?", "http://www.musicsocket.com/rss"],
		["&nbsp;Subscribing to RSS feeds", "http://www.musicsocket.com/rss/#subscribe"],
		["&nbsp;RSS feeds from MusicSocket", "http://www.musicsocket.com/rss/#whatRSS"],
		["&nbsp;InstantAlert RSS feed", "http://www.musicsocket.com/rss/#InstantAlertRSS"],
		["&nbsp;Database RSS feeds", "http://www.musicsocket.com/rss/#databaseRSS"],
		["&nbsp;Customise your RSS feeds", "http://www.musicsocket.com/rss/#customise"]
	],

	[[ centre('Free Newsletter')], "http://www.musicsocket.com/newsletter",
		[[ header('<b>Free Music Newsletter</b>')], "http://www.musicsocket.com/newsletter"],
		["&nbsp;Sign up to fmn for Free", "http://www.musicsocket.com/newsletter"],
		["&nbsp;Unsubscribe from fmn", "http://www.musicsocket.com/newsletter/#form"],
		["&nbsp;View fmn back issues", "http://www.musicsocket.com/newsletter/archive/"],
		["&nbsp;Contribute to fmn", "http://www.musicsocket.com/newsletter/press_room.shtml"],
		["&nbsp;Advertise in fmn", "http://www.musicsocket.com/advertising/fmnadvertising.shtml"]
	],

	[[ centre('Advertising')], "http://www.musicsocket.com/advertising",
		[[ header('<b>Advertising</b>')], "http://www.musicsocket.com/advertising"],
		["&nbsp;Advertising information", "http://www.musicsocket.com/advertising"],
		["&nbsp;Website advertising", "http://www.musicsocket.com/advertising"],
		["&nbsp;Newsletter advertising", "http://www.musicsocket.com/advertising/fmnadvertising.shtml"]
	],

	[[ centre('About Us')], "http://www.musicsocket.com/about_us",
		[[ header('<b>About Us</b>')], "http://www.musicsocket.com/about_us"],
		["&nbsp;About us", "http://www.musicsocket.com/about_us"],
		["&nbsp;Contact us", "http://www.musicsocket.com/contactus"]
	],

	[[ centre('Links')], "http://www.musicsocket.com/links",
		[[ header('<b>Links</b>')], "http://www.musicsocket.com/links"],
		["&nbsp;Search Links", "http://www.musicsocket.com/links"],
		["&nbsp;Browse Links", "http://www.musicsocket.com/links"],
		["&nbsp;Submit Website for Inclusion", "http://www.musicsocket.com/links/submit.cgi"]
	],

	[[ centre('Affiliate Program')], "http://www.musicsocket.com/affiliates",
	]
		
]};

