kom_obj = ''; scrolla = 0; scrollb = 0; function flip(rid,go) { current=(document.getElementById(rid).style.display == 'none') ? 'block' : 'none'; document.getElementById(rid).style.display = current; if(go==1) document.location.hash = ((current!='none') ? rid : 'home'); } function flip2() { current=(document.getElementById('img_info').style.display == 'none') ? 'block' : 'none'; document.getElementById('img_info').style.display = current; document.location.hash = ((current!='none') ? 'comments' : 'home'); } function goup() { document.location.hash = 'home'; } function link(a) { if(window['scroll'+a]!=1) { $('comm_and_note').scrollTo(); window['scroll'+a] = 1; } else window['scroll'+a] = 0; } function save_comment() { advAJAX.post({ url: "http://blog.piotrgalas.com/comment.php", parameters : { "cbaa8780cf01cb37054917b284eae16b8c681758" : document.getElementById("amsg").value, "eccb5ca94b5f1dfd7449d9b37174d90e3b50efb4" : document.getElementById("name").value, "fa1701a409985383aff8402dd59013535212bcfb" : document.getElementById("url").value, "b8963668ef015b3978fdd08d9a69e6e90e26f715" : document.getElementById("email").value, "3e0508230d8bdca192a08a7a0b0d16aea9f3ebd3" : document.getElementById("parent_id").value, "60a59130e0929f7857e3d5705a8bcceb0abd74cb" : document.getElementById("parent_name").value, "f84ba1a07b141f9a8e6c88f3b64c59dc4c0dcda0" : document.getElementById("vcookie").value }, timeout : 10000, onTimeout : function() { document.getElementById("add_state").innerHTML = "Connection timed out."; }, retry: 2, retryDelay: 2000, onRetry : function() { document.getElementById("add_state").innerHTML = "Retry connection..."; }, onRetryDelay : function() { document.getElementById("add_state").innerHTML = "Awaiting retry..."; }, onInitialization : function() { document.getElementById("add_state").innerHTML = "Saving comment..."; document.getElementById("comment_form").style.display = "none"; document.getElementById("add_state").style.display = "block"; }, onLoading : function() { document.getElementById("add_state").innerHTML = "Loading..."; }, onSuccess : function(obj) { document.getElementById("add_state").innerHTML = "