/* Swap active style sheet, found on A List Apart. Allows pages to alternate between regular and printer-friendly displays. */

function changeStylesheet(title)
{
	var i, a, main;
	for(i=0; (a = document.getElementsByTagName('link')[i]); i++)
	{
		if(a.getAttribute('rel').indexOf('style') != -1 && a.getAttribute('title'))
		{
			//this is, indeed, a stylesheet
			a.disabled = true;
			if(a.getAttribute('title') == title) a.disabled = false;
		}
	}
}
