
function openVideo(page, X, Y, W, H)
{
	var frames = window.frames;
	for(var i=1; i<frames.length; i++)
	{
		switch(page.id)
		{	
			case "howitworks":
				if (frames[i].location.pathname != "/video/howitworks.asp") hs.close(frames[i].id);
				break;
			case "studentcomments":
				if (frames[i].location.pathname != "/video/studentcomments.asp") hs.close(frames[i].id);
				break;
			case "MTHFINAL":
				if (frames[i].location.pathname != "/video/MTHFINAL.asp") hs.close(frames[i].id);
				break;
			case "freetickets":
				if (frames[i].location.pathname != "/video/freetickets.asp") hs.close(frames[i].id);
				break;
			case "VideoCommercial":
				if (frames[i].location.pathname != "/video/VideoCommercial.asp") hs.close(frames[i].id);
				break;
			default:
		}	
	}
	return hs.htmlExpand(page, { objectType: 'iframe',  targetY: Y, targetX: X , width: W, height: H} );
}

//<![CDATA[
hs.registerOverlay({
	html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
	position: 'top right',
	useOnHtml: true,
	hideOnMouseOut: false,
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});
hs.graphicsDir = '../highslide/graphics/';
hs.wrapperClassName = 'borderless-html';
hs.showCredits = false;
hs.flushImgSize = true;
hs.preserveContent = false;
hs.objectLoadTime = 'after';
//]]>

hs.Expander.prototype.onAfterExpand = function() {
   hs.discardElement(this.ruler);
}
