var tooltip;


function initTooltip()
{
	tooltip = window.parent.frames[4].document.getElementById("myTooltip");
	clearTooltip();
	//status = tooltip.innerHTML;
}

function clearTooltip()
{
	tooltip.innerHTML = "";
}

function showTooltip(str)
{
	//status = "showing string " + str;
	tooltip.innerHTML = str;
}

// The purpose of this function is to create a webpage
// around a jpg image. Basically, it's to give that page
// a black background, so that it fits with the rest of 
// the website's look and feel.
function openLargeImage(imgPath,w,h)
{
	document.writeln("<html><head>");
	document.writeln("<link href='Code/portfolio.css' rel='stylesheet' type='text/css'>");
	document.writeln("</head><body>");
	document.write("<img src='Images/" + imgPath + "'");
	if(w && h)
		document.write(" width='" + w + "' height='" + h + "'");
	document.writeln(">");
	document.writeln("</body></html>");
	document.close();
}

function openMovie(movPath,w,h)
{
	document.writeln("<html><head>");
	document.writeln("<link href='Code/portfolio.css' rel='stylesheet' type='text/css'>");
	document.writeln("</head><body>");
	document.write("<embed src='Clips/" + movPath + "'");
	if(w && h)
		document.write(" width='" + w + "' height='" + h + "'");
	document.writeln(">");
	document.writeln("</body></html>");
	document.close();
}