/*
	Used to replace the target attribute on anchors
	for standards compliance.
*/
function _NewWindow(theURL) {
	window.open(theURL, 'NewWindow');
	return false;
}

/*
	Used in the media page for populating the video
	container with the correct video object.
*/

function _callVideo(displayFlag, theAnchor, videoTitle) {
	if( theAnchor ) {
		theAnchor.blur();
		targetSrc = theAnchor.href;
	}
	targetDiv = document.getElementById("videoContainer");
	objectStr = "";

	if( !displayFlag )
		targetDiv.style.display = "none";
	else {
		objectStr += "<div class=\"close\"><a href=\"/\" onclick=\"return _callVideo(false)\">Close</a></div>" +
			"<h2>" + videoTitle + "</h2>" +
			"<object type=\"application/x-shockwave-flash\" data=\"" + targetSrc + "\" width=\"640\" height=\"505\">" +
			"<param name=\"movie\" value=\"" + targetSrc +"\">" +
			"</object>" +
			"</div>";
		targetDiv.innerHTML = objectStr;
		targetDiv.style.display = "block";
		scroll(0,0);
	}
	return false;
}
/*
			<div id="videoContainer" class="videoContainer">
				<div class="close"><a href="/" onclick="document.getElementById('videoContainer').style.display='none';return false;">Close</a></div>
				<h2>Heian Shodan</h2>
				<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/qmBI0zBQhOw&amp;hl=en&amp;fs=1&amp;color1=0x5d1719&amp;color2=0xcd311b" width="640" height="505">
					<param name="movie" value="http://www.youtube.com/v/qmBI0zBQhOw&amp;hl=en&amp;fs=1&amp;color1=0x5d1719&amp;color2=0xcd311b">
				</object>
			</div>
*/
