var nw = 0;
var nh = 0;

window.onresize = window.onload = function() {
	w = xClientWidth();
	h = xClientHeight()+20;
	if (h<120)
		h=window.innerHeight;

	xHide('loading');
			
	
	//xWidth('viewscreen', w);
	xWidth('bot_cover', w);
	xHeight('viewscreen', h);
	xHeight('right_cover', h);
	xHeight('left_cover', h);
	
	nw = w-997;
	nh = h-591+27;
	
	xWidth('right_cover', nw);
	xHeight('bot_cover', nh);

	xShow('drop');
	xShow('viewscreen');

}

/*
function gotoItem(x, y) {
	xSlideTo('viewscreen',nx-(x-1)*600, ny-(y-1)*610,750);
}
*/	