// put page title in status bar
window.status = 'Specialists in windows, doors, conservatories, built in furniture, fitted kitchens.';

// menuover
function menuover(id) {
        if (document.getElementById(id).className!='project_img_selected') {
           document.getElementById(id).className='project_img_hover';
           }
        }

// menuout
function menuout(id) {
        if (document.getElementById(id).className!='project_img_selected') {
           document.getElementById(id).className='project_img';
           }
        }

// load project info
function load_proj(id) {
        // load the appropriate image
        document.getElementById('main_img').src='../-/images/lib/portfolio/project'+id+'/img_01.jpg';
        // hide unselected project photos
        var i = 1;
        while (i <=9) {
              var row = document.getElementById('sub_menu_0' + i);
              var display = row.style.display;
              row.style.display = 'none';
              i = i + 1;
        }
        // show the selected project photos
        var row = document.getElementById('sub_menu_'+id);
        var display = row.style.display;
        row.style.display = display == 'none' ? '' : 'none';
        // hide unselected project descriptions
        var i = 1;
        while (i <=9) {
              var row = document.getElementById('desc_0' + i);
              var display = row.style.display;
              row.style.display = 'none';
              i = i + 1;
        }
        // show the selected project descriptions
        var row = document.getElementById('desc_'+id);
        var display = row.style.display;
        row.style.display = display == 'none' ? '' : 'none';
        // deselect additional project image thumbnails...
        var i = 1;
        while (i <= 9) {
               old_id = 'mp_0'+i;
               if (document.getElementById(old_id)) {
                   document.getElementById(old_id).className='project_img';
               }
               i = i + 1;
         }
         // select the current thumbnail
         document.getElementById('mp_'+id).className='project_img_selected';
         // deselect additional project image thumbnails...
         var i = 1;
         while (i <= 5) {
               old_id = 'sp_'+id+'_0'+i;
               if (document.getElementById(old_id)) {
                  document.getElementById(old_id).className='project_img';
               }
               i = i + 1;
         }
         // select the current additional thumbnail
         document.getElementById('sp_'+id+'_01').className='project_img_selected';
        }

// load main page image for portfolio
function load_img(proj_id, img_id, src_id) {
         // load the appropriate image
         document.getElementById('main_img').src='../-/images/lib/portfolio/'+src_id+'.jpg';
         // deselect additional project image thumbnails...
         var i = 1;
         while (i <= 5) {
               id = 'sp_'+proj_id+'_0'+i;
               if (document.getElementById(id)) {
                  document.getElementById(id).className='project_img';
               }
               i = i + 1;
         }
         // select the current thumbnail
         document.getElementById('sp_'+proj_id+'_'+img_id).className='project_img_selected';
         }
