	var widget_id = new Array();
	widget_id[0] = "Time";
	widget_id[1] = "Markets";
	widget_id[2] = "Weather";
	widget_id[3] = "Exchange";
	
	function widget_change(val) {
		var showflash = "";
		var flashName = "";
		for (i=0 ; i < widget_id.length ; i++) {
			if(widget_id[i] == val){
				flashName = widget_id[i] + ".swf";

				document.getElementById(widget_id[i]).src = document.getElementById(widget_id[i]).src.replace((i+1)+"_off", (i+1)+"_on");
				
				showflash = "					<object id='Widget_Flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='226' height='72'>"
					+"							<param name='movie' value='/flash/" + flashName + "' />"
					+"							<param name='wmode' value='transparent' />"
					+"							<!--[if !IE]> <-->"
					+"							<object name='Widget_Flash' type='application/x-shockwave-flash' data='/flash/" + flashName + "' width='226' height='72'>"
					+"									<param name='wmode' value='transparent' />"
					+"							</object>"
					+"							<!--> <![endif]-->"
					+"					</object>"
				document.getElementById("widget_display").innerHTML = showflash;
			} else {
				document.getElementById(widget_id[i]).src = document.getElementById(widget_id[i]).src.replace((i+1)+"_on", (i+1)+"_off");
			}
		}
	}
