                                                                     
                                                                     
                                                                     
                                             
<!--

			var theImages = new Array();
			var FADE_TIME = 9;
			var FADE_OFFSET = 5;
			var IMAGE_COUNT = 115;
			var path = "images/photo_gallery/img_";
			
			for( var j=1; j<IMAGE_COUNT+1; j++ ){
    		    theImages[theImages.length] = new Array(path + j +".jpg", "");	
			}

			
			
			function setOpacity(opacity, obj){
    			if( obj.style.filter != null ){
        		    obj.style.filter = "alpha(opacity="+opacity+");";	
        		    return;
    			}
    			if( obj.style.opacity != null ){
        			var newVal = "";
        			if( opacity == 100 ){
            			newVal = "1.0";
        			}
        			if( opacity < 100 ){
            		    newVal = "." + (opacity<=9?"0":"") + opacity;	
        			}
        			if( opacity == 0 ){
            		    newVal = "0";
        			}
        			info("set:" + opacity);	
        		    obj.style.opacity = newVal;	
        		    return;
    			}    			
			}
			
			function toWholeNumber(decimalVal){
    			var val = (decimalVal * 100) + "";
    			if( val.split(".").length == 2 ){
        		    return val.split(".")[0];
    			}
    			return val;
			}
			
			function getOpacity(obj){
    			var opacity = "0";
    			if( obj.style.filter != null && obj.style.filter != "" ){ 
    			    opacity = obj.style.filter.split("=")[1].split(")")[0];
    			    return new Number(opacity);
			    }
			    if( obj.style.opacity != null && obj.style.opacity != "" ){
    			    opacity = obj.style.opacity;
        			opacity = toWholeNumber(opacity);
        			info("get:" + opacity);
    			    return new Number(opacity);
			    }
			    return new Number(opacity);		    
			}
			
			function getObj(id){
    			var obj = document.getElementById(id);
    		    return obj
			}
			
			function info(msg){
    			//alert(msg);
			}
			
			function fade(toFade,toDoOnOpacityZero,newImgSrc,direction){
				var img = getObj(toFade);
				if( img == null ){
					return;		
				}	
				
				var opacity = new Number(getOpacity(img));
				opacity = opacity+(FADE_OFFSET*direction);
				setOpacity(opacity, img);
				
				if( opacity > 0 && opacity < 100 && direction == -1){
    				var fadeFunction = "fade('"+toFade+"','"+toDoOnOpacityZero+"','"+newImgSrc+"',-1)";
					setTimeout( fadeFunction , FADE_TIME );
					return;
				}else if (opacity == 0) {
                    eval(toDoOnOpacityZero);
                    var fadeFunction = "fade('"+toFade+"','"+toDoOnOpacityZero+"','"+newImgSrc+"',1)";
					setTimeout(fadeFunction, FADE_TIME );	
					return;
				}else if(opacity < 100 && direction == 1){
    				var  fadeFunction = "fade('"+toFade+"','"+toDoOnOpacityZero+"','"+newImgSrc+"',1)";
					setTimeout(fadeFunction, FADE_TIME );	
					return;	
				}
			}
			
			function switchImg(objId,newSrc){
    			var obj = getObj(objId);
    			if( obj.src != null && obj.src.indexOf(newSrc) < 0 ){
        			obj.src = newSrc;
    			}
			}
			
			function loadImagebyOffset(offset){
				var img = getObj("viewer-img");
				if( img == null ){
					return;		
				}
				var nextImg = "";
				var currentPosition;
				for( var i=0; i< theImages.length; i++ ){
    				var imgNameParts = theImages[i][0].split("/");
    				var imgName = imgNameParts[imgNameParts.length-1];
					if( img.src.indexOf( imgName )>=0 ){
    					currentPosition = i;
						break;
					}
				}
				var nextPosition = currentPosition + offset;
				
				if( nextPosition >= theImages.length ){
    				nextPosition = 0;
				}
				
				if( nextPosition < 0 ){
    				nextPosition = theImages.length-1;
				}
				
				nextImg = theImages[nextPosition][0];
				getObj("img-info").innerHTML = theImages[nextPosition][1];	
				switchImg("viewer-img",nextImg);
				//fade("viewer-img","switchImg(\"viewer-img\",\""+nextImg+"\")",nextImg, -1);					
			}
			var PLAY_STATE = "on";
			function play(){
    			if( PLAY_STATE == "on" ){
        		    var playFunction = "play()";	
        		    loadImagebyOffset(1);
        		    setTimeout(playFunction, 2000);
		        }
			}
//-->	
