// Created by iWeb 2.0.4 local-build-20090726

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="200" height="166" style="clear: left; float: left; height: 166px; margin: 12px 12px 12px 0px; position: relative; width: 200px; " class="inline-block"><param name="src" value="../../Media/Gate%20closer%20near%20St%20Bega%27s%20church.mp4"/><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="id2" type="video/quicktime" width="200" height="166" style="clear: left; float: left; height: 166px; margin: 12px 12px 12px 0px; position: relative; width: 200px; " class="inline-block"><param name="src" value="Gates_files/Gate%20closer%20near%20St%20Bega%27s%20church.jpg"/><param name="target" value="myself"/><param name="href" value="../../../Media/Gate%20closer%20near%20St%20Bega%27s%20church.mp4"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id2" type="video/quicktime" width="200" height="166" data="../../Media/Gate%20closer%20near%20St%20Bega%27s%20church.mp4" style="clear: left; float: left; height: 166px; margin: 12px 12px 12px 0px; position: relative; width: 200px; " class="inline-block"><param name="src" value="../../Media/Gate%20closer%20near%20St%20Bega%27s%20church.mp4"/><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 IWCreatePhotocast("http://www.ellis-outdoors.co.uk/Daves_Outdoor_Adventures/Photos/Pages/Gates_files/rss.xml",true,true);}
function initializeMediaStream_id3()
{createMediaStream_id3().load('http://www.ellis-outdoors.co.uk/Daves_Outdoor_Adventures/Photos/Pages',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget1'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id3',{pageIndex:0}));});}
function layoutMediaGrid_id3(range)
{createMediaStream_id3().load('http://www.ellis-outdoors.co.uk/Daves_Outdoor_Adventures/Photos/Pages',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id3',new IWPhotoGridLayout(3,new IWSize(166,166),new IWSize(166,32),new IWSize(204,213),27,27,0,new IWSize(0,0)),new IWEmptyStroke(),imageStream,range,null,null,1.000000,{backgroundColor:'#000000',reflectionHeight:100,reflectionOffset:2,captionHeight:100,fullScreen:0,transitionIndex:2},'../../Media/slideshow.html','widget1','widget2','widget3')});}
function relayoutMediaGrid_id3(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id3(range);}
function onStubPage()
{var args=getArgs();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')
IWRegisterNamedImage('contribution overlay','../../Media/Photo-Overlay-Contribution.png')
loadMozillaCSS('Gates_files/GatesMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');NotificationCenter.addObserver(null,relayoutMediaGrid_id3,'RangeChanged','id3')
detectBrowser();adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');Widget.onload();fixAllIEPNGs('../../Media/transparent.gif');fixupAllIEPNGBGs();fixupIECSS3Opacity('id5');initializeMediaStream_id3()
performPostEffectsFixups()}
function onPageUnload()
{Widget.onunload();}
