function SD_makeBtn() 
	{
	document.write("<form name='SDBtn' action='");
	document.write(SD_urlStr);
	document.write("' target='_blank' style='margin-top:1px; margin-bottom:1px;'><input name='Btn' type='submit' value='");
	document.write(SD_msgs[1]);
	document.write("' title='");
	document.write(SD_hintStr);
	document.write("' id='SD_Nm' onMouseOver='SD_btnMo();' onMouseout='SD_btnNm();' onMouseDown='SD_btnDn();'></form>");
}

function SD_Flip() { 
	var SD_Timedelay=1500*SD_Btn; // msecs between msgs
	document.SDBtn.Btn.value = SD_msgs[SD_Btn];
	(SD_Btn == (SD_msgs.length - 1)) ? SD_Btn = 1 : SD_Btn++;
	window.setTimeout("SD_Flip()", SD_Timedelay); }
	
function SD_btnMo() {
	document.SDBtn.Btn.id='SD_Mo';}
	
function SD_btnNm() {
	document.SDBtn.Btn.id='SD_Nm';}

function SD_btnDn() {
	document.SDBtn.Btn.id='SD_Dn';}

{	//main part of script
 	var SD_Btn=1; 						//control variable for bFlip function
	var SD_bClr="#E8FDFC"; 				//btn color
	var SD_tClr="#0000E0"; 				//text color
	var SD_bH=27;						//btn height in pixels
	var SD_bW=110;						//btn width in pixels
	var SD_fH=9;							//font size in points
	var SD_urlStr="http://goselfdefence.com" 	//where to go when btn is clicked
	var SD_msgs = new Array();			//btn messages to cycle through
	SD_msgs[1] = "GO Self-Defence";
	SD_msgs[2] = "Practical";
	SD_msgs[3] = "Self-Defense";

	var SD_hintStr = "Gloucester Ottawa Self-Defence: GoSelfDefence.com";
	
	if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion)<5) ){
		document.write("<a href='" +SD_urlStr+"' target='_blank'>");
		document.write("<font color=#000080><strong>["+SD_hintStr+"]</a></font></strong><br>"); }
	else { 	
		document.write("<style>");
		document.write("#SD_Nm {width:"+SD_bW+"; height:"+SD_bH+"; font-family:sans-serif; font-style:italic; font-size:"+SD_fH+"pt; font-weight:bold; background-color:"+SD_bClr+"; color:"+SD_tClr+"; cursor:pointer; }");
		document.write("#SD_Mo {width:"+SD_bW+"; height:"+SD_bH+"; font-family:sans-serif; font-style:italic; font-size:"+SD_fH+"pt; font-weight:bold; background-color:"+SD_tClr+"; color:"+SD_bClr+"; cursor:pointer; }");
		document.write("#SD_Dn {width:"+SD_bW+"; height:"+SD_bH+"; font-family:sans-serif; font-style:italic; font-size:"+SD_fH+"pt; font-weight:bold; background-color:#000000; color:#FFFFFF; cursor:pointer; }");
		document.write("</style>");
		SD_makeBtn();					//call showbtn funtion to create button
		SD_Flip();					//call bFlip function to cycle through messages
	}
}
