function theDate() {
day = new Array("Sun","Mon","Tues","Weds","Thurs","Fri","Sat")
month = new Array("January","February","March","April","May","June","July","August","September","October","November","December")
today = new Date()
thisDay = day[today.getDay()]
thisDate = today.getDate()
thisMonth = month[today.getMonth()]
thisYear = today.getFullYear()
thisHour = today.getHours()
thisMin = today.getMinutes()
document.dateDisplay.Date.value=thisDay+', '+thisDate+' '+thisMonth+' '+thisYear
}

function Mopener(A)
{
if (A!='Not available')
{window.open('mailto:'+A)}
}

function Wopener(A)
{window.open(A)}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

function checker() {checkAdd()
if (document.signup.email.value=='')
	{alert('Please complete the e-mail address')
	document.signup.email.focus()}
	else
	{listProc()}
}

function checkerS() {checkAdd()
if (document.signup.email.value=='')
	{alert('Please complete the e-mail address')
	document.signup.email.focus()}
	else
	{listProcS()}
}

function checkerQ() {checkAdd()
if (document.subQuery.email.value=='')
	{alert('Please complete the e-mail address')
	document.subQuery.email.focus()}
	else
	{listProcQ()}
}

function listProc(){
document.signup.subject.value=document.signup.optTo.options[document.signup.optTo.selectedIndex].value
}

function listProcS(){
document.signup.subject.value=document.signup.optTo.options[document.signup.optTo.selectedIndex].value
document.signup.recipient.value='ilex-bb.'+document.signup.discipline.options[document.signup.discipline.selectedIndex].value+'@listservices.co.uk'
}

function listProcQ(){
document.subQuery.recipient.value='mentor.'+document.subQuery.discipline.options[document.subQuery.discipline.selectedIndex].value+'@listservices.co.uk'
}

function checkAdd(){
checkError = ""
theString = document.signup.email.value
if (theString != "")
{for (loop=0; loop<theString.length; loop++)
	if (theString.charAt(loop) == "@")
	{checkError = ""
	break}
	else
	{checkError = "Error"}
if (checkError == "Error")
	{alert('This address may not be valid.  It doesn\'t contain an @')
	document.signup.email.focus()}
}}

function memberAppStatus() {
if (document.signup.Status.value=="Fellow" || document.signup.Status.value=="Member")
{document.signup.Fee.value="£5.00"}
else
{document.signup.Fee.value="£3.00"}
}

function memberBB() {
if (document.signup.Member.value=="Yes")
{document.signup.Fee.value="£25.00"}
else
{document.signup.Fee.value="£40.00"}
}

