if (typeof(INCLUDE_COMMON_JS) == 'undefined') {
    var INCLUDE_COMMON_JS = true;

    $(document).ready(function() {
        if (typeof(g4_admin) == 'undefined') {
            $(document).get(0).oncontextmenu = function() { return false; }
            $(document).get(0).ondragstart = function() { return false; }
            $(document).get(0).onselectstart = function() { return false; }
        }
    
        $('a').each(function() {
            $(this).focus(function() {
                this.blur();
            });
        });
        $('area').each(function() {
            $(this).focus(function() {
                this.blur();
            });
        });

        $.preload('.left-menu-image', { find:'.gif', replace:'_on.gif' });
        $('.menu-current').each(function() {
            this.src = this.src.replace('.gif','_on.gif');	
        });
        $('.left-menu-image:not(.menu-current)').hover(function() {
            this.src = this.src.replace('.gif','_on.gif');	
        },function(){
            this.src = this.src.replace('_on','');
        });

        $('#sitemap-dialog').dialog({
            modal:true,
            autoOpen:false,
            resizable:false,
            title:'Sitemap',
            width:805,
            height:605
        });
        $('#sitemap-link').click(function() {
            if ($('#sitemap-frame').attr('src') == '')
                $('#sitemap-frame').attr('src', g4_path + '/html/Sitemap.php');
            $('#sitemap-dialog').dialog('open');
        });
    });
}
