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

function iWebWriteCounter()
{try
{writeCounter();}
catch(e)
{}}
function writeMovie1()
{detectBrowser();if(windowsInternetExplorer)
{document.write('<object id="id2" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="160" height="16"><param name="src" value="Media/Celestial%20Body%20Long.caf" /><param name="controller" value="false" /><param name="autoplay" value="true" /><param name="scale" value="tofit" /><param name="volume" value="100" /><param name="loop" value="true" /></object>');}
else if(isiPhone)
{document.write('<object id="id2" type="video/quicktime" width="160" height="16"><param name="src" value="Media/Celestial%20Body%20Long.caf"/><param name="controller" value="false"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id2" type="video/quicktime" width="160" height="16" data="Media/Celestial%20Body%20Long.caf"><param name="src" value="Media/Celestial%20Body%20Long.caf"/><param name="controller" value="false"/><param name="autoplay" value="true"/><param name="scale" value="tofit"/><param name="volume" value="100"/><param name="loop" value="true"/></object>');}}
function createMediaStream_id3()
{return IWCreatePhotocast("http://www.robertlnewman.com/WillowLake/Amelia_Album_files/rss.xml",false);}
function initializeMediaStream_id3()
{createMediaStream_id3().load('http://www.robertlnewman.com/WillowLake',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget0'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id3',{pageIndex:0}));});}
function layoutMediaGrid_id3(range)
{createMediaStream_id3().load('http://www.robertlnewman.com/WillowLake',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id3',new IWPhotoGridLayout(2,new IWSize(263,263),new IWSize(263,54),new IWSize(316,332),27,27,0,new IWSize(0,0)),new IWStrokeParts([{rect:new IWRect(-3,3,6,257),url:'Amelia_Album_files/stroke.png'},{rect:new IWRect(-3,-3,6,6),url:'Amelia_Album_files/stroke_1.png'},{rect:new IWRect(3,-3,257,6),url:'Amelia_Album_files/stroke_2.png'},{rect:new IWRect(260,-3,6,6),url:'Amelia_Album_files/stroke_3.png'},{rect:new IWRect(260,3,6,257),url:'Amelia_Album_files/stroke_4.png'},{rect:new IWRect(260,260,6,6),url:'Amelia_Album_files/stroke_5.png'},{rect:new IWRect(3,260,257,6),url:'Amelia_Album_files/stroke_6.png'},{rect:new IWRect(-3,260,6,6),url:'Amelia_Album_files/stroke_7.png'}],new IWSize(263,263)),imageStream,range,null,null,1.000000,{backgroundColor:'rgb(0, 0, 0)',reflectionHeight:100,reflectionOffset:2,captionHeight:100,fullScreen:1,transitionIndex:2},'Media/slideshow.html','widget0','widget1','widget2')});}
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 hostedOnDM()
{return true;}
function onPageLoad()
{IWRegisterNamedImage('comment overlay','Media/Photo-Overlay-Comment.png')
IWRegisterNamedImage('movie overlay','Media/Photo-Overlay-Movie.png')
loadMozillaCSS('Amelia_Album_files/Amelia_AlbumMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');NotificationCenter.addObserver(null,relayoutMediaGrid_id3,'RangeChanged','id3')
adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');detectBrowser();adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');fixAllIEPNGs('Media/transparent.gif');Widget.onload();fixupAllIEPNGBGs();fixupIECSS3Opacity('id7');iWebWriteCounter();initializeMediaStream_id3()
performPostEffectsFixups()}
function onPageUnload()
{Widget.onunload();}

