


function buildLink(text,action){
	
	str="";
	str+="<input type='button' value='"+text+"' class='button' onclick='"+action+"'></input><br />";
	return str;
}

function doLinks(){
	str="";
	str+=buildLink("About",'document.location="info.htm"');
	str+=buildLink("History","doContent(getHistory())");
	//str+=buildLink("Forum",""); 
	//str+=buildLink("Buy BK stuff","");
	//str+=buildLink("View hiscores","");
	str+=buildLink("Fun stuff",'document.location="http://funstuff.pantomimepony.co.uk/index.htm"');
	str+="<br/>";
	str+=buildLink("Play Badger Kingdom",'document.location="http://badgerkingdom.pantomimepony.co.uk/bk2/index.htm"')
	document.write(str);
}

function goBack(){
	document.write(buildLink("Return to main page",'document.location="index.htm"'));
}
function doContent(text){
 	
	document.getElementById('content').innerHTML=text;;	
}

function getHistory(){
	return "<h1>The history of Badger Kingdom</h1> The original version of Badger Kingdom - version 1 - was uploaded some time around 2003. It was intended as an excercise in learning Javascript and as a way of bringing visitors to the Pantomimepony site. A lot of things about it were experimental and innovative. It was written when most people were using screen sizes of 800x600 pixels and were either using Explorer or Netscape Navigator. On an 800x600 screen the game was squashed in, just about using up all the space. Now, with most people using at least 1025x768 resolution screens, the old game looks a little odd and unformatted.<br/><br/>As far as the version 1 game itself goes, there is little in the gameplay to bring a player back to play again. It is quite a challenging game but there is no depth to play as the only choice for the player is which territory to select next. That is something that has been addressed in version 2, but there is still some way to go before the game is compelling to play.<br/><br/>From time to time, searches have been done on Google to see whether there has been any feedback to the game. There have been plenty of comments along the lines of 'I got bored after 150 years'. And examinations of the site stats suggests that people were playing BK1 for a long period of time and then never playing it again.<br/><br/>However, the game clearly appeals to people in concept and has attracted a steady steam of visitors to play the game. Perhaps it\'s the universal appeal of badgers or maybe it just makes a refreshing change from zapping aliens.<br/><br/>The original reasons for developing Badger Kingdom remain for the second version. There are always new technologies to learn.<br/><br/>The new version is much better, both in presentation and gameplay, but some of the simplicity of that early game has been lost. Therefore we\'ve kept the old version for people who still want to play it or compare it with the new. <br/><br/>You can find the old game here: "+buildLink('Original game','document.location="legacy.htm"');
	
}

function getTerms(){
	return "<h1>Badger Kingdom Terms of Use</h1><h2>Use of the website.</h2><p>This website is provided as is. There is no obligation on the part of Pantomimepony.co.uk to provide the site, the game Badger Kingdom or any supporting pages. Nor to maintain the site, correct defects in the game, support specific browsers or technologies.</p><p>Users of the site and players of the game Badger Kingdom agree to abide by the rules of the site.</p><p>The rules of the site are:<br/><ul><li/>No cheating, code hacking, bots or other devices may be used to increase scores or access the hiscore table.<li/>No abusive or offensive words or language or names may be entered into the input fields of the sites pages.<li/>Anyone found in breach of the above rules may be permanently excluded from the site and all future Badger Kingdom games and entertainments.</ul></p><h2>Copyright</h2>Copyright 2007 Alexander Martin and Pantomimepony.co.uk. All rights reserved.<br/><p>The code, concept, names, pages and graphics on the site are the property of Alexander Martin and Pantomimepony.co.uk. They may not be linked into framed pages or portal sites without permission. Nor may they be saved, reedited, modified, imitated or duplicated. </p>"; 	
}