// JavaScript Document
var orgTitle = document.title;
document.title = 'Icon Design Automation';
window.status = 'Icon Design Automation';

// Function called on the VLSI Training page: onclick of .div.... that is TrainingModule..... ShortTermCourse.... CorporateTraining the respective content are viewed.
function Training(div) {
var option=['TrainingModulediv','ShortTermCoursediv','CorporateTrainingdiv'];
for(var i=0; i<option.length; i++) {
if (document.getElementById(option[i])) {
obj=document.getElementById(option[i]);
obj.style.display=(option[i]==div)? "block" : "none";
		}
	}
}
window.onload=function () {Training('Summarycontent');
}

function Subproducts(id){
//	alert(id);	
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

 function ContentDisplay(url){
	document.getElementById("TableContent").style.display = "none";
	
	var infoFrame = document.getElementById("iframeLayer");
	infoFrame.style.display = "block";
	if (document.getElementById("linkDisplayframe") == null)
		infoFrame.innerHTML = '<iframe id="linkDisplayframe" src="'+url+'" frameborder="0" vspace="0" hSpace="0" width="100%" height="100%" MARGINWIDTH="0" MARGINHEIGHT="0"></iframe>';
}

 function ConferenceDisplay(url){
	document.getElementById("indexOuterTable").style.display = "none";
	
	var infoFrame = document.getElementById("IndexiframeLayer");
	infoFrame.style.display = "block";
	if (document.getElementById("linkDisplayframe1") == null)
		infoFrame.innerHTML = '<iframe id="linkDisplayframe1" src="'+url+'" frameborder="0" vspace="0" hSpace="0" width="100%" height="100%" MARGINWIDTH="0" MARGINHEIGHT="0"></iframe>';
}