var goodBrowser=(document.getElementById && navigator.appName.indexOf("Netscape")!=-1) || (document.all && navigator.appVersion.indexOf("MSIE")!=-1)
if (goodBrowser){
	document.write('<DIV id=AportDiv2 style="position:absolute;left:-500px;top:-500px;visibility:hidden;">');


document.write( '<style>');
document.write( '#ap_cat, #ap_cat input {font-family:Verdana, Arial, Helvetica, sans-serif;}');
document.write( '#ap_cat a {color:00417D;font-size:10px;text-decoration:none;}');
document.write( '#ap_cat a:hover {text-decoration:underline;}');
document.write( '</style>');
document.write( '<table border=0 cellpadding=0 cellspacing=0 width=306>');
document.write( '<tr><td><FORM name=form15 action=http://www.aport.ru/search.php method=get target=_blank style="padding:0px;margin:0px;">');
document.write( '<input type=hidden name=fr value=forms>');
document.write( '<table border=0 cellpadding=0 bgcolor=FFFFFF cellspacing=0 style="border-left:2px solid #80D3F6;border-right:2px solid #80D3F6;border-bottom:1px solid #80D3F6;border-top:2px solid #80D3F6;"><tr><td width=100% style="background-image: url(http://www.aport.ru/forms/bg1.gif);text-align:left;">&nbsp;&nbsp;&nbsp;<input style="WIDTH: 103px;height:22px; background-image: url(http://www.aport.ru/forms/bg2.gif); font-size: 14px;border: 2px solid #0086D9;" maxlength=170 name=r>&nbsp;<img src=http://www.aport.ru/forms/p.gif width=6 height=1>&nbsp;<INPUT TYPE=submit VALUE=апорт NAME=submit style="height:22px;width:80px; border: 2px solid #0086D9;background-image: url(http://www.aport.ru/forms/bg3.gif); font-size:14px; font-weight: bold;color:#00427E;"></td>');
document.write( '<td align=right><img src=http://www.aport.ru/forms/p.gif width=6 height=1><a href="http://www.aport.ru/" onmouseover="sM()" onmouseout="sM(1)" target="_blank"><img src="http://www.aport.ru/forms/ap1.gif" width="86" height="29" border="0" alt="поисковая система АПОРТ"></a></td></tr></table></form>');

document.write( '<table width=306 border=0 cellpadding=8 cellspacing=1 bgcolor=80D3F6 id=ap_cat>');
document.write( '<tr><td bgcolor=ffffff nowrap  style="text-align:left;">');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=230 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>АвтоМото</b></a><br>');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=335 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>Бизнес&nbsp;и&nbsp;экономика</b></a><br>');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=330 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>Дом&nbsp;и&nbsp;семья</b></a><br>');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=365 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>Знакомства&nbsp;и&nbsp;общение</b></a><br>');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=12 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>Интернет</b></a><br>');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=3360 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>Компьютеры</b></a><br>');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=10 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>Культура&nbsp;и&nbsp;искусство</b></a><br>');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=145 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>Медицина&nbsp;и&nbsp;здоровье</a></b></td>');
document.write( '<td bgcolor=ffffff nowrap style="text-align:left;"><a href=http://catalog.aport.ru/rus/themes.aspx?ID=1 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>Наука&nbsp;и&nbsp;образование</b></a><br>');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=5 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>Новости и СМИ</b></a><br>');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=8 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>Общество</b></a><br>');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=6786 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>По&nbsp;странам&nbsp;и&nbsp;регионам</b></a><br>');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=3357 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>Развлечения&nbsp;и&nbsp;отдых</b></a><br>');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=1177 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>Спорт</b></a><br>');
document.write( '<a href=http://catalog.aport.ru/rus/themes.aspx?ID=4 target=_blank><img src=http://www.aport.ru/forms/ch.gif width=12 height=6 border=0  align=bottom><b>Справка</b></a><br>');
document.write( '<a href=http://www.aport.ru target=_blank style=color:0086D9;font-size:11px;><img src=http://www.aport.ru/forms/p.gif width=12 height=6 border=0  align=bottom><b>www.aport.ru</b></a></td></tr></table>');
document.write( '</td></tr></table>');
	
	document.write('</DIV></DIV><DIV id=AportDiv style="position:absolute;left:0px;top:0px;width:0;height:0;visibility:hidden;z-index:1;" onmouseover="hM();document.forms.form15.r.blur();">')
}
var dontShow
function hM() {
if (hM.arguments.length && drawPosition==xB) dontShow=1
selSH(1)
if (document.getElementById) {document.getElementById("AportDiv").style.visibility="hidden";document.getElementById("AportDiv2").style.visibility="hidden";}
else if (document.all) {document.all.AportDiv.style.visibility="hidden";document.all.AportDiv2.style.visibility="hidden";}
}

