var klkSwf = 'http://dev.portadas.terra.com.mx/includes/flash/AtomoTexts.swf';
		
		// JavaScript helper required to detect Flash Player PlugIn version information
		function GetSwfVer(){
			var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
			var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
			var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
		
			// NS/Opera version >= 3 check for Flash plugin in plugin array
			var flashVer = -1;
			
			if (navigator.plugins != null && navigator.plugins.length > 0) {
				if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
					var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
					var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;			
					var descArray = flashDescription.split(" ");
					var tempArrayMajor = descArray[2].split(".");
					var versionMajor = tempArrayMajor[0];
					flashVer = versionMajor;
				}
			}
			// MSN/WebTV 2.6 supports Flash 4
			else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
			// WebTV 2.5 supports Flash 3
			else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
			// older WebTV supports Flash 2
			else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
			else if ( isIE && isWin && !isOpera ) {
				var version;
				var axo;
				try {
					// version will be set for 7.X or greater players
					axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
					version = axo.GetVariable("$version");
					flashVer = 7;
				} 
				catch (e7) {	
					try {
						// version will be set for 6.X players only
						axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
						version = axo.GetVariable("$version");
						flashVer = 6;
					} 
					catch (e6) { 
						try {
							// version will be set for 4.X or 5.X player
							axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
							version = axo.GetVariable("$version");
							flashVer = 5;
						}
						catch (e5) { 
							try {
								// version will be set for 3.X player
								axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
								version = "WIN 3,0,18,0";
								flashVer = 3;
							}
							catch (e3) { 
								try {
									// version will be set for 2.X player
									axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
									flashVer = 2;
								} 
								catch (e2) { }
							}
						}
					}
				}
			}
			return flashVer;
		}


		
	
		function WriteKlavika(texto, w, h, fc, bc, lc) {
			var str = '';
			if (GetSwfVer()>0 ) {
				str = '<embed height="' + h + '" width="' + w + '" src="' + klkSwf + '" quality="best" flashvars="txt=' + texto;
				str+= '&amp;textcolor=#' + fc + '&amp;linkcolor=#' + lc + '&amp;w=' + w + '&amp;h=' + h + '" wmode="" bgcolor="#';
				str+= bc + '" sifr="true" type="application/x-shockwave-flash" style="width:' + w + 'px; height: ' + h + 'px;"/>';
				
				
				/*str = '<embed height="' + h + '" width="' + w + '" src="' + klkSwf + '" quality="best" flashvars="txt=' + texto;
				str+= '&amp;textcolor=#' + fc + '&amp;linkcolor=#' + lc + '&amp;w=' + w + '&amp;h=' + h + '" wmode="" bgcolor="#';
				str+= bc + '" sifr="true" type="application/x-shockwave-flash" style="width:' + w + 'px; height: ' + h + 'px;"/>';
				*/
				
				/*str = '<embed height="' + h + '" width="' + w + '" src="' + klkSwf + '" quality="best" flashvars="txt=' + texto;
				str+= '&amp;w=' + w + '&amp;h=' + h + '" wmode="" bgcolor="#';
				str+= bc + '" sifr="true" type="application/x-shockwave-flash" style="width:' + w + 'px; height: ' + h + 'px;"/>';
				*/
				
			}
			else {
				str = '<span style="width:' + w + 'px; font-size:' + h + 'px;color:' + fc + ';background-color:' + bc + ';font-family:Arial;' + ';font-weight:lighter;">' + texto + '</span>';
				/*str =  texto;*/
			}
			document.write(str);
		}
		
		