function ScnTableMaker(table_marker, max_val, f) {
var this_stored = this,
thickbox = jQuery('#TB_window:eq(0)').addClass('table_creator_thickbox flexible_thickbox'),
main_table = jQuery(thickbox).find('#scn-options-table'),
new_table = jQuery("
"),
send_button = thickbox.find('#scn-btn-insert'),
options_table = false, options_table_hr = false, options_column = false, options_column_hr = false,
generated_table = false,
dropdowns,
selectsToBuild = {
1: {
id: 'scn-table-columns',
options: 8,
std: 3,
label:'Table Columns'
},
2: {
id: 'scn-table-rows',
options: 50,
std: 3,
label:'Table Rows'
}
/*
3: {
id: 'scn-table-style',
options: {'th-row':'Special Style for first Row', 'th-column':'Special Style for first Column', 'th-column th-row': 'Special Style for both: first Column and first Row'},
std: 'th-column th-row',
label:'Table Style'
},
*/
},
tableOptions = {
row: {
id: 'scn-row-otions',
options: {'default':'Default Row', 'pricing-row': 'Pricing Row', 'button-row':'Button Row'},
std: 'default'
},
column: {
id: 'scn-column-otions',
options: {'default':'Default Column', 'highlighted': 'Highlight Column'},
std: 'default'
}
};
this.init = function () {
this.setTickbox();
this.addStyles();
this.buildSelectControls(selectsToBuild);
this.recalc_table();
this.bindStuff();
};
this.addStyles = function()
{
var style = jQuery('').prependTo(thickbox),
dynamic = jQuery('