/* Number Image preloads */
featuredProjects = new Array();
featuredProjects = ["1","2","3","4"];
for (i = 0; i < featuredProjects.length; i++) {
	eval("F"+i+"on = new Image();"); eval("F"+i+"off = new Image();");
	eval("F"+(i)+"on.src = \"images/home/btn-"+featuredProjects[i]+"-r.gif\";");
	eval("F"+(i)+"off.src = \"images/home/btn-"+featuredProjects[i]+"-0.gif\";");
}

function openPresentation() {
	var file = "portfolio/flash/corporate-demo/demo.html";
	window.open(file,"flashWindow","top=50,left=50,width=686,height=443");
}

function selectOffering() {
	var offering = document.offeringForm.offering.value;
	if (offering != "") {
		url = offering;
		location.href = url;
	}
}

function switchFeaturedProject(theProject,onImage) {
	
	var presentationList = new Array();
	presentationList = ["netcordia", "aubuchon", "cyberark", "ecco"];
	
	for (i = 0; i < 4; i++) {
		eval("changeImages('F" + i + "','F" + i + "off');");
	}
	eval("changeImages('" + onImage + "','" + onImage + "on');");
	
	
	// turn off all divs
	for (i = 0; i < presentationList.length; i++) {
		eval("document.getElementById('" + presentationList[i] + "').style.display = 'none';");
	}
	// turn on the moused-over div
	document.getElementById(theProject).style.display = "block";
}

function openPortfolioWindow(url){
		windowAttributes = "top=52,left=72,width=710,height=481";
  		portfolioWindow = window.open(url,"portfolioWindow",windowAttributes);
		portfolioWindow.focus();
}