function h_makeBtn() 
	{
	document.write("<form name='HKDBtn' action='");
	document.write(h_urlStr);
	document.write("' target='_blank' style='margin-top:1px; margin-bottom:1px;'><input name='Btn' type='submit' value='");
	document.write(h_msgs[1]);
	document.write("' title='");
	document.write(h_hintStr);
	document.write("' id='h_Nm' onMouseOver='h_btnMo();' onMouseout='h_btnNm();' onMouseDown='h_btnDn();'></form>");
}

function h_Flip() { 
	var h_Timedelay=1500*h_Btn; // msecs between msgs
	document.HKDBtn.Btn.value = h_msgs[h_Btn];
	(h_Btn == (h_msgs.length - 1)) ? h_Btn = 1 : h_Btn++;
	window.setTimeout("h_Flip()", h_Timedelay); }
	
function h_btnMo() {
	document.HKDBtn.Btn.id='h_Mo';}
	
function h_btnNm() {
	document.HKDBtn.Btn.id='h_Nm';}

function h_btnDn() {
	document.HKDBtn.Btn.id='h_Dn';}

{	//main part of script
 	var h_Btn=1; 						//control variable for bFlip function
	var h_bClr="#FFFFFF"; 				//btn color
	var h_tClr="#EE0000"; 				//text color
	var h_bH=24;						//btn height in pixels
	var h_bW=140;						//btn width in pixels
	var h_fH=9;							//font size in points
	var h_urlStr="http://gohupkwondo.com" 	//where to go when btn is clicked

	var h_msgs = new Array();			//btn messages to cycle through
	h_msgs[1] = "A Martial Art";
	h_msgs[2] = "for real life!";
	h_msgs[3] = "GO HupKwonDo";

	var h_hintStr = "GoHupKwonDo: A martial art for real life!";
	
	if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion)<5) ){
		document.write("<a href='" +h_urlStr+"' target='_blank'>");
		document.write("<font color=#000080><strong>["+h_hintStr+"]</a></font></strong><br>"); }
	else { 	
		document.write("<style>");
		document.write("#h_Nm {width:"+h_bW+"; height:"+h_bH+"; font-family:sans-serif; font-style:italic; font-size:"+h_fH+"pt; font-weight:bold; background-color:"+h_bClr+"; color:"+h_tClr+"; }");
		document.write("#h_Mo {width:"+h_bW+"; height:"+h_bH+"; font-family:sans-serif; font-style:italic; font-size:"+h_fH+"pt; font-weight:bold; background-color:"+h_tClr+"; color:"+h_bClr+"; }");
		document.write("#h_Dn {width:"+h_bW+"; height:"+h_bH+"; font-family:sans-serif; font-style:italic; font-size:"+h_fH+"pt; font-weight:bold; background-color:#000000; color:#FFFFFF; }");
		document.write("</style>");
		h_makeBtn();					//call showbtn funtion to create button
		h_Flip();					//call bFlip function to cycle through messages
	}
}

