// Created by iWeb 2.0.4 local-build-20090827

function createMediaStream_id4()
{return IWCreateMediaCollection("http://www.jocc.org/www.jocc.org/Photo_Gallery/Photo_Gallery_files/rss.xml",true,255,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id4()
{createMediaStream_id4().load('http://www.jocc.org/www.jocc.org/Photo_Gallery',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget22'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id4',{pageIndex:0}));});}
function layoutMediaGrid_id4(range)
{createMediaStream_id4().load('http://www.jocc.org/www.jocc.org/Photo_Gallery',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id4',new IWPhotoGridLayout(3,new IWSize(258,193),new IWSize(258,34),new IWSize(322,242),27,27,0,new IWSize(33,35)),new IWPhotoFrame([IWCreateImage('Photo_Gallery_files/kids_ul.png'),IWCreateImage('Photo_Gallery_files/kids_top.jpg'),IWCreateImage('Photo_Gallery_files/kids_ur.png'),IWCreateImage('Photo_Gallery_files/kids_right.png'),IWCreateImage('Photo_Gallery_files/kids_lr.png'),IWCreateImage('Photo_Gallery_files/kids_bottom.png'),IWCreateImage('Photo_Gallery_files/kids_ll.png'),IWCreateImage('Photo_Gallery_files/kids_left.png')],null,0,0.333333,118.000000,0.000000,132.000000,0.000000,174.000000,44.000000,176.000000,58.000000,60.000000,63.000000,60.000000,63.000000,null,null,null,0.300000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget22',null,'widget23',{showTitle:true,showMetric:true})});}
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({reflection_0:new IWReflection({opacity:0.50,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')
IWRegisterNamedImage('contribution overlay','../Media/Photo-Overlay-Contribution.png')
loadMozillaCSS('Photo_Gallery_files/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');adjustLineHeightIfTooBig('id7');adjustFontSizeIfTooBig('id7');adjustLineHeightIfTooBig('id8');adjustFontSizeIfTooBig('id8');adjustLineHeightIfTooBig('id9');adjustFontSizeIfTooBig('id9');adjustLineHeightIfTooBig('id10');adjustFontSizeIfTooBig('id10');adjustLineHeightIfTooBig('id11');adjustFontSizeIfTooBig('id11');Widget.onload();fixupAllIEPNGBGs();fixAllIEPNGs('../Media/transparent.gif');IMpreload('Photo_Gallery_files','shapeimage_3','0');applyEffects()
initializeMediaStream_id4()}
function onPageUnload()
{Widget.onunload();}

