﻿///////////////////////////////////////////////////////////////////////////////
//
//  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 = numPages;
    this.resourceArray = new Array();
    for (var i=0; i< this.numPages; i++){
		this.resourceArray[this.resourceArray.length] = "assets/0" + getTwoDigitInt(i+1) + ".jpg";
    }
}

PageGenerator.prototype.getPageString = function(pageNumber, isThumbnail)
{
  var retStr = "";
  if (pageNumber < 0)
  {
    return retStr;
  }
  else if ( 0 <= pageNumber && pageNumber < 34)
  { 
  	retStr +="<Canvas Height='570' Width='420'>";
    retStr += "  <Image Height='570' Width='420' Source='assets/0"+getTwoDigitInt(pageNumber+1)+".jpg'/>";
    retStr += "</Canvas>";
    return retStr;
  }
  if (pageNumber == 34) {
  }
  if (pageNumber == 35 ) {
  }
  return retStr;
}
