/*===============================================*\
|| ############################################# ||
|| # JAKWEB.CH / Version 3.1                   # ||
|| # ----------------------------------------- # ||
|| # Copyright 2016 JAKWEB All Rights Reserved # ||
|| ############################################# ||
\*===============================================*/

$(document).ready(function(){$('.star').on("mouseover",function(){var star_id=$(this).attr('id');switch(star_id){case"star-1":$("#star-1").addClass('star-checked');$("#star-2").removeClass('star-checked');$("#star-3").removeClass('star-checked');$("#star-4").removeClass('star-checked');$("#star-5").removeClass('star-checked');$('#fbvote').val(1);break;case"star-2":$("#star-1").addClass('star-checked');$("#star-2").addClass('star-checked');$("#star-3").removeClass('star-checked');$("#star-4").removeClass('star-checked');$("#star-5").removeClass('star-checked');$('#fbvote').val(2);break;case"star-3":$("#star-1").addClass('star-checked');$("#star-2").addClass('star-checked');$("#star-3").addClass('star-checked');$("#star-4").removeClass('star-checked');$("#star-5").removeClass('star-checked');$('#fbvote').val(3);break;case"star-4":$("#star-1").addClass('star-checked');$("#star-2").addClass('star-checked');$("#star-3").addClass('star-checked');$("#star-4").addClass('star-checked');$("#star-5").removeClass('star-checked');$('#fbvote').val(4);break;case"star-5":$("#star-1").addClass('star-checked');$("#star-2").addClass('star-checked');$("#star-3").addClass('star-checked');$("#star-4").addClass('star-checked');$("#star-5").addClass('star-checked');$('#fbvote').val(5);break}});$('.star').click(function(){var star_index=$(this).attr("id").split("-")[1];$('#fbvote').val(star_index)});$('.updown').on("click touch",function(){var updown_id=$(this).attr('id');switch(updown_id){case"updown-1":$("#updown-1").addClass('thumb-down');$("#updown-2").removeClass('thumb-up');$('#fbvote').val(1);break;case"updown-2":$("#updown-1").removeClass('thumb-down');$("#updown-2").addClass('thumb-up');$('#fbvote').val(5);break}})});
