// Created by iWeb 3.0.4 local-build-20111231
//
//  iWeb - iWebHitCounter.js
//  Copyright (c) 2007-2008 Apple Inc. All rights reserved.
//

function iWebWriteCounter()
{try
{writeCounter();}
catch(e)
{}}
function createMediaStream_id2()
{return IWCreateMediaCollection("http://www.walks.ca/CVF/Milestones/Milestones_files/rss.xml",true,9,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id2()
{createMediaStream_id2().load('http://www.walks.ca/CVF/Milestones',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget7'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id2',{pageIndex:0}));});}
function layoutMediaGrid_id2(range)
{createMediaStream_id2().load('http://www.walks.ca/CVF/Milestones',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id2',new IWPhotoGridLayout(3,new IWSize(203,152),new IWSize(203,31),new IWSize(229,198),27,27,0,new IWSize(60,49)),new IWPhotoFrame([IWCreateImage('Milestones_files/spiralboook_ul.png'),IWCreateImage('Milestones_files/spiralboook_top.png'),IWCreateImage('Milestones_files/spiralboook_ur.png'),IWCreateImage('Milestones_files/spiralboook_right.png'),IWCreateImage('Milestones_files/spiralboook_lr.png'),IWCreateImage('Milestones_files/spiralboook_bottom.png'),IWCreateImage('Milestones_files/spiralboook_ll.png'),IWCreateImage('Milestones_files/spiralboook_left.png')],null,1,0.533333,0.000000,10.000000,0.000000,19.000000,62.000000,49.000000,48.000000,72.000000,20.000000,1.000000,20.000000,1.000000,null,null,null,0.100000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget7',null,'widget8',{showTitle:true,showMetric:true})});}
function relayoutMediaGrid_id2(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id2(range);}
function onStubPage()
{var args=window.location.href.toQueryParams();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id2(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({shadow_2:new IWShadow({blurRadius:35,offset:new IWPoint(1.5628,8.8633),color:'#000000',opacity:0.660000}),shadow_0:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000}),shadow_1:new IWShadow({blurRadius:34,offset:new IWPoint(1.5628,8.8633),color:'#000000',opacity:1.000000})});registry.applyEffects();}
function hostedOnDM()
{return true;}
function onPageLoad()
{IWRegisterNamedImage('comment overlay','../Media/Photo-Overlay-Comment.png')
IWRegisterNamedImage('movie overlay','../Media/Photo-Overlay-Movie.png')
loadMozillaCSS('Milestones_files/MilestonesMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');NotificationCenter.addObserver(null,relayoutMediaGrid_id2,'RangeChanged','id2')
adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');Widget.onload();fixupAllIEPNGBGs();fixAllIEPNGs('../Media/transparent.gif');IMpreload('Milestones_files','shapeimage_3','0');IMpreload('Milestones_files','shapeimage_3','1');IMpreload('Milestones_files','shapeimage_3','2');IMpreload('Milestones_files','shapeimage_3','3');IMpreload('Milestones_files','shapeimage_3','4');IMpreload('Milestones_files','shapeimage_3','5');IMpreload('Milestones_files','shapeimage_3','6');IMpreload('Milestones_files','shapeimage_3','7');IMpreload('Milestones_files','shapeimage_3','8');IMpreload('Milestones_files','shapeimage_3','9');iWebWriteCounter();applyEffects()
initializeMediaStream_id2()}
function onPageUnload()
{Widget.onunload();}

