function contactLinks() {
  document.write('<p>&nbsp;<br /><img src="images/hr2.png" /></p>');
  document.write('<table border="0" width="90%" align="center"><tr><td background="images/tr50.png"><center>');
  document.write('<img src="images/contactus.png" width="90" height="40" alt="Contact Us!" />&nbsp;');
  document.write('<a href="mailto:hiex.comics@gmail.com"><img src="images/email.png" border="0" width="90" height="40" /></a>');
  document.write('<a target="0" href="http://www.myspace.com/hiexcomics"><img src="images/myspace.png" border="0" width="90" height="40" /></a>');
  document.write('<a target="0" href="http://www.facebook.com/group.php?gid=29584549770"><img src="images/facebook.png" border="0" width="90" height="40" /></a>');
  document.write('<a target="0" href="http://twitter.com/hiexcomiccon"><img src="images/twitter.png" border="0" width="90" height="40" /></a>');
  document.write('<a href="about.htm#newslettersignup"><img src="images/newsletter.png" border="0" width="90" height="40" /></a></center>');
  document.write('</td></tr></table>');
  document.write('<p><img src="images/hr2.png" /><br />&nbsp;</p>');
}


function banner(url, image, alt) {
  this.url = url
  this.image = image
  this.alt = alt
}

bannerInfo = new Array()

bannerInfo[0] = new banner("http://www.judgeminty.com", "judgeminty.jpg", "Judge Minty - Taking Law to the Lawless")
bannerInfo[1] = new banner("http://www.lforlloyd.com", "kickback.gif", "David Lloyd")
bannerInfo[2] = new banner("http://www.turmoilcolour.com", "jbh.jpg", "John Higgins - Comic Artist")
bannerInfo[3] = new banner("http://www.futurequake.co.uk", "fqp.jpg", "FutureQuake")
bannerInfo[4] = new banner("http://www.forbiddenplanet.co.uk", "fpi.jpg", "Forbidden Planet")
bannerInfo[5] = new banner("http://www.children1st.org.uk", "parentline.jpg", "ParentLine")
bannerInfo[6] = new banner("http://www.darkhorse.com", "darkhorse.jpg", "Dark Horse")
bannerInfo[7] = new banner("http://www.quantumprophecy.com", "shbanner468x60-a.jpg", "The New Heroes: Superhuman")
bannerInfo[8] = new banner("http://www.2000adonline.com", "2000ad.jpg", "2000 AD - The Galaxy's Greatest Comic")
bannerInfo[9] = new banner("http://www.termight.co.uk/hiex.php", "termightreplicas.jpg", "Termight Replicas - Bringing Your Heroes into the Third Dimension")
bannerInfo[10] = new banner("http://www.mongoosepublishing.com", "mongoose.jpg", "Mongoose Publishing")
bannerInfo[11] = new banner("http://www.mvm-films.com", "mvm.jpg", "MVM Entertainment")
bannerInfo[12] = new banner("http://www.titanbooks.com", "titanbooks.jpg", "Titan Books")
bannerInfo[13] = new banner("http://www.cinebook.co.uk", "cinebook.jpg", "Cinebook")
bannerInfo[14] = new banner("http://scarycaravan.blogspot.com/", "ghostboy.jpg", "Ghostboy")
bannerInfo[15] = new banner("http://www.sideshowcollectibles.com", "sideshow.jpg", "Sideshow Collectibles")
bannerInfo[16] = new banner("http://www.lastexittonowhere.com", "letn.jpg", "Last Exit to Nowhere")
bannerInfo[17] = new banner("http://www.universalpictures.co.uk/", "universal.jpg", "Universal Pictures")
//bannerInfo[15] = new banner("http://www..com", ".jpg", "")

function showRandomBanner() {
  var ix = Math.floor(Math.random() * (bannerInfo.length))
  st = '<p>&nbsp;</p><table width="488" height="80" align="center" cellspacing="10" cellpadding="0" border="0" background="banners/bannerbg.png"><tr><td>';
  if (bannerInfo[ix].url != '') {
    st += '<a target="_blank" href="' + bannerInfo[ix].url + '">'
  }
  st += '<img src="banners/' + bannerInfo[ix].image + '" border="0" alt="banner"/>'
  if (bannerInfo[ix].url != '') {
    st += '</a>'
  }
  st += '</td></tr></table><p>&nbsp;</p>';
//alert(st)
  document.write(st)
}


function showItem(item, on) {
  document.write('<tr><td>')
  document.write('<a href="'+item+'.htm"><img src="images/m'+item+'.jpg" width=123 height=24 border=0 alt="'+item+'"></a></td>');
  document.write('<td><img src="images/m');
  if (on == 1) {
    document.write('dot');
  } else {
    document.write('blank');
  }
  document.write('.jpg"></td></tr>');
}

var event = new Date("Mar 27 2010 00:00:01");

