// adds active flash object to the page
function loadFlash(flashMovie, width, height) {
	// document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '" align="middle"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="' + flashMovie + '"><param name="quality" value="high"><embed src="' + flashMovie + '" quality="high" width="' + width + '" height="' + height + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>');
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '" align="middle"><param name="allowScriptAccess" value="sameDomain"><param name="wmode" value="transparent"><param name="movie" value="' + flashMovie + '"><param name="quality" value="high"><embed src="' + flashMovie + '" quality="high" width="' + width + '" height="' + height + '" align="middle" allowScriptAccess="sameDomain" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>');
}
if(document.images) {
	// preload
	image1 = new Image();
	image1.src = "/images/btn-tell-us-over.gif";
	image2 = new Image();
	image2.src = "/images/btn-view-all-events-over.gif";
	image3 = new Image();
	image3.src = "/images/btn-add-comment-over.gif";
}
function addComment(catID) {
	if(document.getElementById("commentDiv" + catID).style.display == "none")
		document.getElementById("commentDiv" + catID).style.display = "inline";
	var commentWin = window.open("/comments_add.cfm?catID=" + catID, "commentWin", "width=350,height=475");
	commentWin.focus();
}
function addBlogComment(blogID) {
	if(document.getElementById("commentDiv" + blogID).style.display == "none")
		document.getElementById("commentDiv" + blogID).style.display = "inline";
	var commentWin = window.open("/blog_comments_add.cfm?blogID=" + blogID, "commentWin", "width=350,height=475");
	commentWin.focus();
}

function viewMore(itemID) {
	if(document.getElementById("longDiv" + itemID).style.display == "none") {
		document.getElementById("longDiv" + itemID).style.display = "inline";
		document.getElementById("shortDiv" + itemID).style.display = "none";
	}
	else {
		document.getElementById("longDiv" + itemID).style.display = "none";
		document.getElementById("shortDiv" + itemID).style.display = "inline";
	}
}
function recommend(catID) {
	var recommendWin = window.open("/recommend.cfm?catID=" + catID, "recommendWin", "width=350,height=475");
	recommendWin.focus();
}