// Created by iWeb 3.0.1 local-build-20100122

function writeMovie1()
{detectBrowser();if(windowsInternetExplorer)
{document.write('<object id="id1" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="75" height="16" style="height: 16px; left: 625px; position: absolute; top: 29px; width: 75px; z-index: 1; "><param name="src" value="../Media/Picture%20Book%20%28edit%29.mp3" /><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="id1" type="video/quicktime" width="75" height="16" style="height: 16px; left: 625px; position: absolute; top: 29px; width: 75px; z-index: 1; "><param name="src" value="../Media/Picture%20Book%20%28edit%29.mp3"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id1" type="video/quicktime" width="75" height="16" data="../Media/Picture%20Book%20%28edit%29.mp3" style="height: 16px; left: 625px; position: absolute; top: 29px; width: 75px; z-index: 1; "><param name="src" value="../Media/Picture%20Book%20%28edit%29.mp3"/><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>');}}
function createMediaStream_id3()
{return IWCreateMediaCollection("http://byoungcreative.com/bestweekever/bestweekever/picture_book/picture_book_files/rss.xml",true,255,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id3()
{createMediaStream_id3().load('http://byoungcreative.com/bestweekever/bestweekever/picture_book',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget21'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id3',{pageIndex:0}));});}
function layoutMediaGrid_id3(range)
{createMediaStream_id3().load('http://byoungcreative.com/bestweekever/bestweekever/picture_book',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id3',new IWPhotoGridLayout(3,new IWSize(209,157),new IWSize(209,31),new IWSize(229,203),27,27,0,new IWSize(18,17)),new IWPhotoFrame([IWCreateImage('picture_book_files/ul.png'),IWCreateImage('picture_book_files/top.png'),IWCreateImage('picture_book_files/ur.png'),IWCreateImage('picture_book_files/right.png'),IWCreateImage('picture_book_files/lr.png'),IWCreateImage('picture_book_files/bottom.png'),IWCreateImage('picture_book_files/ll.png'),IWCreateImage('picture_book_files/left.png')],null,0,0.300000,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','widget21',null,'widget22',{showTitle:true,showMetric:true})});}
function relayoutMediaGrid_id3(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id3(range);}
function onStubPage()
{var args=window.location.href.toQueryParams();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id3(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({shadow_0:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000}),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')
loadMozillaCSS('picture_book_files/picture_bookMoz.css')
adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');NotificationCenter.addObserver(null,relayoutMediaGrid_id3,'RangeChanged','id3')
adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');Widget.onload();fixAllIEPNGs('../Media/transparent.gif');fixupAllIEPNGBGs();applyEffects()
initializeMediaStream_id3()}
function onPageUnload()
{Widget.onunload();}
