function wrap1 (title, background, w, h) 
{
h = 18;

//	alert(['<table cellpadding=0 cellspacing=0 border=0 width='+w+' height="'+h+'"><tr><td width=100% class="main0" '+background+'>'+title+'</td></tr></table>',
//			'<table cellpadding=0 cellspacing=0 border=0 width='+w+' height="'+h+'"><tr><td width=100% class="main1">'+title+'</td></tr></table>',
//  		'<table cellpadding=0 cellspacing=0 border=0 width='+w+' height="'+h+'"><tr><td width=100% class="main2">'+title+'</td></tr></table>']);
	return ['<table cellpadding=0 cellspacing=0 border=0 width='+w+' height="'+h+'"><tr><td width=100% class="main0" '+background+'>'+title+'</td></tr></table>',
			'<table cellpadding=0 cellspacing=0 border=0 width='+w+' height="'+h+'"><tr><td width=100% class="main1">'+title+'</td></tr></table>',
			'<table cellpadding=0 cellspacing=0 border=0 width='+w+' height="'+h+'"><tr><td width=100% class="main2">'+title+'</td></tr></table>']
}

function wrap_child (title,separator) 
{	
	var res=[];
	for (var i=0; i<3; i++)
    {
		res[i] = '<table class="child" cellpadding=0 cellspacing=0 border=0 width=100%><tr><td width=100%  class="a'+i+'"><div class="b'+i+'" style="border-width: 1px 2px">'+title+'</div></td></tr></table>';
        //alert(res[i]);
    }
		return res;
}

function wrap_child_alone (title,separator) 
{	
	var res=[];
	for (var i=0; i<3; i++)
    {
		res[i] = '<table class="child" cellpadding=0 cellspacing=0 border=0 width=100%><tr><td width=100%  class="ac'+i+'"><div class="b'+i+'" style="border-width: 2px 2px;">'+title+'</div></td></tr></table>';
        //alert(res[i]);
    }
		return res;
}


function wrap_child_first (title,separator) 
{	
	var res=[];
	for (var i=0; i<3; i++)
    {
		res[i] = '<table class="child" cellpadding=0 cellspacing=0 border=0 width=100%><tr><td width=100%  class="aa'+i+'"><div class="b'+i+'" style="border-width: 2px 2px 1px 2px;"">'+title+'</div></td></tr></table>';
        //alert(res[i]);
    }
		return res;
}


function wrap_child_last (title,separator) 
{	
	var res=[];
	for (var i=0; i<3; i++)
    {
		res[i] = '<table class="child" cellpadding=0 cellspacing=0 border=0 width=100%><tr><td width=100%  class="ab'+i+'"><div class="b'+i+'" style="border-width: 1px 2px 2px 2px;">'+title+'</div></td></tr></table>';
        //alert(res[i]);
    }
		return res;
}
