if (typeof jQuery == 'undefined') 
{
	var script = document.createElement('script');
    script.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js';
    document.body.insertBefore( script, document.body.firstChild );
}
function closeBar()
{
	$("#feedbackbar").hide("slow");
	//set cookie to not show this for a while
	var expire = new Date();
	expire.setMonth(expire.getMonth()+1);
	document.cookie = 'showbar=false; expires=' + expire.toUTCString() + '; path=/';
}
function showFeedbackBar()
{
	$("#feedbackbar").show("slow");
}
function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}
