// Title: Layout Function
// Description: some useful functions for dynamic layout
// Version: 1.0
// Date: 25-03-2003 (mm-dd-yyyy)
// Author: Marco Loche 
// Notes: Contact authors for permission 
// e-mail: use Virtual-Galleries webmaster email 
//

//returns the left or right margin
// IN : the width of the page main table in % 
// OUT : the margin in pixel
function get_lr_margin(teble_width_percentage)
{
	var page_width = document.body.clientWidth;
	var margin = (page_width-((page_width/100)*teble_width_percentage))/2;
	if (margin < 0 ) alert("problems in get_lr_margim");
	return margin;
}
