// Created by iWeb 3.0.4 local-build-20120202

function createMediaStream_id4()
{return IWCreateMediaCollection("http://www.diastolebb.com/Diastole_Lakeview_B%26B_of_Cooperstown,_NY/Area_Attractions/Area_Attractions_files/rss.xml",true,255,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id4()
{createMediaStream_id4().load('http://www.diastolebb.com/Diastole_Lakeview_B%26B_of_Cooperstown,_NY/Area_Attractions',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget3'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id4',{pageIndex:0}));});}
function layoutMediaGrid_id4(range)
{createMediaStream_id4().load('http://www.diastolebb.com/Diastole_Lakeview_B%26B_of_Cooperstown,_NY/Area_Attractions',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id4',new IWPhotoGridLayout(2,new IWSize(244,183),new IWSize(244,32),new IWSize(244,230),27,27,0,new IWSize(22,21)),new IWPhotoFrame([IWCreateImage('Area_Attractions_files/Rosewood_01.png'),IWCreateImage('Area_Attractions_files/Rosewood_02.png'),IWCreateImage('Area_Attractions_files/Rosewood_03.png'),IWCreateImage('Area_Attractions_files/Rosewood_06.png'),IWCreateImage('Area_Attractions_files/Rosewood_09.png'),IWCreateImage('Area_Attractions_files/Rosewood_08.png'),IWCreateImage('Area_Attractions_files/Rosewood_07.png'),IWCreateImage('Area_Attractions_files/Rosewood_04.png')],null,2,0.400000,0.000000,0.000000,0.000000,0.000000,26.000000,24.000000,26.000000,27.000000,79.000000,105.000000,79.000000,105.000000,null,null,null,0.400000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget3',null,'widget4',{showTitle:true,showMetric:true})});}
function relayoutMediaGrid_id4(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id4(range);}
function onStubPage()
{var args=window.location.href.toQueryParams();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id4(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_0:new IWStrokeParts([{rect:new IWRect(-1,1,2,87),url:'Area_Attractions_files/stroke.png'},{rect:new IWRect(-1,-1,2,2),url:'Area_Attractions_files/stroke_1.png'},{rect:new IWRect(1,-1,698,2),url:'Area_Attractions_files/stroke_2.png'},{rect:new IWRect(699,-1,3,2),url:'Area_Attractions_files/stroke_3.png'},{rect:new IWRect(699,1,3,87),url:'Area_Attractions_files/stroke_4.png'},{rect:new IWRect(699,88,3,2),url:'Area_Attractions_files/stroke_5.png'},{rect:new IWRect(1,88,698,2),url:'Area_Attractions_files/stroke_6.png'},{rect:new IWRect(-1,88,2,2),url:'Area_Attractions_files/stroke_7.png'}],new IWSize(700,89)),shadow_0:new IWShadow({blurRadius:4,offset:new IWPoint(1.4142,1.4142),color:'#000000',opacity:0.500000}),stroke_1:new IWStrokeParts([{rect:new IWRect(-1,1,2,154),url:'Area_Attractions_files/stroke_8.png'},{rect:new IWRect(-1,-1,2,2),url:'Area_Attractions_files/stroke_9.png'},{rect:new IWRect(1,-1,689,2),url:'Area_Attractions_files/stroke_10.png'},{rect:new IWRect(690,-1,2,2),url:'Area_Attractions_files/stroke_11.png'},{rect:new IWRect(690,1,2,154),url:'Area_Attractions_files/stroke_12.png'},{rect:new IWRect(690,155,2,2),url:'Area_Attractions_files/stroke_13.png'},{rect:new IWRect(1,155,689,2),url:'Area_Attractions_files/stroke_14.png'},{rect:new IWRect(-1,155,2,2),url:'Area_Attractions_files/stroke_15.png'}],new IWSize(691,156)),stroke_2:new IWPhotoFrame([IWCreateImage('Area_Attractions_files/Formal_inset_01.png'),IWCreateImage('Area_Attractions_files/Formal_inset_02.png'),IWCreateImage('Area_Attractions_files/Formal_inset_03.png'),IWCreateImage('Area_Attractions_files/Formal_inset_06.png'),IWCreateImage('Area_Attractions_files/Formal_inset_09.png'),IWCreateImage('Area_Attractions_files/Formal_inset_08.png'),IWCreateImage('Area_Attractions_files/Formal_inset_07.png'),IWCreateImage('Area_Attractions_files/Formal_inset_04.png')],null,0,0.800000,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),stroke_3:new IWStrokeParts([{rect:new IWRect(-1,1,2,230),url:'Area_Attractions_files/stroke_16.png'},{rect:new IWRect(-1,-1,2,2),url:'Area_Attractions_files/stroke_17.png'},{rect:new IWRect(1,-1,316,2),url:'Area_Attractions_files/stroke_18.png'},{rect:new IWRect(317,-1,2,2),url:'Area_Attractions_files/stroke_19.png'},{rect:new IWRect(317,1,2,230),url:'Area_Attractions_files/stroke_20.png'},{rect:new IWRect(317,231,2,2),url:'Area_Attractions_files/stroke_21.png'},{rect:new IWRect(1,231,316,2),url:'Area_Attractions_files/stroke_22.png'},{rect:new IWRect(-1,231,2,2),url:'Area_Attractions_files/stroke_23.png'}],new IWSize(318,232))});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('Area_Attractions_files/Area_AttractionsMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');NotificationCenter.addObserver(null,relayoutMediaGrid_id4,'RangeChanged','id4')
detectBrowser();adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');adjustLineHeightIfTooBig('id7');adjustFontSizeIfTooBig('id7');fixAllIEPNGs('../Media/transparent.gif');Widget.onload();fixupAllIEPNGBGs();fixupIECSS3Opacity('id8');applyEffects()
initializeMediaStream_id4()}
function onPageUnload()
{Widget.onunload();}

