// Created by iWeb 2.0.4 local-build-20110906

function createMediaStream_id2()
{return IWCreateMediaCollection("http://www.wearediscovered.co.uk/Discovered/Gallery/Gallery_files/rss.xml",true,255,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id2()
{createMediaStream_id2().load('http://www.wearediscovered.co.uk/Discovered/Gallery',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget6'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id2',{pageIndex:0}));});}
function layoutMediaGrid_id2(range)
{createMediaStream_id2().load('http://www.wearediscovered.co.uk/Discovered/Gallery',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id2',new IWPhotoGridLayout(2,new IWSize(280,210),new IWSize(280,31),new IWSize(344,256),27,27,0,new IWSize(14,19)),new IWPhotoFrame([IWCreateImage('Gallery_files/FormalShadow_01.png'),IWCreateImage('Gallery_files/FormalShadow_02.png'),IWCreateImage('Gallery_files/FormalShadow_03.png'),IWCreateImage('Gallery_files/FormalShadow_06.png'),IWCreateImage('Gallery_files/FormalShadow_12.png'),IWCreateImage('Gallery_files/FormalShadow_11.png'),IWCreateImage('Gallery_files/FormalShadow_10.png'),IWCreateImage('Gallery_files/FormalShadow_04.png')],null,2,0.437500,1.000000,5.000000,1.000000,4.000000,17.000000,17.000000,17.000000,36.000000,4.000000,837.000000,4.000000,837.000000,null,null,null,0.100000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget6',null,'widget7',{showTitle:true,showMetric:true})});}
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({stroke_0:new IWStrokeParts([{rect:new IWRect(-1,1,2,30),url:'Gallery_files/stroke.png'},{rect:new IWRect(-1,-1,2,2),url:'Gallery_files/stroke_1.png'},{rect:new IWRect(1,-1,698,2),url:'Gallery_files/stroke_2.png'},{rect:new IWRect(699,-1,2,2),url:'Gallery_files/stroke_3.png'},{rect:new IWRect(699,1,2,30),url:'Gallery_files/stroke_4.png'},{rect:new IWRect(699,31,2,2),url:'Gallery_files/stroke_5.png'},{rect:new IWRect(1,31,698,2),url:'Gallery_files/stroke_6.png'},{rect:new IWRect(-1,31,2,2),url:'Gallery_files/stroke_7.png'}],new IWSize(700,32))});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('Gallery_files/GalleryMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');NotificationCenter.addObserver(null,relayoutMediaGrid_id2,'RangeChanged','id2')
adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');detectBrowser();adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');adjustLineHeightIfTooBig('id7');adjustFontSizeIfTooBig('id7');Widget.onload();fixAllIEPNGs('../Media/transparent.gif');fixupAllIEPNGBGs();applyEffects()
initializeMediaStream_id2()}
function onPageUnload()
{Widget.onunload();}

