// Created by iWeb 3.0.1 local-build-20100509

function createMediaStream_id3()
{return IWCreateMediaCollection("http://www.imperiacalcio.it/imperiacalcio/photogallery/photogallery_files/rss.xml",true,255,["Nessuna foto ancora","%d foto","%d foto"],["","%d clip","%d clip"]);}
function initializeMediaStream_id3()
{createMediaStream_id3().load('http://www.imperiacalcio.it/imperiacalcio/photogallery',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget8'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id3',{pageIndex:0}));});}
function layoutMediaGrid_id3(range)
{createMediaStream_id3().load('http://www.imperiacalcio.it/imperiacalcio/photogallery',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id3',new IWPhotoGridLayout(3,new IWSize(199,149),new IWSize(199,34),new IWSize(237,198),27,27,0,new IWSize(0,0)),new IWStrokeParts([{rect:new IWRect(-3,-1,2,151),url:'photogallery_files/stroke.png'},{rect:new IWRect(-3,-3,2,2),url:'photogallery_files/stroke_1.png'},{rect:new IWRect(-1,-3,201,2),url:'photogallery_files/stroke_2.png'},{rect:new IWRect(200,-3,2,2),url:'photogallery_files/stroke_3.png'},{rect:new IWRect(200,-1,2,151),url:'photogallery_files/stroke_4.png'},{rect:new IWRect(200,150,2,2),url:'photogallery_files/stroke_5.png'},{rect:new IWRect(-1,150,201,2),url:'photogallery_files/stroke_6.png'},{rect:new IWRect(-3,150,2,2),url:'photogallery_files/stroke_7.png'}],new IWSize(199,149)),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget8',null,'widget9',{showTitle:true,showMetric:true})});}
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_0:new IWShadow({blurRadius:7,offset:new IWPoint(2.8284,2.8284),color:'#000000',opacity:0.970000}),shadow_1:new IWShadow({blurRadius:7,offset:new IWPoint(2.8284,2.8284),color:'#000000',opacity:0.970000}),stroke_0:new IWStrokeParts([{rect:new IWRect(-2,2,4,21),url:'photogallery_files/stroke_8.png'},{rect:new IWRect(-2,-2,4,4),url:'photogallery_files/stroke_9.png'},{rect:new IWRect(2,-2,96,4),url:'photogallery_files/stroke_10.png'},{rect:new IWRect(98,-2,4,4),url:'photogallery_files/stroke_11.png'},{rect:new IWRect(98,2,4,21),url:'photogallery_files/stroke_12.png'},{rect:new IWRect(98,23,4,4),url:'photogallery_files/stroke_13.png'},{rect:new IWRect(2,23,96,4),url:'photogallery_files/stroke_14.png'},{rect:new IWRect(-2,23,4,4),url:'photogallery_files/stroke_15.png'}],new IWSize(100,25)),stroke_1:new IWStrokeParts([{rect:new IWRect(-2,2,4,21),url:'photogallery_files/stroke_16.png'},{rect:new IWRect(-2,-2,4,4),url:'photogallery_files/stroke_17.png'},{rect:new IWRect(2,-2,96,4),url:'photogallery_files/stroke_18.png'},{rect:new IWRect(98,-2,4,4),url:'photogallery_files/stroke_19.png'},{rect:new IWRect(98,2,4,21),url:'photogallery_files/stroke_20.png'},{rect:new IWRect(98,23,4,4),url:'photogallery_files/stroke_21.png'},{rect:new IWRect(2,23,96,4),url:'photogallery_files/stroke_22.png'},{rect:new IWRect(-2,23,4,4),url:'photogallery_files/stroke_23.png'}],new IWSize(100,25))});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('photogallery_files/photogalleryMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');NotificationCenter.addObserver(null,relayoutMediaGrid_id3,'RangeChanged','id3')
adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');fixAllIEPNGs('../Media/transparent.gif');fixupAllIEPNGBGs();Widget.onload();applyEffects()
initializeMediaStream_id3()}
function onPageUnload()
{Widget.onunload();}
