var textNN = ''; var headerNN = ''; var sizeNN = 0; function showNN(e) {if (parseInt(navigator.appVersion) >= 5){if (document.getElementById('hint').style.visibility == "visible"){hor = window.pageXOffset + window.innerWidth - document.getElementById('hint').offsetWidth - 20; ver = window.pageYOffset + window.innerHeight - document.getElementById('hint').offsetHeight - 20; posHor = window.pageXOffset + e.clientX + 10; posVer = window.pageYOffset + e.clientY + 10; posHor2 = window.pageXOffset + e.clientX - document.getElementById('hint').offsetWidth - 5; posVer2 = window.pageYOffset + e.clientY - document.getElementById('hint').offsetHeight - 5; if (posVer<ver)document.getElementById('hint').style.top = posVerelse document.getElementById('hint').style.top = posVer2if (posHor<hor) document.getElementById('hint').style.left = posHorelse document.getElementById('hint').style.left = posHor2}}else {temp = "<table border=0 cellspacing=0 cellpadding=1 id=hintborder width=300><tr><td><font class=s id=hintheader><b>" + headerNN + "</b></font></td></tr><tr><td><table border=0 cellspacing=0 cellpadding=3 id=hintbg width=100%><tr><td><font class=s id=hintcolor>" + textNN + "</font></td></tr></table></td></tr></table>"; document.layers['hint'].document.write(temp);document.layers['hint'].document.close();if (document.layers['hint'].visibility == "show"){hor = window.pageXOffset + window.innerWidth - sizeNN - 20; ver = window.pageYOffset + window.innerHeight - document.layers['hint'].document.height - 20; posHor = e.pageX + 10; posVer = e.pageY + 10; posHor2 = e.pageX - sizeNN - 5; posVer2 = e.pageY - document.layers['hint'].document.height - 5; if (posVer<ver)document.layers['hint'].top = posVerelse document.layers['hint'].top = posVer2if (posHor<hor) document.layers['hint'].left = posHorelse document.layers['hint'].left = posHor2;}document.layers['hint'].visibility = "show";}}function hideNN(e) {document.layers['hint'].visibility = "hide"; document.releaseEvents(Event.MOUSEOVER); document.releaseEvents(Event.MOUSEOUT); document.releaseEvents(Event.MOUSEMOVE); document.layers['hint'].left = 0; document.layers['hint'].top = 0;}function moveNN(e) {if (parseInt(navigator.appVersion)>= 5){if (document.getElementById('hint').style.visibility == "visible"){hor = window.pageXOffset + window.innerWidth - document.getElementById('hint').offsetWidth - 20; ver = window.pageYOffset + window.innerHeight - document.getElementById('hint').offsetHeight - 20; posHor = window.pageXOffset + e.clientX + 10; posVer = window.pageYOffset + e.clientY + 10; posHor2 = window.pageXOffset + e.clientX - document.getElementById('hint').offsetWidth - 5; posVer2 = window.pageYOffset + e.clientY - document.getElementById('hint').offsetHeight - 5; if (posVer<ver)document.getElementById('hint').style.top = posVerelsedocument.getElementById('hint').style.top = posVer2;if (posHor<hor)document.getElementById('hint').style.left = posHorelsedocument.getElementById('hint').style.left = posHor2;}}else{if (document.layers['hint'].visibility == "show"){hor = window.pageXOffset + window.innerWidth - sizeNN - 20; ver = window.pageYOffset + window.innerHeight - document.layers['hint'].document.height - 20; posHor = e.pageX + 10; posVer = e.pageY + 10; posHor2 = e.pageX - sizeNN - 5; posVer2 = e.pageY - document.layers['hint'].document.height - 5; if (posVer<ver)document.layers['hint'].top = posVerelsedocument.layers['hint'].top = posVer2if (posHor<hor)document.layers['hint'].left = posHorelsedocument.layers['hint'].left = posHor2;}}}function showhint(x,y,w,z){	textNN = y; sizeNN = w; if (x == '')x = "Начало первого сообщения темы";headerNN = x; temp = "<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=1 id=hintborder WIDTH=" + w + "><TR><TD><FONT class=s id=hintheader><B>" + x + "</B></FONT></TD></TR><TR><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=3 id=hintbg WIDTH=100%><TR><TD><FONT class=s id=hintcolor>" + y + "</FONT></TD></TR></TABLE></TD></TR></TABLE>"; if (navigator.appName == "Netscape"){document.captureEvents(Event.MOUSEOVER);document.captureEvents(Event.MOUSEOUT);document.captureEvents(Event.MOUSEMOVE);document.onmouseover = showNN;document.onmousemove = moveNN;document.onmouseout = hideNN;if (parseInt(navigator.appVersion)>= 5){document.getElementById('hint').innerHTML = temp;document.getElementById('hint').style.width = w;if (z == 1)document.getElementById('hint').style.visibility = "visible";elsedocument.getElementById('hint').style.visibility = "hidden";}else{document.layers['hint'].width = w;document.layers['hint'].document.write(temp);document.layers['hint'].document.close();document.layers['hint'].visibility = "show";}}else{if (z == 1){document.all('hint').innerHTML = temp;document.all('hint').style.width = w;hor = document.body.scrollWidth - document.all('hint').offsetWidth; ver = document.body.scrollHeight - document.all('hint').offsetHeight; posHor = document.body.scrollLeft + event.clientX + 10; posVer = document.body.scrollTop + event.clientY + 10; posHor2 = document.body.scrollLeft + event.clientX - document.all('hint').offsetWidth - 5; posVer2 = document.body.scrollTop + event.clientY - document.all('hint').offsetHeight - 5; if (posHor<hor)document.all('hint').style.posLeft = posHorelsedocument.all('hint').style.posLeft = posHor2;if (posVer<ver)document.all('hint').style.posTop = posVerelsedocument.all('hint').style.posTop = posVer2;document.all('hint').style.visibility = "visible";}else{document.all('hint').style.visibility = "hidden";document.all('hint').style.posTop = 0;document.all('hint').style.posLeft = 0;}}}function movehint(){if (navigator.appVersion != "Netscape"){hor = document.body.scrollWidth - document.all('hint').offsetWidth; ver = document.body.scrollHeight - document.all('hint').offsetHeight; posHor = document.body.scrollLeft + event.clientX + 10; posVer = document.body.scrollTop + event.clientY + 10; posHor2 = document.body.scrollLeft + event.clientX - document.all('hint').offsetWidth - 5; posVer2 = document.body.scrollTop + event.clientY - document.all('hint').offsetHeight - 5; if (posHor<hor)document.all('hint').style.posLeft = posHorelsedocument.all('hint').style.posLeft = posHor2;if (posVer<ver)document.all('hint').style.posTop = posVerelsedocument.all('hint').style.posTop = posVer2;}}/************************************************ Cool DHTML tooltip script II- © Dynamic Drive DHTML code library (www.dynamicdrive.com)* This notice MUST stay intact for legal use* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code***********************************************/var offsetfromcursorX=12 //Customize x offset of tooltipvar offsetfromcursorY=10 //Customize y offset of tooltipvar offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer imagevar offsetdivfrompointerY=14 //Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).document.write('<div id="dhtmltooltip"></div>') //write out tooltip DIVdocument.write('<img id="dhtmlpointer" src="/index.files/arrow2.gif">') //write out pointer imagevar ie=document.allvar ns6=document.getElementById && !document.allvar enabletip=falseif (ie||ns6)var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""var pointerobj=document.all? document.all["dhtmlpointer"] : document.getElementById? document.getElementById("dhtmlpointer") : ""function ietruebody(){return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}function ddrivetip(thetext, thewidth, thecolor){if (ns6||ie){if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolortipobj.innerHTML=thetextenabletip=truereturn false}}function positiontip(e){if (enabletip){var nondefaultpos=falsevar curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;//Find out how close the mouse is to the corner of the windowvar winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorXvar bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorYvar leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000//if the horizontal distance isn't enough to accomodate the width of the context menuif (rightedge<tipobj.offsetWidth){//move the horizontal position of the menu to the left by it's widthtipobj.style.left=curX-tipobj.offsetWidth+"px"nondefaultpos=true}else if (curX<leftedge)tipobj.style.left="5px"else{//position the horizontal position of the menu where the mouse is positionedtipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"pointerobj.style.left=curX+offsetfromcursorX+"px"}//same concept with the vertical positionif (bottomedge<tipobj.offsetHeight){tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"nondefaultpos=true}else{tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"pointerobj.style.top=curY+offsetfromcursorY+"px"}tipobj.style.visibility="visible"if (!nondefaultpos)pointerobj.style.visibility="visible"elsepointerobj.style.visibility="hidden"}}function hideddrivetip(){if (ns6||ie){enabletip=falsetipobj.style.visibility="hidden"pointerobj.style.visibility="hidden"tipobj.style.left="-1000px"tipobj.style.backgroundColor=''tipobj.style.width=''}}function showhint2(x,y,w) {	temp = "<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=1 id=hintborder WIDTH=" + w + "><TR><TD><FONT class=s id=hintheader><B>" + x + "</B></FONT></TD></TR><TR><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=3 id=hintbg WIDTH=100%><TR><TD><FONT class=s id=hintcolor>" + y + "</FONT></TD></TR></TABLE></TD></TR></TABLE>"; 	ddrivetip(temp, w);}document.onmousemove=positiontip
