// Created by iWeb 2.0.4 local-build-20090522

function createMediaStream_id4()
{return IWCreateMediaCollection("http://photo.indymoto.com/IndyPhoto/IndyMoto_Photo_Albums/IndyMoto_Photo_Albums_files/rss.xml",true,255,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id4()
{createMediaStream_id4().load('http://photo.indymoto.com/IndyPhoto/IndyMoto_Photo_Albums',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget9'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id4',{pageIndex:0}));});}
function layoutMediaGrid_id4(range)
{createMediaStream_id4().load('http://photo.indymoto.com/IndyPhoto/IndyMoto_Photo_Albums',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id4',new IWPhotoGridLayout(4,new IWSize(174,130),new IWSize(174,34),new IWSize(217,179),27,27,0,new IWSize(18,17)),new IWPhotoFrame([IWCreateImage('IndyMoto_Photo_Albums_files/ul.png'),IWCreateImage('IndyMoto_Photo_Albums_files/top.png'),IWCreateImage('IndyMoto_Photo_Albums_files/ur.png'),IWCreateImage('IndyMoto_Photo_Albums_files/right.png'),IWCreateImage('IndyMoto_Photo_Albums_files/lr.png'),IWCreateImage('IndyMoto_Photo_Albums_files/bottom.png'),IWCreateImage('IndyMoto_Photo_Albums_files/ll.png'),IWCreateImage('IndyMoto_Photo_Albums_files/left.png')],null,0,0.300000,130.000000,10.000000,118.000000,45.000000,147.000000,30.000000,157.000000,83.000000,251.000000,120.000000,260.000000,120.000000,null,null,null,0.300000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget9',null,'widget10',{showTitle:true,showMetric:true})});}
function relayoutMediaGrid_id4(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id4(range);}
function onStubPage()
{var args=getArgs();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,186),url:'IndyMoto_Photo_Albums_files/stroke.png'},{rect:new IWRect(-1,-1,2,2),url:'IndyMoto_Photo_Albums_files/stroke_1.png'},{rect:new IWRect(1,-1,313,2),url:'IndyMoto_Photo_Albums_files/stroke_2.png'},{rect:new IWRect(314,-1,2,2),url:'IndyMoto_Photo_Albums_files/stroke_3.png'},{rect:new IWRect(314,1,2,186),url:'IndyMoto_Photo_Albums_files/stroke_4.png'},{rect:new IWRect(314,187,2,2),url:'IndyMoto_Photo_Albums_files/stroke_5.png'},{rect:new IWRect(1,187,313,2),url:'IndyMoto_Photo_Albums_files/stroke_6.png'},{rect:new IWRect(-1,187,2,2),url:'IndyMoto_Photo_Albums_files/stroke_7.png'}],new IWSize(315,188)),stroke_1:new IWEmptyStroke()});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('IndyMoto_Photo_Albums_files/IndyMoto_Photo_AlbumsMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');NotificationCenter.addObserver(null,relayoutMediaGrid_id4,'RangeChanged','id4')
fixupAllIEPNGBGs();fixupIECSS3Opacity('id2');fixAllIEPNGs('../Media/transparent.gif');Widget.onload();applyEffects()
initializeMediaStream_id4()}
function onPageUnload()
{Widget.onunload();}
