var candy=candy||{};(function(c,f,b){candy.system={show:h,hide:d,quote:a,stripNoAlphaChars:i,stripSlash:e,confirmDestroy:g};function h(j){c(j).slideDown();if(c("#js-flash_success")||c("#js-flash_error")){d(j,5000)}}function d(j,k){c(j).delay(k).slideUp()}function a(m,j){var n=c("#js-create_commment_text").val();var k=c("#"+j).html();var l="[quote="+m+"]"+k+"[/quote]\n";c("#js-create_commment_text").val(n+l);return false}function i(j){j=j.replace(/ /g,"_");j=j.replace(/Ä/g,"Ae");j=j.replace(/ä/g,"ae");j=j.replace(/Ö/g,"Oe");j=j.replace(/ö/g,"oe");j=j.replace(/Ü/g,"Ue");j=j.replace(/ü/g,"ue");j=j.replace(/ß/g,"ss");j=j.replace(/\W/g,"_");return j}function e(j){j=j.replace(/\//g,"&frasl;");return j}function g(j){if(confirm(lang.confirm_destroy)){parent.location.href=j}}})(jQuery,window);if($("#js-flash_success")||$("#js-flash_error")){candy.system.show("#js-flash_message")};
