// JavaScript Document

function swf_move(width, visual_height, text_height, pics, links, texts, ID, src) {
	if (width == null) return 1;
	if (visual_height == null) return 2;
	if (text_height == null) return 3;
	if (pics == null) return 4;
	src = src == null ? 'focus.swf' : src;
	var height = visual_height + text_height;
	var swf = '\r\n<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + width + '" height="' + height + '">\r\n';
	swf += '  <param name="allowScriptAccess" value="sameDomain" />\r\n  <param name="movie" value="' + src + '" />\r\n  <param name="quality" value="high" />\r\n  <param name="bgcolor" value="#FFFFFF" />\r\n  <param name="menu" value="false" />\r\n  <param name="wmode" value="opaque" />\r\n';
	swf += '  <param name="FlashVars" value="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + width + '&borderheight=' + visual_height + '&textheight=' + text_height + '" />\r\n';
	swf += '  <embed src="' + src + '" wmode="opaque" FlashVars="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + width + '&borderheight=' + visual_height + '&textheight=' + text_height + '" menu="false" bgcolor="#F0F0F0" quality="high" width="' + width + '" height="' + visual_height + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\r\n</object>\r\n';
	if (ID == null) document.write(swf); else document.getElementById(ID).innerHTML = swf;
}

