
function CreateFlash(sId, nHeight, nWidth, sMovie, sVariables) {
	document.write('<object classid="' + sId + '" width="' + nWidth + '" height="' + nHeight + '">');
	document.write('<param name="movie" value="' + sMovie + '">');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="FlashVars" value="' + sVariables + '" />');
	document.write('<embed src="' + sMovie + '" quality="high" FlashVars="' + sVariables + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + nWidth + '" height="' + nHeight + '"></embed></object>');
}

function SwapImg(sId, sImg) {
	var sSwap = "On";
	var oImg1 = document.getElementById(sId);
	var oImg2;

	if (oImg1.src.match("_on_") != null) {
		sSwap = "Off";
	}

	if (sImg != undefined) {
		oImg2 = document.getElementById(sImg + sSwap);
	} else {
		oImg2 = document.getElementById(sId + sSwap);
	}
	
  oImg1.src = oImg2.src;	
	oImg1.alt = oImg2.alt;
}

function Print() {
	window.print();
}

function Bookmark() {
	var sURL = document.location
	var sTitle = document.title
	
	if (window.external) {
		if (navigator.appName != "Microsoft Internet Explorer") {
			window.sidebar.addPanel(sTitle, sURL, "");
		} else {
			window.external.AddFavorite(sURL, sTitle);
		}
	} else {
		alert("Sorry, your browser doesn't support this feature.");
	}
}