function stripBorder_9_yp547c71c9e001e(object) { object.each(function() { if( parseInt(jQuery(this).width() ) > 0) { jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css("border-left-width")) - parseInt(jQuery(this).css("border-right-width")) ); } else { jQuery(this).css("border-left-width", "0px"); jQuery(this).css("border-right-width", "0px"); } }); } function stripPadding_9_yp547c71c9e001e(object) { object.each(function() { jQuery(this).width( parseInt( jQuery(this).width() ) - parseInt(jQuery(this).css("padding-left")) - parseInt(jQuery(this).css("padding-left")) ); }); } function strip_results_9_yp547c71c9e001e() { stripPadding_9_yp547c71c9e001e( jQuery("#yop-poll-container-9_yp547c71c9e001e .yop_poll_li_result-9_yp547c71c9e001e") ); stripBorder_9_yp547c71c9e001e( jQuery("#yop-poll-container-9_yp547c71c9e001e .yop-poll-result-bar-9_yp547c71c9e001e") ); } jQuery(document).ready(function(e) { jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display'); if(typeof window.strip_results_9_yp547c71c9e001e == "function") strip_results_9_yp547c71c9e001e(); if(typeof window.tabulate_answers_9_yp547c71c9e001e == "function") tabulate_answers_9_yp547c71c9e001e(); if(typeof window.tabulate_results_9_yp547c71c9e001e == "function") tabulate_results_9_yp547c71c9e001e(); }); function equalWidth_9_yp547c71c9e001e(obj, cols, findWidest ) { findWidest = typeof findWidest !== "undefined" ? findWidest : false; var quest=0; if ( findWidest ) { obj.each(function() { var thisWidth = jQuery(this).width(); width = parseInt(thisWidth / cols); jQuery(this).width(width); jQuery(this).css("float", "left"); }); } else { var widest = 0; var count = 0; var poz_each_question=0; obj.each(function() { count++; cols[quest][2]=(jQuery('#yop-poll-answers-9_yp547c71c9e001e-'+ cols[quest][3] +' li').length); var thisWidth = jQuery(this).width(); if(thisWidth > widest) { widest = thisWidth; } if(count widest) { widest = thisWidth; } if(count