function showFocus(jsonString, imgCount, ctxPath, imgWidth, imgHeight, txtHeight){
	if(jsonString==null) return;
	
	jsonString = "[" + jsonString + "]";
	ctxPath = ctxPath     || "./";
	imgCount = imgCount   || 5;
	imgWidth = imgWidth   || 280;
	imgHeight = imgHeight || 204;
	txtHeight = txtHeight || 20;
	
	var a = eval(jsonString);
	var imgArray = [];
	var txtArray = [];
	var lnkArray = [];
	
	var count = 0;
	for (var i = 0; i < a.length; i++) {
		if (count >= imgCount) {break;}
		if (a[i].img == 'null_400.jpg') {continue;}
		imgArray[imgArray.length] = ctxPath + a[i].img;
		txtArray[txtArray.length] = a[i].txt;
		lnkArray[lnkArray.length] = ctxPath + a[i].lnk;
		count++;
	}
	
	var imgs = imgArray.join("|");
	var txts = txtArray.join("|");
	var lnks = lnkArray.join("|");

	var SpecialFlash_width = imgWidth;
	var SpecialFlash_height = imgHeight;
	var text_height = txtHeight;
	var swf_height = SpecialFlash_height+text_height
		
	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" width="'+ SpecialFlash_width +'" height="'+ swf_height +'">');
	document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write('<param name="movie" value="'+ctxPath+'images/SpecialFlash.swf">');
	document.write('<param name=wmode value=transparent>');
	document.write('<param name="quality" value="high">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="bgcolor" value="#f0f0f0">');
	document.write('<param name=wmode value="opaque">');
	document.write('<param name="FlashVars" value="pics='+imgs+'&links='+lnks+'&texts='+txts+'&borderwidth='+SpecialFlash_width+'&borderheight='+SpecialFlash_height+'&textheight='+text_height+'">');
	document.write('<embed src="images/SpecialFlash.swf" wmode="opaque" FlashVars="pics='+imgs+'&links='+lnks+'&texts='+txts+'&borderwidth='+SpecialFlash_width+'&borderheight='+SpecialFlash_height+'&textheight='+text_height+'" menu="false" bgcolor="#f0f0f0" quality="high" width="'+ SpecialFlash_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  
	document.write('</object>');
}


function showFlashPicturs(jsonString, ctxPath, mcMode, width, height) {
	ctxPath = ctxPath || "./";
	focus_width = width || 591;
	swf_height = height || 52;
	
	jsonString = "[" + jsonString + "]" || "";

	var a = eval(jsonString);

	var imgArray = [];
	var txtArray = [];
	var lnkArray = [];
	if (a.length == 1) {
		imgArray[0] = ctxPath + "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("|");
	

	
	document.write('<object type="application/x-shockwave-flash" data="' + ctxPath + 'images/picRound.swf" width="' + focus_width + '" height="' + swf_height + '" id="VideoPlayback">');
	document.write('<param name="movie" value="' + ctxPath + 'images/picRound.swf" />');
	document.write('<param name="allowScriptAcess" value="sameDomain" />');
	document.write('<param name="quality" value="best" />');
	document.write('<param name="bgcolor" value="#FCF8EC" />');
	document.write('<param name="scale" value="noScale" />');	
	document.write('<param name="FlashVars" value="playerMode=embedded&pics=' + imgs + '&links=' + lnks + '&texts=' + txts +'&mcMode='+mcMode+'">');
	document.write('</object>');
}

