// Created by iWeb 3.0.4 local-build-20111117

function createMediaStream_id4()
{return IWCreateMediaCollection("http://www.bagnetti.com/bagnetti.com/Gallery/Gallery_files/rss.xml",true,0,["Nessuna foto ancora","%d foto","%d foto"],["","%d clip","%d clip"]);}
function initializeMediaStream_id4()
{createMediaStream_id4().load('http://www.bagnetti.com/bagnetti.com/Gallery',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://www.bagnetti.com/bagnetti.com/Gallery',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id4',new IWPhotoGridLayout(3,new IWSize(236,177),new IWSize(236,33),new IWSize(250,225),27,27,0,new IWSize(14,14)),new IWPhotoFrame([IWCreateImage('Gallery_files/Crayon_BK_v4%20%2801%29.png'),IWCreateImage('Gallery_files/Crayon_BK_v4%20%2802%29.png'),IWCreateImage('Gallery_files/Crayon_BK_v4%20%2803%29.png'),IWCreateImage('Gallery_files/Crayon_BK_v4%20%2805%29.png'),IWCreateImage('Gallery_files/Crayon_BK_v4%20%2808%29.png'),IWCreateImage('Gallery_files/Crayon_BK_v4%20%2807%29.png'),IWCreateImage('Gallery_files/Crayon_BK_v4%20%2806%29.png'),IWCreateImage('Gallery_files/Crayon_BK_v4%20%2804%29.png')],null,0,0.333333,19.000000,19.000000,19.000000,19.000000,41.000000,41.000000,41.000000,41.000000,2.000000,1.000000,2.000000,1.000000,null,null,null,0.100000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget9',null,'widget10',{showTitle:true,showMetric:false})});}
function relayoutMediaGrid_id4(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id4(range);}
function onStubPage()
{var args=window.location.href.toQueryParams();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id4(),args.id);}
if(window.stubPage)
{onStubPage();}
function writeMovie1()
{detectBrowser();if(windowsInternetExplorer)
{document.write('<object id="id28" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="400" height="336" style="height: 320px; left: 274px; position: absolute; top: 98px; width: 400px; z-index: 1; "><param name="src" value="../Media/Promo%20Bagnetti%20vero%20II%20rid.mov" /><param name="controller" value="false" /><param name="autoplay" value="true" /><param name="scale" value="tofit" /><param name="volume" value="100" /><param name="loop" value="true" /></object>');}
else if(isiPhone)
{document.write('<object id="id28" type="video/quicktime" width="400" height="336" style="height: 320px; left: 274px; position: absolute; top: 98px; width: 400px; z-index: 1; "><param name="src" value="Gallery_files/Promo%20Bagnetti%20vero%20II%20rid-4.jpg"/><param name="target" value="myself"/><param name="href" value="../../Media/Promo%20Bagnetti%20vero%20II%20rid.mov"/><param name="controller" value="false"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id28" type="video/quicktime" width="400" height="336" data="../Media/Promo%20Bagnetti%20vero%20II%20rid.mov" style="height: 320px; left: 274px; position: absolute; top: 98px; width: 400px; z-index: 1; "><param name="src" value="../Media/Promo%20Bagnetti%20vero%20II%20rid.mov"/><param name="controller" value="false"/><param name="autoplay" value="true"/><param name="scale" value="tofit"/><param name="volume" value="100"/><param name="loop" value="true"/></object>');}}
setTransparentGifURL('../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_1:new IWStrokeParts([{rect:new IWRect(-1,-1,0,0),url:null},{rect:new IWRect(-1,-1,2,2),url:'Gallery_files/stroke.png'},{rect:new IWRect(1,-1,1052,2),url:'Gallery_files/stroke_1.png'},{rect:new IWRect(1053,-1,2,2),url:'Gallery_files/stroke_2.png'},{rect:new IWRect(-1,-1,0,0),url:null},{rect:new IWRect(1053,1,2,2),url:'Gallery_files/stroke_3.png'},{rect:new IWRect(1,1,1052,2),url:'Gallery_files/stroke_4.png'},{rect:new IWRect(-1,1,2,2),url:'Gallery_files/stroke_5.png'}],new IWSize(1054,2)),stroke_5:new IWEmptyStroke(),stroke_3:new IWStrokeParts([{rect:new IWRect(-1,-1,0,0),url:null},{rect:new IWRect(-1,-1,2,2),url:'Gallery_files/stroke_12.png'},{rect:new IWRect(1,-1,1052,2),url:'Gallery_files/stroke_13.png'},{rect:new IWRect(1053,-1,2,2),url:'Gallery_files/stroke_14.png'},{rect:new IWRect(-1,-1,0,0),url:null},{rect:new IWRect(1053,1,2,2),url:'Gallery_files/stroke_15.png'},{rect:new IWRect(1,1,1052,2),url:'Gallery_files/stroke_16.png'},{rect:new IWRect(-1,1,2,2),url:'Gallery_files/stroke_17.png'}],new IWSize(1054,2)),stroke_0:new IWEmptyStroke(),stroke_4:new IWStrokeParts([{rect:new IWRect(-1,-1,0,0),url:null},{rect:new IWRect(-1,-1,2,2),url:'Gallery_files/stroke_18.png'},{rect:new IWRect(1,-1,1052,2),url:'Gallery_files/stroke_19.png'},{rect:new IWRect(1053,-1,2,2),url:'Gallery_files/stroke_20.png'},{rect:new IWRect(-1,-1,0,0),url:null},{rect:new IWRect(1053,1,2,2),url:'Gallery_files/stroke_21.png'},{rect:new IWRect(1,1,1052,2),url:'Gallery_files/stroke_22.png'},{rect:new IWRect(-1,1,2,2),url:'Gallery_files/stroke_23.png'}],new IWSize(1054,2)),stroke_2:new IWStrokeParts([{rect:new IWRect(-1,-1,0,0),url:null},{rect:new IWRect(-1,-1,2,2),url:'Gallery_files/stroke_6.png'},{rect:new IWRect(1,-1,1062,2),url:'Gallery_files/stroke_7.png'},{rect:new IWRect(1063,-1,2,2),url:'Gallery_files/stroke_8.png'},{rect:new IWRect(-1,-1,0,0),url:null},{rect:new IWRect(1063,1,2,2),url:'Gallery_files/stroke_9.png'},{rect:new IWRect(1,1,1062,2),url:'Gallery_files/stroke_10.png'},{rect:new IWRect(-1,1,2,2),url:'Gallery_files/stroke_11.png'}],new IWSize(1064,2))});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('Gallery_files/GalleryMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');NotificationCenter.addObserver(null,relayoutMediaGrid_id4,'RangeChanged','id4')
adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');adjustLineHeightIfTooBig('id7');adjustFontSizeIfTooBig('id7');adjustLineHeightIfTooBig('id8');adjustFontSizeIfTooBig('id8');adjustLineHeightIfTooBig('id10');adjustFontSizeIfTooBig('id10');adjustLineHeightIfTooBig('id13');adjustFontSizeIfTooBig('id13');adjustLineHeightIfTooBig('id25');adjustFontSizeIfTooBig('id25');adjustLineHeightIfTooBig('id26');adjustFontSizeIfTooBig('id26');adjustLineHeightIfTooBig('id27');adjustFontSizeIfTooBig('id27');fixAllIEPNGs('../Media/transparent.gif');fixupIECSS3Opacity('id3');Widget.onload();fixupAllIEPNGBGs();fixupIECSS3Opacity('id6');fixupIECSS3Opacity('id9');fixupIECSS3Opacity('id11');fixupIECSS3Opacity('id12');fixupIECSS3Opacity('id14');fixupIECSS3Opacity('id15');fixupIECSS3Opacity('id16');fixupIECSS3Opacity('id17');fixupIECSS3Opacity('id18');fixupIECSS3Opacity('id19');fixupIECSS3Opacity('id20');fixupIECSS3Opacity('id21');fixupIECSS3Opacity('id22');fixupIECSS3Opacity('id23');fixupIECSS3Opacity('id24');IMpreload('Gallery_files','shapeimage_2','0');applyEffects()
initializeMediaStream_id4()}
function onPageUnload()
{Widget.onunload();}

