// JavaScript Document
function change (version) {
  var listArray = parent.location.href.split('/');
  parent.location.href = '../' + version + '/' + listArray[listArray.length-1];
}

function tVersion (ver) {
  var listArray = parent.location.href.split('/');
  var pageArray = listArray[listArray.length-1].split('_');
  //alert(pageArray)
  if (ver == 'img') {
	  if (pageArray[1] == 'index.html') {
		  parent.location.href = "index.html";
	  }else{
		  if(pageArray[1] != 'environment'){
			parent.location.href = pageArray[1] + "_main.html";
		  } else {
			parent.location.href = pageArray[1] + "_main_" + pageArray[3];
		  }
	  }
	 // alert(pageArray)
  }
  if (ver == 'txt') {
	  if (pageArray[0] == 'index.html') {
		  parent.location.href = "tx_index.html";
	  }else{
		 if(pageArray[0] != 'environment'){
			 parent.location.href = "tx_"+ pageArray[0] + "_content.html";
		 } else {
			  parent.location.href = "tx_"+ pageArray[0] + "_con_" + pageArray[2];
		 }
	  }
  }
  //tx_aboutreport_content.html
  //aboutreport_main.html
}