
function __writeVideoFlash(videoPath, id, videoIndex, xlanguage)
{
	scroll(0,0);

	link = 'http://www.webcom-toronto.com';
	//link = 'http://validation.prospek.ca/webcom-montreal-2009';
	//link = 'http://dev2/webcom-montreal';

	document.getElementById("divVideoFlash").style.display = "";
	if(document.getElementById("div_carousel"))
		document.getElementById("div_carousel").style.display = "none";

	videoPath = link + '/video/xml/' + videoPath;
	videoSkin = link + '/video/skin_webcom_all.swf';

	var s ='';
	s+="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='100%' height='100%' id='player' align='middle'>";
	s+="<param name='allowScriptAccess' value='sameDomain' />";
	s+="<param name='movie' value='" + link + "/video/webcom_video.swf?xmlPath=" + videoPath + "&videoSkin=" + videoSkin + "&id=" + id + "&videoIndex=" + videoIndex + "&xlanguage=" + xlanguage + "' />";
    s+="<param name='WMode' value='transparent'>";
	s+="<param name='quality' value='high' />";
	s+="<param name='bgcolor' value='#ffffff' />";
	s+="<param name='scale' value='showall' />";
	s+="<embed src='" + link + "/video/webcom_video.swf?xmlPath=" + videoPath + "&videoSkin=" + videoSkin + "&id=" + id + "&videoIndex=" + videoIndex + "&xlanguage=" + xlanguage + "' wMode='transparent' quality='high' bgcolor='#ffffff' width='100%' height='100%' name='player' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	s+="</object>";

	document.getElementById("divVideoFlash").innerHTML = s;

	document.body.scrollTop = 0;
	document.body.style.overflow = "hidden";

}

function __closeVideoFlash()
{
	document.getElementById("divVideoFlash").innerHTML = "";
    document.getElementById("divVideoFlash").style.display = "none";
    if(document.getElementById("div_carousel"))
		document.getElementById("div_carousel").style.display = "";
	document.body.style.overflow = "";
}