// Created by iWeb 3.0.4 local-build-20111114

function createMediaStream_id1()
{return IWCreateMediaCollection("http://www.stlawrenceacademy.com/St._lawrence_Academy/Photos/Photos_files/rss.xml",true,2,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id1()
{createMediaStream_id1().load('http://www.stlawrenceacademy.com/St._lawrence_Academy/Photos',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget14'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id1',{pageIndex:0}));});}
function layoutMediaGrid_id1(range)
{createMediaStream_id1().load('http://www.stlawrenceacademy.com/St._lawrence_Academy/Photos',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id1',new IWPhotoGridLayout(2,new IWSize(196,147),new IWSize(196,34),new IWSize(294,196),27,27,0,new IWSize(93,77)),new IWPhotoFrame([IWCreateImage('Photos_files/leatherbook_ul.png'),IWCreateImage('Photos_files/leatherbook_top.png'),IWCreateImage('Photos_files/leatherbook_ur.png'),IWCreateImage('Photos_files/leatherbook_right.png'),IWCreateImage('Photos_files/leatherbook_lr.png'),IWCreateImage('Photos_files/leatherbook_bottom.png'),IWCreateImage('Photos_files/leatherbook_ll.png'),IWCreateImage('Photos_files/leatherbook_left.png')],null,0,0.700000,6.000000,6.000000,6.000000,6.000000,87.000000,54.000000,60.000000,69.000000,20.000000,16.000000,18.000000,16.000000,null,null,null,0.300000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget14',null,'widget15',{showTitle:true,showMetric:true})});}
function relayoutMediaGrid_id1(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id1(range);}
function onStubPage()
{var args=window.location.href.toQueryParams();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id1(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({reflection_0:new IWReflection({opacity:0.33,offset:1.00})});registry.applyEffects();}
function hostedOnDM()
{return false;}
function onPageLoad()
{IWRegisterNamedImage('comment overlay','../Media/Photo-Overlay-Comment.png')
IWRegisterNamedImage('movie overlay','../Media/Photo-Overlay-Movie.png')
loadMozillaCSS('Photos_files/PhotosMoz.css')
NotificationCenter.addObserver(null,relayoutMediaGrid_id1,'RangeChanged','id1')
Widget.onload();fixupAllIEPNGBGs();fixAllIEPNGs('../Media/transparent.gif');IMpreload('Photos_files','shapeimage_2','0');IMpreload('Photos_files','shapeimage_2','1');IMpreload('Photos_files','shapeimage_2','2');IMpreload('Photos_files','shapeimage_2','3');IMpreload('Photos_files','shapeimage_2','4');IMpreload('Photos_files','shapeimage_2','5');IMpreload('Photos_files','shapeimage_2','6');IMpreload('Photos_files','shapeimage_2','7');IMpreload('Photos_files','shapeimage_2','8');IMpreload('Photos_files','shapeimage_2','9');IMpreload('Photos_files','shapeimage_2','10');IMpreload('Photos_files','shapeimage_2','11');IMpreload('Photos_files','shapeimage_2','12');IMpreload('Photos_files','shapeimage_2','13');IMpreload('Photos_files','shapeimage_2','14');IMpreload('Photos_files','shapeimage_2','15');IMpreload('Photos_files','shapeimage_2','16');IMpreload('Photos_files','shapeimage_2','17');IMpreload('Photos_files','shapeimage_2','18');IMpreload('Photos_files','shapeimage_2','19');IMpreload('Photos_files','shapeimage_2','20');IMpreload('Photos_files','shapeimage_2','21');IMpreload('Photos_files','shapeimage_2','22');IMpreload('Photos_files','shapeimage_2','23');applyEffects()
initializeMediaStream_id1()}
function onPageUnload()
{Widget.onunload();}

