// This file outputs google's hosted jquery 1.5.1 in a script tag in the document head
// if jquery is not already called within the document

var jQueryScriptOutputted = ((typeof(jQueryScriptOutputted) == 'undefined') ? false : true);
function initJQuery() {
    
    //if the jQuery object isn't available
    if (typeof(jQuery) == 'undefined') {    
    
        if (! jQueryScriptOutputted) {
            //only output the script once..
            jQueryScriptOutputted = true;
            
            //output the script (load it from google api)
            document.write("<scr" + "ipt type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js\"></scr" + "ipt>");
        }
        setTimeout("initJQuery()", 50);
    }
            
}
initJQuery();
