function encode(txt){txt=txt.replace('&',"&amp;");txt=txt.replace('&',"&amp;");txt=txt.replace('&',"&amp;");txt=txt.replace('&',"&amp;");txt=txt.replace('&',"&amp;");txt=txt.replace('&',"&amp;");txt=txt.replace('&',"&amp;");txt=txt.replace('&',"&amp;");txt=txt.replace(' ',"+");txt=txt.replace(' ',"+");txt=txt.replace(' ',"+");txt=txt.replace(' ',"+");txt=txt.replace(' ',"+");txt=txt.replace(' ',"+");txt=txt.replace(' ',"+");txt=txt.replace(' ',"+");txt=txt.replace(' ',"+");txt=txt.replace(' ',"+");txt=txt.replace(' ',"+");txt=txt.replace(' ',"+");return txt;}
var directie_scroll;var id_scroll;function f_scroll(directie,id){obj=document.getElementById(id);if(obj){directie_scroll=directie;id_scroll=id;if(directie_scroll!=0){obj.scrollLeft+=directie_scroll;setTimeout('f_scroll(directie_scroll,id_scroll);',1);}}}
var infoLayerview=0;function toggleInfoLayer(e){if(!infoLayerview){document.getElementById('infoLayer').style.left='0px'
infoLayerview=1;}else{document.getElementById('infoLayer').style.left='-370px'
infoLayerview=0;}}
function voteaza(nota,id){bodyContent=jQuery.ajax({url:"/ajax",global:false,type:"POST",data:({id:jQuery('#reteta_id').val(),nota:nota}),dataType:"html",async:false,success:function(msg){jQuery('#rez_vot').html(msg);}}).responseText;}
