1function Popup(width,height,layout){Popup.window=this;this.minSize=200;this.width=typeof(width)=="number"?width:this.minSize;this.height=typeof(height)=="number"?height:this.minSize;this.layout=layout instanceof Layout?layout:null;this.cssClass=null;this.closable=true;this.onClose=null;this.isFooter=true;this.showBackground=true;this.objectsToHide=null;this.scrollTop=null;this.scrollLeft=null;this.clearableScrollTop=true;this.clearableScrollLeft=true;this.getWindowWidth=function(){if(typeof(window.innerWidth)=='number'){return window.innerWidth;}else if(document.documentElement&&(document.documentElement.clientWidth)){return document.documentElement.clientWidth;} 2return 0;};this.getWindowHeight=function(){if(typeof(window.innerHeight)=='number'){return window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientHeight)){return document.documentElement.clientHeight;} 3return 0;};this.getScrollLeft=function(){if(this.scrollLeft==null){if(typeof(window.pageXOffset)=='number'){this.scrollLeft=window.pageXOffset;}else if(document.body&&(document.body.scrollLeft)){this.scrollLeft=document.body.scrollLeft;}else if(document.documentElement&&(document.documentElement.scrollLeft)){this.scrollLeft=document.documentElement.scrollLeft;}} 4return this.scrollLeft;};this.getScrollTop=function(){if(this.scrollTop==null){if(typeof(window.pageYOffset)=='number'){this.scrollTop=window.pageYOffset;}else if(document.body&&(document.body.scrollTop)){this.scrollTop=document.body.scrollTop;}else if(document.documentElement&&(document.documentElement.scrollTop)){this.scrollTop=document.documentElement.scrollTop;}} 5return this.scrollTop;};this.clearScroll=function(){if(this.clearableScrollLeft) 6this.scrollLeft=null;if(this.clearableScrollTop) 7this.scrollTop=null;};this.refresh=function(top,left,animate,callback){var popup=$("#popUpWindow123");var window=$("#popUpWindow123 .window123");var content=$("#popUpWindow123 .content123");var clientWidth=this.getWindowWidth();var clientHeight=this.getWindowHeight();var page=$("body");var pageWidth=Math.max(clientWidth,page.width()+2*page.offset().left);var pageHeight=Math.max(clientHeight,page.height() 8+page.offset().top);var position=this.clearableScrollLeft&&this.clearableScrollTop?'fixed':'absolute';popup.attr("class",this.cssClass);popup.css({'width':pageWidth,'height':pageHeight,'position':position});var heightOffset=this.isFooter?30:0;if(animate){content.stop(false,true);window.stop(false,true);window.animate({'top':top,'height':this.height+heightOffset},300);content.animate({'height':this.height-10},300);content.animate({'width':this.width-10},300);window.animate({'left':left,'width':this.width},300,null,callback);}else{window.css({'top':top,'left':left,'width':this.width,'height':this.height+heightOffset});content.css({'width':this.width-10,'height':this.height-10});if(typeof(callback)=="function"){callback();}}};this.resize=function(width,height,animate,callback){this.width=typeof(width)=="number"?width:this.width;this.height=typeof(height)=="number"?height:this.height;this.width=Math.max(this.minSize,this.width);this.height=Math.max(this.minSize,this.height);var clientWidth=this.getWindowWidth();var clientHeight=this.getWindowHeight();this.clearableScrollLeft=clientWidth>this.width;this.clearableScrollTop=clientHeight>this.height;var top=Math.max(0,(clientHeight-this.height-30)/2);var left=Math.max(0,(clientWidth-this.width-30)/2);if(!this.clearableScrollLeft||!this.clearableScrollTop){top+=this.getScrollTop();left+=this.getScrollLeft();} 9this.refresh(top,left,animate,callback);};this.autoResize=function(animate){var data=$("#popUpWindow123 .content123 .data123");if(animate==undefined){animate=true;} 10this.resize(null,data.height()+25,animate);};this.setSize=function(width,height){if(typeof(width)=="number") 11this.width=width;if(typeof(height)=="number") 12this.height=height;this.resize();};this.wait=function(stop){var wait=$("#popUpWindow123 .wait123");if(stop){wait.hide();}else{wait.css({'margin-left':(this.width-19)/2,'margin-top':(this.height-19)/2,'display':"inline"});}};this.empty=function(){var content=$("#popUpWindow123 .content123 .data123");content.empty();this.wait();};this.show=function(callback){var popup=$("#popUpWindow123");var background=$("#popUpWindow123 .background123");var window=$("#popUpWindow123 .window123");window.find(":not(.fixed123)").hide();
12this.showBackground?background.show():background.hide();if(!this.isFooter){var footer=$("#popUpWindow123 .footer123");footer.hide();} 13this.objectsToHide=$("object, embed");this.objectsToHide.css("visibility","hidden");this.scrollTop=null;this.scrollLeft=null;this.resize();this.empty();popup.fadeIn("fast");window.fadeIn("fast");if(this.layout!=null){this.layout.load("#popUpWindow123 .content123 .data123",function(){Popup.window.wait(true);popup.trigger("showed");if(typeof(callback)=="function"){callback();}});}else{this.wait(true);popup.trigger("showed");if(typeof(callback)=="function"){callback();}}};this.hide=function(){var ret=true;if(typeof(this.onClose)=="function") 14ret=this.onClose();if(ret==false) 15return;this.wait(true);$("#popUpWindow123").fadeOut("fast",function(event){if(Popup.window.objectsToHide!=null){Popup.window.objectsToHide.css("visibility","visible");}});$("#popUpWindow123 .window123").fadeOut("fast");$("#popUpWindow123 .panel123").fadeOut("fast");};this.setContent=function(value,autoResize){$("#popUpWindow123 .content123 .data123").html(value);if(autoResize||autoResize==undefined){this.autoResize(false);}};this.setCssClass=function(value){this.cssClass=value;};this.setClosable=function(value){this.closable=value;this.showFooter(value);};this.isClosable=function(){return this.closable;};this.setOnClose=function(value){this.onClose=value;};this.showFooter=function(value){this.isFooter=value;};} 16jQuery(document).ready(function($){$("#popUpWindow123 .background123").click(function(event){if(Popup.window&&Popup.window.isClosable()) 17Popup.window.hide();});$("#popUpWindow123 .close123").click(function(event){if(Popup.window&&Popup.window.isClosable()) 18Popup.window.hide();});$(window).scroll(function(event){if(Popup.window){Popup.window.clearScroll();Popup.window.resize();}});$(window).resize(function(event){if(Popup.window) 19Popup.window.resize();});}); 20function ImagesViewer(productId,level,startLevel){ImagesViewer.viewer=this;this.productId=typeof(productId)=="number"?productId:0;this.startLevel=typeof(startLevel)=="number"?startLevel:0;this.level=typeof(level)=="number"?Math.max(this.startLevel,level):0;this.image={};this.resized=false;this.layout=new Layout("ImagesViewerLayout",{"productId":this.productId,"level":this.level,"startLevel":this.startLevel});this.showPanel=function(){var panel=$("#popUpWindow123 .panel123");var prev=$("#popUpWindow123 .prev123");var next=$("#popUpWindow123 .next123");var number=$("#popUpWindow123 .imageNumber123");var zoom=$("#popUpWindow123 .zoom123");var shopName=$("#popUpWindow123 #shopName");var shopNameSpan=$("#popUpWindow123 #shopName span");var tagLeft=$("#popUpWindow123 .left123");var tagRight=$("#popUpWindow123 .right123");var tagTop=$("#popUpWindow123 .top123");if(this.image.prev!=undefined){prev.show();tagLeft.show();} 21else{prev.hide();tagLeft.hide();} 22if(this.image.next!=undefined){next.show();tagRight.show();} 23else{next.hide();tagRight.hide();} 24if(this.resized){zoom.show();tagTop.show();} 25else{zoom.hide();tagTop.hide();} 26number.text(this.image.number);number.show();panel.fadeIn("fast");shopName.fadeIn("fast");shopNameSpan.fadeIn("fast");};this.loadImage=function(level){if(level!=undefined) 27this.level=Math.max(this.startLevel,level);var imageTag=$("#popUpWindow123 .image123");var backImageTag=$("#popUpWindow123 .backImage123");var panel=$("#popUpWindow123 .panel123");imageTag.fadeOut("normal");panel.fadeOut("fast");var tagLeft=$("#popUpWindow123 .left123");var tagRight=$("#popUpWindow123 .right123");var tagLeftContent=$("#popUpWindow123 .leftContent123");var tagRightContent=$("#popUpWindow123 .rightContent123");tagLeft.hide();tagRight.hide();tagLeftContent.hide();tagRightContent.hide();this.popUp.wait();var value=$("#popUpWindow123 .image_"+this.productId+"_"+this.level).val();if(value) 28this.image=eval("("+value+")");backImageTag.attr("src",this.image.src);};this.showImage=function(){var backImageTag=$("#popUpWindow123 .backImage123");var imageTag=$("#popUpWindow123 .image123");var tagLeft=$("#popUpWindow123 .left123");var tagRight=$("#popUpWindow123 .right123");var tagTop=$("#popUpWindow123 .top123");var tagLeftContent=$("#popUpWindow123 .leftContent123");var tagRightContent=$("#popUpWindow123 .rightContent123");Popup.window.wait(true);var width=backImageTag.width();var height=backImageTag.height();var factor=width/height;var clientWidth=this.popUp.getWindowWidth()-50;var clientHeight=this.popUp.getWindowHeight()-100;this.resized=false;if(clientWidth<width){width=clientWidth;height=width/factor;this.resized=true;} 29if(clientHeight<height){height=clientHeight;width=height*factor;this.resized=true;} 30width+=10;height+=15;this.popUp.resize(width,height,true,function(){tagLeft.css("height",he
30ight);tagRight.css("height",height);tagTop.css("height",height);tagLeftContent.css("margin-top",(height/2)-15);tagRightContent.css("margin-top",(height/2)-15);imageTag.css("width",width-10);imageTag.css("height",height-15);imageTag.attr("src",backImageTag.attr("src"));imageTag.fadeIn("normal");ImagesViewer.viewer.showPanel();});};this.show=function(){this.popUp=new Popup(250,250,this.layout);this.popUp.minSize=250;this.popUp.show(function(){$("#popUpWindow123 .backImage123").load(function(){ImagesViewer.viewer.showImage();});var allImages=$("#popUpWindow123 .allImages123");allImages.text($("#popUpWindow123 .inputImage123").size());allImages.show();ImagesViewer.viewer.loadImage();});};this.prevImage=function(){if(this.image.prev!=undefined){this.loadImage(this.image.prev);}};this.nextImage=function(){if(this.image.next!=undefined){this.loadImage(this.image.next);}};this.zoomImage=function(){var backImageTag=$("#popUpWindow123 .backImage123");window.open(backImageTag.attr("src"),"_blank");};} 31jQuery(document).ready(function($){$("#popUpWindow123 .prev123").click(function(event){if(ImagesViewer.viewer) 32ImagesViewer.viewer.prevImage();});$("#popUpWindow123 .next123").click(function(event){if(ImagesViewer.viewer) 33ImagesViewer.viewer.nextImage();});$("#popUpWindow123 .left123").click(function(event){if(ImagesViewer.viewer) 34ImagesViewer.viewer.prevImage();});$("#popUpWindow123 .zoom123").click(function(event){if(ImagesViewer.viewer) 35ImagesViewer.viewer.zoomImage();});$("#popUpWindow123 .right123").click(function(event){if(ImagesViewer.viewer) 36ImagesViewer.viewer.nextImage();});$("#popUpWindow123 .top123").click(function(event){if(ImagesViewer.viewer) 37ImagesViewer.viewer.zoomImage();});$("#popUpWindow123 .left123").hover(function(event){$("#popUpWindow123 .leftContent123").fadeIn("fast");},function(event){$("#popUpWindow123 .leftContent123").fadeOut("fast");});$("#popUpWindow123 .right123").hover(function(event){$("#popUpWindow123 .rightContent123").fadeIn("fast");},function(event){$("#popUpWindow123 .rightContent123").fadeOut("fast");});$("#popUpWindow123 .top123").hover(function(event){$("#popUpWindow123 .topContent123").fadeIn("fast");},function(event){$("#popUpWindow123 .topContent123").fadeOut("fast");});}); 38var debugWindowContents;var debugOn=true;var debugStarted=false;function debugShowResults(){if((debugOn!=true)||(debugStarted==false)){return;} 39var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,";sOption+="scrollbars=yes,width=550,height=300,left=100,top=25";var winprint=window.open("","H9_debug_js",sOption);winprint.document.open();
39winprint.document.write('<html><body><pre>');winprint.document.write(debugWindowContents.join(' '));winprint.document.write('</pre></body></html>');winprint.document.close();winprint.focus();} 40function debugInit(){debugWindowContents=new Array();debugStarted=true;} 41function debugWrite(sVal){if(debugOn!=true){return;} 42if(debugStarted==false){debugInit();} 43debugWindowContents.push(sVal+"\r\n");} 44function debug(elem){debugWrite("\r\n\r\n"+elem);if(typeof(elem)=="string"){var txt="";for(var i in elem){txt+=elem[i];} 45alert(txt);}else{for(var i in elem){debugWrite(i+" => "+elem[i]);} 46debugShowResults();}} 47jQuery(document).ready(function(){if($.cookie("ie6Warning")!="off"){$("#ie6Warning").slideDown();} 48$("#ie6Warning .close").click(function(){$("#ie6Warning").slideUp();var options={path:'/',expires:3};$.cookie("ie6Warning",'off',options);});var loaded=true;$("img.images-page-layout").load(function(){resizePopup($(this).width(),$(this).height());loaded=false;});if(loaded){var img=$("img.images-page-layout");if(img.length>0){resizePopup(img.width(),img.height());}} 49$(".reviewWindowLink").click(function(event){event.preventDefault();var value=$(".reviewWindowLink").attr("href");showPopup(value,600,300);});$(".recommendWindowLink").click(function(event){event.preventDefault();var value=$(".recommendWindowLink").attr("href");showPopup(value,600,350);});$(".product-layout .productImage.big").click(function(event){var value=$(".product-layout .productImageValue").val();var val=eval("("+value+")");var imagesViewer=new ImagesViewer(parseInt(val.productId),parseInt(val.level),parseInt(val.startLevel));imagesViewer.show();event.preventDefault();});$(".product-layout .image-zoomable").click(function(event){var value=$(this).attr("data-zoom");if(value){var val=eval("("+value+")");var imagesViewer=new ImagesViewer(parseInt(val.productId),parseInt(val.level),parseInt(val.startLevel));imagesViewer.show();event.preventDefault();}});$(".product-layout .productImage.small").click(function(event){var value=$(".product-layout .productMiniatures").val();var miniatures=eval("("+value+")");$(".product-layout .productImage.big").attr("src",miniatures[event.target.id].src);$(".product-layout .productImageLink").val(miniatures[event.target.id].link);$(".product-layout .productImageValue").val(miniatures[event.target.id].value);event.preventDefault();});$(".product-layout .image-miniature").click(function(event){var value=$(this).attr("data-image");var val=eval("("+value+")");var switchTarget=$(".product-layout .image-zoomable");if(val.zoom){switchTarget.attr("data-zoom",val.zoom);}else{switchTarget.attr("data-zoom",val.value);} 50if(switchTarget.is("img")){switchTarget.attr("src",val.src);}else{switchTarget.find("img").attr("src",val.src);} 51switchTarget.find("a").attr("href",val.link);event.preventDefault();});$(".listViewBar select, .list-view-bar-layout select").change(function(event){var link=event.target.value;if(link!=0) 52document.location=link;});$(".rate-layout .rate").hover(function(event){var split=this.id.split("_");var productId=split[1];var rate=split[2];$(".rate-layout#rate_"+productId+" .rate").removeClass("full half");$(".rate-layout#rate_"+productId+" .rate").addClass("empty");for(var i=1;i<=rate;++i){$(".rate-layout #rate_"+productId+"_"+i).removeClass("empty");$(".rate-layout #rate_"+productId+"_"+i).addClass("full");}});$(".rate-layout").hover(function(event){},function(event){var split=this.id.split("_");var productId=split[1];var rate=parseFloat($(".rate-layout#rate_"+productId+" #rate_value").val());$(".rate-layout#rate_"+productId+" .rate").removeClass("full half");$(".rate-layout#rate_"+productId+" .rate").addClass("empty");var i;for(i=1;i<=rate;++i){$(".rate-layout #rate_"+productId+"_"+i).removeClass("empty");$(".rate-layout #rate_"+productId+"_"+i).addClass("full");} 53if(rate+0.5==i){$(".rate-layout #rate_"+productId+"_"+i).removeClass("empty");$(".rate-layout #rate_"+productId+"_"+i).addClass("half");}});$(".rate-layout .rate").click(function(event){var split=this.id.split("_");var productId=split[1];var rate=split[2];var action=new Action(6,4);action.setArgument("rate",rate);action.setArgument("productId",productId);action.run(function(data){$(".rate-layout#rate_"+productId+" .backInfo").html(data);$(".rate-layout#rate_"+productId+" .backInfo").slideDown("normal",function(){$(".rate-layout#rate_"+productId+" .backInfo").wait(5000).slideUp();});});});});
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.