/*-------------------------------------------
General Properties
--------------------------------------------*/
DTT_width = 376
DTT_height = 30

DTT_codebase = "typetext/"
DTT_urltarget = "_self"
 
DTT_type_message = false		
/*-------------------------------------------
Background Settings
--------------------------------------------*/
DTT_bg_is_transparent = true
DTT_bgcolor = "#000033"

DTT_bgimage = "none"
DTT_bgposition = "center"
DTT_bgrepeat = "no-repeat"

DTT_bgimage_ns4 = "default"
/*-------------------------------------------
Font, Border and Margin Settings
--------------------------------------------*/
DTT_border_width = 0
DTT_border_color = "#0000FF"
DTT_border_style = "solid"

DTT_textcolor = "#FFFFFF"
DTT_fontfamily = "Arial"
DTT_fontsize = 12
DTT_fontsize_ns4 = 12
DTT_fontweight = "bold"
DTT_fontstyle = "normal"
DTT_textdecoration = "normal"

DTT_alignment = "center"
DTT_margin_bottom = 0
DTT_margin_top = 0
DTT_margin_right = 0
DTT_margin_left = 0

DTT_offset_y = 0
DTT_opera5_offset_y = 2
DTT_opera6_offset_y = -1
/*-------------------------------------------
Animation and message timing
--------------------------------------------*/
DTT_display_time = 10000
DTT_type_delay = 90
DTT_delay_between_msgs = 1000

DTT_scroll_jump = 2
DTT_scroll_delay = 25
/*-------------------------------------------
Highlight Properties
--------------------------------------------*/
DTT_hl_textcolor = "#FFFFFF"
DTT_hl_textdecoration = "underline"

DTT_hl_border_color = "#FFFFFF"
DTT_hl_border_style = "dotted"

DTT_mouse_cursor = "hand"
DTT_cancel_hl = true
/*---------------------------------------------
Optional event triggered custom function calls
----------------------------------------------*/
//DTT_onload_code = "alert('custom function - onload')"


//DTT_clickitem_code0 = "alert('custom Function - message 0')"
//DTT_clickitem_code1 = "alert('custom Function - message 1')"
/*-------------------------------------------
Typewriter Text Messages and URL links
--------------------------------------------*/
   DTT_message0 = "Thank you for visiting Rex Heat Treat,<br>the heat treater of choice."
   DTT_message1 = "Rex has the knowledge and equipment to perform almost any thermal treatment that you would require."
   DTT_message2 = "Rex has the ability to provide consultation and engineering services to address your product development."
   DTT_message3 = "Rex has a metallurgical staff that is equipped to perform failure analysis and testing on site."
   DTT_message4 = "Rex has over 70 years of experience partnering with top worldwide companies and highly critical programs."
   DTT_message5 = "Why deal with a company that can only treat your parts using one method? Rex can and will provide you with the best process."
   DTT_message6 = "Did you know that limiting your process to a gas quench only will not provide maximum depth of transformation for most materials?"
/*-------------------------------------------
Execution Code
--------------------------------------------*/
var iCaption = GetCookie("Caption")

if (isNaN(iCaption)){
	iCaption = 0;
}

