function JZImageFlipper(iDiv, sPicLoc){
            if(!window.JZImageFlipIndex){ window.JZImageFlipIndex=0;}
            if(!window.JZImageFlippers){ window.JZImageFlippers = new Array();}
            
            this.index = window.JZImageFlipIndex ++;
            window.JZImageFlippers[this.index] = this;
            
            this.iCounter=1;                   
            
            var eImg = document.createElement("img");                                            
            eImg.setAttribute("Id","JZImg_" + iDiv.Id);
                                                                              
            this.SetPic = function(){
                eImg.setAttribute("src",sPicLoc + "/" + this.iCounter + ".jpg");
            }
            
            this.NextPic = function(i){                                        
                    this.iCounter = this.iCounter + i;
                   this.SetPic();
                   
                 }; 
            
            sHTML = "<a href='javascript:JZ_NextImage("+ this.index + ",-1);'><--Prev Pic</a>&nbsp&nbsp";
            sHTML += "<a href='javascript:JZ_NextImage("+ this.index + ",1);'>Next Pic--></a><br>";
            iDiv.innerHTML = sHTML;                        
            iDiv.appendChild(eImg);        
            
            this.SetPic();
            
            return this;
            
        }
        
        function JZ_NextImage(index,i){
            var flipper = window.JZImageFlippers[index];
            flipper.NextPic(i);
        }
