<!--
	function win_resize(what,id,way){
		var screen_width=window.screen.width;
		var screen_height=window.screen.height;
		switch (way) {
			case 1:
				what=what+'?ID='+id;
				break;
			case 2:
				what=what+'?showimg=yes&ID='+id;
				break;
			case 3:
				what=what+'?ID='+id+'&from=cat';
				break;
			default:
				what=what+'?ID='+id;
		}
		winame='OpeWin'+id;
		win_witdth=screen_width-80;
		win_height=screen_height-160;
		how='scrollbars=1,toolbar=0,width='+win_witdth+',height='+win_height+',top=20,left=40,alwaysRaised=1,dependent=1';
		//document.print(what);
		window.open(what,winame,how);
}

function ontop() {
    if (document.layers) {
		document.layers['ontop'].pageX = window.pageXOffset + 10
//         document.layers['ontop'].pageY = window.pageYOffset + window.outerHeight -150 ;
        document.layers['ontop'].pageY = window.innerHeight - 40;
	    }
    else if (document.all) {
        document.all['ontop'].style.position = 'absolute';
        document.all['ontop'].style.posLeft = document.body.scrollLeft + 10;
//         document.all['ontop'].style.posTop = document.body.scrollTop + document.body.scrollHeight - 150;
        document.all['ontop'].style.posTop = document.body.scrollTop + document.body.clientHeight - 40;
    }
    setTimeout('ontop()',1);
}
//-->

