// Created by iWeb 3.0.3 local-build-20110428

function createMediaStream_id3()
{return IWCreatePhotocast("http://www.stoutworks.net/Alastair_Stout/Shetland_files/rss.xml",true);}
function initializeMediaStream_id3()
{createMediaStream_id3().load('http://www.stoutworks.net/Alastair_Stout',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.stoutworks.net/Alastair_Stout',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id3',new IWPhotoGridLayout(3,new IWSize(206,206),new IWSize(206,34),new IWSize(213,255),27,27,0,new IWSize(16,16)),new IWPhotoFrame([IWCreateImage('Shetland_files/Watercolor_iweb_01.png'),IWCreateImage('Shetland_files/Watercolor_iweb_02.png'),IWCreateImage('Shetland_files/Watercolor_iweb_04.png'),IWCreateImage('Shetland_files/Watercolor_iweb_08.png'),IWCreateImage('Shetland_files/Watercolor_iweb_16.png'),IWCreateImage('Shetland_files/Watercolor_iweb_14.png'),IWCreateImage('Shetland_files/Watercolor_iweb_13.png'),IWCreateImage('Shetland_files/Watercolor_iweb_05.png')],null,0,0.666667,0.000000,0.000000,0.000000,0.000000,12.000000,12.000000,11.000000,11.000000,13.000000,12.000000,13.000000,12.000000,null,null,null,0.500000),imageStream,range,null,null,1.000000,null,'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();}
function writeMovie1()
{detectBrowser();if(windowsInternetExplorer)
{document.write('<object id="id5" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="90" height="16"><param name="src" value="Media/Shetland.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="id5" type="video/quicktime" width="90" height="16"><param name="src" value="Media/Shetland.mp3"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id5" type="video/quicktime" width="90" height="16" data="Media/Shetland.mp3"><param name="src" value="Media/Shetland.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>');}}
setTransparentGifURL('Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_0:new IWStrokeParts([{rect:new IWRect(-2,-1,1,227),url:'Shetland_files/stroke.png'},{rect:new IWRect(-2,-2,1,1),url:'Shetland_files/stroke_1.png'},{rect:new IWRect(-1,-2,302,1),url:'Shetland_files/stroke_2.png'},{rect:new IWRect(301,-2,1,1),url:'Shetland_files/stroke_3.png'},{rect:new IWRect(301,-1,1,227),url:'Shetland_files/stroke_4.png'},{rect:new IWRect(301,226,1,1),url:'Shetland_files/stroke_5.png'},{rect:new IWRect(-1,226,302,1),url:'Shetland_files/stroke_6.png'},{rect:new IWRect(-2,226,1,1),url:'Shetland_files/stroke_7.png'}],new IWSize(300,225))});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('Shetland_files/ShetlandMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');NotificationCenter.addObserver(null,relayoutMediaGrid_id3,'RangeChanged','id3')
adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');detectBrowser();adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');fixAllIEPNGs('Media/transparent.gif');IMpreload('Shetland_files','shapeimage_2','0');IMpreload('Shetland_files','shapeimage_4','0');IMpreload('Shetland_files','shapeimage_6','0');IMpreload('Shetland_files','shapeimage_8','0');IMpreload('Shetland_files','shapeimage_10','0');IMpreload('Shetland_files','shapeimage_12','0');IMpreload('Shetland_files','shapeimage_14','0');IMpreload('Shetland_files','shapeimage_16','0');Widget.onload();applyEffects()
initializeMediaStream_id3()}
function onPageUnload()
{Widget.onunload();}

