var pins = function(w) {
	var web = "http://www.facedouble.com";
	var width = w;
	var startTable = function() {
		return '<table cellpadding="0" cellspacing="0" border="0" width="'+width+'"><tr>';
	}
	var endTable = function() {
		return '</tr></table>';
	}

	return {
	  header : function(txt) {
		var out;
		out = startTable();
		out += '<td valign="top" style="background:url('+web+'/Images/left-border.gif); background-repeat: repeat-y; width:32px"><img src="'+web+'/Images/left-tac.gif" width="32" height="58" /></td>';
		out += '<td valign="top" align="center" width="100%" style="padding-top:38px; padding-bottom:6px; background:url('+web+'/Images/top-border.gif); background-repeat: repeat-x;">'+txt+'</td>';
		out += '<td valign="top" style="background:url('+web+'/Images/right-border.gif); background-repeat: repeat-y; background-position:right; width:32px"><img src="'+web+'/Images/right-tac.gif" width="32" height="58" /></td>';
		out += endTable();
		return out;
	  },

	  body : function(txt) {
		var out;
		out = startTable();
		out += '<td style="background: url('+web+'/Images/left-border.gif); background-repeat: repeat-y; width: 12px;"></td>';
		out += '<td valign="top">'+txt+'</td>';
		out += '<td style="background: url('+web+'/Images/right-border.gif); background-repeat: repeat-y; width: 12px;"></td>';
		out += endTable();
		return out;
	  },

	  footer : function () {
		var out;
		out = startTable();
		out += '<td valign="top" style="width:32px;height:12px;"><img src="'+web+'/Images/left-bottom.gif" height="12" width="32" /></td>';
		out += '<td valign="top" style="width:100%; background: url('+web+'/Images/bottom-border.gif); background-repeat: repeat-x; height:12px;"></td>';
		out += '<td valign="top" style="width:32px;height:12px;vertical-align:top"><img src="'+web+'/Images/right-bottom.gif" /></td>';
		out += endTable();
		return out;
	  }
  }
}
