		var arrayFlash = new Array();
		var arrayFlashList = new Array();
		var myFlashTimer;
		var arrayFlashNumFontColor1 = '#bbbbbb';
		var arrayFlashNumFontColor2 = '#222222';
		var arrayFlashNumBgColor1 = '#666666';
		var arrayFlashNumBgColor2 = '#FF9900';
		var nRefreshSec = 50;
		var nNum3 = 0;
		function startMyFlash()
		{
			iniMyFlash();
			myFlashTimer = window.setInterval(activeMyFlash,nRefreshSec);
		}
		function showMyFlashNow(advid,advlistid)
		{
			var myObjName = arrayFlash[advid][0];
			var nCount = arrayFlash[advid][8];
			for (var i=0;i<nCount;i++)
			{
				var myObj = document.getElementById(myObjName + '_' + i);
				myObj.style.top = '0px';
				myObj.style.left = '0px';
				if (i == advlistid)
				{
					myObj.style.zIndex = 1;
					arrayFlash[advid][4] = i;
				}else{
					myObj.style.zIndex = 0;
				}
			}
			arrayFlash[advid][6] = 0;
			arrayFlash[advid][7] = 0;
			refreshMyFlashNum(advid);
		}
		function refreshMyFlashNum(advid)
		{
			if (arrayFlash[advid][1] == 1)
			{
				var myObjName = arrayFlash[advid][0];
				var nCount = arrayFlash[advid][8];
				for (var i=0;i<nCount;i++)
				{
					var myObj = document.getElementById(myObjName + '_l3_' + i);
					if (i == arrayFlash[advid][4])
					{
						myObj.style.color = arrayFlashNumFontColor2;
						myObj.style.background = arrayFlashNumBgColor2;
					}else{
						myObj.style.color = arrayFlashNumFontColor1;
						myObj.style.background = arrayFlashNumBgColor1;
					}
				}
			}
		}
		function stopMyFlash(nFlashID,nStopFlag)
		{
			arrayFlash[nFlashID][10] = nStopFlag;
		}
		function iniMyFlash()
		{
			//初始化显示
			for (var i=0;i<arrayFlash.length;i++)
			{
				var myObj = document.getElementById(arrayFlash[i][0]);
				var cstr1 = '';
				var cstr2 = '';
				var cFlashStr1 = '';
				var nListID = -1;
				var nNum1 = 0;
				for (var k=0;k<arrayFlashList.length;k++)
				{
					if (arrayFlashList[k][0] == i)
					{
						cstr2 = '<div id="' + arrayFlash[i][0] + '_' + nNum1 + '" style="position:absolute;top:0px;left:0px;width:' + arrayFlash[i][2] + 'px;height:' + arrayFlash[i][3] + 'px;filter:Alpha(opacity=100);-moz-opacity:1;opacity:1;">';
						cstr2 += '<a href="' + arrayFlashList[k][2] + '"  alt="' + arrayFlashList[k][3] + '">';
						cstr2 += '<img src="' + arrayFlashList[k][1] + '" width="' + arrayFlash[i][2] + '" height="' + arrayFlash[i][3] + '"  alt="' + arrayFlashList[k][3] + '" border=0 />';
						cstr2 += '</a>';
						cstr2 += '</div>';
						cstr1 = cstr2 + cstr1;
						//如果要显示序号start
						if (arrayFlash[i][1] == 1)
						{
							if (nNum1 == 0)
							{
								cFlashStr1 = '<div id="' + arrayFlash[i][0] + '_l3_' + nNum1 + '" style="position:relative;float:right;width:20px;height:20px;border:1px #bbbbbb solid;margin-right:5px;background:' + arrayFlashNumBgColor2 + ';text-align:center;font-size:12px;line-height:20px;color:' + arrayFlashNumFontColor2 + ';cursor:pointer;" onclick="showMyFlashNow(' + i + ',' + nNum1 + ')">' + String(nNum1 - 0 + 1) + '</div>' + cFlashStr1;
							}else{
								cFlashStr1 = '<div id="' + arrayFlash[i][0] + '_l3_' + nNum1 + '" style="position:relative;float:right;width:20px;height:20px;border:1px #bbbbbb solid;margin-right:5px;background:' + arrayFlashNumBgColor1 + ';text-align:center;font-size:12px;line-height:20px;color:' + arrayFlashNumFontColor1 + ';cursor:pointer;" onclick="showMyFlashNow(' + i + ',' + nNum1 + ')">' + String(nNum1 - 0 + 1) + '</div>' + cFlashStr1;
							}
						}
							
						nNum1++;
						arrayFlash[i][4] = 0;
						if (nListID < 0) nListID = k;
					}
				}
					
				cstr1 = '<div onmouseover="stopMyFlash(' + i + ',1)" onmouseout="stopMyFlash(' + i + ',0)" id="' + arrayFlash[i][0] + '_l0" style="position:absolute;top:0px;left:0px;width:' + arrayFlash[i][2] + 'px;height:' + arrayFlash[i][3] + 'px;">' + cstr1 + '</div>';
				
				if (arrayFlash[i][1] == 1)
				{
					var nNum2 = arrayFlash[i][3] - 25;
					cstr1 += '<div id="' + arrayFlash[i][0] + '_l3" style="z-index:10;position:absolute;width:' + arrayFlash[i][2] + 'px;height:25px;left:0px;top:' + nNum2 + 'px;">' + cFlashStr1 + '</div>';
				}

				myObj.innerHTML = cstr1;
					//if (i == 0) infoObj1.value = cstr1;
				if (nListID >= 0)
				{
					arrayFlash[i][5] = arrayFlash[i][11];
					arrayFlash[i][6] = 0;
					arrayFlash[i][7] = 0;
					arrayFlash[i][8] = nNum1;
				}
			}
		}
		function activeMyFlash()
		{
			for (var i=0;i<arrayFlash.length;i++)
			{
				if (arrayFlash[i][10] == 0)
				{
					var nCount = arrayFlash[i][8];
					var nShowIdNow = arrayFlash[i][4];
					var nShowIdNext = -1;
					arrayFlash[i][6] = arrayFlash[i][6] - 0 + nRefreshSec;
					if (nCount - nShowIdNow > 1)
					{
						nShowIdNext = nShowIdNow - 0 + 1;
					}else{
						nShowIdNext = 0;
					}
					if (arrayFlash[i][6] >= arrayFlash[i][5] && nShowIdNext != nShowIdNow)
					{
						if (arrayFlash[i][7] == 0)
						{
							arrayFlash[i][5] = 500;
							arrayFlash[i][6] = 0;
							arrayFlash[i][7] = 1;
							//立即刷新
							if (arrayFlash[i][9] == 0)
							{
								for (var j=0;j<nCount;j++)
								{
									var myObj = document.getElementById(arrayFlash[i][0] + '_' + j);
									if (j == nShowIdNext)
									{
										myObj.style.zIndex = 1;
										arrayFlash[i][4] = j;
									}else{
										myObj.style.zIndex = 0;
									}
								}
								arrayFlash[i][5] = arrayFlash[i][11];
								arrayFlash[i][7] = 0;
								arrayFlash[i][10] = 1;
								refreshMyFlashNum(i);
							}
							//向上刷新
							if (arrayFlash[i][9] == 1)
							{
								for (var j=0;j<nCount;j++)
								{
									var myObj = document.getElementById(arrayFlash[i][0] + '_' + j);
									if (j == nShowIdNext)
									{
										myObj.style.zIndex = 2;
										myObj.style.top = arrayFlash[i][3] + 'px';
									}else if (j == nShowIdNow) {
										myObj.style.zIndex = 1;
									}else{
										myObj.style.zIndex = 0;
									}
								}
							}
							//向下刷新
							if (arrayFlash[i][9] == 2)
							{
								for (var j=0;j<nCount;j++)
								{
									var myObj = document.getElementById(arrayFlash[i][0] + '_' + j);
									if (j == nShowIdNext)
									{
										myObj.style.zIndex = 2;
										myObj.style.top = '-' + arrayFlash[i][3] + 'px';
									}else if (j == nShowIdNow) {
										myObj.style.zIndex = 1;
									}else{
										myObj.style.zIndex = 0;
									}
								}
							}
							//向左刷新
							if (arrayFlash[i][9] == 3)
							{
								for (var j=0;j<nCount;j++)
								{
									var myObj = document.getElementById(arrayFlash[i][0] + '_' + j);
									if (j == nShowIdNext)
									{
										myObj.style.zIndex = 2;
										myObj.style.left = arrayFlash[i][2] + 'px';
									}else if (j == nShowIdNow) {
										myObj.style.zIndex = 1;
									}else{
										myObj.style.zIndex = 0;
									}
								}
							}
							//向右刷新
							if (arrayFlash[i][9] == 4)
							{
								for (var j=0;j<nCount;j++)
								{
									var myObj = document.getElementById(arrayFlash[i][0] + '_' + j);
									if (j == nShowIdNext)
									{
										myObj.style.zIndex = 2;
										myObj.style.left = '-' + arrayFlash[i][2] + 'px';
									}else if (j == nShowIdNow) {
										myObj.style.zIndex = 1;
									}else{
										myObj.style.zIndex = 0;
									}
								}
							}
							//淡入淡出
							if (arrayFlash[i][9] == 5)
							{
								for (var j=0;j<nCount;j++)
								{
									var myObj = document.getElementById(arrayFlash[i][0] + '_' + j);
									if (j == nShowIdNext)
									{
										myObj.style.zIndex = 2;
										//myObj.filters.alpha.opacity = 0;
										myObj.style.filter = 'alpha(opacity=0)';
										myObj.style.opacity = 0;
									}else if (j == nShowIdNow) {
										myObj.style.zIndex = 1;
									}else{
										myObj.style.zIndex = 0;
									}
								}
							}
							nNum3 = 0;
						}else{
							for (var j=0;j<nCount;j++)
							{
								var myObj = document.getElementById(arrayFlash[i][0] + '_' + j);
								if (j == nShowIdNext)
								{
									myObj.style.zIndex = 1;
									myObj.style.top = '0px';
									myObj.style.left = '0px';
									//myObj.filters.alpha.opacity = 100;
									myObj.style.filter = 'alpha(opacity=100)';
									myObj.style.opacity = 1;
									arrayFlash[i][4] = j;
								}else{
									myObj.style.zIndex = 0;
								}
							}
							arrayFlash[i][5] = arrayFlash[i][11];
							arrayFlash[i][6] = 0;
							arrayFlash[i][7] = 0;
							refreshMyFlashNum(i);
						}
					}else{
						if (arrayFlash[i][7] == 1)
						{
							var myObj = document.getElementById(arrayFlash[i][0] + '_' + nShowIdNext);
							//向上
							if (arrayFlash[i][9] == 1)
							{
								var nNum2 = myObj.offsetTop - (arrayFlash[i][3] * nRefreshSec / 500);
								if (nNum2 < 0) nNum2 = 0;
								myObj.style.top = nNum2 + 'px';
							}
							//向下
							if (arrayFlash[i][9] == 2)
							{
								var nNum2 = myObj.offsetTop + (arrayFlash[i][3] * nRefreshSec / arrayFlash[i][5]);
								if (nNum2 > 0) nNum2 = 0;
								myObj.style.top = nNum2 + 'px';
							}
							//向左
							if (arrayFlash[i][9] == 3)
							{
								var nNum2 = myObj.offsetLeft - (arrayFlash[i][2] * nRefreshSec / arrayFlash[i][5]);
								if (nNum2 < 0) nNum2 = 0;
								myObj.style.left = nNum2 + 'px';
							}
							//向右
							if (arrayFlash[i][9] == 4)
							{
								var nNum2 = myObj.offsetLeft + (arrayFlash[i][2] * nRefreshSec / arrayFlash[i][5]);
								if (nNum2 > 0) nNum2 = 0;
								myObj.style.left = nNum2 + 'px';
							}
							//淡出
							if (arrayFlash[i][9] == 5)
							{
								//var nNum2 = myObj.filters.alpha.opacity;
								//nNum2 = nNum2 - 0 + (100 * nRefreshSec / arrayFlash[i][5]);
								//myObj.filters.alpha.opacity = nNum2;
								var nNum4 = arrayFlash[i][6]*100/arrayFlash[i][5];
								myObj.style.filter = 'alpha(opacity=' + nNum4 + ')';
								var nNum2 = myObj.style.opacity;
								nNum2 = ((arrayFlash[i][6]-0.01)/arrayFlash[i][5]);
								myObj.style.opacity = nNum2;
							}
						}
					}
				}
			}
		}

