$(document).ready(function () { var container_width = 100 * $(".color_one_panel div").length; $(".color_one_panel").css("width", container_width); var container_width = 100 * $(".color_two_panel div").length; $(".color_two_panel").css("width", container_width); var container_width = 100 * $(".color_three_panel div").length; $(".color_three_panel").css("width", container_width); var container_width = 100 * $(".color_four_panel div").length; $(".color_four_panel").css("width", container_width); var container_width = 100 * $(".color_five_panel div").length; $(".color_five_panel").css("width", container_width); var container_width = 100 * $(".color_six_panel div").length; $(".color_six_panel").css("width", container_width); var container_width = 100 * $(".color_seven_panel div").length; $(".color_seven_panel").css("width", container_width); var container_width = 100 * $(".color_eight_panel div").length; $(".color_eight_panel").css("width", container_width); var container_width = 100 * $(".color_nine_panel div").length; $(".color_nine_panel").css("width", container_width); var container_width = 100 * $(".color_ten_panel div").length; $(".color_ten_panel").css("width", container_width); var container_width = 100 * $(".color_eleven_panel div").length; $(".color_eleven_panel").css("width", container_width); var container_width = 100 * $(".color_twelve_panel div").length; $(".color_twelve_panel").css("width", container_width); var container_width = 100 * $(".color_thirteen_panel div").length; $(".color_thirteen_panel").css("width", container_width); var container_width = 100 * $(".color_fourteen_panel div").length; $(".color_fourteen_panel").css("width", container_width); var container_width = 100 * $(".color_fifteen_panel div").length; $(".color_fifteen_panel").css("width", container_width); var container_width = 100 * $(".color_sixteen_panel div").length; $(".color_sixteen_panel").css("width", container_width); var container_width = 100 * $(".color_seventeen_panel div").length; $(".color_seventeen_panel").css("width", container_width); var container_width = 100 * $(".color_eighteen_panel div").length; $(".color_eighteen_panel").css("width", container_width); var container_width = 100 * $(".color_nineteen_panel div").length; $(".color_nineteen_panel").css("width", container_width); var container_width = 100 * $(".color_twenty_panel div").length; $(".color_twenty_panel").css("width", container_width); var container_width = 100 * $(".color_twenty_one_panel div").length; $(".color_twenty_one_panel").css("width", container_width); var container_width = 100 * $(".color_twenty_two_panel div").length; $(".color_twenty_two_panel").css("width", container_width); var container_width = 100 * $(".color_twenty_three_panel div").length; $(".color_twenty_three_panel").css("width", container_width); var container_width = 100 * $(".color_twenty_four_panel div").length; $(".color_twenty_four_panel").css("width", container_width); var container_width = 100 * $(".color_twenty_five_panel div").length; $(".color_twenty_five_panel").css("width", container_width); var container_width = 100 * $(".color_twenty_six_panel div").length; $(".color_twenty_six_panel").css("width", container_width); var container_width = 100 * $(".color_twenty_seven_panel div").length; $(".color_twenty_seven_panel").css("width", container_width); var container_width = 100 * $(".color_twenty_eight_panel div").length; $(".color_twenty_eight_panel").css("width", container_width); var container_width = 100 * $(".color_twenty_nine_panel div").length; $(".color_twenty_nine_panel").css("width", container_width); var container_width = 100 * $(".color_thirty_panel div").length; $(".color_thirty_panel").css("width", container_width); var container_width = 100 * $(".color_thirty_one_panel div").length; $(".color_thirty_one_panel").css("width", container_width); var container_width = 100 * $(".color_thirty_two_panel div").length; $(".color_thirty_two_panel").css("width", container_width); var container_width = 100 * $(".color_bindings_panel div").length; $(".color_bindings_panel").css("width", container_width); var container_width = 100 * $(".color_elastic_panel div").length; $(".color_elastic_panel").css("width", container_width); var container_width = 100 * $(".color_stitching_panel div").length; $(".color_stitching_panel").css("width", container_width); var container_width = 100 * $(".color_pocket_lacing_panel div").length; $(".color_pocket_lacing_panel").css("width", container_width); var container_width = 100 * $(".color_inner_lacing_panel div").length; $(".color_inner_lacing_panel").css("width", container_width); var container_width = 100 * $(".color_outer_lacing_panel div").length; $(".color_outer_lacing_panel").css("width", container_width); var container_width = 100 * $(".color_lacing_panel div").length; $(".color_lacing_panel").css("width", container_width); var container_width = 100 * $(".color_transfers_panel div").length; $(".color_transfers_panel").css("width", container_width); var container_width = 100 * $(".color_embroidery_panel div").length; $(".color_embroidery_panel").css("width", container_width); var container_width = 208 * $(".scrolling-tabs li").length; $(".scrolling-tabs").css("width", container_width); });