/******************************************************* 
 * Copyright 2002 by Curtis Tolan aka C2Talon          *
 *                                                     *
 * If you want to use any part of the script, put this *
 * header (intact) on it and I'll be fine with it.     *
 *******************************************************/

<!--- start
//basic functions
function c2dr(c2dr_in) { document.write(c2dr_in); }
function c2el(c2el_in) { c2dr(c2el_in+'<br>'); }

//random quote...
function c2quote() {
	var c2nummidi=13;
	c2day=new Date();
	c2seed=c2day.getTime();
	c2ran=parseInt(((c2seed-(parseInt(c2seed/1000,10)*1000))/10)/100*c2nummidi+1,10);
	if(c2ran==1){return "Sleep is for the week.";}
	else if(c2ran==2){return "Sleep is for the weak.";}
	else if(c2ran==3){return "When I grow up, I wanna glow in the dark.";}
	else if(c2ran==4){return "Fear is a mind killer.";}
	else if(c2ran==5){return "Long live the fighters!";}
	else if(c2ran==6){return "The weak strive to be weaker.";}
	else if(c2ran==7){return "Reality is the destroyer of dreams.";}
	else if(c2ran==8){return "Wipe them out, 93% of them.";}
	else if(c2ran==9){return "This sentence is false.";}
	else if(c2ran==10){return "Pmr lru tohjy.";}
	else if(c2ran==11){return "The trance is the motion.";}
	else if(c2ran==12){return "Wherever you go, there you are.";}
	else if(c2ran==13){return "Dar ithno ul viir crau.";}
}

//easy links
function c2a(c2ashow,c2ahref) {
	c2aout = '<a href="'+c2ahref+'">'+c2ashow+'</a>';
	return c2aout;
}

//news format
function c2newf(c2head,c2date,c2name,c2form) {
	c2dr('<br><b><font style="{font-size:10pt;}">'+c2head+'</font></b><br>'+'<i><font style="{font-size:8pt;}">Posted on '+c2date+' by '+c2name+'.</font></i>'+'<ul>'+c2form+'</ul>');
}

//the stuffs

function c2_format() {
	//top format
	c2dr('<html><head><title>C2Talon :: '+c2quote()+'</title></head>');
	c2dr('<script language="javascript" src="c2_alpha.js"></script><link rel="stylesheet" href="c2_alpha.css">');
	c2el('<body><p align="center"><font style="{font-size:20pt;color:#000000;}"><b>C2Talon</b></font>');
	c2el('<br>'+c2a('http://www.geocities.com/c2talon/index.html','http://www.geocities.com/c2talon/index.html" style="{font-size:8pt;}'));
	c2dr('</p><p><hr></p><p><div align="center"><center>');
	//start menu
	c2dr(c2a('Home','javascript:c2_go(\'home\')')+' :: ');
	c2dr(c2a('News','javascript:c2_go(\'news\')')+' :: ');
	c2dr(c2a('Forum','http://network54.com/hide/forum/131739')+' :: ');
	c2dr(c2a('Download','#')+' :: ');
	c2dr(c2a('Sites','javascript:c2_go(\'sites\')'));
	c2dr('</center></div></p><table align="center" width="75%"><tr><td>');
}

function c2_footer() {
	c2dr('</td></tr></table><p><hr></p><p><div align="center"><center>');
	c2el('<font style="{font-size:8pt;color:#000000;}">Copyright &copy; 2000-2002 by C2Talon');
	c2el('</font></center></div></p></body></html>');
}

//pages
function c2_home() {
	c2dr('This is the home page, this is only a test. '+
		'If only this test would have worked... sigh. '+
		'You\'ll notice the links do not recycle, er once over written they don\'t work again. '+
		'It would have been flipping awesome if it had worked... the way I wanted it to anyway. '+
		'It would have worked another way... but then I realized that it may not work on all browsers, so I stopped.');
}

function c2_news() {
	c2newf('Test header!','2002.02.17@14:18:51',c2a('c2talon','mailto:null'),'This is where the content is suppossed to go.');
	c2newf('blah','2002.02.17@14:49:30',c2a('c2talon','mailto:null'),'Raltiir aaiec yvel dar istar reih.');
}

function c2_sites() {
	c2el('testing sites page');c2el('');
	c2el(c2a('The Jedi Empire','file:///c:/apache/htdocs/site/archived/clanje/new/secure/index.html'));
}

//page handler
function c2_go(c2_go_in) {
	c2_format();
	if (c2_go_in == 'home') { c2_home(); }
	else if (c2_go_in == 'news') { c2_news(); }
	else if (c2_go_in == 'sites') { c2_sites();	}
	c2_footer();
}

// end --->