function addEvent(H,F,G){if(H.addEventListener){H.addEventListener(F,G,false)}else{if(!G.$$guid){G.$$guid=addEvent.guid++}if(!H.events){H.events={}}var E=H.events[F];if(!E){E=H.events[F]={};if(H["on"+F]){E[0]=H["on"+F]}}E[G.$$guid]=G;H["on"+F]=handleEvent}}addEvent.guid=1;function removeEvent(D,E,F){if(D.removeEventListener){D.removeEventListener(E,F,false)}else{if(D.events&&D.events[E]){delete D.events[E][F.$$guid]}}}function handleEvent(F){var G;F=F||fixEvent(((this.ownerDocument||this.document||this).parentWindow||window).event);var E=this.events[F.type];for(var H in E){this.$$handleEvent=E[H];G=this.$$handleEvent(F);if(G===false){break}}return G}function fixEvent(B){B.preventDefault=fixEvent.preventDefault;B.stopPropagation=fixEvent.stopPropagation;return B}fixEvent.preventDefault=function(){this.returnValue=false};fixEvent.stopPropagation=function(){this.cancelBubble=true};if(!window.addEventListener){document.onreadystatechange=function(){if(window.onload&&window.onload!=handleEvent){addEvent(window,"load",window.onload);window.onload=handleEvent}}}var domain=document.domain.substring(document.domain.indexOf(".")+1);window.onload=function(){var A=document.getElementById("keyword");var B=document.fmSearch;if(A.value==""){A.value="keyword";A.style.color="#999999"}addEvent(A,"focus",function(C){if(A.value=="keyword"){A.value="";A.style.color=""}});addEvent(A,"blur",function(C){if(A.value==""){A.value="keyword";A.style.color="#999999"}});String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.ltrim=function(){return this.replace(/^\s+/,"")};String.prototype.rtrim=function(){return this.replace(/\s+$/,"")}};function goTo(A){window.location=A;return false};
