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

function iWebWriteCounter()
{try
{writeCounter();}
catch(e)
{}}
function createMediaStream_id2()
{return IWCreateMediaCollection("http://web.me.com/beth.brown/Site/Cheer_Pictures/Cheer_Pictures_files/rss.xml",true,255,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id2()
{createMediaStream_id2().load('http://web.me.com/beth.brown/Site/Cheer_Pictures',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget21'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id2',{pageIndex:0}));});}
function layoutMediaGrid_id2(range)
{createMediaStream_id2().load('http://web.me.com/beth.brown/Site/Cheer_Pictures',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id2',new IWPhotoGridLayout(2,new IWSize(266,200),new IWSize(266,37),new IWSize(320,252),27,27,0,new IWSize(58,51)),new IWPhotoFrame([IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/kids-pink/kids-pink_ul.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/kids-pink/kids-pink_top.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/kids-pink/kids-pink_ur.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/kids-pink/kids-pink_right.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/kids-pink/kids-pink_lr.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/kids-pink/kids-pink_bottom.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/kids-pink/kids-pink_ll.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/kids-pink/kids-pink_left.png')],null,0,0.500000,0.000000,0.000000,0.000000,0.000000,71.000000,43.000000,44.000000,58.000000,100.000000,105.000000,100.000000,105.000000,null,null,null,0.300000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget21',null,'widget22',{showTitle:true,showMetric:false})});}
function relayoutMediaGrid_id2(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id2(range);}
function onStubPage()
{var args=getArgs();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id2(),args.id);}
if(window.stubPage)
{onStubPage();}
function writeMovie1()
{detectBrowser();if(windowsInternetExplorer)
{document.write('<object id="id3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="434" height="262" style="height: 262px; left: 134px; position: absolute; top: 259px; width: 434px; z-index: 1; "><param name="src" value="../Media/mobile.m4v" /><param name="controller" value="true" /><param name="autoplay" value="false" /><param name="scale" value="tofit" /><param name="volume" value="100" /><param name="loop" value="false" /></object>');}
else if(isiPhone)
{document.write('<object id="id3" type="video/quicktime" width="434" height="262" style="height: 262px; left: 134px; position: absolute; top: 259px; width: 434px; z-index: 1; "><param name="src" value="Cheer_Pictures_files/ShortClinic-mobile.jpg"/><param name="target" value="myself"/><param name="href" value="../../Media/mobile.m4v"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id3" type="video/quicktime" width="434" height="262" data="../Media/mobile.m4v" style="height: 262px; left: 134px; position: absolute; top: 259px; width: 434px; z-index: 1; "><param name="src" value="../Media/mobile.m4v"/><param name="controller" value="true"/><param name="autoplay" value="false"/><param name="scale" value="tofit"/><param name="volume" value="100"/><param name="loop" value="false"/></object>');}}
setTransparentGifURL('../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_0:new IWStrokeParts([{rect:new IWRect(-3,4,6,203),url:'Cheer_Pictures_files/stroke.png'},{rect:new IWRect(-3,-3,6,7),url:'Cheer_Pictures_files/stroke_1.png'},{rect:new IWRect(3,-3,219,7),url:'Cheer_Pictures_files/stroke_2.png'},{rect:new IWRect(222,-2,4,6),url:'Cheer_Pictures_files/stroke_3.png'},{rect:new IWRect(222,4,6,203),url:'Cheer_Pictures_files/stroke_4.png'},{rect:new IWRect(222,207,6,5),url:'Cheer_Pictures_files/stroke_5.png'},{rect:new IWRect(3,207,219,6),url:'Cheer_Pictures_files/stroke_6.png'},{rect:new IWRect(-3,207,6,6),url:'Cheer_Pictures_files/stroke_7.png'}],new IWSize(225,210))});registry.applyEffects();}
function hostedOnDM()
{return true;}
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('Cheer_Pictures_files/Cheer_PicturesMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');NotificationCenter.addObserver(null,relayoutMediaGrid_id2,'RangeChanged','id2')
detectBrowser();fixAllIEPNGs('../Media/transparent.gif');Widget.onload();fixupAllIEPNGBGs();iWebWriteCounter();applyEffects()
initializeMediaStream_id2()}
function onPageUnload()
{Widget.onunload();}
