// function getElementComputedStyle(elem, prop) { if (typeof elem!="object") elem = document.getElementById(elem); // external stylesheet for Mozilla, Opera 7+ and Safari 1.3+ if (document.defaultView && document.defaultView.getComputedStyle) { if (prop.match(/[A-Z]/)) prop = prop.replace(/([A-Z])/g, "-$1").toLowerCase(); return document.defaultView.getComputedStyle(elem, "").getPropertyValue(prop); } // external stylesheet for Explorer and Opera 9 if (elem.currentStyle) { var i; while ((i=prop.indexOf("-"))!=-1) prop = prop.substr(0, i) + prop.substr(i+1,1).toUpperCase() + prop.substr(i+2); return elem.currentStyle[prop]; } return ""; } // var brname=navigator.appName, BrVer=''; if(brname.substring(0,2)=="Mi") BrVer='E'; var timer = 0; lastid = -1; function smile_insert(smile) { cm = document.getElementById('chat_message'); cm.value = cm.value+""+smile+" "; document.getElementById('menu99').style.visibility = 'hidden'; cm.focus(); cm.caretPos=cm.value.lenght-1; } function show(id) { if(!((document.all)?document.all['menu'+id]:document.getElementById('menu'+id))) return; clearTimeout(timer); if((id != lastid) && (lastid!=-1)) ((document.all)?document.all['menu'+lastid]:document.getElementById('menu'+lastid)).style.visibility = 'hidden'; //hideElement("SELECT", document.getElementById('menu'+lastid)); lastid = id; ((document.all)?document.all['menu'+lastid]:document.getElementById('menu'+lastid)).style.visibility = 'visible'; //((document.all)?document.all['menuB'+lastid]:document.getElementById('menuB'+lastid)).ClassName = 'TableMenuLine'; } function hidden(id) { if(!((document.all)?document.all['menu'+id]:document.getElementById('menu'+id))) return; //showElement("SELECT"); timer = setTimeout("if('"+id+"' == '"+lastid+"'){((document.all)?document.all['menu"+lastid+"']:document.getElementById('menu"+lastid+"')).style.visibility = 'hidden';}", 500) } function GetPos(el) { if (!el || !el.offsetParent)return false; var res=Array() res["left"] = el.offsetLeft; res["top"] = el.offsetTop; var objParent = el.offsetParent; while (objParent.tagName.toUpperCase()!="BODY") { res["left"] += objParent.offsetLeft; res["top"] += objParent.offsetTop; objParent = objParent.offsetParent; } res["right"]=res["left"]+el.offsetWidth; res["bottom"]=res["top"]+el.offsetHeight; return res; } function hideElement2(elName, Menu) { if(BrVer!='E') return; for (i = 0; i < document.all.tags(elName).length; i++) { Obj = document.all.tags(elName)[i]; if(!(pMenu=GetPos(Menu)))continue; if(!(pObj=GetPos(Obj)))continue; if(pObj["left"]