// Old: used for placing all in a subframe. Subframe worked only not with search engines. So this is old.
if (parent != null) parent.document.title = document.title;

// Hyperlinks: popup in a smaller window than the caller window.
function ACMS_HyperlinkPopup(sUrl)
{
	var sLast2 = sUrl.substr(sUrl.length - 2);
	var sLast3 = sUrl.substr(sUrl.length - 3);
	var sLast4 = sUrl.substr(sUrl.length - 4);
	var sFile  = sUrl.substr(sUrl.lastIndexOf('/') + 1);

	if (navigator.userAgent.indexOf("Windows") > -1 &&
		(   sLast3 == 'wmv' || sLast3 == 'avi' || sLast3 == 'mpg'
		 || sLast4 == 'mpeg'
		)
	   )
	{
//alert('=' + sUrl + "=\n=" + sFile + "=\n="  + navigator.userAgent + "=\n=" + sLast2 + "=\n=" + sLast3 + "=\n=" + sLast4); return;
		window.open('js/acms_video.php?file=' + sUrl,'','width=640,height=480,channelmode=no,directories=no,fullscreen=no,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,titlebar=yes,toolbar=no');
	}
	else
		window.open(sUrl,'','width=640,height=480,channelmode=no,directories=yes,fullscreen=no,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,titlebar=yes,toolbar=yes');
};