//var path = "http://www.tsukuba.ac.jp/"; // Renewal 2007
//var path = "C:\\Documents and Settings\bbb\デスクトップ\works\tsukuba\public_html\\english\\"; // Renewal 2007
//var path = "E:\\project\\tsukuba\\site\\htroot_tsukuba\\public_html\\english\\"; // Renewal 2007
//var path = "http://130.158.69.246/english/"; // Renewal 2007
var path = "http://www.tsukuba.ac.jp/english/"; // English Renewal 2007


//initButton
function initButton() {
	if(navigator.appVersion.indexOf("Mac") > -1 && navigator.appName.charAt(0) == "M"){
		//
  	}else{
		document.write('<a href="#" onclick="replace_css(\'print\',\''+path+'common/css/print.css\');window.print();changeCSS()">');
		document.write('<img src="'+path+'common/images/ct_nav_print.gif" alt="Print" width="83" height="24" border="0" />');
		document.write('</a>');
	}
}



//replace_css
function replace_css(id,url){
  if(!document.getElementById) return false;
  var element = document.getElementById(id);
  if(!element || !element.cloneNode) return false;
  var new_node = element.cloneNode(true);
  new_node.href = url;
  element.parentNode.replaceChild(new_node,element);
  return true;
}



//changeCSS
function changeCSS(){
  var cssPath = path + "common/css/screen.css";
  setTimeout("replace_css('print','"+cssPath+"')",5000);
}
