
/**
* Flash Object
*
* @author Raymond Benc aka natio <www.raybenc.com>
* @param string sSrc File source
* @param int iWidth width
* @param int iHeight height
*/
function EmbedVideo(sSrc, iWidth, iHeight)
{	
	document.write('<object width="'+ iWidth +'" height="'+ iHeight +'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">');
	document.write('<param name="movie" value="'+ sSrc +'" />');
	document.write('<param name="allowfullscreen" value="true" />');
	document.write('<embed allowfullscreen="true" src="'+ sSrc +'" width="'+ iWidth +'" height="'+ iHeight +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

var childWindowHandles = new Array();

function popUp(URL, WIDTH, HEIGHT, SCROLL, LEFT, TOP, sId)
{	
	day = new Date();
	id = day.getTime();
	eval("childWindowHandles["+childWindowHandles.length+"] = window.open(URL, '" + (sId!= '' ? sId : id) + "','scrollbars="+ SCROLL +",width="+ WIDTH +",height="+ HEIGHT +",left = "+ LEFT +",top = "+ TOP +", resizable = yes');");
}
