var divHistoryTimeOut;
var divTvTimeOut;
function widthLine(id, width){E(id).style.width = width}
function showLeftMenu(){widthLine('widthLineLeft', '');hide('leftCatalog');show2('colMenu');show2('leftMenu');hide('forHide');show2('forShow');show2('tabCatalog');show2('tabHide');hide('tabMenu');}
function showLeftCatalog(){widthLine('widthLineLeft', '100px');hide('leftMenu');show2('colMenu');show2('leftCatalog');hide('forHide');show2('forShow');show2('tabMenu');show2('tabHide');hide('tabCatalog');}
function hideMenu(){widthLine('widthLineLeft', '0');hide('leftMenu');hide('leftCatalog');hide('colMenu');hide('forShow');show2('forHide');show2('tabCatalog');show2('tabMenu');hide('tabHide');}
function showTime(){var d=document;var tmN=new Date();var dH=''+tmN.getHours();dH=dH.length<2?'0'+dH:dH;var dM=''+tmN.getMinutes();dM=dM.length<2?'0'+dM:dM;var dS=''+tmN.getSeconds();dS=dS.length<2?'0'+dS:dS;var tmp=dH+':'+dM+':'+dS;d.getElementById('tm').innerHTML=tmp;var t=setTimeout('showTime()',1000);}
function auth(){
	frm=F('_auth');
	if(confirm("Запомнить Вас на этом компьютере и не спрашивать пароль в дальнейшем?")){frm.remember.value=1};
	frm.submit();
}
function showSub01(){hide('sub02');show2('sub01');}
function showSub02(){hide('sub01');show2('sub02');}
function showDivHistory(){show2('divHistory');clearTimeout(divHistoryTimeOut);}
function hideDivHistory(){divHistoryTimeOut = setTimeout("hide('divHistory')", 1250);}
function Online(val){if(val.indexOf('t=')<0)E('divMedia').innerHTML='';if(val.indexOf('t=tv') >= 0){width = '320px';height = '300px';}if(val.indexOf('t=radio') >= 0){width = '320px';height = '64px';}E('divMedia').innerHTML = '<iframe src="/media.html?'+val+'" id="iframeMedia" width="'+width+'" height="'+height+'" frameborder="0" vspace="0" hspace="0" background-color="transparent" style="background-color: transparent;"></iframe>';}

