// ==UserScript==
// @name             schramkeIschool
// @author           Terry Brooks
// @date             September 19, 2006 
// @namespace        http://faculty.washington.edu/tabrooks
// @include          http://www.ischool.washington.edu/
// @exclude          http://faculty.washington.edu/tabrooks/ 
// ==/UserScript==

(function()
{

var allNewstitles;

allNewstitles = document.evaluate(
	"/html/body/form[@id='form1']/table/tbody/tr[3]/td/table/tbody/tr/td[1]/ul[@id='LeftNav']",
	document,
	null,
	XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
	null);	

var mySelect = document.createElement("select");
mySelect.setAttribute("name", "selector");
mySelect.setAttribute("onChange", "location.href=this.options[this.selectedIndex].value");

var topItem = document.createTextNode("Terry's Links");
var optionTop = document.createElement("option");
optionTop.appendChild(topItem);
mySelect.appendChild(optionTop);

var textOne = document.createTextNode("Course descriptions");
var optionOne = document.createElement("option");
optionOne.appendChild(textOne);
optionOne.setAttribute("value", "http://www.ischool.washington.edu/courses/descriptions.aspx");
mySelect.appendChild(optionOne);

var textTwo = document.createTextNode("Course schedules");
var optionTwo = document.createElement("option");
optionTwo.appendChild(textTwo);
optionTwo.setAttribute("value", "http://www.ischool.washington.edu/courses/schedules.aspx");
mySelect.appendChild(optionTwo);

var textThree = document.createTextNode("Course web pages");
var optionThree = document.createElement("option");
optionThree.appendChild(textThree);
optionThree.setAttribute("value", "http://www.ischool.washington.edu/courses/schedules.aspx");
mySelect.appendChild(optionThree);

var textFour = document.createTextNode("Technology FAQs");
var optionFour = document.createElement("option");
optionFour.appendChild(textFour);
optionFour.setAttribute("value", "http://help.ischool.washington.edu/faqs/");
mySelect.appendChild(optionFour);

var textFive = document.createTextNode("E-Acad software");
var optionFive = document.createElement("option");
optionFive.appendChild(textFive);
optionFive.setAttribute("value", "http://msdn.e-academy.com/elms/Storefront/Home.aspx?campus=washington_is");
mySelect.appendChild(optionFive);

var textSix = document.createTextNode("iSchool Intranet");
var optionSix = document.createElement("option");
optionSix.appendChild(textSix);
optionSix.setAttribute("value", "https://intranet.ischool.washington.edu/default.aspx");
mySelect.appendChild(optionSix);

var textSeven = document.createTextNode("Student portal");
var optionSeven = document.createElement("option");
optionSeven.appendChild(textSeven);
mySelect.appendChild(optionSeven);

var textEight = document.createTextNode("Distance course");
var optionEight = document.createElement("option");
optionEight.appendChild(textEight);
optionEight.setAttribute("value", "https://projects.ischool.washington.edu/dlis/uwnetid/technical.htm");
mySelect.appendChild(optionEight);

var textNine = document.createTextNode("My sharepoint");
var optionNine = document.createElement("option");
optionNine.appendChild(textNine);
mySelect.appendChild(optionNine);

allNewstitles.snapshotItem(0).appendChild(mySelect);

}) ();

