function ow(theURL,winName,settings) 
{
	l = (screen.width) ? (screen.width - 331)/2 : 0;
	t = (screen.height) ? (screen.height - 348)/2 : 0;
	settings += ',top='+t+',left='+l+',width=331,height=348';
	window.open(theURL,winName,settings);
}
function show(id) 
{
	document.getElementById(id).style.visibility = "visible";
}
function hide(id) 
{
	document.getElementById(id).style.visibility = "hidden";
}
function loadIframe(iframeName, url) 
{
	if ( window.frames[iframeName] ) 
	{
		window.frames[iframeName].location = url;   
		return false;
	}
		else return true;
}


// slideshow version of bottom section.

var total_slides = 8;
var time_between_slides = 6000; // milliseconds
var start_slide; // not implemented
var counter = 1;

function doSlideShow()
{
		var y = window.setInterval('slideShow()', time_between_slides);
}
function slideShow()
{
	counter = counter + 1;
	if( counter > total_slides) counter = 1;
	var path = "./case_studies/case_" + counter + "/featured.html";
	loadIframe("ifrm", path);
}