//MOUSE OVER //main navigation function handleHomeOver() { document.b1.src="Images/home_button_hover.png"; } function handleServicesOver() { document.b2.src="Images/services_button_hover.png"; } function handleClientsOver() { document.b5.src="Images/client_button_hover.png"; } function handleContactOver() { document.b3.src="Images/contact_button_hover.png"; } function handleFtpOver() { document.b4.src="Images/ftp_button_over.png"; } function handleFtpOver2() { document.b4.src="Images/ftp_button_over.jpg"; } //portfolio navigation function handlePrintOver() { //document.p1.src="Images/print_button_hover.png"; var location = window.location.pathname; switch (location) { case "/print1.php": case "/print2.php": case "/print3.php": case "/print4.php": case "/print5.php": case "/print6.php": document.p1.src="Images/print_button_down.png"; break default: document.p1.src="Images/print_button_hover.png"; break } } function handleWebOver() { var location = window.location.pathname; switch (location) { case "/web1.php": case "/web2.php": case "/web3.php": case "/web4.php": case "/web5.php": case "/web6.php": case "/index.php": case "/services.php": case "/contact.php": case "/sitemap.php": case "/": document.p2.src="Images/web_button_down.png"; break default: document.p2.src="Images/web_button_hover.png"; break } } function handleDvdOver() { var location = window.location.pathname; switch (location) { case "/dvd1.php": case "/dvd2.php": case "/dvd3.php": case "/dvd4.php": case "/dvd5.php": case "/dvd6.php": document.p3.src="Images/dvd_button_down.png"; break default: document.p3.src="Images/dvd_button_hover.png"; break } } function handleNewslettersOver() { var location = window.location.pathname; switch (location) { case "/newsletter1.php": case "/newsletter2.php": case "/newsletter3.php": case "/newsletter4.php": case "/newsletter5.php": case "/newsletter6.php": document.p4.src="Images/newsletters_button_down.png"; break default: document.p4.src="Images/newsletters_button_hover.png"; break } } function handleCdOver() { var location = window.location.pathname; switch (location) { case "/cdrom1.php": case "/cdrom2.php": case "/cdrom3.php": case "/cdrom4.php": case "/cdrom5.php": case "/cdrom6.php": document.p5.src="Images/cdrom_button_down.png";; break default: document.p5.src="Images/cdrom_button_hover.png"; break } } function handleCorpIdOver() { var location = window.location.pathname; switch (location) { case "/corp_id1.php": case "/corp_id2.php": case "/corp_id3.php": case "/corp_id4.php": case "/corp_id5.php": case "/corp_id6.php": document.p6.src="Images/corp_id_button_down.png";; break default: document.p6.src="Images/corp_id_button_hover.png"; break } } function handleEbookletOver() { var location = window.location.pathname; switch (location) { case "/ebook1.php": case "/ebook2.php": case "/ebook3.php": case "/ebook4.php": case "/ebook5.php": case "/ebook6.php": document.p7.src="Images/ebooks_button_down.png";; break default: document.p7.src="Images/ebooks_button_hover.png"; break } } //MOUSE OUT //main navigation function handleHomeOut() { document.b1.src="Images/home_button.png"; } function handleServicesOut() { document.b2.src="Images/services_button.png"; } function handleClientsOut() { document.b5.src="Images/client_button.png"; } function handleContactOut() { document.b3.src="Images/contact_button.png"; } function handleFtpOut() { document.b4.src="Images/ftp_button.png"; } function handleFtpOut2() { document.b4.src="Images/ftp_button.jpg"; } //portfolio navigation function handlePrintOut() { var location = window.location.pathname; switch (location) { case "/print1.php": case "/print2.php": case "/print3.php": case "/print4.php": case "/print5.php": case "/print6.php": document.p1.src="Images/print_button_down.png"; break default: document.p1.src="Images/print_button.png"; break } } function handleWebOut() { var location = window.location.pathname; switch (location) { case "/web1.php": case "/web2.php": case "/web3.php": case "/web4.php": case "/web5.php": case "/web6.php": case "/index.php": case "/services.php": case "/contact.php": case "/sitemap.php": case "/": document.p2.src="Images/web_button_down.png"; break default: document.p2.src="Images/web_button.png"; break } } function handleDvdOut() { var location = window.location.pathname; switch (location) { case "/dvd1.php": case "/dvd2.php": case "/dvd3.php": case "/dvd4.php": case "/dvd5.php": case "/dvd6.php": document.p3.src="Images/dvd_button_down.png"; break default: document.p3.src="Images/dvd_button.png"; break } } function handleNewslettersOut() { var location = window.location.pathname; switch (location) { case "/newsletter1.php": case "/newsletter2.php": case "/newsletter3.php": case "/newsletter4.php": case "/newsletter5.php": case "/newsletter6.php": document.p4.src="Images/newsletters_button_down.png"; break default: document.p4.src="Images/newsletters_button.png"; break } } function handleCdOut() { var location = window.location.pathname; switch (location) { case "/cdrom1.php": case "/cdrom2.php": case "/cdrom3.php": case "/cdrom4.php": case "/cdrom5.php": case "/cdrom6.php": document.p5.src="Images/cdrom_button_down.png";; break default: document.p5.src="Images/cdrom_button.png"; break } } function handleCorpIdOut() { var location = window.location.pathname; switch (location) { //case location.match(/^corp_id\d\.php$/): //regular expression - not working case "/corp_id1.php": case "/corp_id2.php": case "/corp_id6.php": case "/corp_id4.php": case "/corp_id5.php": case "/corp_id6.php": document.p6.src="Images/corp_id_button_down.png";; break default: document.p6.src="Images/corp_id_button.png"; break } } function handleEbookletOut() { var location = window.location.pathname; switch (location) { case "/ebook1.php": case "/ebook2.php": case "/ebook3.php": case "/ebook4.php": case "/ebook5.php": case "/ebook6.php": document.p7.src="Images/ebooks_button_down.png";; break default: document.p7.src="Images/ebooks_button.png"; break } } //MOUSE DOWN function handlePrintDown() { document.p1.src="Images/print_button_down.png"; document.p2.src="Images/web_button.png"; document.p3.src="Images/dvd_button.png"; document.p4.src="Images/newsletters_button.png"; document.p5.src="Images/cdrom_button.png"; document.p6.src="Images/corp_id_button.png"; document.p7.src="Images/ebooks_button.png"; } function handleWebDown() { document.p1.src="Images/print_button.png"; document.p2.src="Images/web_button_down.png"; document.p3.src="Images/dvd_button.png"; document.p4.src="Images/newsletters_button.png"; document.p5.src="Images/cdrom_button.png"; document.p6.src="Images/corp_id_button.png"; document.p7.src="Images/ebooks_button.png"; } function handleDvdDown() { document.p1.src="Images/print_button.png"; document.p2.src="Images/web_button.png"; document.p3.src="Images/dvd_button_down.png"; document.p4.src="Images/newsletters_button.png"; document.p5.src="Images/cdrom_button.png"; document.p6.src="Images/corp_id_button.png"; document.p7.src="Images/ebooks_button.png"; } function handleCdDown() { document.p1.src="Images/print_button.png"; document.p2.src="Images/web_button.png"; document.p3.src="Images/dvd_button.png"; document.p4.src="Images/newsletters_button.png"; document.p5.src="Images/cdrom_button_down.png"; document.p6.src="Images/corp_id_button.png"; document.p7.src="Images/ebooks_button.png"; } function handleNewslettersDown() { document.p1.src="Images/print_button.png"; document.p2.src="Images/web_button.png"; document.p3.src="Images/dvd_button.png"; document.p4.src="Images/newsletters_button_down.png"; document.p5.src="Images/cdrom_button.png"; document.p6.src="Images/corp_id_button.png"; document.p7.src="Images/ebooks_button.png"; } function handleCorpIdDown() { document.p1.src="Images/print_button.png"; document.p2.src="Images/web_button.png"; document.p3.src="Images/dvd_button.png"; document.p4.src="Images/newsletters_button.png"; document.p5.src="Images/cdrom_button.png"; document.p6.src="Images/corp_id_button_down.png"; document.p7.src="Images/ebooks_button.png"; } function handleEbookletDown() { document.p1.src="Images/print_button.png"; document.p2.src="Images/web_button.png"; document.p3.src="Images/dvd_button.png"; document.p4.src="Images/newsletters_button.png"; document.p5.src="Images/cdrom_button.png"; document.p6.src="Images/corp_id_button.png"; document.p7.src="Images/ebooks_button_down.png"; }