c0 = new Image(); c0.src = "j0.png";
c1 = new Image(); c1.src = "j1.png";
c2 = new Image(); c2.src = "j2.png";
c3 = new Image(); c3.src = "j3.png";
c4 = new Image(); c4.src = "j4.png";
c5 = new Image(); c5.src = "j5.png";
c6 = new Image(); c6.src = "j6.png";
c7 = new Image(); c7.src = "j7.png";
c8 = new Image(); c8.src = "j8.png";
c9 = new Image(); c9.src = "j9.png";
cb = new Image(); cb.src = "jb.png";
cdays = new Image(); cdays.src="jdays.png";
cday = new Image(); cday.src="jday.png";

function displayTimer(d, h, m, s) {
  if (!document.images) return;

  if (d < 100) document.d00.src = cb.src;
  else document.d00.src = eval("c"+Math.floor(d/100)+".src");

  d = d%100;

  if (d < 9) document.d0.src = c0.src;
  else document.d0.src = eval("c"+Math.floor(d/10)+".src");  
  document.images.d1.src = eval("c"+(d%10)+".src");

  if (d == 1) document.day.src = cday.src;
  else document.day.src = cdays.src;

  if (h < 9) document.h0.src = c0.src;
  else document.h0.src = eval("c"+Math.floor(h/10)+".src");  
  document.images.h1.src = eval("c"+(h%10)+".src");

  if (m < 9) document.m0.src = c0.src;
  else document.m0.src = eval("c"+Math.floor(m/10)+".src");  
  document.images.m1.src = eval("c"+(m%10)+".src");

  if (s < 9) document.s0.src = c0.src;
  else document.s0.src = eval("c"+Math.floor(s/10)+".src");  
  document.images.s1.src = eval("c"+(s%10)+".src");
}



function showCountdownTimer() {
  if (!document.images) return;
  var Digital = new Date();
  var hours = Digital.getHours();
  var minutes = Digital.getMinutes();
  var seconds = Digital.getSeconds();

  now = new Date();
  now = event - now;

  if (now > 0) {
    seconds = now / 1000;
    seconds = Math.floor(seconds);
    minutes = seconds / 60;
    minutes = Math.floor(minutes);
    hours = minutes / 60;
    hours = Math.floor(hours);
    days = hours / 24;
    days = Math.floor(days);
    hours = hours % 24;
    minutes = minutes % 60;
    seconds = seconds % 60;
//document.write(days," ", hours,":",minutes,":",seconds);
//document.write("<p>");
//document.write("before");
    displayTimer(days, hours, minutes, seconds);
//document.write("after");

    setTimeout("showCountdownTimer()", 1000);
  } else {
    // blank out timer images

    document.d00.src = cb.src;
    document.d0.src = cb.src;
    document.d1.src = cb.src;
    document.day.src = cb.src;
    document.h0.src = cb.src;
    document.h1.src = cb.src;
    document.m0.src = cb.src;
    document.m1.src = cb.src;
    document.s0.src = cb.src;
    document.s1.src = cb.src;
    document.c1.src = cb.src;
    document.c2.src = cb.src;
    document.coming.src = chere.src
  }

}


function showContents(selected) {
  document.write('<div class="contents">');
  document.write('<table id="toc" width="150" height="439" border="0" cellpadding="0" cellspacing="0">');
  document.write('<tr><td colspan=2><img src="images/contents-top.jpg" width=150 height=108 alt=""></td></tr>');
  showItem('home', selected==1);
  showItem('news', selected==2);
  showItem('about', selected==3);
  showItem('guests', selected==4);
  showItem('exhibitors', selected==5);
  showItem('events', selected==6);
  showItem('auction', selected==7);
  showItem('galleries', selected==8);
  showItem('info', selected==10);
  showItem('howwhere', selected==11);
  showItem('clippings', selected==14);
  showItem('shop', selected==15);
  showItem('thanks', selected==16);
  document.write('<tr><td colspan="2"><img src="images/contents01_21.jpg" width=150 height=37 alt=""></td></tr>');
  document.write('</table>');
  document.write('<img src="jb.png" width=8 height=12 name=d00>');
  document.write('<img src="jb.png" width=8 height=12 name=d0>');
  document.write('<img src="jb.png" width=8 height=12 name=d1> ');
  document.write('<img src="jb.png" width=28 height=12 name=day> ');
  document.write('<img src="jb.png" width=8 height=12 name=h0>');
  document.write('<img src="jb.png" width=8 height=12 name=h1>');
  document.write('<img src="jc.png" width=5 height=12 name=c1>');
  document.write('<img src="jb.png" width=8 height=12 name=m0>');
  document.write('<img src="jb.png" width=8 height=12 name=m1>');
  document.write('<img src="jc.png" width=5 height=12 name=c2>');
  document.write('<img src="jb.png" width=8 height=12 name=s0>');
  document.write('<img src="jb.png" width=8 height=12 name=s1>');
  document.write('</div>');
  document.write('<div class="topbar">');
  document.write('<img src="top.jpg" alt="" />');
  document.write('</div>');
  showCountdownTimer();
}








