function ajaxReRendered(jQueryId) {
	if(typeof render == 'function') 
		render(jQueryId);
}
function getBrowserType()
{
   if(navigator.userAgent.indexOf("MSIE")>0) {
        return "MSIE";
   }
   if(navigator.userAgent.indexOf("Firefox")>0){
        return "Firefox";
   }
   if(navigator.userAgent.indexOf("Safari")>0) {
        return "Safari";
   } 
   if(navigator.userAgent.indexOf("Camino")>0){
        return "Camino";
   }
   if(navigator.userAgent.indexOf("Gecko/")>0){
        return "Gecko";
   }  
}
function testIE() {
	if(getBrowserType() == "MSIE")
		return true;
	return false;
}
function switchClass(elem, className, ifIE) {
	// Ignore if meant for IE and is other than IE
	if(ifIE == true && testIE() == false)
		return;
	// Ignore if meant for other than IE and is IE
	if(ifIE == false && testIE() == true)
		return;
	elem.className=className;
}
function doKeepAlive() {
	if(cid != null && cid.length > 0)
		jQuery.get("/sessionkeepalive.seam?cid="+cid);
	else
		jQuery.get("/sessionkeepalive.seam");
}
jQuery(document).ready(function() {
	window.setInterval("doKeepAlive()", 60000);
	jQuery(".checkrequired").click(function() { return checkRequired(this); });
	jQuery(".floatinglist .controlpanel").hide();
	jQuery(".floatinglist .single").hover(
			function() { jQuery(this).find(".controlpanel").show() },
			function() { jQuery(this).find(".controlpanel").hide() });
});
function checkRequired(formElement) {
	// Do nothing
}
