﻿// Render flash
function renderFlash(containerObj, movieName, width, height, wmode) {
	var flashContainerInnerHtml = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '">';
	flashContainerInnerHtml += '<param name="movie" value="' + movieName + '" />';
	flashContainerInnerHtml += '<param name="quality" value="high" />';
	flashContainerInnerHtml += '<param name="wmode" value="' + wmode + '" />';
	flashContainerInnerHtml += '<param name="menu" value="false" />';
	flashContainerInnerHtml += '<embed src="' + movieName + '" wmode="' + wmode + '" menu="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>';
	flashContainerInnerHtml += '</object>';
	document.getElementById(containerObj).innerHTML = flashContainerInnerHtml;
}

// Render image
function renderImage(containerObj, imageName, url, newWindow) {
	if (newWindow) var imageContainerInnerHtml = '<a rel="nofollow" href="' + url + '" target="_blank"><img src="' + imageName + '"></a>';
	else var imageContainerInnerHtml = '<a rel="nofollow" href="' + url + '"><img src="' + imageName + '"></a>';
	
	document.getElementById(containerObj).innerHTML = imageContainerInnerHtml;
}
