/* image rollovers */ buttons = new Array('about','about_developer','about_benefits','about_process','services','services_design','services_programming','services_consultation','services_hosting','portfolio','portfolio_fullsite','portfolio_fullsite','portfolio_fullsite','portfolio_fullsite','portfolio_fullsite','portfolio_fullsite','portfolio_fullsite','portfolio_fullsite','portfolio_subcontract','contact','contact_','home','home_'); buttonOff = new Array(); buttonOn = new Array(); for(var i=0; i <= buttons.length-1; i++) { buttonOff[buttons[i]] = document.createElement("img"); buttonOff[buttons[i]].src = "images/but_" + buttons[i] + ".gif"; buttonOn[buttons[i]] = document.createElement("img"); buttonOn[buttons[i]].src = "images/but_" + buttons[i] + "_.gif"; } // functions to do the image swapping function swapOn(image) { document[image].src = buttonOn[image].src; } function swapOff(image) { document[image].src = buttonOff[image].src; } // initialise buttons function initButtons(currentSection,currentSubSection) { if (document.images[currentSection]) { swapOn(currentSection); // rewrite the 'Off' state button to the 'On' version buttonOff[currentSection].src = buttonOn[currentSection].src } if (document.images[currentSubSection]) { swapOn(currentSubSection); // rewrite the 'Off' state button to the 'On' version buttonOff[currentSubSection].src = buttonOn[currentSubSection].src } } /* screen shot popup */ function showScreen(image) { window.open('show_screen.htm?image=' + image,'screenShots','width=700,height=500'); }