// Created by iWeb 3.0.3 local-build-20120203

function createMediaStream_id3()
{return IWCreateMediaCollection("http://www.theavensgallery.com/The_Avens_Gallery/Painting/Painting_files/rss.xml",true,255,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id3()
{createMediaStream_id3().load('http://www.theavensgallery.com/The_Avens_Gallery/Painting',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget29'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id3',{pageIndex:0}));});}
function layoutMediaGrid_id3(range)
{createMediaStream_id3().load('http://www.theavensgallery.com/The_Avens_Gallery/Painting',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id3',new IWPhotoGridLayout(3,new IWSize(195,146),new IWSize(195,32),new IWSize(224,193),27,27,0,new IWSize(0,0)),new IWEmptyStroke(),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget29',null,'widget30',{showTitle:true,showMetric:false})});}
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();}
setTransparentGifURL('../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({shadow_4:new IWShadow({blurRadius:10,offset:new IWPoint(0.0698,3.9994),color:'#000000',opacity:0.750000}),reflection_0:new IWReflection({opacity:0.50,offset:1.00}),shadow_3:new IWShadow({blurRadius:10,offset:new IWPoint(0.0698,3.9994),color:'#000000',opacity:0.750000}),stroke_0:new IWStrokeParts([{rect:new IWRect(-4,4,8,1370),url:'Painting_files/stroke.png'},{rect:new IWRect(-4,-4,8,8),url:'Painting_files/stroke_1.png'},{rect:new IWRect(4,-4,667,8),url:'Painting_files/stroke_2.png'},{rect:new IWRect(671,-4,8,8),url:'Painting_files/stroke_3.png'},{rect:new IWRect(671,4,8,1370),url:'Painting_files/stroke_4.png'},{rect:new IWRect(671,1374,8,8),url:'Painting_files/stroke_5.png'},{rect:new IWRect(4,1374,667,8),url:'Painting_files/stroke_6.png'},{rect:new IWRect(-4,1374,8,8),url:'Painting_files/stroke_7.png'}],new IWSize(675,1378)),shadow_2:new IWShadow({blurRadius:10,offset:new IWPoint(0.1047,5.9991),color:'#000000',opacity:1.000000}),shadow_0:new IWShadow({blurRadius:10,offset:new IWPoint(0.1047,5.9991),color:'#000000',opacity:0.750000}),shadow_1:new IWShadow({blurRadius:10,offset:new IWPoint(0.1047,5.9991),color:'#000000',opacity:0.750000})});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('Painting_files/PaintingMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');NotificationCenter.addObserver(null,relayoutMediaGrid_id3,'RangeChanged','id3')
adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');fixAllIEPNGs('../Media/transparent.gif');fixupAllIEPNGBGs();fixupIECSS3Opacity('id2');Widget.onload();fixupIECSS3Opacity('id6');IMpreload('Painting_files','shapeimage_7','0');applyEffects()
initializeMediaStream_id3()}
function onPageUnload()
{Widget.onunload();}

