/* Copyright (c) 2008 Astronim* (astronim.com) */
/*
$(document).ready(
	function() {

		$.ifixpng(root+'i/pixel.gif');
		$('img[@src$=.png]').ifixpng(); 
		$('a#astronim').ifixpng();

	}
);
*/
var __scroll;
var console;
var scroll_box;
function init_scroll(){
	scroll_box = $("scroll-box");
	__scroll = new Scroll($("scroll-holder"), $("scroll-content"), {
		X: null,
		Y: {
			bar: $("scrollbar"),
			track: $("track"),
			thumb: $("thumb"),
			bPlus: $("b-plus"), bMinus: $("b-minus")
		}
	}, tim
	);
	console = $("console");
	window.onresize = scroll_resize;
	scroll_resize();
}
function scroll_resize(){
	var h;
	if(document.body.clientHeight < 700){
		h = 390;
	}else{
		h = 390 + Math.round((document.body.clientHeight - 700) / 1.2);
	}
	scroll_box.style.height = h + "px";
	__scroll.holder.style.height = h + "px";
	__scroll.barY.track.style.height = h + "px";
	__scroll.refresh();
}
AttachEvent(window, "load", init_scroll);

