var jq = jQuery.noConflict();

var scj = {};
scj.randomize = function() {
    var now = new Date;
    var mil1970 = now.getTime();
    var datePlusRandom = mil1970 + "" + Math.floor(Math.random() * 100);
    return "?&r=" + datePlusRandom;
}

function rahGladeOverlayHide() {
    $('#glade-modal').jqmHide();
}

function MapVarToFlashRef(p_element) {
    var l_id = jq(p_element).attr('id');
    if (l_id && !window[l_id]) {
	window[l_id] = document.getElementById(l_id);
    }
}

jq(document).ready(function() {
    var modal = jq('#glade-modal').clone();
    jq('#glade-modal').remove();
    modal.appendTo('body');
    $('#glade-modal').jqm();
});
