// Show brief info when mouse over software icon
function ShowInfo(InfoID) {
  var infoArray = Array(
    'UCSF Chimera - UCSF Resource for Biocomputing, Visualization, and Informatics',
    'BALLView - Center for Bioinformatics Saarbrücken & Center for Bioinformatics Tübingen, Germany',
    'MOLMOL - BRUKER/Spectrospin and Prof. Kurt Wüthrich in Zürich',
    'Discovery Studio Visualizer - Accelrys Software Inc.(Free to researchers)',
    'VMD - The Theoretical and Computational Biophysics Group at UIUC',
    'RasMol - www.RasMol.org'
	);

  document.getElementById('Info').innerHTML = infoArray[InfoID];
}

function HideInfo() {
  document.getElementById('Info').innerHTML = '&nbsp;';
}



// swap image when cursor hover over a images
if (document.images) 
{ image1 = new Image;
  image2 = new Image;
  image1.src = "images/Feb2006_01s.jpg";
  image2.src = "images/Feb2006_02s.jpg" 
}

// Hover the cursor over a images, another image will show in another layer
var nsx;
var nsy;
if (document.all)
	var winW=document.body.offsetWidth;
else
	var winW=window.innerWidth;

if (!document.all) {	//firefox
	document.captureEvents(Event.mousemove);	
	document.onmousemove=get_mouse;
}
function get_mouse(e) {
	nsx=e.pageX-20;
	nsy=e.pageY+5;
}

function layer(id){
  var res;
  if(document.getElementById) res=document.getElementById(id);
  if(document.all) res=document.all[id];
  if (res) return res.style;
  return null;
}

function t_i(id) { 
	var hlp=layer('Tp'+id);
	if (hlp) {
		if (document.all) { //IE
			 nsy=event.y+document.body.scrollTop+5;
			 nsx=event.x+document.body.scrollLeft-40;
		}
		hlp.top=nsy+5;
		if (parseInt(hlp.width) + nsx >= winW)
			hlp.left = winW-parseInt(hlp.width)-40;
		else			
			hlp.left=nsx-20;
		hlp.visibility='visible';	
	}
}

function t_o(id) {
	var hlp=layer('Tp'+id);
	if(hlp) hlp.visibility='hidden';
}

