﻿function bookmark(title, url) {
	if (window.sidebar)
		window.sidebar.addPanel(title, url, "");
	else if (window.external)
		window.external.addFavorite(url, title);
	else if (window.opera && window.print)
		return true;
}

function setDefaultButton(button)
{
	if (event.keyCode == 13)
	{
		event.returnValue = false;
		event.cancel = true;
		
		button.click();
	}
}

function showSampleVideo_Back(fd) {
	var height = 429, width = 441, left = (screen.width - width) / 2, top = (screen.height - height) / 2;

	sampleVideo = window.open(fd + "/sample/video.html", "sampleVideo",	"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + width + ",height=" + height + ",top=" + top + ",left=" + left, true);

	sampleVideo.resizeTo(width, height);
	sampleVideo.moveTo(left, top);
	sampleVideo.focus();
}

function swapSpan(s1, s2) {
	s1.style.display = "none";
	s2.style.display = "inline";
}