[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"dantek","theme_token":"6-8xi7zTviz-4FAJ_fiYhyYP5reCkG7cwJnZBw9EsT8"},"colorbox":{"opacity":"0.85","current":"{current} of {total}","previous":"\u00ab Prev","next":"Next \u00bb","close":"Zav\u0159\u00edt","maxWidth":"98%","maxHeight":"98%","fixed":true,"mobiledetect":true,"mobiledevicewidth":"480px"}},"merge":true},{"command":"modal_display","title":"Vyberte rozm\u011br","output":"\u003Ch3\u003EVyberte rozm\u011br\u003C\/h3\u003E\u003Cdiv class=\u0022rozmer\u0022\u003E\u003C\/div\u003E\n\t\t\t\u003Cscript\u003E\n\t \/\/ Get dimensions table\n\t jQuery.post(\u0027\/dimension_table\/\u0027 + jQuery(\u0027input[name=product_nid]\u0027).val(), \u0027\u0027, function(data){\n \t jQuery(\u0027.rozmer\u0027).html(data);\n \t\t\n \t\t\t\/\/ Select dimension\n \t\t\tvar selected_dim = jQuery(\u0027input[name=custom_dimension]\u0027).val();\n \t\t\tvar default_dim = jQuery(\u0027input[name=default_dimension_nid]\u0027).val();\n \t\t\tif(selected_dim != default_dim) jQuery(\u0027input[value=\u0027 + selected_dim + \u0027]\u0027).prop(\u0027checked\u0027, true);\n \t\t\n \t\t\t\/\/ Get image for quality\n \t\t\tjQuery(\u0027.rozmer_kvalita\u0027).each(function(){\n \t\t\t\tvar dimension_width = jQuery(this).find(\u0027input[name=dimension_width]\u0027).val();\n \t\t\t\tdimension_width = parseInt(dimension_width);\n \t\t\t\tvar dpi = ((selection[2] - selection[0]) * scale_ratio_width) \/ (dimension_width * 0.393701);\n \t\t\t\tdpi = parseInt(dpi);\n \t\t\t\tvar src = \u0027\/sites\/default\/files\/\u0027;\n \t\t\t\tif(dpi \u003C 75) src += \u0027sm3_small.png\u0027;\n \t\t\t\tif(dpi \u003E=75 \u0026\u0026 dpi \u003C= 150) src += \u0027sm2_small.png\u0027;\n \t\t\t\tif(dpi \u003E 150) src += \u0027sm1_small.png\u0027;\n \t\t\t\tjQuery(this).html(\u0027\u003Cimg src=\u0022\u0027 + src + \u0027\u0022\u003E\u0027);\n \t\t\t});\n\t\t\t});\n\t\t\t\u003C\/script\u003E"}]