// global.js 1.1
// 2004.02.13 by todd

// begin popup window
// legacy code

function popup(mylink, windowname) {
	if (!window.focus) { return true; }
	var href;
	if (typeof(mylink) == 'string') {
		href=mylink; 
	} else {
		href=mylink.href; 
	}
	window.open(href, windowname, 'width=550,height=550,scrollbars=yes'); 
	return false; 
}
 
// begin style switcher
/*
 function setActiveStyleSheet(title) {
  var i, a, main;
  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;
    }
  }
}
*/

function changeAllStyleSources(src) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("media") == "screen" && a.getAttribute("href") ) {
      a.href = src;
    }
  }
}


