var em = 'bradpole_dot_pc_at_googlemail_dot_com ; bradpole_dot_pp_at_live_dot_co_dot_uk';
function get_em(){
var re= /_at_/gi;
em = em.replace(re,'@');
var re= /_dot_/gi;
em = em.replace(re,'.');
var the_link="mai" + "lto" +":"+em+"?subject=Bradpole Parish Council Enquiry";
window.location=the_link;
}


var Pic1 = new Array();

Pic1[0] = 'images/Bradpole-banner1.jpg'
Pic1[1] = 'images/Bradpole-banner2.jpg'

var t;
var i;
var j1 = 0;

var p1 = Pic1.length;
var preLoad1 = new Array();
for (i = 0; i < p1; i++) {
preLoad1[i] = new Image();
preLoad1[i].src = Pic1[i];
}

function runSlideShow1() {
if (document.all) {
document.images.SlideShow1.style.filter="blendTrans(duration=2)";
document.images.SlideShow1.filters.blendTrans.Apply();
}
document.getElementById("SlideShow1").src = preLoad1[j1].src;
if (document.all) {
document.images.SlideShow1.filters.blendTrans.Play();
}
j1 = j1 + 1;
if (j1 > (p1 - 1)) j1 = 0;
t = setTimeout('runSlideShow1()', 6000);
} 


function get_terms()
{window.location="termsdisclaimer.php"}


function SI2() {document.getElementById("image2").src="images/DropdownButton.jpg"}
function SI2R() {document.getElementById("image2").src="images/VillagesButton.jpg"}
var menu2=new Array()
menu2[0]='<span><a href="villages.php" class="txt1">VILLAGES</a>'
menu2[1]='<a href="history.php" class="txt1">HISTORY</a></span>'

function SI3() {document.getElementById("image3").src="images/DropdownButton.jpg"}
function SI3R() {document.getElementById("image3").src="images/ParishButton.jpg"}
var menu3=new Array()
menu3[0]='<span><a href="parish.php" class="txt1">PARISH</a>'
menu3[1]='<a href="parishplan.php" class="txt1">PLAN</a>'
menu3[2]='<a href="planning.php" class="txt1">PLANNING</a></span>'

function SI4() {document.getElementById("image4").src="images/DropdownButton.jpg"}
function SI4R() {document.getElementById("image4").src="images/CouncilButton.jpg"}
var menu4=new Array()
menu4[0]='<span><a href="meetings.php" class="txt1">MEETINGS<br>REPORTS<br>NEWS</a>'
menu4[1]='<a href="councillors.php" class="txt1">COUNCIL</a></span>'

function SI5() {document.getElementById("image5").src="images/DropdownButton.jpg"}
function SI5R() {document.getElementById("image5").src="images/DirectoryButton.jpg"}
var menu5=new Array()
menu5[0]='<span><a href="diary.php" class="txt1">DIARY</a>'
menu5[1]='<a href="links.php" class="txt1">WEB LINKS</a></span>'

var menuwidth='90px'
var menubgcolor='#BB9966'
var disappeardelay=250
var hidemenu_onclick="yes"

document.write('<div id="dropmenudiv" style="visibility:hidden; width:'+menuwidth+'; background-color:'+menubgcolor+'" onmouseover="clearhidemenu()" onmouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;}
return totaloffset;}

function showhide(obj, e, visible, hidden, menuwidth){
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
return edgeoffset}

function populatemenu(what){
dropmenuobj.innerHTML=what.join("")}

function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

{showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=-14+getposOffset(obj, "left")
dropmenuobj.y=5+getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"}

return clickreturnvalue()}
function clickreturnvalue(){
return true}

function dynamichide(e){
delayhidemenu()}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
dropmenuobj.style.visibility="hidden"}}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",disappeardelay)}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
