');
}
jQuery('div#' + ramaPodgladId).hide();
for (i = 0; i
');
jQuery('#bigImg')
.css('top', (e.pageY - Math.ceil(imgHeight / 2)) + 'px')
.css('left', (e.pageX - imgWidth - 20) + 'px')
.fadeIn('fast');
},
function () {
jQuery('#bigImg').remove();
});
jQuery('#' + ramaPodgladId + ' a').mousemove(function (e) {
jQuery('#bigImg')
.css('top', (e.pageY - Math.ceil(imgHeight / 2)) + 'px')
.css('left', (e.pageX - imgWidth - 20) + 'px');
});
} else if (symbol == 'RAMA' && 'gfx/mini/' + plik == oldLinkRama) {
jQuery('div#' + ramaPodgladId).show();
}
}
}
}
function zmien_odbicie() {
var link = baseHref + 'fotolia.php?id=50306611&plik=';
if (jQuery('#fotosView').length > 0) {
link = link + '&efektOpt=' + jQuery('#fotosView').val();
}
var odbijAkcja = 0;
var reloadCrop = false;
if (jQuery('#odbij').length > 0) {
var odbijElem = jQuery('#odbij');
var odbijAkcja = odbijElem.val();
if (odbicia[odbijAkcja] != undefined) {
odbijAkcja = odbicia[odbijAkcja];
if (odbijAkcja == 1 || odbijAkcja == 2) // obrot
{
reloadCrop = true;
}
} else {
odbijAkcja = 0;
}
}
link = link + '&akcja=' + odbijAkcja;
var odbijLink = '&pion=' + jQuery('#pion').val() + '&poziom=' + jQuery('#poziom').val() + '&obrot=' + jQuery('#obrot').val();
if (reloadCrop == false) {
jQuery('#fotos').attr('src', link + odbijLink + '&rozmiar=400');
jQuery('.jcrop-holder img').attr('src', link + odbijLink + '&rozmiar=400');
if (odbijAkcja == 3) {
jQuery('#pion').attr('value', 1);
jQuery('#poziom').attr('value', 0);
} else if (odbijAkcja == 4) {
jQuery('#pion').attr('value', 0);
jQuery('#poziom').attr('value', 1);
} else if (odbijAkcja == -1) {
jQuery('#pion').attr('value', 0);
jQuery('#poziom').attr('value', 0);
}
} else {
jQuery('div.jc-pelna-rama').hide();
jQuery('div#detCardMain').css('position', 'relative').prepend('
');
jQuery.get(link+'&onlyData=1', function(data)
{
var dane=data.match(/([0-9]{1,}),([0-9]{1,}),([0-9]{1,}),([0-9]{1,}),([0-9]{1,}),([0-9]{1,}),([0-9]{1,})/)
if(dane != undefined && dane != null)
{
var indMxSzer=parseFloat(dane[1]);
var indMxWys=parseFloat(dane[2]);
jQuery('span#maxSzer').html(indMxSzer);
jQuery('span#maxWys').html(indMxWys);
jQuery('div#maxWymDiv').html('Maximum size (width x height): '+indMxSzer+' x '+indMxWys);
jQuery('#maxWymSzer').attr('value', indMxSzer);
jQuery('#maxWymWys').attr('value', indMxWys);
szer=parseFloat(dane[3]);
wys=parseFloat(dane[4]);
obr=parseFloat(dane[5]);
v=parseFloat(dane[6]);
w=parseFloat(dane[7]);
jQuery('#pion').attr('value', v);
jQuery('#poziom').attr('value', w);
jQuery('#obrot').attr('value', obr);
jQuery('div#reloader').remove();
jQuery('div#detCardMain').css('position', 'static');
jQuery('div.jc-pelna-rama').show();
var odbijLink='&pion='+v+'&poziom='+w+'&obrot='+obr;
jQuery('#fotos').attr('src', link+odbijLink+'&rozmiar=400');
jQuery('#fotos').css('width', szer+'px').css('height', wys+'px');
jcrop.setImage(jQuery('#fotos').attr('src'));
jcrop.destroy();
setTimeout('initCrop();recountPrice();',500);
}
});
}
if (jQuery('.wizFotka').length > 0) {
jQuery('.wizFotka').parent().css('backgroundImage', 'ur' + 'l(' + link + odbijLink + '&rozmiar=400)');
}
}
var selLan = '4';
var _daneZdjecia = {
idFototapety: 50306611,
id: 26,
idCart: 50306611,
nazwa: 'Steinmauer mit Efeu',
waluta: 'USD',
cena: 13.11,
nazwaKategorii: 'Posters'
};
var px = 0;
var py = 0;
var maxSzer = 210;
var maxWys = 80;
var startSzer = 210;
var startWys = 80;
var newMaxSzer = 0;
var newMaxWys = 0;
var lastRotate = 0;
function rotateCrop() {
if (jQuery("span#addSize input#rotate").attr("value") == 1) {
jQuery("span#addSize input#rotate").attr("value", "0");
} else {
jQuery("span#addSize input#rotate").attr("value", "1");
}
setCrop(jcrop);
}
function setCrop(jcrop) {
// IND MYLO
//jQuery('tr#ramaZ').show();
// IND MYLO
jQuery('tr#ramaW').remove();
var dane = getSize();
var product_x = dane[0];
var product_y = dane[1];
recountPrice();
var photo_x = jQuery("#fotos").width() * 1;
var photo_y = jQuery("#fotos").height() * 1;
var crop_x = Math.round(product_x / product_y * photo_y);
var crop_y = Math.round(product_y / product_x * photo_x);
if (crop_x > photo_x) {
crop_x = photo_x;
}
if (crop_y > photo_y) {
crop_y = photo_y;
}
if (jcrop) {
jcrop.release();
jcrop.setSelect([0, 0, crop_x, crop_y]);
}
setLabels();
}
function setLabels() {
var cont = jQuery(".jcrop-holder > div:first-child");
if (jQuery("#wysokosc").length > 0) {
tmp_wys = jQuery("#wysokosc").val() || 0;
tmp_szer = jQuery("#szerokosc").val() || 0;
} else {
tmp_wym = jQuery("#zamWym option:selected").text();
tmp_szer = (tmp_wym.match(/^([0-9.]{1,})/) || [, 0])[1];
tmp_wys = (tmp_wym.match(/[ x]{1,2}([0-9.]{1,})[ ]{1,}/) || [, 0])[1];
}
if (cont.length > 0 && jQuery("#labelLeft").length == 0) {
cont.prepend('
');
}
tmp_left = jQuery(".jcrop-tracker").width() / 2 - 110
tmp_top = jQuery(".jcrop-tracker").height() / 2 - 15;
tmp_top_left = -65;
tmp_left_top = -150;
if (jQuery(".jc-pelna-rama:visible .jc-gora-srodek").length > 0) tmp_top_left = tmp_top_left - jQuery(".jc-gora-srodek").height();
if (jQuery(".jc-pelna-rama:visible .jc-lewa").length > 0) tmp_left_top = tmp_left_top - jQuery(".jc-lewa").width();
jQuery("#labelLeft").css({'top': tmp_top + 'px', 'left': tmp_left_top + 'px'});
jQuery("#labelTop").css({'left': tmp_left + 'px', 'top': tmp_top_left + 'px'});
jQuery("#labelLeft .labelTag").html(tmp_wys + '
in ');
jQuery("#labelTop .labelTag").html(tmp_szer + '
in ');
}
jcrop = null;
var lccSave = 0;
function initCrop() {
jQuery('#fotos').Jcrop({
bgColor: 'black',
bgOpacity: 0.3,
allowSelect: false,
allowResize: false,
onChange: function (coord) {
var crop = coord.x + ',' + coord.y + ',' + coord.x2 + ',' + coord.y2;
jQuery("#koordynaty").attr("value", crop);
if (lccSave > 1) {
var sizes = getSize();
sizes = sizes[0] + ',' + sizes[1];
setCookie("lastCrop", '50306611:' + sizes + ':' + crop, 1643213540);
}
lccSave++;
setRama(false, 0);
zmienRozmiarWizualizacji(true);
}
}, function () {
jcrop = this;
setCrop(jcrop);
});
}
jQuery(window).bind('pageshow', function () {
if (jcrop != null) {
setCrop(jcrop);
var prev = getCookie("lastCrop");
if (prev != undefined && prev != null && prev != '') {
prev = decodeURIComponent(prev);
var data = prev.split(':');
if (data[0] == jQuery('input[name="idFototapety"]').val()) {
var oldSizes = data[1].split(',');
var sizes = getSize();
if (sizes[0] == oldSizes[0] && sizes[1] == oldSizes[1]) {
var crop = data[2].split(',');
jQuery('#koordynaty').val(data[2]);
jcrop.release();
jcrop.setSelect(crop);
}
}
}
}
});
var maskList = null;
var maskJson = '[]';
var ram=new Array();var odbicia=new Array();odbicia[500]=-1;jQuery(document).ready(function() {jQuery('#odbij').val(500);});odbicia[501]=4;odbicia[502]=3;var uklPic=new Array();uklPic['487']='1400746133.2256.png';uklPic['488']='1400746139.1526.png';uklPic['490']='1400746145.228.png';uklPic['496']='1400746166.9645.png';uklPic['498']='1400746177.1551.png';jQuery(document).ready(function() { rotateCrop(); });
var stopRamaReload = false;
function multiKadr(on) {
// IND MYLO
//jQuery('tr#ramaZ').show();
// IND MYLO
jQuery('tr#ramaW').remove();
idWartosciRamy = 0;
initCrop();
}
var curUklad, curUkladData;
var uklInfo = 'The choice of the layout is available only for pre-defined dimensions.';
function setUklad() {
wuklad = jQuery('#wuklad');
wuklad.hide();
idWar = wuklad.val();
if (idWar > 0) {
if (jQuery('#wukladPhoto').length == 0) {
wuklad.closest('td').append('
' + wuklad.find('option:selected').html() + '
');
}
if (uklPic[idWar] != undefined) {
jQuery('#wukladPhoto').html('');
url = baseHref + 'ajaxDialog.php?rozmiaryUkladow=1&idWarWyb=' + jQuery('#wuklad').val() + '&idWarUkl=' + jQuery('#uklad').val() + '&idWarWym=' + jQuery('#zamWym').val();
if (jQuery('#zamWym').val() != undefined && curUklad != url) {
curUklad = url;
jQuery.getJSON(url, function (data) {
jQuery('#wukladOpis').html(data);
curUkladData = data;
});
} else {
jQuery('#wukladOpis').html(curUkladData);
}
} else {
jQuery('#wukladPhoto').html('');
}
}
}
function wlasnyRozmiar(idWar) {
if (idWar != undefined && idWar != null && idWar > 0) {
if (jQuery('#rozSzer').val() > 0 && jQuery('#rozWys').val() > 0) {
jQuery('.selAtr option[value=' + idWar + ']').text(jQuery('#rozSzer').val() + " x " + jQuery('#rozWys').val() + " in (width x height)");
jQuery('#nonDefSzer').val(jQuery('#rozSzer').val());
jQuery('#nonDefWys').val(jQuery('#rozWys').val());
return true;
}
return false;
}
}
// IND MYLO
function wyborRozmiaru() {
var opt_vals = [];
var dialogWidth = jQuery(window).width() - 10;
var dialogHeight = jQuery(window).height() - 10;
if (dialogWidth > 990) dialogWidth = 990;
if (dialogHeight > 500) dialogHeight = 500;
jQuery('#zamWym option').each(function () {
opt_vals.push(jQuery(this).val());
});
//dialog = openDialog(' wyborRozmiaru', dialogWidth, dialogHeight, true);
//dialog.load(baseHref + 'ajaxDialog.php?wyborRozmiaru=1&idWar=' + jQuery('#zamWym').val() + '&atr=' + jQuery('#zamWym').attr('name') + '&idFotki=50306611&plik=&idWars=' + opt_vals.join(','), function () {
//jQuery('#rozSzer').val(jQuery('#nonDefSzer').val());
//jQuery('#rozWys').val(jQuery('#nonDefWys').val());
//});
}
function zamknijWyborRozmiaru()
{
//dialog.off('dialogbeforeclose').on('dialogbeforeclose', function (event, ui) {
elem = jQuery('#wyborRozmiaru td.rozRozmiar input[type=radio]:checked');
if (jQuery('#zamWym option:selected').val() == jQuery('#idWartosciWlasny').val()) {
wlasnyRozmiar(jQuery('#idWartosciWlasny').val());
skipRotate = true;
} else {
getSize();
skipRotate = false;
}
oldText = jQuery('#zamWym option:selected').text();
oldText = oldText.match(/([0-9.]*[ x]*[0-9.]*[ ]{0,}[a-z]*)(.*)/);
if (elem.parent().find('span').text() != oldText[1] && skipRotate == false) {
rotateCrop();
jQuery('#zamWym').trigger('change');
}
// jQuery(this).off('dialogbeforeclose');
//});
//setTimeout(function () {
// tooltipDialog();
//}, 500);
}
// IND MYLO
function wyborMaterialu() {
var opt_vals = [];
var dialogWidth = jQuery(window).width() - 20;
var dialogHeight = jQuery(window).height() - 20;
if (dialogWidth > 1347) dialogWidth = 1347;
if (dialogHeight > 200) dialogHeight = 200;
jQuery('#materialW option').each(function () {
opt_vals.push(jQuery(this).val());
});
dialog = openDialog(' wyborMaterialu', dialogWidth, dialogHeight, true);
dialog.load(baseHref + 'ajaxDialog.php?wyborMaterialu=1&idWar=' + jQuery('#materialW').val() + '&atr=' + jQuery('#materialW').attr('name') + '&idFotki=50306611&plik=&idWars=' + opt_vals.join(','), function () {
rozZmiana(null, true);
dodajPowiekszanie();
var heights = jQuery("#toplayer .daneMaterialow .opis").map(function () {
return jQuery(this).height();
}).get();
maxHeight = Math.max.apply(null, heights);
if (maxHeight > 420) maxHeight = 420;
jQuery("#toplayer .daneMaterialow .opis").css({'min-height': maxHeight + 'px'});
});
setTimeout(function () {
pp_init();
}, 500);
}
function wyborUkladu() {
if (jQuery('.uklInfo').length == 0) {
if (jQuery('#rama')[0].selectedIndex != 0) {
jQuery('#rama')[0].selectedIndex = 0;
setRama(false, 0);
jQuery('#rama').trigger('change');
}
var opt_vals = [];
jQuery('#uklad option').each(function () {
opt_vals.push(jQuery(this).val());
});
var dialogWidth = jQuery(window).width() - 20;
var dialogHeight = jQuery(window).height() - 20;
if (dialogWidth > 1247) dialogWidth = 1247;
if (dialogHeight > 680) dialogHeight = 680;
dialog = openDialog(' wyborUkladu', dialogWidth, dialogHeight, true);
dialog.load(baseHref + 'ajaxDialog.php?wyborUkladu=1&idWymWar=' + jQuery('#zamWym').val() + '&idWar=' + jQuery('#uklad').val() + '&atr=' + jQuery('#uklad').attr('name') + '&idFotki=50306611&plik=&idWars=' + opt_vals.join(','), {});
}
}
jQuery(document).ready(function () {
if (true) {
multiKadr(0);
}
jQuery('div.wizualizacje a').bind('click', function () {
var visualizationScriptParamAdd = '&idf=50306611&plik=';
var showVisualization = 1;
var text = jQuery('#fotosView option[value="' + jQuery('#fotosView').val() + '"]').text();
if (showVisualization == 1) {
var ileKadrow = 1;
var coords = jQuery('input#koordynaty').val();
var ramaWarId = jQuery('select#rama :selected').val();
jQuery('div.wizualizacje a').each(function () {
var baseUrl = baseHref + jQuery(this).attr('data-loadUrl');
jQuery(this).attr('href', baseUrl + visualizationScriptParamAdd+'&obrot=' + jQuery('#obrot').val() + '&poziom=' + jQuery('#poziom').val() + '&pion=' + jQuery('#pion').val() + '&kad=' + ileKadrow + '&coords=' + coords + '&rama=' + ramaWarId + '&ef=' + text + '&showSize=' + jQuery('#showSize').val());
});
} else {
var idOpt = jQuery('#fotosView').val();
jQuery('div.wizualizacje a').each(function () {
var baseUrl = baseHref + jQuery(this).attr('data-loadUrl');
jQuery(this).attr('href', baseUrl + visualizationScriptParamAdd +'&generate=1&obrot=' + jQuery('#obrot').val() + '&poziom=' + jQuery('#poziom').val() + '&pion=' + jQuery('#pion').val() + '&ef=' + encodeURIComponent(text) + '&idOpt=' + idOpt + '&showSize=' + jQuery('#showSize').val());
});
}
}).colorbox({
rel: 'wiz',
preloading: false,
close: '',
closeButton: false,
maxWidth: '95%',
maxHeight: '95%',
top: 80,
previous: '
',
next: '
',
onOpen: function () {
if (jQuery('#colorbox #cboxContent .pp_close').length == 0) {
jQuery('#colorbox #cboxContent').append('
' + pp_close_text + ' ');
}
},
onComplete: function () {
jQuery('#colorbox').resize();
}
});
});
function getSize() {
var jedWym = 'in';
var sizeInfo = '(width x height)';
var maxSzerSet = 210;
var maxWysSet = 80;
var defSzer = 100;
var defWys = 40;
var ograniczajWymiary = 1;
jQuery("#selAtrs select.selAtr :selected").each(function () {
var wartosc = jQuery(this).text();
var dane = wartosc.match(/([\d.]{1,})[ ]{0,1}x[ ]{0,1}([\d.]{1,})(.*)/);
if (dane == null && jQuery(this).next().length == 0 && jQuery(this).prev().length == 1 && jQuery(this).prev().text().match(/([\d.]{1,})[ ]{0,1}x[ ]{0,1}([\d.]{1,})(.*)/)) {
if (jQuery('#nonDefSzer').val() > 0 && jQuery('#nonDefWys').val() > 0) {
jQuery(this).text(jQuery('#nonDefSzer').val() + " x " + jQuery('#nonDefWys').val() + " " + jedWym + " " + sizeInfo);
} else {
jQuery(this).text("100 x 100 " + jedWym + " " + sizeInfo);
}
jQuery('#idWartosciWlasny').val(jQuery(this).val());
}
});
jQuery("#selAtrs select.selAtr :selected").each(function () {
var wartosc = jQuery(this).val();
for (z = 0; z 0 && opcje[z][1][i][3] > 0) {
if (newMaxSzer == 0 || newMaxSzer > opcje[z][1][i][2]) newMaxSzer = opcje[z][1][i][2];
if (newMaxWys == 0 || newMaxWys > opcje[z][1][i][3]) newMaxWys = opcje[z][1][i][3];
}
}
}
}
});
if (jQuery("#maxWymSzer").length > 0 && jQuery("#maxWymSzer").val() > 0) {
tmpSzer = parseFloat(jQuery("#maxWymSzer").val());
tmpWys = parseFloat(jQuery("#maxWymWys").val());
} else {
var tmpSzer = parseFloat($("span#maxSzer").html());
var tmpWys = parseFloat($("span#maxWys").html());
}
if (newMaxSzer > 0 && newMaxWys > 0) {
if (newMaxSzer 0 && tmpWys > 0 && tmpSzer == maxWys && tmpWys == maxSzer) {
maxSzer = tmpSzer;
maxWys = tmpWys;
jQuery("#obrotWym").attr("value", "1");
}
} else {
if (tmpSzer > 0 && tmpWys > 0 && tmpSzer == maxWys && tmpWys == maxSzer) {
maxSzer = tmpSzer;
maxWys = tmpWys;
jQuery("#obrotWym").attr("value", "1");
} else if (jQuery("#obrotWym").val() == 0) {
maxSzer = maxSzerSet;
maxWys = maxWysSet;
}
}
jQuery("span#maxSzer").html(maxSzer);
jQuery("span#maxWys").html(maxWys);
var rotate = jQuery("span#addSize input#rotate").attr("value");
if (jQuery("#szerokosc").attr("value") != undefined) {
var nonDef = false;
if (jQuery("#szerokosc").attr("value") != "") {
var product_x = $("#szerokosc").attr("value") * 1;
} else var product_x = 0;
if (jQuery("#wysokosc").attr("value") != "") {
var product_y = $("#wysokosc").attr("value") * 1;
} else var product_y = 0;
if (lastRotate != rotate) {
var tmp = product_y;
product_y = product_x;
product_x = tmp;
jQuery("#szerokosc").attr("value", product_x);
jQuery("#wysokosc").attr("value", product_y);
lastRotate = rotate;
}
} else {
var nonDef = true;
var product_x = 0;
var product_y = 0;
// IND MYLO
jQuery("#selAtrs select.selAtr").not('[id="wymSelect"]').find(":selected").each(function () {
// IND MYLO
var wartosc = jQuery(this).text();
var dane = wartosc.match(/([\d.]{1,})[ ]{0,1}x[ ]{0,1}([\d.]{1,})(.*)/);
if (dane != undefined && dane != null && dane[0] != undefined && dane[0] != null) {
jQuery(this).parent().attr("id", "zamWym");
px = parseFloat(dane[1].replace(/[^\d.]/, ""));
py = parseFloat(dane[2].replace(/[^\d.]/, ""));
}
});
}
var itemId = '26';
if (nonDef !== true) {
if (product_x maxSzer) {
jQuery("#szerokosc").attr("value", maxSzer);
product_x = maxSzer;
}
if (product_y > maxWys) {
jQuery("#wysokosc").attr("value", maxWys);
product_y = maxWys;
}
}
} else {
var product_x = px;
var product_y = py;
if (jQuery("span#addSize input#nonDefSzer").length == 0)
jQuery("span#addSize").append('
');
if (jQuery("div#maxWymDiv").length == 0) {
if (jQuery("#obrotWym").val() == 1 && tmpSzer > 0 && tmpWys > 0) {
jQuery("#zamWym").parent().parent().append('
Maximum size (width x height): ' + tmpSzer + ' x ' + tmpWys + '
');
} else {
jQuery("#zamWym").parent().parent().append('
Maximum size (width x height): ' + maxSzer + ' x ' + maxWys + '
');
}
if (itemId == 24 || itemId == 26) {
jQuery("#maxWymDiv").hide();
}
if (jQuery("div#maxWymDiv").length == 1 && $("div.ruler").length == 0) {
var s_etiObj = jQuery("div#maxWymDiv").closest('tr').find("td.etykieta");
var s_etiVal = s_etiObj.html();
var s_valObj = jQuery("div#maxWymDiv").parent();
var s_wuklObj = jQuery("#wuklad").closest('td');
if (s_wuklObj.length > 0) {
s_wuklObj.parent().after('
Extras:
');
var s_uklObj = jQuery("#uklad").closest('td');
s_uklObj.parent().before('
Choose a layout:
');
} else {
var s_uklObj = jQuery("#uklad").closest('td');
if (s_uklObj.length > 0) {
s_uklObj.parent().before('
Choose a layout:
');
s_uklObj.parent().after('
Extras:
');
} else {
s_valObj.parent().after('
Extras:
');
}
}
ulozKarte();
var s_valVal = s_valObj.html();
}
}
jQuery("span#addSize input#nonDefSzer").attr("value", product_x);
jQuery("span#addSize input#nonDefWys").attr("value", product_y);
if (rotate == 1) {
var dane = jQuery("#zamWym :selected").html();
var typyDanych = dane.match(/([\d.]{1,})[ ]{0,1}x[ ]{0,1}([\d.]{1,})(.*)/);
if (typyDanych[3] != undefined && typyDanych[3] != null) {
var optionExt = typyDanych[3];
} else var optionExt = ' cm';
var product_x = py;
var product_y = px;
jQuery("#zamWym :selected").html(py + ' x ' + px + optionExt);
// IND MYLO
jQuery("#wymSelect :selected").html(py + ' x ' + px + optionExt);
jQuery("#wymSelect-button span.wymiary").html(py + ' x ' + px + optionExt);
// IND MYLO
jQuery("span#addSize input#rotate").attr("value", 0);
}
}
return [product_x, product_y];
}
var przelicznik = 0.4;
function fotoPrice(x, y) {
var lic = new Array();
lic['0']=[245, 94, 7.68];lic['1']=[343, 131, 10.24];lic['2']=[532, 203, 12.80];
if (lic.length == 0) return 0.00;
else {
for (i = 0; i 0) {
powierzchnia = 0
}
var fotoliaPrice = fotoPrice(x / jedPrzel, y / jedPrzel);
jQuery('#selAtrs select.selAtr, #selAtrs input.selAtr[type=radio]:checked, #selAtrs input.selAtr[type=checkbox]:checked').each(function () {
var idAtrybutu = jQuery(this).attr('name').replace(/.*\[(\d*)\]$/, '$1');
var idWartosci = jQuery(this).val();
for (z = 0; z 0 && idWartosci == jQuery('#idWartosciWlasny').val())) atrybutyPrice += opcje[z][1][i][1] * powierzchnia;
else atrybutyPrice += opcje[z][1][i][1];
} else if (opcje[z][3] == 1) {
if (opcje[z][2] == 1 || (jQuery('#idWartosciWlasny').val() > 0 && idWartosci == jQuery('#idWartosciWlasny').val())) atrybutyProcentPrice += opcje[z][1][i][1] * powierzchnia;
else atrybutyProcentPrice += opcje[z][1][i][1];
}
break;
}
}
}
}
});
var atrybutyPrice = (Math.round(atrybutyPrice * przelicznik * 10000) / 10000);
if (jQuery('#ilosc_rolek').length > 0) {
var ilosc_rolek = parseInt(jQuery('#ilosc_rolek').val());
if (ilosc_rolek 0) finalPrice = finalPrice + Math.round((finalPrice * (atrybutyProcentPrice / 100)) * 100) / 100;
if (rabatProcentowy > 0 && jQuery('#kwotaOszczednosci').length > 0) {
var normalPrice = finalPrice.toFixed(2);
finalPrice = finalPrice * ((100 - rabatProcentowy) / 100);
if (minimalPriceFloat > 0 && minimalPriceFloat > finalPrice) {
finalPrice = minimalPrice;
}
var savePrice = normalPrice - finalPrice;
if (selCur == 1) {
jQuery('#kwotaPrzekreslona').html(normalPrice.toString().replace('.', ','));
jQuery('#kwotaOszczednosci').html(savePrice.toFixed(2).replace('.', ','));
} else {
jQuery('#kwotaPrzekreslona').html(normalPrice.toString());
jQuery('#kwotaOszczednosci').html(savePrice.toFixed(2));
}
}
if (selCur == 1) {
jQuery('#kwotaZamowienia').html(finalPrice.toFixed(2).replace('.', ','));
} else {
jQuery('#kwotaZamowienia').html(finalPrice.toFixed(2));
}
// IND MYLO
var wymiaryObrocone = 'Dimensions have been rotated.';
if (jQuery('#wymStand').length>0 && jQuery('#wymTr').length == 0) {
var newTr = jQuery('#wymStand').clone();
newTr.attr('id', 'wymTr');
newTr.insertAfter('#wymStand');
newTr.find('.maskInput, select').remove();
newTr.find('span.select').append('
');
jQuery('#rotateWym').bind('click', function () {
rotateCrop();
jQuery('#selAtrs').append('
' + wymiaryObrocone + '
');
jQuery('.rotateDone').show();
jQuery('.rotateDone').position({ of: jQuery('#rotateWym'), my: "center top+15", at: "center bottom", collision: "flipfit" });
setTimeout(function() { jQuery('.rotateDone').fadeOut(400, function() { jQuery(this).remove(); }); }, 800);
});
jQuery(document).ready(function() {
jQuery('#rotateWym').tooltip({
content: jQuery('#rotateWymInfo').html(),
items: 'a',
tooltipClass: 'wymTooltip',
position: { my: "center bottom-20", at: "center top", collision: "flipfit" }
});
});
var newSelect = jQuery('#wymSelect');
if (jQuery('#rama option').length > 1) {
jQuery('#rama option').each(function () {
jQuery('#wymSelect').append('
');
jQuery('#wymStand option').each(function () {
optGroup = jQuery('#wymSelect optgroup').last();
jQuery('#wymSelect').attr('data-atrId', jQuery(this).parent().attr('data-atrId'));
optGroup.append('
' + jQuery(this).text() + ' ');
if (jQuery(this).is(':selected') && jQuery('#rama option:selected').val() == jQuery('#wymSelect optgroup').last().attr('data-war')) {
jQuery('#wymSelect optgroup').last().find('option').last().attr('selected', 'selected');
}
});
});
} else {
jQuery('#wymStand option').each(function () {
if (jQuery(this).is(':selected')) {
selected = ' selected';
} else {
selected = '';
}
jQuery('#wymSelect').attr('data-atrId', jQuery(this).parent().attr('data-atrId'));
jQuery('#wymSelect').append('
' + jQuery(this).text() + ' ');
});
}
newTr.show();
jQuery('#wymSelect').selectmenu({
select: function(event, ui) {
stopRamaReload = true;
if (jQuery('#wymStand select').val() != ui.item.value) {
jQuery('#wymStand select').val(ui.item.value).trigger('change');
}
stopRamaReload = false;
if (jQuery('#rama').length > 0 && parseFloat(ui.item.element.parent().attr('data-war')) > 0) {
if (jQuery('#rama').val() != ui.item.element.parent().attr('data-war')) {
jQuery('#rama').val(ui.item.element.parent().attr('data-war')).trigger('change');
}
}
},
create: function(event, ui) {
if (jQuery('#wymSelect option').length > 12 && jQuery('#rama option').length 0) {
jQuery('#wymSelect-menu').scrollTop(jQuery('#wymSelect-menu').scrollTop() + jQuery('#wymSelect-menu li.selected').position().top);
}
}
}).data('uiSelectmenu')._renderItem = function(ul, item) {
warTable = {}
warTable[item.element.closest('select').attr('data-atrId')] = item.value;
if (jQuery('#rama').length > 1) {
warTable[item.element.closest('optgroup').attr('data-atr')] = item.element.closest('optgroup').attr('data-war');
}
label = item.label;
label = label.replace(/\(.*\)/, '');
var li = jQuery("
", { html: label });
if (item.disabled) {
li.addClass("ui-state-disabled");
}
if (item.value == jQuery('#wymSelect').val() && (item.optgroup == '' || jQuery('#rama').length == 0 || (jQuery('#rama').length > 0 && jQuery('#rama option:selected').text() == item.optgroup))) {
li.addClass("selected");
}
return li.appendTo(ul);
};
setWymiarOverlay();
}
}
function setWymiarOverlay() {
var text = jQuery('#wymStand select option:selected').text();
text = text.replace(/\(.*\)/, '');
text = '' + text + ' ';
jQuery('#wymSelect-button.dwieLinie').removeClass('dwieLinie');
if (jQuery('#rama option').length > 1) {
text = text + '' + jQuery('#rama option:selected').text() + ' ';
jQuery('#wymSelect-button').addClass('dwieLinie');
}
jQuery('#wymSelect-button span.ui-selectmenu-text').html(text);
}
// IND MYLO
Poster: Steinmauer mit efeu
Poster :
Steinmauer mit efeu.
Author: ©
Photo number:
#50306611
Other topics:
granite, ivy, hard, panorama, moss, stone, green, wall, page
Poster
Myloview standard posters are printed on high-quality poster paper with a satin finish. All posters are printed using the state-of-the-art HP Latex print technology, which guarantees the depth of colors. The product is ready to hang right after unpacking.
Poster paper density: 200g/m2 Available accessories: We offer posters in frames (available black and silver aluminium frames) or clip frames. Cleaning: The material can be wiped with a wet cloth
Framed Poster
Myloview standard posters are printed on high-quality poster paper with a satin finish. All posters are printed using the state-of-the-art HP Latex print technology, which guarantees the depth of colors. The product is ready to hang right after unpacking.
The poster comes with a black or silver aluminium frame.
Poster paper density: 200g/m2 The product includes: a silver or black aluminium frame Cleaning: The material can be wiped with a wet cloth
Clip framed Poster
Myloview standard posters are printed on high-quality poster paper with a satin finish. All posters are printed using the state-of-the-art HP Latex print technology, which guarantees the depth of colors. The product is ready to hang right after unpacking.
The poster comes with a clip frame.
Poster paper density: 200g/m2 The product includes: a clip frame Cleaning: The material can be wiped with a wet cloth
read more hide
This button allows you to rotate the selected size and replace width with height.