function memberAppPrint() {
theTitle=document.signup.foa_title.options[document.signup.foa_title.selectedIndex].value
theForename=document.signup.Forename.value
theSurname=document.signup.Surname.value
theHome=document.signup.Home_address.value
thePostcode=document.signup.Postcode.value
theHometel=document.signup.Home_tel.value
theEmail=document.signup.email.value
theEmployer=document.signup.Employer.value
theEmpAdd=document.signup.Employer_address.value
theEmpPC=document.signup.Employer_postcode.value
theDX=document.signup.DX.value
theWemail=document.signup.Work_email.value
theWorktel=document.signup.Work_tel.value
theWorkfax=document.signup.Work_fax.value
theILEXno=document.signup.ILEX_no.value
theStatus=document.signup.Status.options[document.signup.Status.selectedIndex].value
theFee=document.signup.Fee.value
theArea=document.signup.Practice_area.value
theCommittee=document.signup.Committee.options[document.signup.Committee.selectedIndex].value
document.write('<html>')
document.write('<head>')
document.write('<title>Branch subscription</title>')
document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">')
document.write('<link rel="stylesheet" href="liex.css">')
document.write('</head>')
document.write('<body bgcolor=#ffffff>')
document.write('<TABLE width=500 align=left border=0><TR><TD align=left><IMG src=images/small-bb-logo.jpg></TD><TD vAlign=center align=left style=\"FONT-WEIGHT: bold; FONT-SIZE: 11pt; COLOR: #ff0066; FONT-FAMILY: arial, Helvetica, sans-serif\">SUBSCRIPTION APPLICATION FORM</TD></TR></TABLE>')
document.write('<P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><HR width=50% size=1 align=left>')
document.write('<SPAN class=body style=CURSOR:pointer;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=history.go(-1)>Back</SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=body style=CURSOR:hand;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=window.location.reload();self.print()>Print</SPAN>')
document.write('<HR width=50% size=1 align=left>')
document.write('<P class=printout><B>Title:</B> '+theTitle+'&nbsp;&nbsp;&nbsp;&nbsp;<B>Forename:</B> '+theForename+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Surname:</B> '+theSurname+'</P>')
document.write('<P class=printout><B>Home Address:</B> '+theHome+'</P>')
document.write('<P class=printout><B>Postcode:</B> '+thePostcode+'</P>')
document.write('<P class=printout><B>Home Telephone:</B> '+theHometel+'</P>')
document.write('<P class=printout><B>Home e-mail:</B> '+theEmail+'</P>')
document.write('<P class=printout><B>Employer:</B> '+theEmployer+'</P>')
document.write('<P class=printout><B>Employer\'s Address:</B> '+theEmpAdd+'</P>')
document.write('<P class=printout><B>Postcode:</B> '+theEmpPC+'</P>')
document.write('<P class=printout><B>DX:</B> '+theDX+'</P>')
document.write('<P class=printout><B>Work e-mail:</B> '+theWemail+'</P>')
document.write('<P class=printout><B>Work Telephone:</B> '+theWorktel+'&nbsp;&nbsp;&nbsp;<B>Work fax:</B> '+theWorkfax+'</P>')
document.write('<P class=printout><B>ILEX Membership No.:</B> '+theILEXno+'</P>')
document.write('<P class=printout><B>Status:</B> '+theStatus+'&nbsp;&nbsp;&nbsp;<B>Fee:</B> '+theFee+'</P>')
document.write('<P class=printout><B>Area of practice:</B> '+theArea+'</P>')
document.write('<P class=printout><B>Willing to join the committee:</B> '+theCommittee+'</P>')
document.write('<HR width=50% size=1 align=left>')
document.write('<P class=body>Please return these details marked &quot;PRIVATE & CONFIDENTIAL&quot; with your<BR>remittance \(Cheques payable to &quot;Birmingham & District ILEX&quot;\) to:</P>')
document.write('<P class=body>Mr Kevin Hall<br>')
document.write('Excalibur Investigations Limited, Camelot Chambers, Quickjay Buildings, 1 Bilston Street, Willenhall, West Midlands  WV13 2AW</P>')
document.write('<SPAN class=body style=CURSOR:pointer;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=history.go(-1)>Back</SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=body style=CURSOR:hand;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=window.location.reload();self.print()>Print</SPAN>')
document.write('<HR width=50% size=1 align=left>')
document.write('</head>')
document.write('</html>')
}

function revisionAppPrint() {
theSet=document.signup.Course.options[document.signup.Course.selectedIndex].value
if (theSet=="1")
{theCourse="Level 3 (Year 1)"
theDate="3 May 2003"};
if (theSet=="2")
{theCourse="Level 3 (Year 2)"
theDate="10 May 2003"};
if (theSet<1 || theSet>2){theCourse="Please click Back and pick a course"};
theTitle=document.signup.foa_title.options[document.signup.foa_title.selectedIndex].value
theForename=document.signup.Forename.value
theSurname=document.signup.Surname.value
theHome=document.signup.Home_address.value
thePostcode=document.signup.Postcode.value
theHometel=document.signup.Home_tel.value
theEmail=document.signup.email.value
theEmployer=document.signup.Employer.value
theEmpAdd=document.signup.Employer_address.value
theEmpPC=document.signup.Employer_postcode.value
theDX=document.signup.DX.value
theWemail=document.signup.Work_email.value
theWorktel=document.signup.Work_tel.value
theWorkfax=document.signup.Work_fax.value
theStatus=document.signup.Status.options[document.signup.Status.selectedIndex].value
theFee=document.signup.Fee.value
theMember=document.signup.Member.value
document.write('<html>')
document.write('<head>')
document.write('<title>Revision Day Application</title>')
document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">')
document.write('<link rel="stylesheet" href="liex.css">')
document.write('</head>')
document.write('<body bgcolor=#ffffff>')
document.write('<TABLE width=500 align=left border=0><TR><TD align=left><IMG src=images/small-bb-logo.jpg></TD><TD vAlign=center align=left style=\"FONT-WEIGHT: bold; FONT-SIZE: 11pt; COLOR: #ff0066; FONT-FAMILY: arial, Helvetica, sans-serif\">REVISION DAY APPLICATION</TD></TR></TABLE>')
document.write('<P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><HR width=50% size=1 align=left>')
document.write('<SPAN class=body style=CURSOR:hand;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=history.go(-1)>Back</SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=body style=CURSOR:hand;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=window.location.reload();self.print()>Print</SPAN>')
document.write('<HR width=50% size=1 align=left>')
document.write('<P class=printout><B>Course:</B> '+theCourse+'</P>')
document.write('<P class=printout><B>Date:</B> '+theDate+'</P>')
document.write('<P class=printout><B>Title:</B> '+theTitle+'&nbsp;&nbsp;&nbsp;&nbsp;<B>Forename:</B> '+theForename+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Surname:</B> '+theSurname+'</P>')
document.write('<P class=printout><B>Home Address:</B> '+theHome+'</P>')
document.write('<P class=printout><B>Postcode:</B> '+thePostcode+'</P>')
document.write('<P class=printout><B>Home Telephone:</B> '+theHometel+'</P>')
document.write('<P class=printout><B>Home e-mail:</B> '+theEmail+'</P>')
document.write('<P class=printout><B>Employer:</B> '+theEmployer+'</P>')
document.write('<P class=printout><B>Employer\'s Address:</B> '+theEmpAdd+'</P>')
document.write('<P class=printout><B>Postcode:</B> '+theEmpPC+'</P>')
document.write('<P class=printout><B>DX:</B> '+theDX+'</P>')
document.write('<P class=printout><B>Work e-mail:</B> '+theWemail+'</P>')
document.write('<P class=printout><B>Work Telephone:</B> '+theWorktel+'&nbsp;&nbsp;&nbsp;<B>Work fax:</B> '+theWorkfax+'</P>')
document.write('<P class=printout><B>Member of Birmingham & District Branch:</B> '+theMember+'</P>')
document.write('<P class=printout><B>Status:</B> '+theStatus+'&nbsp;&nbsp;&nbsp;<B>Fee:</B> '+theFee+'</P>')
document.write('<HR width=50% size=1 align=left>')
document.write('<P class=body>Please return these details with your<BR>remittance (Cheques payable to \"Birmingham & District ILEX\") to:</P>')
document.write('<P class=body>Sandra James F.Inst.L.Ex.<BR>Palser Grossman<BR>120 Edmund Street<BR>Birmingham<BR>B3 2ER</P>')
document.write('<P>Tel: 0121 234 0405<BR>Fax: 0121 236 1132<BR>Email: <A href="mailto:s.james@palsergrossman.com">s.james@palsergrossman.com</A></P>')
document.write('<SPAN class=body style=CURSOR:hand;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=history.go(-1)>Back</SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=body style=CURSOR:hand;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=window.location.reload();self.print()>Print</SPAN>')
document.write('<HR width=50% size=1 align=left>')
document.write('</head>')
document.write('</html>')
}

function fiveasidePrint() {
theTeam=document.signup.Teamname.value
theManager=document.signup.Manager.value
theAddress=document.signup.Address.value
thePostcode=document.signup.Postcode.value
theTel=document.signup.Telephone.value
theEmail=document.signup.email.value
theDX=document.signup.DX.value
theFax=document.signup.Fax.value
document.write('<html>')
document.write('<head>')
document.write('<title>5-a-side football competition registration</title>')
document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">')
document.write('<link rel="stylesheet" href="liex.css">')
document.write('</head>')
document.write('<body bgcolor=#ffffff>')
document.write('<TABLE cellSpacing=0 cellPadding=0 width="500" border=0 align=left><TR><TD vAlign=center align=left><IMG src=images/small-bb-logo.jpg></TD><TD align=middle vAlign=center><STRONG class=body>in association with</STRONG></TD><TD align=right><IMG src=images/clilogo1.gif border=0></TD></TR></TABLE>')
document.write('<P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><HR width=50% size=1 align=left>')
document.write('<SPAN class=body style=CURSOR:hand;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=history.go(-1)>Back</SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=body style=CURSOR:hand;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=window.location.reload();self.print()>Print</SPAN>')
document.write('<HR width=50% size=1 align=left>')
document.write('<P class=printout><B>Team Name:</B> '+theTeam+'</P>')
document.write('<P class=printout><B>Manager:</B> '+theManager+'</P>')
document.write('<P class=printout><B>Address:</B> '+theAddress+'</P>')
document.write('<P class=printout><B>Postcode:</B> '+thePostcode+'</P>')
document.write('<P class=printout><B>DX:</B> '+theDX+'</P>')
document.write('<P class=printout><B>Telephone: </B> '+theTel+'</P>')
document.write('<P class=printout><B>Fax:</B> '+theFax+'</P>')
document.write('<P class=printout><B>E-mail:</B> '+theEmail+'</P>')
document.write('<HR width=50% size=1 align=left>')
document.write('<P class=body>Please enclose a fee of £170 \(to include £100 donation to charity\)<BR>and make cheques payable to <B>Birmingham & District ILEX</B> </P>')
document.write('<P class=body>Send this form and your cheque to:<BR>Mr Duncan Smith<br>Glaisyers Solicitors<br>10 Rowchester Court<br>Printing House Street<br>Birmingham<BR>B4 6DZ</P>')
document.write('<P class=body><P>Tel: 0121-233 2971<BR>Email: <a href=\"mailto:duncansmith@glaisyers.co.uk\">duncansmith@glaisyers.co.uk</a></P>')
document.write('<SPAN class=body style=CURSOR:hand;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=history.go(-1)>Back</SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=body style=CURSOR:hand;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=window.location.reload();self.print()>Print</SPAN>')
document.write('<HR width=50% size=1 align=left>')
document.write('</head>')
document.write('</html>')
}

function setCourse() {
courseVal = document.signup.Date.options[document.signup.Date.selectedIndex].value
document.signup.Course.selectedIndex = courseVal
setDesc(courseVal)
}

function setDate() {
dateVal = document.signup.Course.options[document.signup.Course.selectedIndex].value
document.signup.Date.selectedIndex = dateVal
setDesc(dateVal)
}

function setDesc(v) {
if (v>0)
{document.signup.Desc.value='Description:\nCovers all elements of Law Year '+v+' and Practice Year '+v+'\nHandouts provided plus useful revision techniques.'}
else
{document.signup.Desc.value=''}
}

function annualballPrint() {
theTickets=document.signup.tickets.value + ' ticket\(s\), plus '+ document.signup.mTickets.value+' concession ticket\(s\), total cost £'+document.signup.totalPrice.value
theName=document.signup.name.value
theFirm=document.signup.firmname.value
theAddress=document.signup.Address.value
thePostcode=document.signup.Postcode.value
theTel=document.signup.Telephone.value
theEmail=document.signup.email.value
theDX=document.signup.DX.value
theFax=document.signup.Fax.value
theBBgroup=document.signup.BB_Group_members.value
theOthergroup=document.signup.Other_Group_members.value
theDietreqs=document.signup.Dietary_reqs.value
theSize=document.signup.Group_size.value
theVeges=document.signup.Vegetarians.value
thePrice=document.signup.totalPrice.value
document.write('<html>')
document.write('<head>')
document.write('<title>Annual Ball Reservation Form</title>')
document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">')
document.write('<link rel="stylesheet" href="liex.css">')
document.write('</head>')
document.write('<body bgcolor=#ffffff>')
document.write('<TABLE cellSpacing=0 cellPadding=0 width="500" border=0 align=left><TR><TD vAlign=center align=left><IMG src=images/small-bb-logo.jpg></TD><TD align=middle vAlign=center>&nbsp;</TD><TD align=right><p><strong>Sponsored By St Philip&rsquo;s Chambers</strong></p></TD></TR></TABLE>')
document.write('<P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><HR width=50% size=1 align=left>')
document.write('<SPAN class=body style=CURSOR:pointer;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=history.go(-1)>Back</SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=body style=CURSOR:pointer;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=window.location.reload();self.print()>Print</SPAN>')
document.write('<HR width=50% size=1 align=left>')
document.write('<P class=printout><B>Please reserve:</B> '+theTickets+'</P>')
document.write('<P class=printout><B>Name:</B> '+theName+'</P>')
document.write('<P class=printout><B>Firm:</B> '+theFirm+'</P>')
document.write('<P class=printout><B>Address:</B> '+theAddress+'</P>')
document.write('<P class=printout><B>Postcode:</B> '+thePostcode+'</P>')
document.write('<P class=printout><B>DX:</B> '+theDX+'</P>')
document.write('<P class=printout><B>Telephone: </B> '+theTel+'</P>')
document.write('<P class=printout><B>Fax:</B> '+theFax+'</P>')
document.write('<P class=printout><B>E-mail:</B> '+theEmail+'</P>')
document.write('<P class=printout><B>Birmingham Branch group members are:</B> '+theBBgroup+'</P>')
document.write('<P class=printout><B>Other group members are:</B> '+theOthergroup+'</P>')
document.write('<P class=printout><B>Total group size:</B> '+theSize+'</P>')
document.write('<P class=printout><B>Number of vegetarians:</B> '+theVeges+'</P>')
document.write('<P class=printout><B>Other dietary requirements are:</B> '+theDietreqs+'</P>')
document.write('<HR width=50% size=1 align=left>')
document.write('<P class=body>Please make cheque for £' +thePrice+ ' payable to <B>Birmingham & District ILEX</B> </P>')
document.write('<P class=body>Send this form and your cheque to:<BR><P>Please send to:<BR>Derek Larkin, 34 Merriman\'s Hill Road Worcester WR3 8LE<br><em>or to</em><br>Derek Larkin c/o Rose, Williams &amp; Partners DX 10442 Wolverhampton<br>(<strong>marked "Private &amp; Confidential"</strong>)</P>')
document.write('<SPAN class=body style=CURSOR:hand;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=history.go(-1)>Back</SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=body style=CURSOR:hand;color:#FF0066 onmouseover=this.style.textDecorationUnderline=\'true\' onmouseout=this.style.textDecorationUnderline=\'\' onclick=window.location.reload();self.print()>Print</SPAN>')
document.write('<HR width=50% size=1 align=left>')
document.write('</head>')
document.write('</html>')
}

function newWin(w) {
window.open(w,'','width=550,height=600,scrollbars=1,left=175,top=20,screenX=175,screenY=20')
}

p=0
function Pass(v) {
np=p+v
if (np==22 || np==-1)
{np=0}
getPic='images/footy/football'+np+'.jpg'
document.showPics.footPic.src=getPic
p=np
}

function savePic() {
picsrc0=document.showPics.footPic.src
picsrc1=picsrc0.replace(/\/thumbs/, "")
picWin = window.open('','picDisplay','width=400,height=400')
picWin.document.write('<html><head><title>5-a-side football</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="liex.css"></head><body bgcolor="#ffffff" class="base" topMargin=10>')
picWin.document.write('<P><IMG src='+picsrc1+'></P>')
picWin.document.write('<P><STRONG>To save this picture, right-click on it and <BR>select [Save Picture As...]</STRONG></P>')
picWin.document.write('<P><INPUT type=button value=Close onclick=window.close\(\)></P>')
picWin.document.write('</BODY></HTML>')
picWin.location.reload()
}

function Shoot() {
picsrc0=document.showPics.footPic.src
picsrc1=picsrc0.replace(/\/thumbs/, "")
picWin = window.open('','picDisplay','width=400,height=325')
picWin.document.write('<html><head><title>5-a-side football</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="liex.css"></head><body bgcolor="#ffffff" class="base" topMargin=10>')
picWin.document.write('<P><IMG src='+picsrc1+'></P>')
picWin.document.write('<P><INPUT type=button value=Print onclick=window.print\(\)>&nbsp;&nbsp;<INPUT type=button value=Save onclick="alert(\'Right-click on the picture and select [Save Picture As...]\')">&nbsp;&nbsp;<INPUT type=button value=Close onclick=window.close\(\)></P>')
picWin.document.write('</BODY></HTML>')
picWin.location.reload()
}

function goSlogin() {
w='http://www.corefields.co.uk/ilex-bb/students'
window.open(w,'','width=600,height=600,scrollbars=1')
}

function displayPic(p) {
p1='images/ball/'+p
document.picShow.showPic.src=p1
}

function bannerPic() {
np=p+Math.round(Math.random()*10)
np1=np+1
if (np==12 || np==0)
{np=1}
np2=np1+1
np3=np2+1
np4=np3+1
if (np1>=12)
{np1=np-6}
if (np2>=12)
{np2=np-5}
if (np3>=12)
{np3=np-4}
if (np4>=12)
{np4=np-3}
document.theBanner.Pic1.src='images/banner'+np+'.jpg'
document.theBanner.Pic2.src='images/banner'+np1+'.jpg'
document.theBanner.Pic3.src='images/banner'+np2+'.jpg'
document.theBanner.Pic4.src='images/banner'+np3+'.jpg'
document.theBanner.Pic5.src='images/banner'+np4+'.jpg'
}

p=1
function ball04(v) {
np=p+v
if (np==16 || np==-1)
{np=1}
getPic='images/ball2005/'+np+'.jpg'
document.showPics.ballPic.src=getPic
p=np
}

function getEvent(frag,Arrow) {
	clearArrows()
	document.getElementById('arrow'+Arrow).src="images/brightarrow.jpg"
	document.getElementById('cell'+Arrow).className="pinktext"
	document.getElementById('eventsFrame').src="eventsframe.htm#"+frag
	}
	
function clearArrows() {
for (A=1; A<=12; A++) {
	document.getElementById('arrow'+A).src="images/fadedarrow.jpg"
	document.getElementById('cell'+A).className=""}
			}