function sizedPopup(url,height,width,left,top,type) {
	self.name = "opener";
    remote = open(url, "remote", "resizable,scrollbars,status,width="+width+",height="+height+",left="+left+",top="+top);
    if (type==1) {
    	window.focus();
        remote.blur();
    } else {
    	remote.focus();
	}
}

function activateObjects() {
	objects = document.getElementsByTagName("object");
	for (var i = 0; i < objects.length; i++) {
		objects[i].outerHTML = objects[i].outerHTML;
	}
}

$(document).ready(function() {
	//Fight sidebar clutter, yo.	

	$('.tbh').slideUp(0); 
			
	$('.toggler').addClass('collapsed').toggle(
		function(){
			$('#' + this.getAttribute('rel')).slideDown(150); 
			$(this).addClass("expanded");
		},
		function(){
			$('#' + this.getAttribute('rel')).slideUp(100);
			$(this).removeClass('expanded')
		}
	);			
	
	// avoid IE "click to activate" annoyance
	activateObjects();

});
