/*
The setActiveStyleSheet() function is Paul Sowden's work,
published on http://www.alistapart.com/stories/alternate/
*/

function setActiveStyleSheet(title) {
    var i, a;
    if (title) {
	for (i=0; (a = document.getElementsByTagName("link")[i]); i++) {
	    if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
		a.disabled = true;
		if (a.getAttribute("title") == title) {
		  a.disabled = false;
                }
	    }
	}
    }
}

