// autosrotas.js (frontend) v1.0.0 Copyright (c) 2008 by BT-Group (info@bt-group.lt)
// All Right Reserved.

function jp( obj,ow,oh ) {
	var dw = document.body.clientWidth;
	var dh = document.body.clientHeight;
	var x = (dw - ow)/2;
	var y = (dh - oh)/2;
		
	var ww = window.open( obj.href,'','width=' 
		+ ow + ',height=' + oh + ',toolbar=no,left=' + x + /*',top=' + y + */','
		+ 'location=no,directories=no,personalbar=no,status=no,menubar=no,scrollbars=yes,titlebar=no,'
		+ 'resizable=yes,dependent=yes,dialog=yes,close=no' );
	if( !ww ) {
		alert( 'Popup langas buvo blokuotas. Prašom pakeisti nustatymus' );
		return false;
	} // if
	ww.focus();
	
	return false;
}

function jimg( path,w,h ) {
	var img = $( 'img' );
	if( img ) {
		img.src = path;
		img.width = Math.min( w,463 );
		img.height = Math.min( h,303 );
	} // if
	return false;
}
