function wrap1 (title, background, w, h) 
{
h = 19;

//	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 cellpadding=0 cellspacing=0 border=0 width=100% height="22" style="background-color:#FFF8E2;"><tr><td width=100%  class="a'+i+'"><div class="b'+i+'" style="border-top: 1px solid #D8D9D4;"><img src="images/menu_horizontal_sipka'+i+'.gif" style="margin:0 5px 2px 0;" />'+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 cellpadding=0 cellspacing=0 border=0 width=100% height="22" style="background-color:#FFF8E2;"><tr><td width=100%  class="ac'+i+'"><div class="b'+i+'" style=""><img src="images/menu_horizontal_sipka'+i+'.gif" style="margin:0 5px 2px 0;" />'+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 cellpadding=0 cellspacing=0 border=0 width=100% height="22" style="background-color:#FFF8E2;"><tr><td width=100%  class="aa'+i+'"><div class="b'+i+'" style=""><img src="images/menu_horizontal_sipka'+i+'.gif" style="margin:0 5px 2px 0;" />'+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 cellpadding=0 cellspacing=0 border=0 width=100% height="22" style="background-color:#FFF8E2;"><tr><td width=100%  class="ab'+i+'"><div class="b'+i+'" style="border-top: 1px solid #D8D9D4;"><img src="images/menu_horizontal_sipka'+i+'.gif" style="margin:0 5px 2px 0;" />'+title+'</div></td></tr></table>';
        //alert(res[i]);
    }
		return res;
}

