		jQuery(document).ready(function(){
                        var w = Math.round($(window).width());
                        var h = Math.round($(window).height());
                        jQuery("div#map_canvas").css({
                                width: w,
                                height: h
                        });
			setLogo();
			setBackLogo();
                        setCenterFloter();
                        showLoading();
                });
                function winResize(){
                        var h = $(window).height();
                        var w = $(window).width();
                        jQuery("div#map_canvas").css({
                                width: w+"px",height: h+"px"
                        });
                        setCenterFloter();
                        showLoading();
                }
		function setLogo(){
                        jQuery("div#mapsearch_logo").css({
                                position: "absolute",
                                top: "3px",
                                left: "3px",
                                display: "block"
                        });
                }
		function setBackLogo(){
                        jQuery("div#bl").css({
                                position: "absolute",
                                top: "49px",
                                left: "29px",
                                display: "block"
                        });
                }
                function setCenterFloter(){
                        var w = Math.round(($(window).width() - 800) / 2);
                        var h = Math.round(($(window).height() - 600) / 2);
                        if (w < 30) w = 30;
                        if (h < 113) h = 113;
                        jQuery("div#mapsearch_floter").css({
                                position: "absolute",
                                bottom: h+"px",
                                left: w+"px",
                                display: "block"
                        });
                }
		function showLoading(){
                        var w = Math.round(($(window).width() - 107) / 2);
                        var h = Math.round(($(window).height() - 27) / 2);
                        if (w < 0) w = 0;
                        if (h < 0) h = 0;
                        jQuery("div#mapsearch_loading").css({
                                position: "absolute",
                                top: h+"px",
                                left: w+"px",
                                display: "block"
                        });
                        setTimeout('hideLoading()', 1000);
                }
                function hideLoading(){
                        jQuery("div#mapsearch_loading").css({
                                display: "none"
                        });
                }

