// Created by iWeb 2.0.4 local-build-20100101

function createMediaStream_id5()
{return IWCreatePhotocast("http://www.salsburyhouse.ca/Salsbury_House_Bed_and_Breakfast/Sense_files/rss.xml",false,true);}
function initializeMediaStream_id5()
{createMediaStream_id5().load('http://www.salsburyhouse.ca/Salsbury_House_Bed_and_Breakfast',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget1'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id5',{pageIndex:0}));});}
function layoutMediaGrid_id5(range)
{createMediaStream_id5().load('http://www.salsburyhouse.ca/Salsbury_House_Bed_and_Breakfast',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id5',new IWPhotoGridLayout(3,new IWSize(227,227),new IWSize(227,38),new IWSize(272,280),27,27,0,new IWSize(31,34)),new IWPhotoFrame([IWCreateImage('Sense_files/Freestyle_01.png'),IWCreateImage('Sense_files/Freestyle_02.png'),IWCreateImage('Sense_files/Freestyle_03.png'),IWCreateImage('Sense_files/Freestyle_06.png'),IWCreateImage('Sense_files/Freestyle_09.png'),IWCreateImage('Sense_files/Freestyle_08.png'),IWCreateImage('Sense_files/Freestyle_07.png'),IWCreateImage('Sense_files/Freestyle_04.png')],null,2,0.800000,3.000000,3.000000,3.000000,3.000000,22.000000,24.000000,23.000000,25.000000,166.000000,222.000000,166.000000,222.000000,null,null,null,0.100000),imageStream,range,null,null,1.000000,{backgroundColor:'#6a1d10',reflectionHeight:100,reflectionOffset:2,captionHeight:100,fullScreen:1,transitionIndex:2},'Media/slideshow.html','widget1','widget2','widget3')});}
function relayoutMediaGrid_id5(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id5(range);}
function onStubPage()
{var args=getArgs();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id5(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({shadow_2:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000}),shadow_4:new IWShadow({blurRadius:10,offset:new IWPoint(1.4142,1.4142),color:'#2a0d07',opacity:0.500000}),shadow_8:new IWShadow({blurRadius:10,offset:new IWPoint(1.4142,1.4142),color:'#2a0d07',opacity:0.500000}),shadow_6:new IWShadow({blurRadius:10,offset:new IWPoint(1.4142,1.4142),color:'#2a0d07',opacity:0.560000}),stroke_3:new IWStrokeParts([{rect:new IWRect(-1,1,2,41),url:'Sense_files/stroke_24.png'},{rect:new IWRect(-1,-1,2,2),url:'Sense_files/stroke_25.png'},{rect:new IWRect(1,-1,898,2),url:'Sense_files/stroke_26.png'},{rect:new IWRect(899,-1,2,2),url:'Sense_files/stroke_27.png'},{rect:new IWRect(899,1,2,41),url:'Sense_files/stroke_28.png'},{rect:new IWRect(899,42,2,2),url:'Sense_files/stroke_29.png'},{rect:new IWRect(1,42,898,2),url:'Sense_files/stroke_30.png'},{rect:new IWRect(-1,42,2,2),url:'Sense_files/stroke_31.png'}],new IWSize(900,43)),shadow_1:new IWShadow({blurRadius:20,offset:new IWPoint(-0.0000,0.0000),color:'#000000',opacity:1.000000}),stroke_1:new IWStrokeParts([{rect:new IWRect(-3,3,6,149),url:'Sense_files/stroke_8.png'},{rect:new IWRect(-3,-3,6,6),url:'Sense_files/stroke_9.png'},{rect:new IWRect(3,-3,669,6),url:'Sense_files/stroke_10.png'},{rect:new IWRect(672,-3,6,6),url:'Sense_files/stroke_11.png'},{rect:new IWRect(672,3,6,149),url:'Sense_files/stroke_12.png'},{rect:new IWRect(672,152,6,6),url:'Sense_files/stroke_13.png'},{rect:new IWRect(3,152,669,6),url:'Sense_files/stroke_14.png'},{rect:new IWRect(-3,152,6,6),url:'Sense_files/stroke_15.png'}],new IWSize(675,155)),shadow_5:new IWShadow({blurRadius:10,offset:new IWPoint(-0.0000,0.0000),color:'#2a0d07',opacity:0.800000}),shadow_3:new IWShadow({blurRadius:8,offset:new IWPoint(-1.4142,-1.4142),color:'#000000',opacity:1.000000}),shadow_7:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000}),shadow_0:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:1.000000}),stroke_0:new IWStrokeParts([{rect:new IWRect(-3,3,6,68),url:'Sense_files/stroke.png'},{rect:new IWRect(-3,-3,6,6),url:'Sense_files/stroke_1.png'},{rect:new IWRect(3,-3,331,6),url:'Sense_files/stroke_2.png'},{rect:new IWRect(334,-3,6,6),url:'Sense_files/stroke_3.png'},{rect:new IWRect(334,3,6,68),url:'Sense_files/stroke_4.png'},{rect:new IWRect(334,71,6,6),url:'Sense_files/stroke_5.png'},{rect:new IWRect(3,71,331,6),url:'Sense_files/stroke_6.png'},{rect:new IWRect(-3,71,6,6),url:'Sense_files/stroke_7.png'}],new IWSize(337,74)),stroke_2:new IWStrokeParts([{rect:new IWRect(-1,1,2,41),url:'Sense_files/stroke_16.png'},{rect:new IWRect(-1,-1,2,2),url:'Sense_files/stroke_17.png'},{rect:new IWRect(1,-1,898,2),url:'Sense_files/stroke_18.png'},{rect:new IWRect(899,-1,2,2),url:'Sense_files/stroke_19.png'},{rect:new IWRect(899,1,2,41),url:'Sense_files/stroke_20.png'},{rect:new IWRect(899,42,2,2),url:'Sense_files/stroke_21.png'},{rect:new IWRect(1,42,898,2),url:'Sense_files/stroke_22.png'},{rect:new IWRect(-1,42,2,2),url:'Sense_files/stroke_23.png'}],new IWSize(900,43))});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('Sense_files/SenseMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');NotificationCenter.addObserver(null,relayoutMediaGrid_id5,'RangeChanged','id5')
adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');adjustLineHeightIfTooBig('id7');adjustFontSizeIfTooBig('id7');adjustLineHeightIfTooBig('id8');adjustFontSizeIfTooBig('id8');adjustLineHeightIfTooBig('id9');adjustFontSizeIfTooBig('id9');fixAllIEPNGs('Media/transparent.gif');Widget.onload();fixupAllIEPNGBGs();applyEffects()
initializeMediaStream_id5()}
function onPageUnload()
{Widget.onunload();}
