function printMenu(thispage) {
// Prints menu
document.write('<table cellpadding=0 cellspacing=0 border=0 height=18><tr>');

if (thispage=='home') { document.write('<td><a href="/index.html"><img src="/images/mhome1.gif" alt="" width=52 height=18 border=0></a></td>') }
else { document.write('<td><a href="/index.html"><img src="/images/mhome0.gif" alt="" width=52 height=18 border=0 onMouseOver="this.src=\'/images/mhome1.gif\'" onMouseOut="this.src=\'/images/mhome0.gif\'"></a></td>') }

document.write('<td width=1><img src="/images/mask.gif" alt="" width=1 height=18 border=0></td>');

if (thispage=='products') { document.write('<td><a href="/products.html"><img src="/images/mproducts1.gif" alt="" width=144 height=18 border=0></a></td>') }
else { document.write('<td><a href="/products.html"><img src="/images/mproducts0.gif" alt="" width=144 height=18 border=0 onMouseOver="this.src=\'/images/mproducts1.gif\'" onMouseOut="this.src=\'/images/mproducts0.gif\'"></a></td>') }

document.write('<td width=1><img src="/images/mask.gif" alt="" width=1 height=18 border=0></td>');

if (thispage=='support') { document.write('<td><a href="/support.html"><img src="/images/msupport1.gif" alt="" width=116 height=18 border=0></a></td>') }
else { document.write('<td><a href="/support.html"><img src="/images/msupport0.gif" alt="" width=116 height=18 border=0 onMouseOver="this.src=\'/images/msupport1.gif\'" onMouseOut="this.src=\'/images/msupport0.gif\'"></a></td>') }

document.write('<td width=1><img src="/images/mask.gif" alt="" width=1 height=18 border=0></td>');

if (thispage=='successstories') { document.write('<td><a href="/successstories.html"><img src="/images/msuccessstories1.gif" alt="" width=108 height=18 border=0></a></td>') }
else { document.write('<td><a href="/successstories.html"><img src="/images/msuccessstories0.gif" alt="" width=108 height=18 border=0 onMouseOver="this.src=\'/images/msuccessstories1.gif\'" onMouseOut="this.src=\'/images/msuccessstories0.gif\'"></a></td>') }

document.write('<td width=1><img src="/images/mask.gif" alt="" width=1 height=18 border=0></td>');

if (thispage=='why') { document.write('<td><a href="/why.html"><img src="/images/mwhy1.gif" alt="" width=46 height=18 border=0></a></td>') }
else { document.write('<td><a href="/why.html"><img src="/images/mwhy0.gif" alt="" width=122 height=18 border=0 onMouseOver="this.src=\'/images/mwhy1.gif\'" onMouseOut="this.src=\'/images/mwhy0.gif\'"></a></td>') }

document.write('<td width=1><img src="/images/mask.gif" alt="" width=1 height=18 border=0></td>');

if (thispage=='contact') { document.write('<td><a href="/contact.html"><img src="/images/mcontact-us1.gif" alt="" width=81 height=18 border=0></a></td>') }
else { document.write('<td><a href="/contact.html"><img src="/images/mcontact-us0.gif" alt="" width=81 height=18 border=0 onMouseOver="this.src=\'/images/mcontact-us1.gif\'" onMouseOut="this.src=\'/images/mcontact-us0.gif\'"></a></td>') }

document.write('<td width=1><img src="/images/mask.gif" alt="" width=1 height=18 border=0></td>');

if (thispage=='web') { document.write('<td><a href="http://www.lmi-uk.com/index.html"><img src="/images/mweb1.gif" alt="" width=168 height=18 border=0></a></td>') }
else { document.write('<td><a href="http://www.lmi-uk.com/index.html"><img src="/images/mweb0.gif" alt="" width=168 height=18 border=0 onMouseOver="this.src=\'/images/mweb1.gif\'" onMouseOut="this.src=\'/images/mweb0.gif\'"></a></td>') }
document.write('</tr></table>');
}

function testy() {
// Displays random testimonial from the following
testimonials = new Array(
'"LMI-UK gives me a good balance in life - I truly feel that I am in control of the job, and the job is not controlling me!"<br>&nbsp;<br><strong>Anne Charmer<br>LMI-UK Franchisee<br>North West Region</strong>',
'"We all experience pivotal moments in our lives, experiences that when you look back on them years later still register with such clarity they seem like only yesterday. I had one of these pivotal moments 7 years ago."<br>&nbsp;<br><strong>Mark Tonks<br>LMI-UK Business Development Manager<br>and LMI-UK Franchisee<br>West Midlands Region</strong>',
'"My LMI-UK franchise has created for me an opportunity to live and work around my family commitments. My business enables me to support my wife and five children, and their support has been invaluable."<br>&nbsp;<br><strong>Michael Levy<br>LMI-UK Franchisee<br>North West Region</strong>',
'"Factors that convinced me to join LMI-UK was the excellent support, training, and on-going development to ensure my new business becomes successful as well as the proven processes to win business with an excellent product that has been tailored to the UK market."<br>&nbsp;<br><strong>Michael Leach<br>LMI-UK Franchisee<br>South East Region</strong>',
'"Having worked with big brands for many years I realised the power and effect they have, so when I discovered Leadership Management UK and the prospect of a franchisee opportunity, everything made sense."<br>&nbsp;<br><strong>Neale Carter<br>LMI-UK Franchisee<br>Scotland</strong>',
'"I wanted to join a professional organisation that was passionate and committed to their industry. I also wanted an organisation which matched my requirements and were committed to the success of the team. I soon realised LMI-UK met my criteria."<br>&nbsp;<br><strong>Clive Mason<br>LMI-UK Franchisee<br>West Midlands Region</strong>'
);


var testy = Math.floor(Math.random() * testimonials.length);
document.write('<p class=testimonial>'+testimonials[testy]+'<br>&nbsp;<br><a href="/successstories.html" class=menu><strong>More success stories...</strong></a></p>');
}


function mainpic() {
// Displays random menu pic from the following
piclist = new Array('1', '2', '3', '4', '5', '6');

var picno = Math.floor(Math.random() * piclist.length);
document.write('<img src="/images/franchise-pic'+piclist[picno]+'.jpg" alt="Franchise Opportunity" class="centreimage">');
}


function highlight_page_topnav() {
    var topnav = document.getElementById('topnav');
    var li_list = topnav.getElementsByTagName('li');
    for (var i = 0; i < li_list.length; i++) {
        var this_link = li_list[i].getElementsByTagName('a')[0];
        if (window.location.href == this_link.href) {
            this_link.className = 'highlighted';
        }
    }
}
