// Created by iWeb 2.0.4 local-build-20100220

function createMediaStream_id2()
{return IWCreateMediaCollection("http://www.discoverydance.com/www.wheelchairdancesportusa.org/PHOTO_GALLERY/PHOTO_GALLERY_files/rss.xml",true,0,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id2()
{createMediaStream_id2().load('http://www.discoverydance.com/www.wheelchairdancesportusa.org/PHOTO_GALLERY',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget12'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id2',{pageIndex:0}));});}
function layoutMediaGrid_id2(range)
{createMediaStream_id2().load('http://www.discoverydance.com/www.wheelchairdancesportusa.org/PHOTO_GALLERY',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id2',new IWPhotoGridLayout(3,new IWSize(166,124),new IWSize(166,34),new IWSize(249,173),27,27,0,new IWSize(81,61)),new IWPhotoFrame([IWCreateImage('PHOTO_GALLERY_files/organic_ul.png'),IWCreateImage('PHOTO_GALLERY_files/organic_top.png'),IWCreateImage('PHOTO_GALLERY_files/organic_ur.png'),IWCreateImage('PHOTO_GALLERY_files/organic_right.png'),IWCreateImage('PHOTO_GALLERY_files/organic_lr.png'),IWCreateImage('PHOTO_GALLERY_files/organic_bottom.png'),IWCreateImage('PHOTO_GALLERY_files/organic_ll.png'),IWCreateImage('PHOTO_GALLERY_files/organic_left.png')],null,0,0.666667,0.000000,18.000000,0.000000,16.000000,76.000000,57.000000,45.000000,68.000000,30.000000,80.000000,144.000000,80.000000,null,null,null,0.500000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget12',null,'widget13',{showTitle:true,showMetric:false})});}
function relayoutMediaGrid_id2(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id2(range);}
function onStubPage()
{var args=getArgs();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id2(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({reflection_0:new IWReflection({opacity:0.50,offset:1.00})});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('PHOTO_GALLERY_files/PHOTO_GALLERYMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');NotificationCenter.addObserver(null,relayoutMediaGrid_id2,'RangeChanged','id2')
adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');fixAllIEPNGs('../Media/transparent.gif');Widget.onload();fixupAllIEPNGBGs();IMpreload('PHOTO_GALLERY_files','shapeimage_4','0');IMpreload('PHOTO_GALLERY_files','shapeimage_6','0');IMpreload('PHOTO_GALLERY_files','shapeimage_7','0');IMpreload('PHOTO_GALLERY_files','shapeimage_8','0');IMpreload('PHOTO_GALLERY_files','shapeimage_9','0');IMpreload('PHOTO_GALLERY_files','shapeimage_10','0');IMpreload('PHOTO_GALLERY_files','shapeimage_11','0');IMpreload('PHOTO_GALLERY_files','shapeimage_12','0');IMpreload('PHOTO_GALLERY_files','shapeimage_13','0');IMpreload('PHOTO_GALLERY_files','shapeimage_14','0');IMpreload('PHOTO_GALLERY_files','shapeimage_15','0');IMpreload('PHOTO_GALLERY_files','shapeimage_16','0');IMpreload('PHOTO_GALLERY_files','shapeimage_17','0');IMpreload('PHOTO_GALLERY_files','shapeimage_18','0');IMpreload('PHOTO_GALLERY_files','shapeimage_19','0');IMpreload('PHOTO_GALLERY_files','shapeimage_20','0');applyEffects()
initializeMediaStream_id2()}
function onPageUnload()
{Widget.onunload();}
