วอลเปเปอร์ ติดผนัง, วอลเปเปอร์ ลายแผนที่แบ่งเขตสีฟ้าขาว
SKU: V05-WS079
wallpaper ติดผนังลายผ้าไทย 3
ผ้าพิมพ์หรือวอลเปเปอร์ห้องเด็ก ลายการ์ตูนหน้าสัตว์
';}} var imageBox=$('customoptions_images_'+optionId);if(imageBox)imageBox.hide();elValueArr.each(function(optionValueId){if(optionValueId!=''&&opConfig.config[optionId][optionValueId]&&opConfig.config[optionId][optionValueId].images){opConfig.config[optionId][optionValueId].images.each(function(image,index){if((excludeFirstImage==0&&index==0)||index>0){if(liHtml){if(image[1]){imageHTML+=liHtml.replace(new RegExp("{{data_image_index}}",'g'),this.dataImageIndex).replace(new RegExp("{{big_image_url}}",'g'),image[1]).replace(new RegExp("{{small_image_url}}",'g'),image[0]).replace(new RegExp("{{title}}",'g'),opConfig.config[optionId][optionValueId].title);if(typeof(ProductMediaManager)!='undefined')mainImageHTML+=' ';this.dataImageIndex++;}}else{if(index==0||(excludeFirstImage==1&&index==1)){this.newMainImageUrl=image[1];this.newMainImageThumbnail=image[1];this.newMainImageTitle=opConfig.config[optionId][optionValueId].title;}}}else if(el.type=='select-one'||el.type=='select-multiple'){if(imageBox){imageBox.hide();imageBox.innerHTML=''+' '+'';;imageBox.show();}}}.bind(this));}}.bind(this));if(imageHTML)ul.innerHTML+=imageHTML;if(mainImageHTML){var mainImageDiv=this.getMainImage().up('div');if(mainImageDiv)mainImageDiv.innerHTML+=mainImageHTML;}} if(!this.hasOptionImages()&&productImageLis){productImageLis.each(function(li){li.show();});} $$('.cloud-zoom-gallery').each(function(a){if(a.up('li').style.display=='')a.up('li').style.display='list-item';a.addClassName('cboxElement');jQuery(a).CloudZoom();});if(typeof(ProductMediaManager)!='undefined')ProductMediaManager.init();if(imageMode==2){if(typeof(ProductMediaManager)=='undefined')this.changeMainImage();else setTimeout('optionImages.changeMainImage()',100);}}},markProduct:function(){$$(this.ulId.join(' li, ')+' li').each(function(li){li.addClassName('li-product-image');});if(this.mainImageUrl==''){var mainImage=this.getMainImage();if(mainImage){if(mainImage.hasClassName('MagicToolboxContainer')){var elA=mainImage.down('a');if(elA){this.mainImageUrl=elA.href;var elImg=elA.down('img');if(elImg.width)this.mainImageWidth=elImg.width;this.mainImageThumbnail=elImg.src;this.mainImageTitle=elImg.alt;}}else if(mainImage.hasClassName('zoom-image')||(mainImage.up('a')&&mainImage.up('a').hasClassName('cloud-zoom'))){var elA=mainImage.up('a');if(elA){this.mainImageUrl=elA.href;}else{this.mainImageUrl=mainImage.src;} this.mainImageTitle=mainImage.alt;this.mainImageThumbnail=mainImage.src}else{this.mainImageUrl=mainImage.src;this.mainImageTitle=mainImage.alt;}}} this.prevMainImageUrl=this.mainImageUrl;},getMainImage:function(){return $$('div.product-img-box div.MagicToolboxContainer','div.product-img-box div.main-image img','div.product-img-box .product-image img','#image','#image-main','div.img-box .product-image img').first();},changeMainImage:function(){if(!this.newMainImageUrl||this.newMainImageUrl==this.prevMainImageUrl)return;var mainImage=this.getMainImage();if(!mainImage)return;if(!this.pageLoaded){mainImage.hide();setTimeout('optionImages.changeMainImage()',100);return;} if(mainImage.hasClassName('MagicToolboxContainer')){var elA=mainImage.down('a');if(elA){elA.down('img').width=this.mainImageWidth;MagicZoomPlus.update(elA.id,this.newMainImageUrl,this.newMainImageThumbnail,'show-title: false; drag-mode: false');}}else if(typeof(ProductMediaManager)!='undefined'){$$(this.ulId.join(' li, ')+' li').each(function(li){var elA=li.down('a');if(elA&&elA.readAttribute('data-image-index')==this.newMainImageIndex){elA.click();}}.bind(this));}else if(mainImage.hasClassName('zoom-image')){var elA=mainImage.up('a');if(elA)elA.href=this.newMainImageUrl;mainImage.src=this.newMainImageUrl;mainImage.alt=this.newMainImageTitle;mainImage.title=this.newMainImageTitle;jQuery('#zoom').easyZoom({parent:'div.zoom-container',preload:'',lightboxBtn:'.lightbox-btn .lightbox'}).data('easyZoom').gallery('a.zoom-thumbnail');}else if(mainImage.up('a')&&mainImage.up('a').hasClassName('cloud-zoom')){var elA=mainImage.up('a');if(elA)elA.href=this.newMainImageUrl;mainImage.src=this.newMainImageUrl;mainImage.alt=this.newMainImageTitle;mainImage.title=this.newMainImageTitle;if($("zoom-btn")){$("zoom-btn").href=this.newMainImageUrl;$("zoom-btn").title=this.newMainImageTitle;} jQuery("#"+elA.id).CloudZoom();}else{mainImage.src=this.newMainImageUrl;mainImage.alt=this.newMainImageTitle;mainImage.title=this.newMainImageTitle;} this.prevMainImageUrl=this.newMainImageUrl;mainImage.show();},hasOptionImages:function(){var result=false;var firstImageUrl='';$$(this.ulId.join(' li, ')+' li').each(function(li){if(li.hasClassName('li-product-image')==false){if(!firstImageUrl){var firstImageMatch=li.innerHTML.match(/(https?\:\/\/.+?)[\'\"]/);if(firstImageMatch)firstImageUrl=firstImageMatch[1];this.newMainImageUrl=firstImageUrl;this.newMainImageThumbnail=firstImageUrl;this.newMainImageTitle=li.down('img').alt;if(typeof(ProductMediaManager)!='undefined')this.newMainImageIndex=li.down('a').readAttribute('data-image-index');} result=true;}}.bind(this));return result;}};Event.observe(window,'load',function(){opConfig.reloadPrice();});var dependentOptions={dependentData:{"32803":[65538,65539,65540,65541],"32804":[65542,65543,65544,65545,65546,65547,65548,65549],"32810":[65550,65552,65553,65554,65555,65556,65557,65558],"32811":[65559,65560,65561,65562,65563,65564,65565,65566],"32812":[65567,65568,65569,65570,65571,65572,65573,65574],"32813":[65575,65576,65577,65578,65579,65580,65581,65582],"32814":[65583,65584,65585,65586,65587,65588,65589,65590],"32815":[65591,65592,65593,65594,65595,65596,65597,65598],"32816":[65599,65600,65601,65602],"32805":[65603,65604,65605,65606],"32806":[65607,65608,65609,65610],"32807":[65611,65612,65613,65614],"32808":[65615,65616,65617,65618],"32809":[65619,65620,65621,65622]},inGroupIdData:{"65538":{"dependency":1,"select_1512":"32810"},"65539":{"dependency":1,"select_1512":"32811"},"65540":{"dependency":1,"select_1512":"32812"},"65541":{"dependency":1,"select_1512":"32813"},"65542":{"dependency":1,"select_1512":"32814"},"65543":{"dependency":1,"select_1512":"32815"},"65544":{"dependency":1,"select_1512":"32816"},"65545":{"dependency":1,"select_1512":"32805"},"65546":{"dependency":1,"select_1512":"32806"},"65547":{"dependency":1,"select_1512":"32807"},"65548":{"dependency":1,"select_1512":"32808"},"65549":{"dependency":1,"select_1512":"32809"},"65550":{"dependency":1,"select_1513":"32817"},"65552":{"dependency":1,"select_1513":"32818"},"65553":{"dependency":1,"select_1513":"32819"},"65554":{"dependency":1,"select_1513":"32820"},"65555":{"dependency":1,"select_1513":"32821"},"65556":{"dependency":1,"select_1513":"32822"},"65557":{"dependency":1,"select_1513":"32823"},"65558":{"dependency":1,"select_1513":"32824"},"65559":{"dependency":1,"select_1513":"32825"},"65560":{"dependency":1,"select_1513":"32826"},"65561":{"dependency":1,"select_1513":"32827"},"65562":{"dependency":1,"select_1513":"32828"},"65563":{"dependency":1,"select_1513":"32829"},"65564":{"dependency":1,"select_1513":"32830"},"65565":{"dependency":1,"select_1513":"32831"},"65566":{"dependency":1,"select_1513":"32832"},"65567":{"dependency":1,"select_1513":"32833"},"65568":{"dependency":1,"select_1513":"32834"},"65569":{"dependency":1,"select_1513":"32835"},"65570":{"dependency":1,"select_1513":"32836"},"65571":{"dependency":1,"select_1513":"32837"},"65572":{"dependency":1,"select_1513":"32838"},"65573":{"dependency":1,"select_1513":"32839"},"65574":{"dependency":1,"select_1513":"32840"},"65575":{"dependency":1,"select_1513":"32841"},"65576":{"dependency":1,"select_1513":"32842"},"65577":{"dependency":1,"select_1513":"32843"},"65578":{"dependency":1,"select_1513":"32844"},"65579":{"dependency":1,"select_1513":"32845"},"65580":{"dependency":1,"select_1513":"32846"},"65581":{"dependency":1,"select_1513":"32847"},"65582":{"dependency":1,"select_1513":"32848"},"65583":{"dependency":1,"select_1513":"32849"},"65584":{"dependency":1,"select_1513":"32850"},"65585":{"dependency":1,"select_1513":"32851"},"65586":{"dependency":1,"select_1513":"32852"},"65587":{"dependency":1,"select_1513":"32853"},"65588":{"dependency":1,"select_1513":"32854"},"65589":{"dependency":1,"select_1513":"32855"},"65590":{"dependency":1,"select_1513":"32856"},"65591":{"dependency":1,"select_1513":"32857"},"65592":{"dependency":1,"select_1513":"32858"},"65593":{"dependency":1,"select_1513":"32859"},"65594":{"dependency":1,"select_1513":"32860"},"65595":{"dependency":1,"select_1513":"32861"},"65596":{"dependency":1,"select_1513":"32862"},"65597":{"dependency":1,"select_1513":"32863"},"65598":{"dependency":1,"select_1513":"32864"},"65599":{"dependency":1,"select_1513":"32865"},"65600":{"dependency":1,"select_1513":"32866"},"65601":{"dependency":1,"select_1513":"32867"},"65602":{"dependency":1,"select_1513":"32868"},"65603":{"dependency":1,"select_1513":"32869"},"65604":{"dependency":1,"select_1513":"32870"},"65605":{"dependency":1,"select_1513":"32871"},"65606":{"dependency":1,"select_1513":"32872"},"65607":{"dependency":1,"select_1513":"32873"},"65608":{"dependency":1,"select_1513":"32874"},"65609":{"dependency":1,"select_1513":"32875"},"65610":{"dependency":1,"select_1513":"32876"},"65611":{"dependency":1,"select_1513":"32877"},"65612":{"dependency":1,"select_1513":"32878"},"65613":{"dependency":1,"select_1513":"32879"},"65614":{"dependency":1,"select_1513":"32880"},"65615":{"dependency":1,"select_1513":"32881"},"65616":{"dependency":1,"select_1513":"32882"},"65617":{"dependency":1,"select_1513":"32883"},"65618":{"dependency":1,"select_1513":"32884"},"65619":{"dependency":1,"select_1513":"32885"},"65620":{"dependency":1,"select_1513":"32886"},"65621":{"dependency":1,"select_1513":"32887"},"65622":{"dependency":1,"select_1513":"32888"}},defaultData:[],dependentChanges:{"m":[],"d":[]},dependentHide:false,select:function(el){var i,ii=0;if(el.type=='radio'){var radios=this.upDiv(el).getElementsByClassName('radio');for(i=0;i0){var elValueArr=[];if(el.multiple){for(i=0;i=this.inGroupIdData[IGI].dependency)||((dElement.type=='select-one'||dElement.type=='select-multiple')&&this.dependentChanges['d'][dElementId]['options'][selectValue]&&this.dependentChanges['d'][dElementId]['options'][selectValue]['use'].length>=this.inGroupIdData[IGI].dependency)){if(!this.inGroupIdData[IGI].out_of_stock)dElement.disabled=false;if(this.dependentHide&&this.inGroupIdData[IGI].view_mode!=2){if(dElement.type=='checkbox'||dElement.type=='radio'){$(dElement).up('li').style.display='block';} dependentOptions.upDiv(dElement).style.display='block';} if(isRequire){$(dElement).removeClassName('required-dependent');if(dElement.type=='checkbox'||dElement.type=='radio'){$(dElement).addClassName('validate-one-required-by-name');}else{$(dElement).addClassName('required-entry');}} if((dElement.type=='select-one'||dElement.type=='select-multiple')&&!$(dElement).hasClassName('datetime-picker')){var selectValue='s'+this.inGroupIdData[IGI][dElementId];if(this.dependentChanges['d'][dElementId]['options'][selectValue]){dSelects.push(dElement);}}else{if(this.defaultData[dElementId]&&($(dElementId).type=='checkbox'||$(dElementId).type=='radio')&&this.inGroupIdData[IGI].dependency==this.dependentChanges['d'][dElementId]['use'].length)$(dElementId).click();}}}}}}}.bind(this));} if(dSelects.length>0){for(i=0;i0){this.dependentChanges['d'][dElementId]['options'][opValue]['use']=this.dependentChanges['d'][dElementId]['options'][opValue]['use'].without(mElementId);if(this.dependentChanges['d'][dElementId]['options'][opValue]['use'].length1||(dElement.multiple&&dElement.length>0)))disableElFlag=false;dElement.onchange();}else{if(this.dependentChanges['d'][dElementId]['use']&&this.dependentChanges['d'][dElementId]['use'].length>0){this.dependentChanges['d'][dElementId]['use']=this.dependentChanges['d'][dElementId]['use'].without(mElementId);if(this.dependentChanges['d'][dElementId]['use'].length>=this.dependentChanges['d'][dElementId]['dependency'])disableElFlag=false;}} if(disableElFlag){dElement.disabled=true;if((dElement.type=='select-one'||dElement.type=='select-multiple')&&!$(dElement).hasClassName('datetime-picker')){for(var opValue in this.dependentChanges['d'][dElementId]['options']){if(!this.dependentChanges['d'][dElementId]['options'].hasOwnProperty(opValue)||!this.dependentChanges['d'][dElementId]['options'][opValue])continue;var newOpt=new Option(this.dependentChanges['d'][dElementId]['options'][opValue]['text'],opValue.substr(1));newOpt.disabled=this.dependentChanges['d'][dElementId]['options'][opValue]['disabled'];newOpt.selected=this.dependentChanges['d'][dElementId]['options'][opValue]['sel-def'];dElement.options.add(newOpt);} dElement.onchange();} if(this.dependentHide){var hideDivFlag=true;if(dElement.type=='checkbox'||dElement.type=='radio'){$(dElement).up('li').style.display='none';ulEl=$(dElement).up('li').up('ul');if(ulEl){lis=ulEl.getElementsByTagName('li');for(i=0;i0)opSelected=true;else opSelected=false;this.dependentChanges['d'][dElementId]['options']['s'+dElement.options[i].value]['selected']=opSelected;}}}},upDiv:function(el){if(el.type=='checkbox'||el.type=='radio'){var div=el.up(4);if(!$(div).hasClassName('option'))div=div.up(1);return div;}else{return el.up('div.option');}},decorateIsLast:function(){var divs=$$('div.option');if(divs){var dl=false;var dd=false;divs.each(function(div,index){if(div.style.display!='none'&&!$(div).hasClassName('hidden')){dl=div.down('dl');if(dl){if($(dl).hasClassName('last'))$(dl).removeClassName('last');dd=dl.down('dd');if(dd&&$(dd).hasClassName('last'))$(dd).removeClassName('last');}}}.bind(this));if(dl)$(dl).addClassName('last');if(dd)$(dd).addClassName('last');}},applyDefaultValues:function(el){for(var elementId in this.defaultData){if(!this.defaultData.hasOwnProperty(elementId))continue;if($(elementId)&&this.upDiv($(elementId))&&this.upDiv($(elementId)).style.display!="none"){this.returnSelect($(elementId));if($(elementId).type=='select-one'||$(elementId).type=='text'||$(elementId).type=='textarea'){$(elementId).value=this.defaultData[elementId];}else if($(elementId).type=='select-multiple'){el=$(elementId);for(i=0;i<=0){optionQty.value=minQty;} $(optionQty).addClassName('validate-greater-than-zero');}else{$(optionQty).removeClassName('validate-greater-than-zero');}},_getValueIds:function(el){var ids=[];for(i=0;i