var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-9685359-1");
pageTracker._trackPageview();
} catch(err) {}

function loadGlat(zd, zp){
        if (GBrowserIsCompatible()) {
                var map = new GMap2(document.getElementById("map"));
                map.enableScrollWheelZoom();
                map.setCenter(new GLatLng(zd, zp), 13);
                var point = new GLatLng(zd, zp);
                map.addOverlay(new GMarker(point));
        }
        $('#zoom_in').click(function(){
                map.zoomIn();
        });
        $('#zoom_out').click(function(){
                map.zoomOut();
        });
}

var first_id = null;

function move(id) {
        document.getElementById('t'+id).onmousemove=moveHelp;

        function moveHelp(evnt) {
                var curleft = document.body.offsetLeft;
                var curtop = document.body.offsetTop;

                obj = document.getElementById('t'+id);
                while (obj.offsetParent) {
                   curleft += obj.offsetLeft;
                   obj = obj.offsetParent;
                }
                   
                obj = document.getElementById('t'+id);
                while (obj.offsetParent) {
                   curtop += obj.offsetTop;
                   obj = obj.offsetParent;
                }

                if( id == "menu0" ) {
                        document.getElementById(id).style.left=(curleft + 20) + 'px';
                        document.getElementById(id).style.top=(curtop + 33) + 'px';
                }else{
                        document.getElementById(id).style.left=(curleft + 20) + 'px';
                        document.getElementById(id).style.top=(curtop + 33) + 'px';				
                }
        }
}

function showHelp(id) {
        if( first_id != null ) {
                document.getElementById(first_id).style.visibility='hidden';
        }

        document.getElementById(id).style.visibility='visible';
        move(id);

        first_id = id;
}

function hideHelp(id) {
        document.getElementById(id).style.visibility='hidden';
}
