YAHOO.util.Event.addListener(window, "load", function() {
    YAHOO.example.EnhanceFromMarkup = new function() {
        var myColumnDefs = [
            {key:"image",        label:"",               sortable:false},
            {key:"motortour",    label:"Motortour",      sortable:true},
            {key:"country",      label:"Land",           sortable:true},
            {key:"price",        label:"Prijsvoorbeeld", sortable:true},
            {key:"touroperator", label:"Aanbieder",      sortable:false}
        ];
 
        this.myDataSource = new YAHOO.util.DataSource(YAHOO.util.Dom.get("motortourTable"));
        this.myDataSource.responseType = YAHOO.util.DataSource.TYPE_HTMLTABLE;
        this.myDataSource.responseSchema = {
            fields: [{key:"image"},
                    {key:"motortour"},
                    {key:"country"},
                    {key:"price"},
                    {key:"touroperator"}
            ]
        };
 
        var oConfigs = {
                paginator: new YAHOO.widget.Paginator({
                    rowsPerPage: 5
                }),
                sortedBy:{key:"motortour",dir:"asc"}
        };
        
        this.myDataTable = new YAHOO.widget.DataTable("markup", myColumnDefs, this.myDataSource, oConfigs);
        
        return {
            oDS: this.myDataSource,
            oDT: this.myDataTable
        };
    };
});