// Created by iWeb 2.0.4 local-build-20081212

function createMediaStream_id1()
{return IWCreatePhotocast("http://www.a1builders.co.uk/Site/Home_files/rss.xml",true,true);}
function initializeMediaStream_id1()
{createMediaStream_id1().load('http://www.a1builders.co.uk/Site',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget1'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id1',{pageIndex:0}));});}
function layoutMediaGrid_id1(range)
{createMediaStream_id1().load('http://www.a1builders.co.uk/Site',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id1',new IWPhotoGridLayout(6,new IWSize(96,96),new IWSize(96,34),new IWSize(115,145),27,27,0,new IWSize(0,0)),new IWStrokeParts([{rect:new IWRect(-3,-1,2,97),url:'Home_files/stroke.png'},{rect:new IWRect(-3,-3,2,2),url:'Home_files/stroke_1.png'},{rect:new IWRect(-1,-3,97,2),url:'Home_files/stroke_2.png'},{rect:new IWRect(96,-3,2,2),url:'Home_files/stroke_3.png'},{rect:new IWRect(96,-1,2,97),url:'Home_files/stroke_4.png'},{rect:new IWRect(96,96,2,2),url:'Home_files/stroke_5.png'},{rect:new IWRect(-1,96,97,2),url:'Home_files/stroke_6.png'},{rect:new IWRect(-3,96,2,2),url:'Home_files/stroke_7.png'}],new IWSize(95,95)),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_id1(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id1(range);}
function onStubPage()
{var args=getArgs();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id1(),args.id);}
if(window.stubPage)
{onStubPage();}
function writeMovie1()
{detectBrowser();if(windowsInternetExplorer)
{document.write('<object id="id6" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="250" height="16"><param name="src" value="Media/02%20This%20Ole%20House.mov" /><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="id6" type="video/quicktime" width="250" height="16"><param name="src" value="Media/02%20This%20Ole%20House.mov"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id6" type="video/quicktime" width="250" height="16" data="Media/02%20This%20Ole%20House.mov"><param name="src" value="Media/02%20This%20Ole%20House.mov"/><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 IWPhotoFrame([IWCreateImage('Home_files/Formal_inset_01.png'),IWCreateImage('Home_files/Formal_inset_02.png'),IWCreateImage('Home_files/Formal_inset_03.png'),IWCreateImage('Home_files/Formal_inset_06.png'),IWCreateImage('Home_files/Formal_inset_09.png'),IWCreateImage('Home_files/Formal_inset_08.png'),IWCreateImage('Home_files/Formal_inset_07.png'),IWCreateImage('Home_files/Formal_inset_04.png')],null,0,0.344737,1.000000,1.000000,1.000000,1.000000,14.000000,14.000000,14.000000,14.000000,191.000000,262.000000,191.000000,262.000000,null,null,null,0.100000)});registry.applyEffects();}
function hostedOnDM()
{return false;}
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('Home_files/HomeMoz.css')
NotificationCenter.addObserver(null,relayoutMediaGrid_id1,'RangeChanged','id1')
adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');Widget.onload();fixAllIEPNGs('Media/transparent.gif');applyEffects()
initializeMediaStream_id1()}
function onPageUnload()
{Widget.onunload();}
