	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups",

		// Theme options
		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		
		editor_selector : "mceAdvanced",
		// Example word content CSS (should be your site CSS) this one removes paragraph margins
		content_css : "{T_TEMPLATE_FOLDER}/{T_TEMPLATE}/word.css",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	});

tinyMCE.init({
mode : "textareas",
theme : "simple",
editor_selector : "mceSimple"
});


//detect browser:
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) browserVer = "1";
else if (browserName == "Microsoft Internet Explorer" && browserVer == 4) browserVer = "1";
else browserVer = "2";

//preload images:
if (browserVer == 1) {
a1 = new Image(88,39);
a1.src = "templates/sports/images/button1.png";
a2 = new Image(88,39);
a2.src = "templates/sports/images/button11.png";
a3 = new Image(198,39);
a3.src = "templates/sports/images/button2.png";
a4 = new Image(198,39);
a4.src = "templates/sports/images/button21.png";
a5 = new Image(61,39);
a5.src = "templates/sports/images/button3.png";
a6 = new Image(61,39);
a6.src = "templates/sports/images/button31.png";
a7 = new Image(167,39);
a7.src = "templates/sports/images/button4.png";
a8 = new Image(167,39);
a8.src = "templates/sports/images/button41.png";
a9 = new Image(131,39);
a9.src = "templates/sports/images/button5.png";
a10 = new Image(131,39);
a10.src = "templates/sports/images/button51.png";
a11 = new Image(119,39);
a11.src = "templates/sports/images/button6.png";
a12 = new Image(119,39);
a12.src = "templates/sports/images/button61.png";
a13 = new Image(80,39);
a13.src = "templates/sports/images/button7.png";
a14 = new Image(80,39);
a14.src = "templates/sports/images/button71.png";
a15 = new Image(80,39);
a15.src = "templates/sports/images/button8.png";
a16 = new Image(80,39);
a16.src = "templates/sports/images/button81.png";
}

//image swapping function:
function hiLite(imgDocID, imgObjName, comment) {
if (browserVer == 1) {
document.images[imgDocID].src = eval(imgObjName + ".src");
window.status = comment; return true;
}}