var key = new Array();
var pagecode = new Array();

pagecode[-1] = "tutorialcontents.html";
pagecode[0] = "tutorialcontents.html";
pagecode[1] = "whatisbrainstorming.html";
pagecode[2] = "historyofbrainstorming.html";
pagecode[3] = "benefitsofbrainstorming.html";
pagecode[4] = "costsofbrainstorming.html";
pagecode[5] = "introbrainstormingsummary.html";
pagecode[6] = "howtobrainstorm.html";
pagecode[7] = "brainstormingrules.html";
pagecode[8] = "brainstormingprinciples.html";
pagecode[9] = "preparingforbrainstorming.html";
pagecode[10] = "runningabrainstormsession.html";
pagecode[11] = "summarybrainstorming.html";
pagecode[12] = "needforadvancedbrainstorming.html";
pagecode[13] = "advancedbrainstorming.html";
pagecode[14] = "individualbrainstorming.html";
pagecode[15] = "creativethinking.html";
pagecode[16] = "howcreativethinkingworks.html";
pagecode[17] = "creativethinkingcontents.html";
pagecode[18] = "randomwordtutorial.html";
pagecode[19] = "randompicturetutorial.html";
pagecode[20] = "falserulestutorial.html";
pagecode[21] = "randomwebsitetutorial.html";
pagecode[22] = "scampertutorial.html";
pagecode[23] = "searchreapplytutorial.html";
pagecode[24] = "roleplaytutorial.html";
pagecode[25] = "challengefactstutorial.html";
pagecode[26] = "escapismtutorial.html";
pagecode[27] = "analogytutorial.html";
pagecode[28] = "wishfulthinkingtutorial.html";
pagecode[29] = "methodsofextraction.html";
pagecode[30] = "creativethinkingandbrainstorming.html";
pagecode[31] = "brainstormingtools.html";
pagecode[32] = "computeraidedbrainstormingsoftware.html";
pagecode[33] = "manualtechniques.html";
pagecode[34] = "overcomingobstacles.html";
pagecode[35] = "helpingideas.html";
pagecode[36] = "groupproblems.html";
pagecode[37] = "brainstormingthoughts.html";
pagecode[38] = "usenewpeople.html";
pagecode[39] = "creativeenvironment.html";
pagecode[40] = "brainstormingextras.html";
pagecode[41] = "summaryadvanced.html";
pagecode[42] = "../toolbox/downloadbt.html";

pagecode[43] = "";
pagecode[44] = "";
pagecode[45] = "";
pagecode[46] = "";
pagecode[47] = "";
pagecode[48] = "";

pagecode[49] = "brainstormingtoolbox.html";
pagecode[50] = "brainstormingtoolbox.html";
pagecode[51] = "downloadbt.html";
pagecode[52] = "btorderform.html";
pagecode[53] = "btorderform.html";

key['h'] = "../index.html";
key['t'] = "../tutorials/tutorialcontents.html";
key['c'] = "../tutorials/creativethinkingcontents.html";
key['n'] = pagecode[currentpage + 1];
key['b'] = pagecode[currentpage - 1];
key['y'] = "../tutorials/whatisbrainstorming.html";
key['g'] = "../tutorials/needforadvancedbrainstorming.html";
key['d'] = "../toolbox/downloadbt.html";
key['s'] = "../toolbox/downloadbt.html";
//alert(currentpage);

function getKey(keyStroke) {
isNetscape=(document.layers);
eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
which = String.fromCharCode(eventChooser).toLowerCase();
for (var i in key) if (which == i) window.location = key[i];
}
document.onkeypress = getKey;

function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Sorry, you do not have permission to right click. This is to prevent un-authorised copying of the website. To purchase a licence to print or use this website off-line, or for installation on your company network or home computer, or for use as corporate training please click on 'Software Downloads' at the top of this page and follow the links. A network licence to use this website is only £49.99 UK (approx $100 US).");
return false;
}
return true;
}

document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
