function breakout(){
    if (window!= top)
      top.location.href=location.href
}

function reverse(s){
    return s.split("").reverse().join("");
}


function doemailaddy(){
            var name = reverse("retsaMbeW");
            var mydom = reverse("ku.oc.odn.cissalcdnalhgih");
            var myat = String.fromCharCode('?'.charCodeAt(0) + 1);
           
            document.write('<a class="link" href="mailto:' + name + myat + mydom + '?subject=Contact from Website">')
            document.write('Click here to email us')
            document.write('</a>')
}

function doemailaddysubscribe(){
            var name = reverse("retsaMbeW");
            var mydom = reverse("ku.oc.odn.cissalcdnalhgih");
            var myat = String.fromCharCode('?'.charCodeAt(0) + 1);
          
            document.write("<a class='link' href='mailto:" + name + myat + mydom + "?subject=Subscribe to Classic Scene&body=subscribe'>")
            document.write('here')
            document.write('</a>')
}

function doemailaddydid(){
            var name = reverse("retsaMbeW");
            var mydom = reverse("ku.oc.odn.cissalcdnalhgih");
            var myat = String.fromCharCode('?'.charCodeAt(0) + 1);
          
            document.write("<a class='link' href='mailto:" + name + myat + mydom + "?subject=Entry for DID 2010&body=Name:<p>Address:<p>Vehicle Make:<br>Vehicle Model:<br>Vehicle Year:'>")
            document.write('here')
            document.write('</a>')
}

function header(){
            document.write('<script type="text/javascript"> breakout(); </script>');
            document.write('<a name="top"></a>');
            document.write('<table background="page/header_title2.jpg" align="center" width="1000" cellpadding="0" cellspacing="0">');
            document.write('  <tr>');
            document.write('    <td width="100" align="center" valign="bottom"></td>');
            document.write('    <td height="133" align="center" valign="bottom"><font type="Arial">');
            document.write('      <script type="text/javascript"> doemailaddy(); </script>');
            document.write('    </td>');
            document.write('    <td width="100" align="center" valign="bottom"></td>');
            document.write('  </tr>');
            document.write('</table>');
}
 
function footer(){
            document.write('<table align="center" width="1000" cellpadding="0" cellspacing="0">');
            document.write('<tr><td bgcolor="white" align="center"><hr color="red" /><font size="1">© Highland Classic Motor Club, 2010</font></td></tr>');
            document.write('</table>');
}
 
function meta(){
            document.write('<title>Highland Classic Motor Club</title>');
            document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
            document.write('<meta name="description" content="Website of the Highland Classic Motor Club">');
            document.write('<meta name="keywords" content="Highland Classic Motor Club, HCMC, Classic Cars, Highland, Classic, Cars, Car, Highlands, Scotland, Inverness, Drive It Day, drive it day">');
            document.write('<meta name="author" content="HCMC 2009">');
            document.write('<meta name="generator" content="notepad">');
}
 
function redirect(){
            document.write('<meta http-equiv="refresh" content="0;url=page1.htm">');
}
function featurecar(){
            var today = new Date();
            var day = today.getDate();
            var index = (day % 14)+1;
                                    var anchor;
            var pic;
                                    anchor='docs/mamc' + index + '.pdf';
                                    pic = 'images/mamc/mamc' + index + '.jpg';
                                   
            document.write('<td class="border" valign="top">');
            document.write('  <table width="350" align="center" cellpadding="5" cellspacing="0">');
            document.write('    <tr>');
            document.write('      <td align="center" >');
            document.write('        <p class="medium">');
            document.write('          <b>Club Cars</b> ');
            document.write('        </p>');
            document.write('      </td> ');
            document.write('      <td align="center" > ');
            document.write('        <a target="_blank" href="' + anchor + '">');
            document.write('          <img height="150" alt="" src="' + pic + '" />');
            document.write('        </a> ');
            document.write('      </td> ');
            document.write('    </tr>');
            document.write('  </table>');
            document.write('</td> ');
 
} 

