var selectedBGColor="#48ae17";var unselectedBGColor="#bce4fe";var selectedFGColor="#ffffff";var unselectedFGColor="#2070b3";function completeSite(a,e,d){var f;var c;try{f=document.getElementById(d);c=e.getAttribute("currId");if(f&&"inline"==f.style.display){switch(a.keyCode){case 9:if(0!=c){e.value=f.childNodes[c].innerHTML}hideAutoBoxS(e,d);return;break;case 13:if(1==f.childNodes.length){return true}if(0!=c){e.value=f.childNodes[c].innerHTML}hideAutoBoxS(null,d);return;break;case 40:if(1==f.childNodes.length){return true}if(c!=0){f.childNodes[c].style.backgroundColor=unselectedBGColor;f.childNodes[c].style.color=unselectedFGColor}c++;if(c>f.childNodes.length-1){c=1}f.childNodes[c].style.backgroundColor=selectedBGColor;f.childNodes[c].style.color=selectedFGColor;e.setAttribute("currId",c);return;break;case 38:if(1==f.childNodes.length){return true}f.childNodes[c].style.backgroundColor=unselectedBGColor;f.childNodes[c].style.color=unselectedFGColor;c--;if(c<1){c=f.childNodes.length-1}if(c!=0){f.childNodes[c].style.backgroundColor=selectedBGColor;f.childNodes[c].style.color=selectedFGColor}e.setAttribute("currId",c);return;break}if(a.keyCode==16||a.keyCode==27||a.keyCode==35||a.keyCode==36||a.keyCode==37||a.keyCode==39){return true}}}catch(b){}}function autoMouseOutS(c,b){try{c.style.backgroundColor=unselectedBGColor;c.style.color=unselectedFGColor}catch(a){}}function autoMouseOverS(c,e,b){var d;try{d=c.getAttribute("currId");if(d!=0){e.parentNode.childNodes[d].style.backgroundColor=unselectedBGColor;e.parentNode.childNodes[d].style.color=unselectedFGColor}e.style.backgroundColor=selectedBGColor;e.style.color=selectedFGColor;c.setAttribute("currId",b)}catch(a){}}function autoMouseClickS(c,e,b){try{if(window.opera){c.value=e.innerHTML}else{var d=e.parentNode;c.value=d.childNodes[b].innerHTML}hideAutoBoxS(null,d.id)}catch(a){}}function hideAutoBoxS(c,b){var a=document.getElementById(b);if(a){a.style.display="none";a.innerHTML=""}if(c){c.setAttribute("currId",0)}};
