
function change_prod_img(image,caption,thumb){show_prodimg_navi(null);}
function extract_prodimg_suffix(){var k=$(".galleria_wrapper img").attr("src");if(k){k=k.split("/");k=k[k.length-1];return k;}else{return null;}}
function show_prodimg_navi(event){$("#prodimg_navi_hover_zoom").toggleClass("hidden",!Boolean(prodimg_zoom_match[extract_prodimg_suffix()]));if(event){$("#proimg_navi_hover:not(.visible)").addClass("visible").stop(true,true).fadeIn();}}
function hide_prodimg_navi(event){$("#proimg_navi_hover.visible").removeClass("visible").stop(true,true).fadeOut("fast");}
function prodimg_prev_click(){var i=prodimg_prev[$(".galleria_wrapper img").attr("src")];$("#thumbnails li img[rel="+i+"]").click();}
function prodimg_next_click(){var i=prodimg_next[$(".galleria_wrapper img").attr("src")];$("#thumbnails li img[rel="+i+"]").click();}
function prodimg_zoom_click(){var target=prodimg_zoom_match[extract_prodimg_suffix()];if(target){$.facebox({image:target});}}
function init_vote_blue(vote){vote=Math.round(vote);var i=0;for(i=1;i<6;i++){$("#vote_blue_"+i).toggleClass("check",i<=vote);}}
function update_my_vote_check(current,id){id=id?id:"";var i=1;for(i=1;i<6;i++){$("#"+id+"vote_mine_"+i).toggleClass("check",i<=current);}}
function my_vote_action(event){if(event.type=='mouseleave'){update_my_vote_check(parseInt($("#comment_my_vote_value").attr("value")));}}
function update_my_vote(event){var current=parseInt(this.title);if(current>0&&current<6){update_my_vote_check(current)}}
function set_my_vote(event){var current=parseInt(this.title);if(current>0&&current<6){$("#comment_my_vote_value").attr("value",current);update_my_vote_check(current);}}
function my_short_vote_action(event){if(event.type=='mouseleave'){update_my_vote_check(parseInt($("#my_short_vote_value").attr("value")),"short_");}}
function update_my_short_vote(event){var current=parseInt(this.title);if(current>0&&current<6){update_my_vote_check(current,"short_")}}
function set_my_short_vote(event){var current=parseInt(this.title);if(current>0&&current<6){$("#my_short_vote_value").attr("value",current);update_my_vote_check(current,"short_");}}
function comment_login(){$("#login_form").append("<input type=hidden name=vote value="
+$("#comment_my_vote_value").attr("value")+" />");$("#login_form").append($("<input type=hidden name=comment />").attr("value",$("#comment_my_comment_text").val()));$("#login_form").submit();}
function front_alert_close(event){$("div.front_alert").fadeOut();}