jQuery(document).ready(function($) {
 
/* Check to see if 'canvas' is supported
   in the current browser */
if (Modernizr.canvas) {
 
    /* Check if the 'html5' id is defined */
    var canvas = $('#html5');
    if(canvas.length) {
        /* If yes, then insert the 'canvas' element in the div */
        canvas.html('<canvas id="canvas"></canvas>');
 
        /* Get the name of the javascript file to load.
           This is specified in the 'title' tag of the div
           in the post.
        */
        var fileToLoad = canvas.attr('title');
 
        /* Set appropriate width and height for the canvas */
        $('#canvas').attr('width', '950');
        $('#canvas').attr('height', '400');
 
        /* Load external javascript that we want to run */
        $.getScript("http://indiemaps.com/projects/CanvasMap/" + fileToLoad  + ".js", 
                    function(){
                        start();
                    });
    }
}
});