var grad = 0; var speed = 5; var IsCycle=0; var mx = 0; var my = 0; var r= 15; var t=0; var shall = "nn"; if (document.all) shall="ie"; else shall="nn"; function DoCycle() { if (! IsCycle) { IsCycle=1; grad = 0; Cycle(); } } function Cycle() { if (!IsCycle) { clearTimeout(t); return; }; grad = grad + speed; if (grad>360) grad=grad - 360; var ang = grad*Math.PI/180; var x = r * Math.cos(ang); var y = r * Math.sin(ang); if (shall=="ie") { document.all("anime").style.left = mx + x -3; document.all("anime").style.top = my + y -13; document.all("animepic").width = x/20+10; document.all("animepic").height = x/20+10; } else { obj.left = mx + x -3; obj.top = my + y -13; document.animepic.width = x/10+7; document.animepic.height = x/10+7; }; if (t!=0) clearTimeout(t); t = setTimeout("Cycle()", 10); }; function DoMove() { if (shall=="ie") { mx=event.clientX; my=event.clientY; } else { mx=e.pageX; my=e.pageY; } DoCycle(); }; function StopMove() { IsCycle=0; if (shall=="ie") { document.all("anime").style.left = -100; document.all("anime").style.top = -100; } else { document.anime.left = -100; document.anime.top = -100; }; }; function ShowPaint(filename, abouttext) { if ((abouttext=="") || (abouttext==null)) abouttext="тел.: (3472) 55-40-74, 28-05-52"; if (shall=="ie") { document.all("paint").src = filename; eval('document.all("about")').innerHTML = abouttext; } else { //alert("!!"); document.paint.src = filename; eval('document["about"].document').write(abouttext); eval('document["about"].document').close(); }; } function ShowText(divid, abouttext) { if (shall=="ie") { str = 'document.all("'+divid+'")'; eval(str).innerHTML = abouttext; } else { eval('document["about"].document').write(abouttext); eval('document["about"].document').close(); }; }