
<!--
/**
 * show flash with pictures by eval json string
 * @param jsonString as a string with json structure {property1:value1,property2:value2},{},{},{}
 * @param path as a path
 * @author kimsoft
 * @version build 2006/11/02
 * @version build 2006/11/09 fix the code to support firefox
 */
function showFlashPicturs(jsonString, path) {
	path = path || "./";
	jsonString = "[" + jsonString + "]" || "";

	var a = eval(jsonString);

	var imgArray = [];
	var txtArray = [];
	var lnkArray = [];
	if (a.length == 1) {
		imgArray[0] = path + "images/sys/no_img.jpg";
		txtArray[0] = "";
		lnkArray[0] = "";
	} else {
		for (var i = 0; i < a.length; i++) {
			if (a[i].img == null) {
				continue;
			}
			imgArray[imgArray.length] = a[i].img;
			txtArray[txtArray.length] = a[i].txt;
			lnkArray[lnkArray.length] = a[i].lnk;
		}
	}

	var imgs = imgArray.join("|");
	var txts = txtArray.join("|");
	var lnks = lnkArray.join("|");
	var focus_width = 438;	
	var focus_height = 247;
	var text_height = 23;
	var swf_height = focus_height+text_height;

var backColor=0xffbc4b;
var mcTextColor=0x000000;
//var mcWidth=438;
//var mcHeight=270;
//var mcTextHeight=23;
	
	document.write('<object type="application/x-shockwave-flash" data="' + path + 'commons/scripts/ppt1/picnews.swf" width="' + focus_width + '" height="' + swf_height + '" id="VideoPlayback">');
	document.write('<param name="movie" value="' + path + 'commons/scripts/ppt1/picnews.swf" />');
	document.write('<param name="allowScriptAcess" value="sameDomain" />');
	document.write('<param name="quality" value="best" />');
	document.write('<param name="bgcolor" value="#ff0000" />');
	document.write('<param name="scale" value="noScale" />');
	//document.write('<param name="salign" value="TL" />');
	//document.write('<param name="FlashVars" value="playerMode=embedded&pics=' + imgs + '&links=' + lnks + '&texts=' + txts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '" />');
	//document.write('<param name="FlashVars" value="playerMode=embedded&pics=' + imgs + '&links=' + lnks + '&texts=' + txts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '&txtBackColor='+txtBackColor+'&txtFont='+txtFont+'&txtFontsize='+txtFontsize+'&txtFontalign='+txtFontalign+'&txtColor='+txtColor+'&picLinecolor='+picLinecolor+'">');
	document.write('<param name="FlashVars" value="playerMode=embedded&pics=' + imgs + '&links=' + lnks + '&texts=' + txts +'&backColor='+backColor+'&mcTextColor='+mcTextColor+'&mcWidth='+focus_width+'&mcHeight='+swf_height+'&mcTextHeight='+text_height+'">');
	document.write('</object>');
}
//-->