puzzle = {
	view : {
		thumb_xml : '',
		openEBook : function(bc){
			var bookcode = bc;
			location.href="/Viewer/"+bookcode;			
		},
		gotoPage : function(page)
		{
			var flash = parent.document.getElementById("puzzleSWF");
			flash.gotoPage(page);
			$.nyroModalRemove();
		},
		thumbnails : function()
		{									
			$.ajax({
				type: "POST",
				url: "/Web/BookThumbnails/bookcode="+puzzle.view.bookcode,
				data: {},
				error: function(){
					alert('Error loading XML document');
				},
				success: function(xml){
					puzzle.view.thumb_xml = xml;
				}
			});
		}
	}
}
function outputStatus(e){
	//alert("e.success = " + e.success +"\ne.id = "+ e.id +"\ne.ref = "+ e.ref);
}
//swfobject.registerObject("myId", "9.0", "/expressInstall.swf",outputStatus);
