function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible";
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden";
}
// store an interval in a variable

var pause = 4000;

// create and initialize a counter                                    

var n = 0; 

// create an array of image file names                                         

var imgs = new Array (	 "Events Notice/Posters/Civic090310.JPG","Events Notice/Posters/Age130310.JPG",
						 "Events Notice/Posters/OpSun Spring Fayre 200310.jpg","Events Notice/Posters/RNLI200310.jpg",
						 "Events Notice/Posters/StStephens200310.JPG",
						 "Events Notice/Posters/Choral020410.JPG");


// preload all the images

var preload = new Array(); 
                          

for( var i = 1; i < imgs.length; i++ )
{                                            
  preload[i] = new Image();           
  preload[i].src = imgs[i]; 
                                    
}

// a function to display each image for the set interval

function stopinterval()
{
clearTimeout(interval);
}


function rotate()
{ 
 window.document.images.pic.src = imgs[n];                   
  ( n == (imgs.length - 1 )) ? n = 0 : n++;  
  window.setTimeout( "rotate()", pause );                              
}
// specify the onload event-handler

window.onload = rotate; 






// variable to store a window object
var popwin = null;

// a function to open a pop-up window
function htcnotice()
{
  if(popwin == null)
  popwin = window.open( "http://www.hythetowncouncil.gov.uk/Notices/Noticeboard.html", "","top=40,left=125,width=1100,height=800,scrollbars,status");
} 

// a function to open a pop-up window
function another()
{
 window.location= "http://www.hythe-kent.com/Shoreline/fshore3DEC.htm";
} 

// function to close a pop-up window
function close_popup()
{ 
    if(popwin != null){ popwin.close(); popwin = null; }
}

// variable to store a window object
var popwin = null;

// a function to open a pop-up window
function StLMusicEvents()
{
  if(popwin == null)
  popwin = window.open( "http://www.stleonardschurchhythekent.org/Concerts.html", "","top=30,left=150,width=900,height=900,scrollbars,status");
} 


// a function to open a pop-up window
function Tennis()
{
  if(popwin == null)
  popwin = window.open( "http://www.hythetowncouncil.gov.uk/TennisBowls.htm", "","top=30,left=150,width=900,height=900,scrollbars,status");
} 

// a function to open a pop-up window
function Eaton()
{
  if(popwin == null)
  popwin = window.open( "http://www.hythetowncouncil.gov.uk/Photo Presentations2/EatonTP08.htm", "","top=30,left=150,width=900,height=900,scrollbars,status");
}