// Created by iWeb 2.0.4 local-build-20100531

function createMediaStream_id4()
{return IWCreateMediaCollection("file://localhost/Users/skiley/Sites/new_DDTA/Student_Photo_Gallery/Student_Photo_Gallery_files/rss.xml",true,255,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id4()
{createMediaStream_id4().load('file://localhost/Users/skiley/Sites/new_DDTA/Student_Photo_Gallery',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget9'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id4',{pageIndex:0}));});}
function layoutMediaGrid_id4(range)
{createMediaStream_id4().load('file://localhost/Users/skiley/Sites/new_DDTA/Student_Photo_Gallery',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id4',new IWPhotoGridLayout(3,new IWSize(246,184),new IWSize(246,34),new IWSize(246,234),27,27,0,new IWSize(24,24)),new IWPhotoFrame([IWCreateImage('Student_Photo_Gallery_files/Crayon_BK_v4%20%2801%29.png'),IWCreateImage('Student_Photo_Gallery_files/Crayon_BK_v4%20%2802%29.png'),IWCreateImage('Student_Photo_Gallery_files/Crayon_BK_v4%20%2803%29.png'),IWCreateImage('Student_Photo_Gallery_files/Crayon_BK_v4%20%2805%29.png'),IWCreateImage('Student_Photo_Gallery_files/Crayon_BK_v4%20%2808%29.png'),IWCreateImage('Student_Photo_Gallery_files/Crayon_BK_v4%20%2807%29.png'),IWCreateImage('Student_Photo_Gallery_files/Crayon_BK_v4%20%2806%29.png'),IWCreateImage('Student_Photo_Gallery_files/Crayon_BK_v4%20%2804%29.png')],null,0,0.560000,19.000000,19.000000,19.000000,19.000000,41.000000,41.000000,41.000000,41.000000,2.000000,1.000000,2.000000,1.000000,null,null,null,0.100000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget9',null,'widget10',{showTitle:true,showMetric:false})});}
function relayoutMediaGrid_id4(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id4(range);}
function onStubPage()
{var args=getArgs();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id4(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_0:new IWEmptyStroke(),stroke_1:new IWStrokeParts([{rect:new IWRect(-2,-1,1,46),url:'Student_Photo_Gallery_files/stroke.png'},{rect:new IWRect(-2,-2,1,1),url:'Student_Photo_Gallery_files/stroke_1.png'},{rect:new IWRect(-1,-2,146,1),url:'Student_Photo_Gallery_files/stroke_2.png'},{rect:new IWRect(145,-2,1,1),url:'Student_Photo_Gallery_files/stroke_3.png'},{rect:new IWRect(145,-1,1,46),url:'Student_Photo_Gallery_files/stroke_4.png'},{rect:new IWRect(145,45,1,1),url:'Student_Photo_Gallery_files/stroke_5.png'},{rect:new IWRect(-1,45,146,1),url:'Student_Photo_Gallery_files/stroke_6.png'},{rect:new IWRect(-2,45,1,1),url:'Student_Photo_Gallery_files/stroke_7.png'}],new IWSize(144,44))});registry.applyEffects();}
function hostedOnDM()
{return false;}
function onPageLoad()
{IWRegisterNamedImage('comment overlay','../Media/Photo-Overlay-Comment.png')
IWRegisterNamedImage('movie overlay','../Media/Photo-Overlay-Movie.png')
IWRegisterNamedImage('contribution overlay','../Media/Photo-Overlay-Contribution.png')
loadMozillaCSS('Student_Photo_Gallery_files/Student_Photo_GalleryMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');NotificationCenter.addObserver(null,relayoutMediaGrid_id4,'RangeChanged','id4')
adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');fixAllIEPNGs('../Media/transparent.gif');IMpreload('Student_Photo_Gallery_files','shapeimage_1','0');IMpreload('Student_Photo_Gallery_files','shapeimage_1','1');IMpreload('Student_Photo_Gallery_files','shapeimage_1','2');IMpreload('Student_Photo_Gallery_files','shapeimage_1','3');IMpreload('Student_Photo_Gallery_files','shapeimage_1','4');IMpreload('Student_Photo_Gallery_files','shapeimage_1','5');IMpreload('Student_Photo_Gallery_files','shapeimage_1','6');IMpreload('Student_Photo_Gallery_files','shapeimage_1','7');IMpreload('Student_Photo_Gallery_files','shapeimage_1','8');IMpreload('Student_Photo_Gallery_files','shapeimage_1','9');Widget.onload();IMpreload('Student_Photo_Gallery_files','shapeimage_4','0');IMpreload('Student_Photo_Gallery_files','shapeimage_4','1');IMpreload('Student_Photo_Gallery_files','shapeimage_4','2');IMpreload('Student_Photo_Gallery_files','shapeimage_4','3');IMpreload('Student_Photo_Gallery_files','shapeimage_4','4');IMpreload('Student_Photo_Gallery_files','shapeimage_4','5');IMpreload('Student_Photo_Gallery_files','shapeimage_4','6');IMpreload('Student_Photo_Gallery_files','shapeimage_4','7');applyEffects()
initializeMediaStream_id4()}
function onPageUnload()
{Widget.onunload();}
