function drawMainMenu (page) {
    document.write('<ul />')
    
    document.write('<li ')
    if (page == 'home'){
        document.write('class="current-page" ')
    }
    document.write('/><a href="http://rwsoft.method8.net/" />Home</a> </li>')
    
    document.write('<li ')
    if (page == 'software'){
        document.write('class="current-page" ')
    }
    document.write('/><a href="http://rwsoft.method8.net/software" />Software</a> </li>')
    
    document.write('<li ')
    if (page == 'photography'){
        document.write('class="current-page" ')
    }
    document.write('/><a href="http://rwsoft.method8.net/photography" />Photography</a> </li>')
    
    document.write('<li ')
    if (page == 'contact'){
        document.write('class="current-page" ')
    }
    document.write('/><a href="http://rwsoft.method8.net/contact" />Contact</a> </li>')
    
    document.write('<li ')
    if (page == 'blog'){
        document.write('class="current-page" ')
    }
    document.write('/><a href="http://rwsoft.method8.net/blog" />Updates</a> </li>')
    
    document.write('</ul>')
}
function drawFooter () {
    document.write('<p>\
    <a href="http://rwsoft.method8.net/">Home</a> \
    | <a href="http://rwsoft.method8.net/software">Software</a> \
    | <a href="http://rwsoft.method8.net/photography">Photography</a> \
    | <a href="http://rwsoft.method8.net/contact">Contact</a> \
    | <a href="http://rwsoft.method8.net/blog">Updates</a> \
    | <a href="http://rwsoft.method8.net/sitemap">Sitemap</a> \
    | <a href="http://rwsoft.method8.net/search">Site Search</a>\
    </p>')
    document.write('&copy; 2008 Simon Sant Cassia')
}

function openImage(url, width, height, title) {

    var newWindow=window.open('','name','height='+height+',width='+width+',resizable=yes,scrollbars=yes,toolbar=no');
    
    newWindow.document.write('<html><head><title>'+title+'</title></head>');
    
    newWindow.document.write('<body>');
    newWindow.document.write('<img src="'+url+'">');
    newWindow.document.write('</body>');
    newWindow.document.write('</html>');
    
    if (window.focus) {
        newWindow.focus()
    }
}