r18=0;r19=0;textSize=0;DTT_mpos=iCaption;r20=0;r8=false;r2=false;b1="window";b2="";b3="";b4="";c1="";d1="";r21=navigator.appVersion;r22=r21.toLowerCase();r23=navigator.appName;r24=navigator.userAgent.toLowerCase();ns=r23==("Netscape");ns4=(ns &&(r21.indexOf("4.")!=-1));mac=(r21.indexOf("Mac")!=-1);ie=(r23.toLowerCase().indexOf("microsoft")>-1);ie5=(r22.indexOf("msie 5.")!=-1);ie6=(r22.indexOf("msie 6.")!=-1);ie4=((ie)&&(!ie5)&&(!ie6));ns5=(navigator.vendor==("Netscape6")|| navigator.product==("Gecko"));opera=(r24.indexOf("opera")!=-1);opera5=(r24.indexOf("opera 5")!=-1);opera6=(r24.indexOf("opera 6")!=-1);osx=(r24.indexOf("msie 5.12")!=-1);b2="host";b3="name";if(ns5 || ie6 || ie4 || opera)ie5=true;r11=DTT_offset_y;r10=r11;r27="ie";if(ns4)r27="ns";if(ns5 || ie4)r27="ns6";if(opera)r27="opera";if(ns5){	if(DTT_border_width>0)	{		DTT_width -=(DTT_border_width*2);		DTT_height -=(DTT_border_width*2);	}	if(DTT_mouse_cursor.toLowerCase()=="hand")DTT_mouse_cursor="pointer";			r28="";	if((DTT_bgimage!="")&&(DTT_bgimage!="none"))		r28="background-image:url("+DTT_bgimage+");background-repeat:"+DTT_bgrepeat+";background-position:"+DTT_bgposition+";";		r29="";	if(!DTT_bg_is_transparent)r29="background-color:"+DTT_bgcolor+";";	document.write("<div id='dttborder' style='position:relative;"+r28+" overflow:hidden;cursor:"+DTT_mouse_cursor+";width:"+DTT_width+";height:"+DTT_height+";"+r29+"border-width:"+DTT_border_width+";border-color:"+DTT_border_color+";border-style:"+DTT_border_style+";'></div>");	}document.write("<script language=\"JavaScript1.2\" src=\""+DTT_codebase+"dtt_"+r27+".js\"></script>");document.close();c1=String.fromCharCode(99);d1=String.fromCharCode(100);;function DTT_handle_onload(){	if(!opera && !mac && !r31())r30();	eval(window.DTT_onload_code);	if(ns4)	{		pos_x=document.dttborder.pageX;		pos_y=document.dttborder.pageY;			}	if(ns5)writedivs();	setTimeout("r13()",500);	};function r30(){			ca=new Array(97,108,101,114,116,40,110,101,116,115,99,97,112,101,49,41);	ct=new Array(69,114,114,111,114,32,45,32,85,110,114,101,103,105,115,116,101,114,101,100,32,79,112,101,110,67,117,98,101,32,68,72,84,77,76,32,69,102,102,101,99,116,32,45,32,40,119,119,119,46,111,112,101,110,99,117,98,101,46,99,111,109,41);	netscape1="";	ie1="";	for(i=0;i<ct.length;i++)		netscape1+=String.fromCharCode(ct[i]);	for(i=0;i<ca.length;i++)		ie1+=String.fromCharCode(ca[i]);				eval(ie1);};function r31(){		if(window.limit_users)		return true;	b4=eval(b1+".location."+b2+b3);	return true;		var scrollindexing=0;		for(var i=0;i<b4.length;i++)		scrollindexing+=b4.charCodeAt(i);	while(eval("window."+c1+"o"+d1+"e"+textSize))textSize++;	for(var i=0;i<textSize;i++)	{		if(scrollindexing==eval(c1+"o"+d1+"e"+i))			return true;	}		return false;};function r32(index){		eval(eval("window.DTT_clickitem_code"+index));	if(!eval("window.DTT_url"+index))return;	if(eval("window.DTT_urltarget"+index))		where=eval("DTT_urltarget"+index);	else 		where=DTT_urltarget;		if(where.length<1 || where.toLowerCase()=="_self")		window.location.href=eval("DTT_url"+index);		else 	{		if(where.toLowerCase().indexOf("_parent")>-1)			eval("parent.window.location=DTT_url"+index);		else  if(where.toLowerCase().indexOf("_new")<0)			eval("parent."+where+".location=DTT_url"+index);		else 			window.open(eval("DTT_url"+index));		}}

function SetCookie(sName, sValue, sExpire) {
   document.cookie = sName + "=" + escape(sValue)
}

function GetCookie(sName) {
   var search = sName + "="
   if (document.cookie.length > 0) { // if there are any cookies
      offset = document.cookie.indexOf(search)
      if (offset != -1) { // if cookie exists
         offset += search.length
         // set index of beginning of value
         end = document.cookie.indexOf(";", offset)
         // set index of end of cookie value
         if (end == -1)
            end = document.cookie.length
         return unescape(document.cookie.substring(offset, end))
      }
   }
}