function IncludeJavaScript(jsFile)
{
  document.write('<'+'script type="text/javascript" src="'+jsFile+'"><'+'/script'+'>'); 
}

if (typeof jQuery == 'undefined') 
{
	IncludeJavaScript('http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js');
} 
IncludeJavaScript('http://www.localendar.com/js/jquery/btips/jquery.hoverIntent.minified.js');
IncludeJavaScript('http://www.localendar.com/js/jquery/btips/jquery.bgiframe.min.js');
IncludeJavaScript('http://www.localendar.com/js/jquery/btips/jquery.bt.js');
IncludeJavaScript('http://www.localendar.com/js/jquery/btips/excanvas.compiled.js');
IncludeJavaScript('http://www.localendar.com/js/jquery/jquery.blockUI.js');

/*
IncludeJavaScript('http://www.localendar.com/flXHR/flXHR.js');
IncludeJavaScript('http://www.localendar.com/js/jquery/jquery.xhr.js');
IncludeJavaScript('http://www.localendar.com/js/jquery/jquery.flXHRproxy.js');
*/

document.write('<div id="localendar-nothing" class="localendar-popFill" ><img style="width:0px;height:0px"/></div>');

document.write('<'+'script'+'>');
document.write('function mini(toDate,calendarID) {');

document.write('$("#elsiemini").block({ message: "",overlayCSS: { backgroundColor: "#333" } });');
document.write('$.getJSON("http://www.localendar.com/elsie?JSP=PublishedIncludeMini&mode=PUBLISH_PUBLIC&include=N&miniajax=Y&search_type=M5&start_date="+toDate+"&calendar_id="+calendarID+"&callback=?",');
document.write('function(json) {$("#elsiemini").html(json.html);$("#elsiemini").unblock();}');
document.write(');'); 

/*
document.write('$("#elsiemini").block({ message: "loading...",overlayCSS: { backgroundColor: "#333" } });');
document.write('try {');
//-olddocument.write('$("#elsiemini").load("/elsie?JSP=PublishedIncludeMini&mode=PUBLISH_PUBLIC&include=N&miniajax=Y&search_type=M5&start_date="+toDate+"&calendar_id="+calendarID);');
document.write('jQuery.ajaxSetup({transport:"flXHRproxy",error:handleError});');
document.write('jQuery.flXHRproxy.registerOptions("http://www.www.localendar.com",{xmlResponseText:false});');
document.write('$("#elsiemini").load("http://www.www.localendar.com/elsie?JSP=PublishedIncludeMini&mode=PUBLISH_PUBLIC&include=N&miniajax=Y&search_type=M5&start_date="+toDate+"&calendar_id="+calendarID);');
document.write('}catch(e){$("#elsiemini").unblock();}');
*/
document.write('}');

document.write('function handleError(XHRobj,errtype,errObj) {');
document.write('$("#elsiemini").unblock();');
//document.write('alert("Error: "+errObj.number+" Type: "+errObj.name+" Description: "+errObj.description+" Source Object Id: "+errObj.srcElement.instanceId);');
document.write('}');

document.write('<'+'/script'+'>');


