/* Javascript code for window status. www.tele-pro.co.uk function setStatusfromTitle() to bypass requires a cookie 'setStatusfromTitle' with value='no' to set the cookie, query should be ?setStatusfromTitle=no to unset the cookie, query should be ?setStatusfromTitle=yes */ // check the query var ls = location.search; ls = ls.substring(1) ; if ((ls == 'setStatusfromTitle=no' ) || (ls == 'setStatusfromTitle=yes' )) document.cookie = ls + '; expires=1 Jan 2020; path=/'; // set the status to be the same as title if (getCookie ('setStatusfromTitle') != 'no') setStatusfromTitle(); // function sets the status same as title function setStatusfromTitle() { // defaultStatus is displayed after a rollover window.defaultStatus = document.title; // the status is set to 'Done' when page load // completes, so delay setting window status setTimeout("window.status=document.title;", 3000); }