var timer

/* Mozilla онлаадер */
if (document.addEventListener){
	document.addEventListener('DOMContentLoaded',init,false)
	l=true
}

/* IE онлоадер */
/*@cc_on @*/
/*@if (@_win32)
document.write('<script id=__ie_onload defer src=javascript:void(0)><\/script>')
var script=document.getElementById('__ie_onload')
script.onreadystatechange=function(){
	if (this.readyState=='complete') {
		init()
	}
}
l=true
/*@end @*/

/* Safari онлоадер */
if (/WebKit/i.test(navigator.userAgent)){
	var _timer=setInterval(function() {
		if (/loaded|complete/.test(document.readyState)) {
			init()
			l=true
		}
	}, 10)
}

/* other browsers онлоадер */
if (!l)
	window.onload=init


function init () {
	im=document.getElementById('indpodmenu')
	im.style.marginBottom='-'+im.offsetHeight+'px'
	im.style.display='none'
}

function showMenu() {
	clearTimeout(timer)
	im.style.display='block'
}

function hideMenu() {
	timer=setTimeout('hm()', 2000)
}

function hm() {
	im.style.display='none'
}

