1function prddet_clickThumbnail(){ 2 var prev_thumb = getElementByClass('current_prd_thumbnail', getLayer('current_prd_thumbnail')); 3 if(prev_thumb)prev_thumb.className = 'prd_thumbnail'; 4 this.className = 'current_prd_thumbnail'; 5 var enlargedPict = getLayer('current_picture'); 6 if(enlargedPict){ 7 enlargedPict.href = this.getAttribute('img_enlarged'); 8 enlargedPict.setAttribute('allow_enlarge', !this.getAttribute('img_enlarged')?'0':'1'); 9 getLayer('img-enlarge-link').style.display = this.getAttribute('img_enlarged')?'block':'none'; 10 enlargedPict.setAttribute('img_width', this.getAttribute('img_width')); 11 enlargedPict.setAttribute('img_height', this.getAttribute('img_height')); 12 getLayer('img-current_picture').src = this.getAttribute('img_picture'); 13 } 14} 15 16Behaviour.register({ 17 'a.prd_thumbnail': function(e){ 18 e.onclick = prddet_clickThumbnail; 19 }, 20 'a.current_prd_thumbnail': function(e){ 21 e.onclick = prddet_clickThumbnail; 22 } 23}); 24 25var enlargedPict = getLayer('current_picture'); 26if(enlargedPict)enlargedPict.onclick = function(){ 27 if(this.getAttribute('allow_enlarge')!='0')open_window(this.href, this.getAttribute('img_width'), this.getAttribute('img_height')); 28 return false; 29}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.