<!--- <CF_CoolImage> Custom Tag, originally by Jeremy Allaire. --->
<!--- Minor changes (addition of isSwappingSupported variable) --->
<!--- made by Nate Weiss May/2001 to allow for non-NN browsers --->

<CFOUTPUT>
<SCRIPT LANGUAGE = "JavaScript">
<!--
  var isSwappingSupported = (document.images);
  
             if (isSwappingSupported)                  // if Netscape 3.0 then preload images 

             {

                #Attributes.IMGName#off = new Image(#Attributes.Height#,#Attributes.Width#);         // preload images activated when mouse moves off menu 
                #Attributes.IMGName#off.src = "#Attributes.SRC#";                     
                
                #Attributes.IMGName#on = new Image(#Attributes.Height#,#Attributes.Width#);          // preload images activated when mouse moves over menu 
                #Attributes.IMGName#on.src = "#Attributes.OverSRC#";
                
                         
                         }


function img_act(imgName)
{
        if (isSwappingSupported) 
        {
        imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
        }
}

function img_inact(imgName)
{
        if (isSwappingSupported) 
        {
        imgOff = eval(imgName + "off.src");
        document [imgName].src = imgOff;
        }
}

//-->

</SCRIPT>

<A HREF="#Attributes.HREF#"
	onMouseover="img_act('#Attributes.IMGName#')" 
	onMouseout="img_inact('#Attributes.IMGName#')"
	<CFIF #ParameterExists(Attributes.Target)# is "Yes">
	Target="#Attributes.Target#"
	</CFIF>
>
	<IMG NAME="#Attributes.IMGName#" SRC="#Attributes.SRC#"
		HEIGHT="#Attributes.Height#" WIDTH="#Attributes.Width#"	
		<CFIF #ParameterExists(Attributes.ALT)# is "Yes">
		ALT="#Attributes.ALT#"
		</CFIF>
		<CFIF #ParameterExists(Attributes.Border)# is "Yes">
		BORDER="#Attributes.Border#"
		</CFIF>
></A>
</CFOUTPUT>

