﻿<?xml version="1.0" encoding="utf-8"?>
<snippet name = "Switch Image" description = "A simple image swapping routine." preview="html" type="block">
<insertText location="beforeSelection">
<![CDATA[function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}
]]>
</insertText>
<insertText location="afterSelection"><![CDATA[]]>
</insertText>
</snippet>
