function closeAlert(alertId){var alert=document.getElementById("alert-"+alertId);alert.className+=" hidden";var newCookieValue=alertId;var hiddenAlertsCookieName="hiddenAlerts";var oldCookieValue=readCookie(hiddenAlertsCookieName);if(oldCookieValue!==null){var oldCookiesStillValid="";var cookieValues=oldCookieValue.split("\x26");for(var i=0;i<cookieValues.length;i++){var cookiesAlert=document.getElementById("alert-"+cookieValues[i]);if(cookiesAlert!==null&&cookieValues[i]!==alertId)if(oldCookiesStillValid!==
"")oldCookiesStillValid+="\x26"+cookieValues[i];else oldCookiesStillValid=cookieValues[i]}if(oldCookiesStillValid!=="")newCookieValue=oldCookiesStillValid+"\x26"+alertId}createCookie(hiddenAlertsCookieName,newCookieValue,14)}function createCookie(name,value,days){var expires="";if(days){var date=new Date;date.setTime(date.getTime()+days*24*60*60*1E3);expires="; expires\x3d"+date.toUTCString()}document.cookie=name+"\x3d"+value+expires+"; path\x3d/"}
function readCookie(name){var nameEQ=name+"\x3d";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};
