// Author :  Malstygian
// File   :  links.js
// Date   :  8/19/08
// Version:  1.01
//
// - Wrapped the code into a function to allow selective viewing based on a control
//   parameter passed to the function. (8/19/08) [V 1.01]


function Show_Links(can_see)
{
	// Only the variables need to be changed to reroute the links
	var home_link = 'http://www.sonicanime.net/';
	var chatroom_link = 'irc://irc.sonicanime.net:6667/sonadow';
	var fan_art_link = 'http://art.sonadow.com/';
	var fan_comics_link = 'http://www.sonadow.com/comic.php';
	var fan_fiction_link = 'http://fanfiction.sonadow.com/';
	var flash_games_link = 'http://www.sonadow.com/games.php';
	var newsletter_link = 'http://groups.yahoo.com/group/sonadowonline/';
	var oekaki_link = '/oekaki';
	var forums_link = 'http://forums.sonadow.com/';
	var eighteen_plus_link = '.';

	// Actual links - do not touch
	document.write('<a href = "' + home_link  + '">Home</a> | ');
	document.write('<a href = "' + chatroom_link + '">Chatroom</a> | ');
	document.write('<a href = "' + fan_art_link + '">Fan Art</a> | ');
	document.write('<a href = "' + fan_comics_link + '">Fan Comics</a> | ');
	document.write('<a href = "' + fan_fiction_link + '">Fan Fiction</a> | ');
	document.write('<a href = "' + flash_games_link + '">Flash Games</a> | ');
	document.write('<a href = "' + newsletter_link + '">Newsletter</a> | ');
	document.write('<a href = "' + oekaki_link + '">Oekaki BBS</a> | ');
	document.write('<a href = "' + forums_link + '">Forums</a>');
	
	// Permission to view?
	if(can_see == true)
	{
		document.write('<a href = "' + eighteen_plus_link + '"> | 18 +</a>');
	}
}
