// Created by iWeb 3.0.4 local-build-20111106

function createMediaStream_id1()
{return IWCreatePhotocast("http://www.benpayne.net/Ben_Payne_Lighting_Design/Portfolio_files/rss.xml",false);}
function initializeMediaStream_id1()
{createMediaStream_id1().load('http://www.benpayne.net/Ben_Payne_Lighting_Design',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.benpayne.net/Ben_Payne_Lighting_Design',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id1',new IWPhotoGridLayout(5,new IWSize(126,126),new IWSize(126,37),new IWSize(131,178),27,27,0,new IWSize(2,2)),new IWEmptyStroke(),imageStream,range,new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000}),null,1.000000,{backgroundColor:'rgb(0, 0, 0)',reflectionHeight:0,reflectionOffset:2,captionHeight:100,fullScreen:1,transitionIndex:8},'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=window.location.href.toQueryParams();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id1(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({shadow_3:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000}),shadow_2:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000}),shadow_1:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000}),stroke_0:new IWStrokeParts([{rect:new IWRect(-1,1,2,219),url:'Portfolio_files/stroke.png'},{rect:new IWRect(-1,-1,2,2),url:'Portfolio_files/stroke_1.png'},{rect:new IWRect(1,-1,388,2),url:'Portfolio_files/stroke_2.png'},{rect:new IWRect(389,-1,2,2),url:'Portfolio_files/stroke_3.png'},{rect:new IWRect(389,1,2,219),url:'Portfolio_files/stroke_4.png'},{rect:new IWRect(389,220,2,2),url:'Portfolio_files/stroke_5.png'},{rect:new IWRect(1,220,388,2),url:'Portfolio_files/stroke_6.png'},{rect:new IWRect(-1,220,2,2),url:'Portfolio_files/stroke_7.png'}],new IWSize(390,221)),shadow_4: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:0.750000}),stroke_3:new IWStrokeParts([{rect:new IWRect(-1,1,2,108),url:'Portfolio_files/stroke_24.png'},{rect:new IWRect(-1,-1,2,2),url:'Portfolio_files/stroke_25.png'},{rect:new IWRect(1,-1,120,2),url:'Portfolio_files/stroke_26.png'},{rect:new IWRect(121,-1,2,2),url:'Portfolio_files/stroke_27.png'},{rect:new IWRect(121,1,2,108),url:'Portfolio_files/stroke_28.png'},{rect:new IWRect(121,109,2,2),url:'Portfolio_files/stroke_29.png'},{rect:new IWRect(1,109,120,2),url:'Portfolio_files/stroke_30.png'},{rect:new IWRect(-1,109,2,2),url:'Portfolio_files/stroke_31.png'}],new IWSize(122,110)),stroke_2:new IWStrokeParts([{rect:new IWRect(-1,1,2,108),url:'Portfolio_files/stroke_16.png'},{rect:new IWRect(-1,-1,2,2),url:'Portfolio_files/stroke_17.png'},{rect:new IWRect(1,-1,120,2),url:'Portfolio_files/stroke_18.png'},{rect:new IWRect(121,-1,2,2),url:'Portfolio_files/stroke_19.png'},{rect:new IWRect(121,1,2,108),url:'Portfolio_files/stroke_20.png'},{rect:new IWRect(121,109,2,2),url:'Portfolio_files/stroke_21.png'},{rect:new IWRect(1,109,120,2),url:'Portfolio_files/stroke_22.png'},{rect:new IWRect(-1,109,2,2),url:'Portfolio_files/stroke_23.png'}],new IWSize(122,110)),stroke_1:new IWStrokeParts([{rect:new IWRect(-1,1,2,109),url:'Portfolio_files/stroke_8.png'},{rect:new IWRect(-1,-1,2,2),url:'Portfolio_files/stroke_9.png'},{rect:new IWRect(1,-1,242,2),url:'Portfolio_files/stroke_10.png'},{rect:new IWRect(243,-1,2,2),url:'Portfolio_files/stroke_11.png'},{rect:new IWRect(243,1,2,109),url:'Portfolio_files/stroke_12.png'},{rect:new IWRect(243,110,2,2),url:'Portfolio_files/stroke_13.png'},{rect:new IWRect(1,110,242,2),url:'Portfolio_files/stroke_14.png'},{rect:new IWRect(-1,110,2,2),url:'Portfolio_files/stroke_15.png'}],new IWSize(244,111))});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('Portfolio_files/PortfolioMoz.css')
NotificationCenter.addObserver(null,relayoutMediaGrid_id1,'RangeChanged','id1')
adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');Widget.onload();fixupAllIEPNGBGs();fixAllIEPNGs('Media/transparent.gif');applyEffects()
initializeMediaStream_id1()}
function onPageUnload()
{Widget.onunload();}

