///////////////////////////////////////////////////////////////////////////////
//
//  pageGenerator.js
//
// 
// © 2007 Microsoft Corporation. All Rights Reserved.
//
// This file is licensed as part of the Silverlight 1.0 SDK, for details look here: http://go.microsoft.com/fwlink/?LinkID=89144&clcid=0x409
//
///////////////////////////////////////////////////////////////////////////////

// Controls the content for each page and the set of resources required by them
PageGenerator = function(numPages) {
    this.numPages = 7;
    this.resourceArray = new Array();
    for (var i=0; i<=this.numPages; i++){
        this.resourceArray[this.resourceArray.length] = "assets/page" + getTwoDigitInt(i) + ".jpg";
    }
}

PageGenerator.prototype.getPageString = function(pageNumber, isThumbnail)
{
  var retStr = "";
  if (pageNumber < 0)
  {
    return retStr;
  }
  retStr =  "<Canvas Width='450'>";
  retStr += "  <Image Width='410' Source='assets/page"+getTwoDigitInt(pageNumber)+".jpg'/>";


  retStr += "  <Path Data='M 450,725 h -450 v -725 h 420 v 650 h -450' Stroke='White' StrokeThickness='25'/>";

  retStr += "</Canvas>";
  return retStr;
}