context: 	morse: function()	{		if( Morse.running)		{			// select random letter			Morse.morsenowindex = Math.round((Morse.code.length - 1)*Math.random());			// show in background			var morse_mybodys = window.content.document.getElementsByTagName("body");			if( morse_mybodys.length > 0)			{				// foreach body				for( var morse_i = 0; morse_i < morse_mybodys.length; morse_i++)				{					if( morse_mybodys[morse_i])					{						morse_mybodys[morse_i].setAttribute("background", "chrome://morse/skin/" + Morse.letter[Morse.morsenowindex] + ".png");					}				}			}			// try to change each frame's background image			var morse_myframes = window.content.frames;			if( morse_myframes)			{				if( morse_myframes.length > 0)				{					// foreach frame					for( var morse_j = 0; morse_j < morse_myframes.length; morse_j++)					{						var morse_myframebodys = morse_myframes[morse_j].document.getElementsByTagName("body");						// foreach 'body'						for( var morse_k = 0; morse_k < morse_myframebodys.length; morse_k++)						{							if( morse_myframebodys[morse_k])							{								morse_myframebodys[morse_k].setAttribute("background", "chrome://morse/skin/" + Morse.letter[Morse.morsenowindex] + ".png");							}						}					}				}			}				// show in toolbar			Morse.displayletter.setAttribute("value", Morse.letter[Morse.morsenowindex] + " " + Morse.code[Morse.morsenowindex]);			// start beeping			Morse.morseletter(Morse.code[Morse.morsenowindex]);			// time next letter			setTimeout("Morse.morse()", pref_letterpause);		}	},
meta: 8618	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8618/19c99b4fa7d7501560e573d2b1e1c428c058e2c6/overlay.js/clean/src/content/overlay.js