function OrderUploadPage(){
this.iHtmlUploader=null;
this.iAurigma=null;
this.iImagePager=null;
this.iUploaderTask=null;
this.iViewOptionsTask=null;
this.iQuickLinkTask=null;
this.iOrderSummaryTask=null;
Page.call(this);
this.init=function(){
Page.prototype.init.apply(this);
this.iHtmlUploader=new HtmlUploader();
this.iHtmlUploader.init();
this.iAurigma=new Aurigma();
if($("easyUploader").style.display!="none"){
this.iAurigma.embed(gConst.kOrder);
}
this.iImagePager=new OrderUploadPageImagePager();
this.iImagePager.init();
this.iUploaderTask=new UploaderTask();
this.iUploaderTask.init(this.iHtmlUploader,this.iAurigma,gConst.kOrder);
var _1=$("continue_a");
if(_1&&_1.href.trim().length==0){
_1.href="javascript: gPage.gotoOptionsPageStart();";
}
this.iViewOptionsTask=new ViewOptionsTask(this.iImagePager);
this.iViewOptionsTask.init();
this.iQuickLinkTask=new QuickLinkTask();
this.iQuickLinkTask.init();
this.iOrderSummaryTask=new OrderSummaryTask(this.iImagePager);
this.iOrderSummaryTask.init();
};
this.imageCountChanged=function(_2){
if(_2>0){
$("options_page_breadcrumb").style.display="inline";
$("continue_a").style.display="block";
$("checkout_link").style.display="inline";
$("supernav_divider_0").style.display="inline";
$("clear_order_link").style.display="inline";
if($("logout_link").style.display=="inline"){
$("supernav_divider").style.display="inline";
}
}
$("summary_uploaded_snaps").innerHTML=_2;
};
this.gotoOptionsPageStart=function(){
if(gPage.iUploaderTask.getIsActive()){
gPage.iDialog=new Dialog("upload active","upload(s) in progress","abort upload(s) and continue?",this,this.confirmCallback);
gPage.iDialog.display();
}else{
this.gotoOptionsPageComplete();
}
};
this.confirmCallback=function(_3){
if(_3){
gPage.iUploaderTask.cancelUpload(this.gotoOptionsPageComplete);
}
};
this.gotoOptionsPageComplete=function(){
self.location="order.php?page=1";
};
}
OrderUploadPage.prototype=new Page();
OrderUploadPage.prototype.superclass=Page;
OrderUploadPage.prototype.constructor=OrderUploadPage;
gPage=new OrderUploadPage();


