// Created by iWeb 3.0.1 local-build-20100307

function createMediaStream_id4()
{return IWCreateMediaCollection("http://www.rapidrunnerexpeditions.com/Rapidrunnner_Expeditions/Photo_Gallery/Photo_Gallery_files/rss.xml",true,2,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id4()
{createMediaStream_id4().load('http://www.rapidrunnerexpeditions.com/Rapidrunnner_Expeditions/Photo_Gallery',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget5'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id4',{pageIndex:0}));});}
function layoutMediaGrid_id4(range)
{createMediaStream_id4().load('http://www.rapidrunnerexpeditions.com/Rapidrunnner_Expeditions/Photo_Gallery',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id4',new IWPhotoGridLayout(3,new IWSize(294,220),new IWSize(294,53),new IWSize(298,288),27,27,0,new IWSize(73,64)),new IWPhotoFrame([IWCreateImage('Photo_Gallery_files/spiralbook-creme_ul.png'),IWCreateImage('Photo_Gallery_files/spiralbook-creme_top.png'),IWCreateImage('Photo_Gallery_files/spiralbook-creme_ur.png'),IWCreateImage('Photo_Gallery_files/spiralbook-creme_right.png'),IWCreateImage('Photo_Gallery_files/spiralbook-creme_lr.png'),IWCreateImage('Photo_Gallery_files/spiralbook-creme_bottom.png'),IWCreateImage('Photo_Gallery_files/spiralbook-creme_ll.png'),IWCreateImage('Photo_Gallery_files/spiralbook-creme_left.png')],null,1,0.666667,15.000000,0.000000,0.000000,0.000000,83.000000,40.000000,40.000000,55.000000,106.000000,40.000000,40.000000,32.000000,null,null,null,0.300000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget5',null,'widget6',{showTitle:true,showMetric:true})});}
function relayoutMediaGrid_id4(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id4(range);}
function onStubPage()
{var args=window.location.href.toQueryParams();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id4(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_0:new IWStrokeParts([{rect:new IWRect(-1,1,2,12),url:'Photo_Gallery_files/stroke.png'},{rect:new IWRect(-1,-1,2,2),url:'Photo_Gallery_files/stroke_1.png'},{rect:new IWRect(1,-1,588,2),url:'Photo_Gallery_files/stroke_2.png'},{rect:new IWRect(589,-1,2,2),url:'Photo_Gallery_files/stroke_3.png'},{rect:new IWRect(589,1,2,12),url:'Photo_Gallery_files/stroke_4.png'},{rect:new IWRect(589,13,2,2),url:'Photo_Gallery_files/stroke_5.png'},{rect:new IWRect(1,13,588,2),url:'Photo_Gallery_files/stroke_6.png'},{rect:new IWRect(-1,13,2,2),url:'Photo_Gallery_files/stroke_7.png'}],new IWSize(590,14))});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('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');fixAllIEPNGs('../Media/transparent.gif');IMpreload('Photo_Gallery_files','shapeimage_21','0');Widget.onload();fixupAllIEPNGBGs();applyEffects()
initializeMediaStream_id4()}
function onPageUnload()
{Widget.onunload();}
