/*
Developed by Lhyam Sumal
For the use of chemcord.co.uk only
(c) Lhyam Sumal - www.lhYam.com
Developed 19 November 2004
Updated 12 January 2007
*/
var links = 76;
var subjects = 6;
var subj = new Array(subjects);
var date = new Array(links);
var urls = new Array(links);
var text = new Array(links);
subj[0] = 'Biology';
subj[1] = 'Mathematics';
subj[2] = 'Chemistry';
subj[3] = 'Physics';
subj[4] = 'Computing';
subj[5] = 'Miscellaneous';
urls[0] = '0';
urls[1] = '00http://www.nhm.ac.uk/darwincentre/';
urls[2] = '01http://www.inventionfactory.com/sciencetogo/growing_things/';
urls[3] = '01http://www.medtropolis.com/VBody.asp';
urls[4] = '00http://www.cellsalive.com';
urls[5] = '02http:// http://www.heckgrammar.kirklees.sch.uk/.../science/biology/rasmol.htm';
urls[6] = '02http:// http://www.uwe.ac.uk/colleges/subjects/biology.shtml';
urls[7] = '02http:// http://www.dnaftb.org';
urls[8] = '02http:// http://www.wcresa.k12.mi.us/nasa/webq_questions.htm';
urls[9] = '20http://www.chemistry.ohio-state.edu/betha/nealChemBal/';
urls[10] = '20http://www.element-collection.com/html/installations.html';
urls[11] = '21http://www.channel4.com/learning/microsites/S/smartstuff/';
urls[12] = '20http://www.evans2chemweb.co.uk/';
urls[13] = '20http://www.methyl.demon.co.uk/';
urls[14] = '22http:// http://www.chemsoc.org/links/links.htm';
urls[15] = '10http://www.rn-maths.co.uk';
urls[16] = '10http://www.maths.mclarenhigh.com/';
urls[17] = '30http://www.emanuelschool.org.uk/physics/physite/page4.htm';
urls[18] = '30http://www.jb.man.ac.uk/public/tour/';
urls[19] = '30http://www.science.nasa.gov';
urls[20] = '30http://www.physics.mclarenhigh.com/';
urls[21] = '32http:// http://www.scienceonline.co.uk/free_ppt-files.html';
urls[22] = '32http://www.aip.org/history/einstein';
urls[23] = '32http://www.glenbrook.k12.il.us/gbssci/phys/phys.html';
urls[24] = '51http://www.cashforcans.co.uk';
urls[25] = '50http://www.aeat.co.uk/netoen/airqual/bulletins/weeklygraphs.html';
urls[26] = '50http://www.nasa.gov/';
urls[27] = '50http://www.spaceflightnow.com/';
urls[28] = '50http://www.sci.esa.int/';
urls[29] = '50http://cmex-www.arc.nasa.gov/CMEX/index.html';
urls[30] = '51http://www.exploratorium.com';
urls[31] = '51http://www.planet-science.com';
urls[32] = '52http://www.materials.ac.uk/resources/preview';
urls[33] = '52http://www.opticsforkids.org';
urls[34] = '52http://vtc.ngfl.gov.uk/docserver.php?temid=77';
urls[35] = '52http://www.shu.ac.uk/pri/';
urls[36] = '52http://members.lycos.co.uk/darylrowland/';
urls[37] = '32http://www.phy.ntnu.edu.tw/ntnujava/';
urls[38] = '40http://Weblinks - Information Technology';
urls[39] = '00http://www.sheffcol.ac.uk/links/Science/';
urls[40] = '20http://www.sheffcol.ac.uk/links/Science/';
urls[41] = '30http://www.gelighting.com/na/home/gela/students/index.htm';
urls[42] = '00http://www.kscience.co.uk/';
urls[43] = '20http://www.webelements.com/';
urls[44] = '00http://www.planet-science.com/';
urls[45] = '30http://www.planet-science.com/';
urls[46] = '20http://www.planet-science.com/';
urls[47] = '30http://www.intuitor.com/moviephysics/';
urls[48] = '30http://www.ewellcastle.co.uk/science/';
urls[49] = '30http://resourcefulphysics.org/';
urls[50] = '30http://www.physics4u.co.uk/';
urls[51] = '02http://schools.becta.org.uk/';
urls[52] = '22http://schools.becta.org.uk/';
urls[53] = '32http://schools.becta.org.uk/';
urls[54] = '32http://www.curriculumonline.gov.uk/';
urls[55] = '22http://www.curriculumonline.gov.uk/';
urls[56] = '02http://www.curriculumonline.gov.uk/';
urls[57] = '42http://www.curriculumonline.gov.uk/';
urls[58] = '12http://www.curriculumonline.gov.uk/';
urls[59] = '32http://www.tre.ngfl.gov.uk/';
urls[60] = '22http://www.tre.ngfl.gov.uk/';
urls[61] = '02http://www.tre.ngfl.gov.uk/';
urls[62] = '42http://www.tre.ngfl.gov.uk/';
urls[63] = '12http://www.tre.ngfl.gov.uk/';
urls[64] = '02http://www.biologycorner.com/';
urls[65] = '00http://www.biochem4schools.org';
urls[66] = '30http://www.brainpop.com/';
urls[67] = '21http://www.brainpop.com/';
urls[68] = '01http://www.brainpop.com/';
urls[69] = '41http://www.brainpop.com/';
urls[70] = '11http://www.brainpop.com/';
urls[71] = '21http://www.coralbark.net/computing/schools/';
urls[72] = '01http://www.coralbark.net/computing/schools/';
urls[73] = '00http://www.phschool.com/science/biology_place/';
urls[74] = '00http://www.think-energy.com/';
urls[75] = '20http://www.think-energy.com/';
urls[76] = '30http://www.think-energy.com/ ';
text[0] = '0';
text[1] = '0Natural History Collection; Ask Questions to Experts';
text[2] = '0Growing Things';
text[3] = '0The Virtual Body';
text[4] = '0CELLS alive!';
text[5] = '0Software for visualising molecules';
text[6] = '0Biology Links for Teachers';
text[7] = '0DNA from the Beginning';
text[8] = '0Sample Questions for the Xlife Webquest';
text[9] = '2Balancing Chemical Equations';
text[10] = '2Periodic Table Displays';
text[11] = '2smart stuff*';
text[12] = '2The Free Chemistry Resource for Scottish High Schools';
text[13] = '2Ardrossan Academy Chemistry Department';
text[14] = '2Over 300 web links in categories';
text[15] = '1Royal Navy Maths & Engineering in Action';
text[16] = '1McLaren High School Mathematics Department Website';
text[17] = '3Interactive Physics Dictionary with other links';
text[18] = '3Tour of Jodrell Bank Telescope';
text[19] = '3Science @ NASA';
text[20] = '3McLaren High Physics Department Website';
text[21] = '3Electricity - PowerPoint Presentations';
text[22] = '3Einstein - Image and Impact';
text[23] = '3GBS Physics Home Page';
text[24] = '5Cash for Cans';
text[25] = '5UK Pollution Data';
text[26] = '5NASA';
text[27] = '5Space Flight News';
text[28] = '5European Space Agency';
text[29] = '5All About Mars';
text[30] = '5Exploratorium';
text[31] = '5Planet Science';
text[32] = '5UK Centre for Materials Education';
text[33] = '5OpticsForKids';
text[34] = '5VTC - Science';
text[35] = '5Pupil Researcher Initiative';
text[36] = '5Clever Software Online';
text[37] = '3NTNU JAVA: Virtual Physics Laboratory';
text[38] = '4http://www.sheffcol.ac.uk/links/Information_Technology/';
text[39] = '0Weblinks / Science';
text[40] = '2Weblinks / Science';
text[41] = '3Light: A Learning Unit';
text[42] = '0Various Animations';
text[43] = '2Periodic Table';
text[44] = '0Planet Science';
text[45] = '3Planet Science';
text[46] = '2Planet Science';
text[47] = '3Insultingly Stupid Movie Physics';
text[48] = '3Various Resources - Kinetics';
text[49] = '3Institute of Physics';
text[50] = '3Powerpoint Downloads';
text[51] = '0Information on ICT in Science';
text[52] = '2Information on ICT in Science';
text[53] = '3Information on ICT in Science';
text[54] = '3Curriculum Online';
text[55] = '2Curriculum Online';
text[56] = '0Curriculum Online';
text[57] = '4Curriculum Online';
text[58] = '1Curriculum Online';
text[59] = '3Moderated Database of Resources';
text[60] = '2Moderated Database of Resources';
text[61] = '0Moderated Database of Resources';
text[62] = '4Moderated Database of Resources';
text[63] = '1Moderated Database of Resources';
text[64] = '0Biology Resources';
text[65] = '0Biochemistry Resources';
text[66] = '3BrainPOP - Animated Resources';
text[67] = '2BrainPOP - Animated Resources';
text[68] = '0BrainPOP - Animated Resources';
text[69] = '4BrainPOP - Animated Resources';
text[70] = '1BrainPOP - Animated Resources';
text[71] = '2Radioactivity';
text[72] = '0Photosynthesis';
text[73] = '0The Biology Place';
text[74] = '0Science for All Ages';
text[75] = '2Science for All Ages';
text[76] = '3Science for All Ages';
date[0] = '012/01/2007';
date[1] = '012/01/2007';
date[2] = '012/01/2007';
date[3] = '012/01/2007';
date[4] = '012/01/2007';
date[5] = '012/01/2007';
date[6] = '012/01/2007';
date[7] = '012/01/2007';
date[8] = '012/01/2007';
date[9] = '212/01/2007';
date[10] = '212/01/2007';
date[11] = '212/01/2007';
date[12] = '212/01/2007';
date[13] = '212/01/2007';
date[14] = '212/01/2007';
date[15] = '112/01/2007';
date[16] = '112/01/2007';
date[17] = '312/01/2007';
date[18] = '312/01/2007';
date[19] = '312/01/2007';
date[20] = '312/01/2007';
date[21] = '312/01/2007';
date[22] = '312/01/2007';
date[23] = '312/01/2007';
date[24] = '512/01/2007';
date[25] = '512/01/2007';
date[26] = '512/01/2007';
date[27] = '512/01/2007';
date[28] = '512/01/2007';
date[29] = '512/01/2007';
date[30] = '512/01/2007';
date[31] = '512/01/2007';
date[32] = '512/01/2007';
date[33] = '512/01/2007';
date[34] = '512/01/2007';
date[35] = '512/01/2007';
date[36] = '512/01/2007';
date[37] = '312/01/2007';
date[38] = '412/01/2007';
date[39] = '012/01/2007';
date[40] = '212/01/2007';
date[41] = '312/01/2007';
date[42] = '012/01/2007';
date[43] = '212/01/2007';
date[44] = '012/01/2007';
date[45] = '312/01/2007';
date[46] = '212/01/2007';
date[47] = '312/01/2007';
date[48] = '312/01/2007';
date[49] = '312/01/2007';
date[50] = '312/01/2007';
date[51] = '012/01/2007';
date[52] = '212/01/2007';
date[53] = '312/01/2007';
date[54] = '312/01/2007';
date[55] = '212/01/2007';
date[56] = '012/01/2007';
date[57] = '412/01/2007';
date[58] = '112/01/2007';
date[59] = '312/01/2007';
date[60] = '212/01/2007';
date[61] = '012/01/2007';
date[62] = '412/01/2007';
date[63] = '112/01/2007';
date[64] = '012/01/2007';
date[65] = '012/01/2007';
date[66] = '312/01/2007';
date[67] = '212/01/2007';
date[68] = '012/01/2007';
date[69] = '412/01/2007';
date[70] = '112/01/2007';
date[71] = '212/01/2007';
date[72] = '012/01/2007';
date[73] = '012/01/2007';
date[74] = '012/01/2007';
date[75] = '212/01/2007';
date[76] = '312/01/2007';
function getSubject(subjectID)
{
 var title = subj[subjectID];
 return title;
}
function getLink(subject, showLinkFor, index)
{
 var link = urls[index];
 if(link.charAt(0) == subject){
  if(link.charAt(1) == showLinkFor || link.charAt(1) == 0){
     link = link.substring(2, link.length);
     return link;
  }
 }
return 0;
}
function getText(subject, index)
{
 var desc = text[index];
 if(desc.charAt(0) == subject){
     desc = desc.substring(1, desc.length);
     return desc;
 }
return 0;
}
function convertToWord(index)
{
 var myText;
 if(index == 1){ myText = ' Students' };
 if(index == 2){ myText = ' Teachers' };
 return myText;
}
function getDate(subject, index)
{
 var add = date[index];
 if(add.charAt(0) == subject){
     add = add.substring(1, add.length);
     return add;
 }
return 0;
}
function getTheLinks(subjectID, showFor, objID)
{
 var index;
 var textToWrite = '';
 for(index=0; index <= links; index++){
     var string = '';
     var url;
     var text;
     var added;
     url = getLink(subjectID, showFor, index);
     text = getText(subjectID,index);
     added = getDate(subjectID,index);
     if(!(url == 0) && !(text == 0)){
         string = '<table width=100% cellpadding=3 cellspacing=3><tr><td width=80px><p class=navtext>' + added + '</td><td><p class=normal>' + text + '<font size=1><br><a href=' + url + ' target=new window>' + url + '</a></font></td></tr></table>';
         textToWrite = textToWrite + string;
     }
 }
 document.getElementById(objID).innerHTML = textToWrite;
}
