/*

To embed in HTML

<script type="text/javascript">mvafile = "http://www.myvideoassistant.com/demo/maria-newscript14.flv";</script>
<script type="text/javascript">mvafile = "http://www.myvideoassistant.com";</script>
<script type="text/javascript">mvalocation = "topleft";</script>
<script src="http://www.myvideoassistant.com/myvideoassistant.js" type="text/javascript"></script>

mvafile = FLV file to play
mvafile = URL that will open when flash is clicked
mvalocation = location on the screen (topleft, topright, bottomleft, bottomright) leave null to position inline with HTML

*/

if (typeof mvalocation == 'undefined')
{
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\" name=\"flvplayer\" width=\"200\" height=\"300\" align=\"middle\" id=\"flvplayer\">\n")
document.write("                    <param name=\"allowScriptAccess\" value=\"always\" />\n")
document.write("                        <param name=\"movie\" value=\"http://www.myvideoassistant.com/flvplayer/flvplayer.swf\" />\n")
document.write("						<param name=\"wmode\" value=\"transparent\">\n")
document.write("                        <param name=\"allowScriptAccess\" value=\"always\" />\n")
document.write("                        <param name=\"quality\" value=\"high\" />\n")
document.write("                        <param name=\"bgcolor\" value=\"#ffffff\" />\n")

document.write("                        <param name=\"loop\" value=\"false\" />\n")

document.write("                        <param name=\"FlashVars\" value=\"file="+mvafile+"&link='"+mvalink+"'\" />\n")
document.write("                        <embed src=\"http://www.myvideoassistant.com/flvplayer/flvplayer.swf\" FlashVars=\"file="+mvafile+"&link='"+mvalink+"'\" quality=\"high\" wmode=\"transparent\" bgcolor=\"#ffffff\" loop=\"false\" menu=\"false\" width=\"200\" height=\"300\" name=\"flvplayer\" align=\"middle\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n")
document.write("                    </object>\n")
}
else 
{


if (mvalocation=="topleft")
{
	document.write("<div id=\"divTopLeft\" style=\"position:absolute\">\n")
}
else if (mvalocation=="topright")
{
	document.write("<div id=\"divTopRight\" style=\"position:absolute\">\n")
}
else if (mvalocation=="bottomleft")
{
	document.write("<div id=\"divBottomLeft\" style=\"position:absolute\">\n")
}
else if (mvalocation=="bottomright")
{
	document.write("<div id=\"divBottomRight\" style=\"position:absolute\">\n")
}
else 
{
	document.write("<div id=\"divBottomRight\" style=\"position:absolute\">\n")
}

//document.write("<div id=\"divBottomRight\" style=\"position:absolute\">\n")
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\" name=\"flvplayer\" width=\"340\" height=\"380\" align=\"middle\" id=\"flvplayer\">\n")
document.write("                    <param name=\"allowScriptAccess\" value=\"always\" />\n")
document.write("                        <param name=\"movie\" value=\"http://www.myvideoassistant.com/flvplayer/flvplayer.swf\" />\n")
document.write("						<param name=\"wmode\" value=\"transparent\">\n")
document.write("                        <param name=\"allowScriptAccess\" value=\"always\" />\n")
document.write("                        <param name=\"quality\" value=\"high\" />\n")
document.write("                        <param name=\"bgcolor\" value=\"#ffffff\" />\n")

document.write("                        <param name=\"loop\" value=\"false\" />\n")

document.write("                        <param name=\"FlashVars\" value=\"file="+mvafile+"&link='"+mvalink+"'\" />\n")
document.write("                        <embed src=\"http://www.myvideoassistant.com/flvplayer/flvplayer.swf\" FlashVars=\"file="+mvafile+"&link='"+mvalink+"'\" quality=\"high\" wmode=\"transparent\" bgcolor=\"#ffffff\" loop=\"false\" menu=\"false\" width=\"240\" height=\"380\" name=\"flvplayer\" align=\"middle\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n")
document.write("                    </object>\n")
document.write("</div>\n")



var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
var px = document.layers ? "" : "px";
function JSFX_FloatDiv(id, sx, sy)
{
	var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
	window[id + "_obj"] = el;
	if(d.layers)el.style=el;
	el.cx = el.sx = sx;el.cy = el.sy = sy;
	el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
	el.flt=function()
	{
		var pX, pY;
		pX = (this.sx >= 0) ? 0 : ns ? innerWidth : 
		document.documentElement && document.documentElement.clientWidth ? 
		document.documentElement.clientWidth : document.body.clientWidth;
		pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? 
		document.documentElement.scrollTop : document.body.scrollTop;
		if(this.sy<0) 
		pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? 
		document.documentElement.clientHeight : document.body.clientHeight;
		this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
		this.sP(this.cx, this.cy);
		setTimeout(this.id + "_obj.flt()", 40);
	}
	return el;
}

if (mvalocation=="topleft")
{
	JSFX_FloatDiv("divTopLeft",       10,   10).flt();
}
else if (mvalocation=="topright")
{
	JSFX_FloatDiv("divTopRight", 	  -370,   10).flt();
}
else if (mvalocation=="bottomleft")
{
	JSFX_FloatDiv("divBottomLeft",    10, -370).flt();
}
else if (mvalocation=="bottomright")
{
	JSFX_FloatDiv("divBottomRight", -350, -400).flt();
}
else
{
	JSFX_FloatDiv("divBottomRight", -380, -400).flt();
}
}