function sM() {
if (!goodBrowser) return
if (dontShow) {
if (sM.arguments.length) dontShow=0
return
}
if (document.getElementById) {
var myBody = document.getElementsByTagName("BODY")[0]
var myAportDiv = document.getElementById("AportDiv") ? document.getElementById("AportDiv") : false
var myAportDiv2 = document.getElementById("AportDiv2")
var myAportSR = document.getElementById("AportSR")
var myMarginTop = 0
if (navigator.appVersion.indexOf("MSIE 5.0")!=-1) myMarginTop = myBody.style.marginTop ? myBody.style.marginTop : parseInt(myBody.getAttribute("topmargin"))
} else if (document.all) {
var myBody = document.body
var myAportDiv = document.all.AportDiv
var myAportDiv2 = document.all.AportDiv2
var myAportSR = document.all.AportSR
}
var pageTop	= myBody.scrollTop
var pageWidth	= window.innerWidth ? window.innerWidth : myBody.offsetWidth
var pageHeight	= window.innerHeight ? window.innerHeight : myBody.offsetHeight
var baseTop	= myAportSR.offsetTop / ((document.getElementByID) ? 2 : 1)
var baseWidth	= myAportSR.offsetWidth
var baseHeight	= myAportSR.offsetHeight
var richWidth	= myAportDiv2.offsetWidth
var richHeight	= myAportDiv2.offsetHeight

drawPosition=dP

selSH(0)
myAportDiv2.style.left	= ((drawPosition==1 || drawPosition==2) ? 0 : (baseWidth-richWidth))
myAportDiv2.style.top	= ((drawPosition==2 || drawPosition==3) ? 0 : (baseHeight-richHeight))
myAportDiv2.style.visibility="visible"
myAportDiv.style.width	= pageWidth - (navigator.appName.indexOf("Netscape")!=-1 ? 20 : 20)



cur_max = 0


if (window.innerHeight>cur_max) cur_max = window.innerHeight


if (myBody.offsetHeight>cur_max) cur_max = myBody.offsetHeight


if (myBody.scrollHeight>cur_max) cur_max = myBody.scrollHeight


myAportDiv.style.height	=  cur_max - 4


myAportDiv.style.visibility="visible"
}

function selSH(s) {
if (navigator.appName.indexOf("Microsoft")<0) return
for (fF=0;fF<document.forms.length;fF++) {
for (eL=0;eL<document.forms[fF].length;eL++) {
if (document.forms[fF][eL].tagName=="SELECT") document.forms[fF][eL].style.visibility = s ? "visible" : "hidden"
}}}

function left(obj,left1){
var1=obj.offsetLeft+left1
if (obj.offsetParent!=document.body) left(obj.offsetParent,var1)
return(var1)
}

function top(obj,top1){
var2=obj.offsetTop+top1
if (obj!=document.body) {
if(obj.offsetParent) {
if (obj.offsetParent.style.position!="relative") top(obj.offsetParent,var2)
else top(obj.offsetParent,var2-obj.offsetParent.offsetTop/2)
}
}
return(var2)
}
