function OrderUploadPageImagePager(){
this.iCellMatchRegex=new RegExp("^img(null)?(\\d+)$");
ImagePager.call(this);
this.setImageCount=function(_1){
ImagePager.prototype.setImageCount.apply(this,[_1]);
gPage.imageCountChanged(_1);
};
this.getDetailsUrl=function(){
return "data/getOrderDetails.php";
};
this.getCellId=function(_2){
return "img"+_2;
};
this.setCellImage=function(_3,_4,_5){
var _6=_3.getElementsByTagName("a");
var _7=_6[0].firstChild;
if(_5){
_6[0].href="viewSnap.php?imageId="+_4.id+"&orderId="+gConst.orderId;
_7.title=_4.name+" ("+_4.w+"x"+_4.h+"px) - click to view";
_7.src=this.getThumbPath(_4.id);
this.setImageMarginsFromOrigDimensions(_7,_4.w,_4.h);
}else{
_6[0].href="";
_7.title="";
_7.src="";
_7.marginTop="0";
}
_7.alt=_7.title;
var _8=_3.getElementsByTagName("p");
var p=_8[0];
while(p.hasChildNodes()){
p.removeChild(p.firstChild);
}
if(_5){
gUtils.addDisplayTextToParent(p,_4.name,gConst.kImageNameDisplayLength);
}
_3.id=this.getCellId(_4.id);
_3.style.visibility=_5?"visible":"hidden";
};
this.getNullImage=function(_a){
return {id:_a};
};
}
OrderUploadPageImagePager.prototype=new ImagePager();
OrderUploadPageImagePager.prototype.superclass=ImagePager;
OrderUploadPageImagePager.prototype.constructor=OrderUploadPageImagePager;


