var i = 1,
	changes = $('changes'),
	trs = changes.getElementsByTagName('tr')

function showAllChanges(el) {
	el.className += 'hidden'
	var delay = setInterval(
		function(){
			trs[i].className = trs[i].className.replace(' hidden','')
			i++
			if (i >= trs.length) 
				clearInterval(delay)
		},
		20
	)
}

document.write('<a href="#changes" id="show_all" onclick="showAllChanges(this); return false">ещё</a>')

if (navigator.userAgent.indexOf('Firefox/2') > 0 && window.sidebar) {
	$('addpanel').onclick = function(event) {
		if (event.target) window.sidebar.addPanel(event.target.title, event.target.href, '')
	}
}


function easeOutQuad(t, b, c, d) { 
	return -c * (t/=d)*(t-2) + b
}

window.onload = function(){
	var browser = $('browser'),	
		i = 0,
		w = 0;
	if (document.referrer.indexOf('/uploader-panel.com/') == -1) {
		var enlarge = setInterval(
			function(){
				w = easeOutQuad(i, 0, 600, 20)
				browser.style.width = w + 'px'
				++i
				if (w >= 600 || i > 60) {
					clearInterval(enlarge)
					browser.style.width = '600px'
				}
			},
			20
		)
	} else {
		browser.style.width = '600px'
	}
}