function pricingpage_goBack() { if(navbar.buttons[navbar.selectedIndex].label == "Photographs") { changePage("createPhotoPage"); } else { changePage("editPage"); } } function pricingpage_update() { var pImg = ge("priceImg"); if(currentPhoto.orientation == 0) { pImg.style.width = "" + parseInt(300 * currentPhoto.ratio) + "px"; pImg.style.height = "300px"; } else { pImg.style.width = "300px"; pImg.style.height = "" + parseInt(300 * currentPhoto.ratio) + "px"; } pImg.src = iPath + currentPhoto.num + ".jpg"; ge("textTitle").value = currentPhoto.toString(); ge("textWidth1").value = currentPaper.imgWidth + "\""; ge("textHeight1").value = currentPaper.imgHeight + "\""; ge("textArea").value = ShoppingCart.fix(currentPaper.getImageArea()) + " sq ft."; ge("textType").value = currentPaper.toString(); if(currentPaper.type == Paper.TYPE_CANVAS) { ge("textPriceSq").value = "$" + ShoppingCart.fix(PaperStock.PRICE_CANVAS) + " sq ft."; } else { ge("textPriceSq").value = " -- "; } ge("textPrice").value = "$" + ShoppingCart.fix(stock.getPrice(currentPaper)); } nch = "

Pricing Details

"; cch = "
"+ "
"+ "
"+ "
"+ "

"+ ""+ "

"+ "

"+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
Paper:
Print Cost:
Image Area:
Price:

"+ ""+ "

Actual print size may vary slightly.

"+ "
"; sch = "

When you select to print your photo on \"Glossy\", \"Matte\" or \"Watercolor\""+ " paper, the price of that print is determined by the size of the smallest "+ "standard-sized paper it can be printed on. For example, if you select a photograph wit"+ "h the dimensions 7.75\" x 22\", the smallest standard-sized paper it fits on is 20\" "+ "x 24\". The price for printing the photo 7.75\" x 22\" is the same as printing a phot"+ "o with the dimensions 20\" x 24\".

However, when you choose to print on Canvas,"+ " you only pay for the actual image area printed. This is determined by multiplying th"+ "e width by the height in inches and dividing by 144, to come up with the square foota"+ "ge. The square footage is then multiplied by the Print Cost (see above for current ra"+ "te)."; container = new Container(); container.paintLayout(PAINT_LAYOUT); container.setSpacing(SPACING); container.setNorthComponent(nch, "center"); container.setCenterComponent(cch, "center"); container.setSouthComponent(sch); var pricingPage = new Page("Price Information"); pricingPage.goBack = pricingpage_goBack; pricingPage.update = pricingpage_update; pricingPage.createHtml(container);