
function swapImage(num) {
switch (num) {
case 1:
   IMGBIG.src = "http://www.onlyhangers.com/DSN/wwwonlyhangerscom/Content/Images/1WoodHanger_Display.jpg"
   return(false);
case 2:
   IMGBIG.src = "http://www.onlyhangers.com/DSN/wwwonlyhangerscom/Content/Images/2MetalHangers_Display.jpg"
   return(false);
case 3:
   IMGBIG.src = "http://www.onlyhangers.com/DSN/wwwonlyhangerscom/Content/Images/3PlasticHangers_Display.jpg"
   return(false);
case 4:
   IMGBIG.src = "http://www.onlyhangers.com/DSN/wwwonlyhangerscom/Content/Images/4childrenshangers_Display.jpg"
   return(false);
case 5:
   IMGBIG.src = "http://www.onlyhangers.com/DSN/wwwonlyhangerscom/Content/Images/5satinhangers_display.jpg"
   return(false);
case 6:
   IMGBIG.src = "http://www.onlyhangers.com/DSN/wwwonlyhangerscom/Content/Images/6SatinHangers_Display.jpg"
   return(false);
case 7:
   IMGBIG.src = "http://www.onlyhangers.com/DSN/wwwonlyhangerscom/Content/Images/7SlimLineHangers_Display.jpg"
   return(false);
}
}
function imgSwap(pic) {
        var path = pic.src;
        var overState = "_hot";
        var imgStr, hover, type;
        if(path.indexOf(".gif") != -1) {
                type = ".gif";
                imgStr = path.substring(0, path.indexOf(type))
                hover = imgStr + overState + type;
        } else if(path.indexOf(".jpg") != -1) {
                type = ".jpg";
                imgStr = path.substring(0, path.indexOf(type))
                hover = imgStr + overState + type;
        } else {
                alert("Unsupported Image Format.");
                type = hover = null;
                pic.onmouseover = null;
                return;
        }
        pic.src = hover;
        pic.onmouseout = function() {
                path = this.src;
                imgStr = path.substring(0, path.indexOf(overState + type))
                hover = imgStr + type;
                this.src = hover;
                this.onmouseout = null;
 }
}
