// preload onImage = new Image(); onImage.src = "/images/altereye.jpg"; offImage = new Image(); offImage.src = "/images/altereyeoff.jpg"; // untility functions function trim(str) { return str.replace(/^\s*|\s*$/g,""); } function getInnerText(obj) { var text = obj.innerText; if (obj == undefined) { text = obj.innerHTML.replace(/<[^>]+>/g,""); } return text; } function getSelectedText() { if(window.getSelection) { return window.getSelection(); } else if (document.getSelection) { return document.getSelection(); } else if (document.selection) { return document.selection.createRange().text; } else return false; } // eye switch function eye_on() { if(document.all) document.images.AlterVistas.filters.blendTrans.apply(); document.images.AlterVistas.src = onImage.src; if(document.all) document.images.AlterVistas.filters.blendTrans.play(); } function eye_off() { if(document.all) document.images.AlterVistas.filters.blendTrans.apply(); document.images.AlterVistas.src = offImage.src; if(document.all) document.images.AlterVistas.filters.blendTrans.play(); } function eye_blink(speed) { eye_off(); setTimeout("eye_on()",speed); } var window_status_lead = "AlterVistas: "; var window_status_char = 0; var window_status_str = ""; function set_window_status(str) { window_status_char = 0; window_status_str = str; window_status_fx(); } function window_status_fx() { msg_legnth = window_status_str.length if(window_status_char2) { linkTimer = setTimeout("speakLinkText()",1000); } } function outLink() { if(linkTimer) { clearTimeout(linkTimer); } } function qcensus_window() { window.open('http://www.altervistas.com/census_quick_fire.php','QCensusWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=320,height=370'); } function bootstrap(status_str) { f.q.focus(); eye_blink(50); set_window_status(status_str); for(var i=0;i