							var cs_images = new Array();
							var cs_thumbs = new Array();
							function registerNewsImage ( id , thumb_off, thumb_on ){
								
								cs_images.push(id);
								var obj = new Object ();
								obj.__id = id;
								obj.on = new Image ();
								obj.off = new Image () ;
								obj.on.src = thumb_on;
								obj.off.src = thumb_off;
								cs_thumbs.push ( obj );
							
							}
							
							function showNewsImage( image ){
								//alert ( 'showNewsImage ' + image.id );
								for(i=0; i< cs_images.length; i++)
								{
									var a = document.getElementById(cs_images[i]);
									var thumb = cs_thumbs [i ].image;
									if(cs_images[i] == image.id)
									{
										a.className = "visible";
										thumb.src = cs_thumbs[ i ].on.src;
										 
									}	
									else
									{
										a.className = "nonvisible";
										thumb.src = cs_thumbs[ i ].off.src;
									}
								}
								
							}
							
							
							function createThumbs () {
								
								var target = document.getElementById ( 'newsthumbnails' ) ;
							
								for ( i=0; i < cs_thumbs.length; i++ )
								{
									
									var obj = new Object () ;
									obj = cs_thumbs [i] ;
									//alert ( obj.__id );
									
									obj.image = document.createElement ( 'img' ) ;
									obj.image.src = obj.off.src;
									obj.image.alt = "Roll over thumbnail to view image";
									obj.image.id = obj.__id;
									if ( i + 1 == cs_thumbs.length ) obj.image.className = 'final';
									obj.image.onmouseover = function () {
										showNewsImage( this ) ;
									};
									target.appendChild ( obj.image ) ;
									
								}
								
								
							}

