var AVPattern = ""; var AVIMGUrl = "http://www.altavista.com/image/results?src=5118&q="; var AVClient = "default"; var AVClientLogo = "http://us.i1.yimg.com/us.yimg.com/i/us/av/i/avqsearch_img.gif"; var AVClientLogoProps = 'width="130" height="140"'; var AVCheck = 0; var AVWin; if (((navigator.appName == "Microsoft Internet Explorer") || navigator.appName == "Netscape") && parseInt(navigator.appVersion) >= 4) { AVCheck = 1; var AVWhitespace = new RegExp('([ \\n\\t\\v\\r\\f]|%0D|%0A|%20)+', 'g'); } function AVFindSelection (w) { var pattern; var TextRange; if (navigator.appName == "Netscape") { pattern = escape(w.document.getSelection()); pattern = pattern.replace (AVWhitespace,"%20"); } else if ( navigator.appName == "Microsoft Internet Explorer") { if (navigator.platform == "MacPPC"){ pattern = document.getSelection(); } else if (document.selection.type == "Text") { TextRange = document.selection.createRange(); pattern = TextRange.text; } } if (pattern) { return (pattern); } for (var i=0; i 0) { window.top.status = 'Click here to find "' + unescape(AVPattern) + '" .'; } else { window.top.status = 'Highlight any word, then click...'; } return true; } function AVOnOut() { window.top.status = "AV Quick Search"; return true; } function AVStartQueryImg() { if (AVPattern.length > 0) { url = AVIMGUrl + AVPattern + '&stype=simage&oprem=1'; if (!AVWin || AVWin.closed) { AVWin = window.open (url); } else { AVWin.location.href = url; AVWin.focus(); } } else { alert ("Please highlight a word, then click on the QuickSearch button."); } return false; } if (AVCheck) { document.write ('AltaVista Quick Search'); }