function addFlash(url, width, height) {
	document
			.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'
					+ width + '" height="' + height + '">');
	document.write('<param name="movie" value="' + url + '"');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="Opaque">');
	document
			.write('<embed src="'
					+ url
					+ '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'
					+ width + '" height="' + height + '"></embed>');
	document.write('</object>');
}
function addFlash_AD(url, width, height, link) {
	try {
		var lastName = url.substring(url.lastIndexOf('.') + 1, url.length);
		if (lastName == 'swf') {
			document
					.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'
							+ width + '" height="' + height + '">');
			document.write('<param name="movie" value="' + url + '"');
			document.write('<param name="quality" value="high">');
			document
					.write('<embed src="'
							+ url
							+ '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'
							+ width + '" height="' + height + '"></embed>');
			document.write('</object>');
		} else if (lastName == 'gif' || lastName == 'jpg') {
			document.write('<a target="_blank" href="' + link
					+ '"><img width="' + width + '" height="' + height
					+ '" src="' + url + '"/></a>');
		} else {
			// alert('广告格式不对,无法显示');
		}
	} catch (ex) {
		// alert("错误: \n" + ex.number + ex.description);
	}
}