// Created by iWeb 3.0.4 local-build-20120202

function createMediaStream_id1()
{return IWCreateMediaCollection("http://www.randybonifield.com/rb/photos/photos_files/rss.xml",true,255,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id1()
{createMediaStream_id1().load('http://www.randybonifield.com/rb/photos',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget3'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id1',{pageIndex:0}));});}
function layoutMediaGrid_id1(range)
{createMediaStream_id1().load('http://www.randybonifield.com/rb/photos',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id1',new IWPhotoGridLayout(2,new IWSize(225,169),new IWSize(225,25),new IWSize(248,209),27,27,0,new IWSize(23,23)),new IWPhotoFrame([IWCreateImage('photos_files/ul.png'),IWCreateImage('photos_files/top.png'),IWCreateImage('photos_files/ur.png'),IWCreateImage('photos_files/right.png'),IWCreateImage('photos_files/lr.png'),IWCreateImage('photos_files/bottom.png'),IWCreateImage('photos_files/ll.png'),IWCreateImage('photos_files/left.png')],null,0,0.404386,130.000000,10.000000,118.000000,45.000000,147.000000,30.000000,157.000000,83.000000,251.000000,120.000000,260.000000,120.000000,null,null,null,0.300000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget3',null,'widget4',{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({stroke_2:new IWStrokeParts([{rect:new IWRect(-1,1,2,40),url:'photos_files/stroke_16.png'},{rect:new IWRect(-1,-1,2,2),url:'photos_files/stroke_17.png'},{rect:new IWRect(1,-1,647,2),url:'photos_files/stroke_18.png'},{rect:new IWRect(648,-1,2,2),url:'photos_files/stroke_19.png'},{rect:new IWRect(648,1,2,40),url:'photos_files/stroke_20.png'},{rect:new IWRect(648,41,2,2),url:'photos_files/stroke_21.png'},{rect:new IWRect(1,41,647,2),url:'photos_files/stroke_22.png'},{rect:new IWRect(-1,41,2,2),url:'photos_files/stroke_23.png'}],new IWSize(649,42)),stroke_1:new IWStrokeParts([{rect:new IWRect(-1,1,2,113),url:'photos_files/stroke_8.png'},{rect:new IWRect(-1,-1,2,2),url:'photos_files/stroke_9.png'},{rect:new IWRect(1,-1,241,2),url:'photos_files/stroke_10.png'},{rect:new IWRect(242,-1,2,2),url:'photos_files/stroke_11.png'},{rect:new IWRect(242,1,2,113),url:'photos_files/stroke_12.png'},{rect:new IWRect(242,114,2,2),url:'photos_files/stroke_13.png'},{rect:new IWRect(1,114,241,2),url:'photos_files/stroke_14.png'},{rect:new IWRect(-1,114,2,2),url:'photos_files/stroke_15.png'}],new IWSize(243,115)),stroke_0:new IWStrokeParts([{rect:new IWRect(-2,2,4,21),url:'photos_files/stroke.png'},{rect:new IWRect(-2,-2,4,4),url:'photos_files/stroke_1.png'},{rect:new IWRect(2,-2,642,4),url:'photos_files/stroke_2.png'},{rect:new IWRect(644,-2,4,4),url:'photos_files/stroke_3.png'},{rect:new IWRect(644,2,4,21),url:'photos_files/stroke_4.png'},{rect:new IWRect(644,23,4,4),url:'photos_files/stroke_5.png'},{rect:new IWRect(2,23,642,4),url:'photos_files/stroke_6.png'},{rect:new IWRect(-2,23,4,4),url:'photos_files/stroke_7.png'}],new IWSize(646,25))});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')
adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');Widget.onload();fixupAllIEPNGBGs();fixAllIEPNGs('../Media/transparent.gif');applyEffects()
initializeMediaStream_id1()}
function onPageUnload()
{Widget.onunload();}

