 	    $(function () {
 	        GGSB(['data', 'maptools', 'shotTrace', 'shotList', 'event'], function (ggsb) {
 	            var data = new ggsb.Data();

 	            ggsb.dataObj = data;

 	            ggsb.initEvent();

 	            var maptools = new ggsb.MapTools();
 	            var shotTrace = new ggsb.ShotTrace();
 	            var shotList = new ggsb.ShotList();


 	            $('.topRoundTab').each(function () {
 	                $(this).bind('click', function () {

 	                    maptools.showWait();

 	                    var obj = $(this).parents('li');
 	                    data.initData({
 	                        data: {
 	                            userID: obj.find('.userID').eq(0).val(),
 	                            roundRecordID: obj.find('.roundRecordID').eq(0).val(),
 	                            golfID: obj.find('.golfID').eq(0).val(),
 	                            frontCourseID: obj.find('.frontCourseID').eq(0).val(),
 	                            backCourseID: obj.find('.backCourseID').eq(0).val()
 	                        },
 	                        api: ['golf', 'round', 'cdclub', 'myweapon'],
 	                        triggerEventName: 'completeInitData'
 	                    });
 	                });
 	            });

 	            $('.topRoundTab').eq(0).click();


 	            $(window).bind('completeInitData', function (e, args) {
 	                maptools.initMap({ data: data });

 	                shotTrace.setupMap({
 	                    map: maptools.getMap(),
 	                    courseId: $('.topRoundTabDisplay>div:visible .staticTable .holenum .holeNo').eq(0).html(),
 	                    data: data,
 	                    editable: false,
 	                    drawLine: true,
 	                    showPanel: true
 	                });

 	                shotList.setupShotList({ data: data, editable: false });

 	                $('.topRoundTabDisplay>div:visible .staticTable .holenum:eq(0)').trigger('click');

 	                maptools.hideWait();
 	            });
 	        });
 	    });

