function si(n) { 
picid=document.getElementById("a"+n);
picid.src="openright.jpg";
}
function so(n) { 
picid=document.getElementById("a"+n);
picid.src="closedright.jpg";
}

function pi(n) { 
var picid=document.getElementById("p"+n);
picid.src="raptor2.gif";
}
function po(n) { 
var picid=document.getElementById("p"+n);
picid.src="raptor.gif";
}

function ki(n) { 
var picid=document.getElementById("k"+n);
picid.src="kidsgofree2.gif";
}
function ko(n) { 
var picid=document.getElementById("k"+n);
picid.src="kidsgofree.gif";
}

function displaybuttons() { 

var before="the return of the Clippers!"
var current="The Race finishes today!"
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

function countdown(yr,m,d){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
  todayy+=1900
  var todaym=today.getMonth()
  var todayd=today.getDate()
  var todaystring=montharray[todaym]+" "+todayd+", "+todayy
  var futurestring=montharray[m-1]+" "+d+", "+yr
  var difference=(Math.round((Date.parse(futurestring)-Date.parse(todaystring))/(24*60*60*1000))*1)
  var dstring=difference.toString()
  if (difference==0)
    document.write(current)
    else if (difference>0){
        for (i=0;i<=dstring.length-1;i++)
            document.write('<img src="c'+dstring.charAt(i)+'.gif">')
        document.write('<br>days to '+before+'<br>&nbsp;')
        }
  }

document.write('<table width=215 cellSpacing=0 cellPadding=0><tbody class=toolbar>');
document.write('<tr><TD><BR><center>');
countdown(2010,7,17)
document.write('</center></td></tr>');
document.write('<tr><TD><IMG id="a0" alt="" src="closedright.jpg" border=0><a href="index.htm" onMouseOver="si(0);" onMouseOut="so(0);" >&nbsp;Home&nbsp;</a></td></tr>');
document.write('<tr><TD><IMG id="a1" alt="" src="closedright.jpg" border=0><a href="visit.htm" onMouseOver="si(1);" onMouseOut="so(1);" >&nbsp;The Dinosaur Experience&nbsp;</a></td></tr>');
document.write('<tr><TD><IMG id="a4" alt="" src="closedright.jpg" border=0><a href="calendar.htm" onMouseOver="si(4);" onMouseOut="so(4);" >&nbsp;Dinosaur Calendar&nbsp;</a></td></tr>');
document.write('<tr><TD><IMG id="a2" alt="" src="closedright.jpg" border=0><a href="bookworkshop.htm" onMouseOver="si(2);" onMouseOut="so(2);" >&nbsp;School Workshops&nbsp;</a></td></tr>');
document.write('<tr><TD><IMG id="a5" alt="" src="closedright.jpg" border=0><a href="news.htm" onMouseOver="si(5);" onMouseOut="so(5);" >&nbsp;Dinosaur News&nbsp;</a></td></tr>');
document.write('<tr><TD><IMG id="a6" alt="" src="closedright.jpg" border=0><a href="moreabout.htm" onMouseOver="si(6);" onMouseOut="so(6);" >&nbsp;Dinosaur Franchise&nbsp;</a></td></tr>');
document.write('<tr><TD><IMG id="a7" alt="" src="closedright.jpg" border=0><a href="contact.htm" onMouseOver="si(7);" onMouseOut="so(7);" >&nbsp;Contact Us&nbsp;</a></td></tr>');
document.write('</tbody></table>');
document.write('<br>');
}

function displayfooter() { 
document.write('<table width=100% cellSpacing=0 cellPadding=5><tbody class=footer>');
document.write('<TR><TD width=16%><a href="http://www.realyorkshire.com" target=_blank><IMG alt="Visit Hull and East Yorkshire" src="vheylogo.jpg" border=0></a></td>');
document.write('<TD width=16%><a href="http://www.welcometohull.co.uk" target=_blank><IMG alt="Welcome to Hull" src="welcometohull.jpg" border=0></a></td>');
document.write('<TD width=16%><a href="http://www.hullbid.co.uk" target=_blank><IMG alt="Hull Business Improvement District" src="hullbidlogo.jpg" border=0></a></td>');
document.write('<TD width=16%><a href="http://www.digyorkshire.com" target=_blank><IMG alt="digyorkshire.com - whats on guide to Yorkshire and the Humber" src="diglogo.gif" border=0></a></td>');
document.write('<TD width=16%><a href="http://www.tourismtrade.org.uk/quality/assessmentstandards/VAQAS/default.asp" target=_blank><IMG alt="Visitor Attraction Quality Assurance Scheme" src="VAQASlogo.jpg" border=0></a></td>');
document.write('<TD width=16%><a href="http://www.clipperroundtheworld.com/" target=_blank><IMG alt="Clipper Round the World" src="clipperlogo.jpg" border=0></a></td>');
document.write('</tr></tbody></table>');
}

function PrintVoucher() {
 top.wRef=window.open('','myconsole',
  'width=400,height=310,left=500,top=300'
   +',menubar=1'
   +',toolbar=0'
   +',status=1'
   +',scrollbars=1'
   +',resizable=1')
 top.wRef.document.writeln(
  '<html><head><title>Dinostar Kids Go Free Voucher</title></head>'
 +'<body bgcolor=white background="trexbackground.gif" onLoad="self.focus()">'
 +'<center><i>To print <a href=# onclick="window.print();return false;">click here</a> or choose File | Print</i>'
 +'<H3>Dinostar Kids Go Free Voucher</H3>' )
 top.wRef.document.writeln('<p>This voucher entitles free entry to the Dinostar exhibition for up to 3 children when accompanied by a full-paying adult.</p>')
 top.wRef.document.writeln('<p>The voucher must be handed in on entry to the exhibition and cannot be used in conjunction with any other offers.</p>')
 top.wRef.document.writeln('<p>Valid until 3rd June 2007.</p>')
 top.wRef.document.writeln('<p>Dinostar, 28-29 Humber Street, Hull, HU1 1TH</p>')
 top.wRef.document.writeln('<p>Tel: (01482) 320424</p>')
 top.wRef.document.writeln('</body></html>')
 top.wRef.document.close()
}
