
if (location.search == "?view=print") {
	var CSSlink = document.getElementById("ScreenCSS");
	CSSlink.setAttribute("href", "../../../css/sroprint.css");
	}

function createToolbar() {

// Create <div id="toolbar"><a href="?view=print">Printable Version</a></div>
var toolbar = document.createElement("div");
toolbar.setAttribute("id","toolbar");

var toolbarList = document.createElement("ul");
toolbar.appendChild(toolbarList);

//Create "Printable Version" link
var toolbarPrint = document.createElement("li");
toolbarList.appendChild(toolbarPrint);

var toolbarPrintLink = document.createElement("a");
toolbarPrintLink.setAttribute("href","?view=print");
toolbarPrintLink.setAttribute("class","print");
toolbarPrint.appendChild(toolbarPrintLink);

var toolbarPrintLinkText = document.createTextNode("Printable Version");
toolbarPrintLink.appendChild(toolbarPrintLinkText);


// Insert "toolbar" before "maincontent"
var content = document.getElementById("content");
var maincontent = document.getElementById("maincontent");
content.insertBefore(toolbar,maincontent);
}

// window.onload = createToolbar;
