//	add this to img tag
//	onclick="Enlarge(this.src, this.title,"","");" class="Enlargable" title="Title"
//	Third parameter is technical htm page, fourth is more images htm page
//	Leave these parameters as is if either is not required 


// Hide Enlargement
function EnlargeHide() {
	//document.getElementById('myEnlargablePluginParent').style.visibility = 'hidden'; 
	document.getElementById('myEnlargablePluginParent').style.display = 'none'; 
		document.getElementById("MoreButton").style.visibility="hidden";
		document.getElementById("TechButton").style.visibility="hidden";
	// bring video back if it exists on this page
	if (document.getElementById('myVideoPlugin')) {
		document.getElementById('myVideoPlugin').style.visibility = 'visible'; 
	}
	// reset main page to fully visible
	changeOpac("100", "IP")


}
	
// Image enlargement
var TechniquesAddress;
var MoreAddress;

function Enlarge(FA, Title, TechAddr, MoreAddr) {
	// center the enlargement
  	var ww=window.document.body.clientWidth;
  	var ew=document.getElementById('myEnlargablePluginParent').style.width;
  	document.getElementById('myEnlargablePluginParent').style.left=(ww-ew.substring(0,3))/2+'px';
	// make sure enlargement is visible
  	window.scrollTo(1,130);
	// stop video from being visible over the enlargement
	if (document.getElementById('myVideoPlugin')) {
		document.getElementById('myVideoPlugin').style.visibility = 'hidden'; 
	}
	TechniquesAddress=TechAddr;
	MoreAddress=MoreAddr;
	// make original page less visible
	changeOpac("30", "IP")
	
	document.getElementById('BigImage').src= FA;
	document.getElementById('Title').innerHTML=Title;
	document.getElementById("MoreButton").style.visibility="hidden";
	document.getElementById("TechButton").style.visibility="hidden";
	if (TechniquesAddress) {
		document.getElementById("TechButton").style.visibility="visible";
	}
	if (MoreAddress) {
		document.getElementById("MoreButton").style.visibility="visible";
	}
	//document.getElementById('myEnlargablePluginParent').style.position = 'fixed';
	document.getElementById('myEnlargablePluginParent').style.display = 'block';
	
}

function GoTech() {
	window.location=TechniquesAddress;
}

function GoMore() {
	window.location=MoreAddress;
}

