// Created by iWeb 3.0.4 local-build-20120114

function createMediaStream_id5()
{return IWCreateMediaCollection("http://www.carnevale.cz/carnevale_gallerie/foto/foto_files/rss.xml",true,255,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id5()
{createMediaStream_id5().load('http://www.carnevale.cz/carnevale_gallerie/foto',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget13'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id5',{pageIndex:0}));});}
function layoutMediaGrid_id5(range)
{createMediaStream_id5().load('http://www.carnevale.cz/carnevale_gallerie/foto',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id5',new IWPhotoGridLayout(3,new IWSize(253,190),new IWSize(253,32),new IWSize(253,236),27,27,0,new IWSize(14,20)),new IWPhotoFrame([IWCreateImage('foto_files/FormalShadow_01.png'),IWCreateImage('foto_files/FormalShadow_02.png'),IWCreateImage('foto_files/FormalShadow_03.png'),IWCreateImage('foto_files/FormalShadow_06.png'),IWCreateImage('foto_files/FormalShadow_12.png'),IWCreateImage('foto_files/FormalShadow_11.png'),IWCreateImage('foto_files/FormalShadow_10.png'),IWCreateImage('foto_files/FormalShadow_04.png')],null,2,0.466667,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','widget13',null,'widget14',{showTitle:false,showMetric:false})});}
function relayoutMediaGrid_id5(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id5(range);}
function onStubPage()
{var args=window.location.href.toQueryParams();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id5(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_4:new IWStrokeParts([{rect:new IWRect(-1,1,2,113),url:'foto_files/stroke_8.png'},{rect:new IWRect(-1,-1,2,2),url:'foto_files/stroke_9.png'},{rect:new IWRect(1,-1,238,2),url:'foto_files/stroke_10.png'},{rect:new IWRect(239,-1,2,2),url:'foto_files/stroke_11.png'},{rect:new IWRect(239,1,2,113),url:'foto_files/stroke_12.png'},{rect:new IWRect(239,114,2,2),url:'foto_files/stroke_13.png'},{rect:new IWRect(1,114,238,2),url:'foto_files/stroke_14.png'},{rect:new IWRect(-1,114,2,2),url:'foto_files/stroke_15.png'}],new IWSize(240,115)),stroke_2:new IWEmptyStroke(),stroke_5:new IWStrokeParts([{rect:new IWRect(-1,1,2,113),url:'foto_files/stroke_16.png'},{rect:new IWRect(-1,-1,2,2),url:'foto_files/stroke_17.png'},{rect:new IWRect(1,-1,238,2),url:'foto_files/stroke_18.png'},{rect:new IWRect(239,-1,2,2),url:'foto_files/stroke_19.png'},{rect:new IWRect(239,1,2,113),url:'foto_files/stroke_20.png'},{rect:new IWRect(239,114,2,2),url:'foto_files/stroke_21.png'},{rect:new IWRect(1,114,238,2),url:'foto_files/stroke_22.png'},{rect:new IWRect(-1,114,2,2),url:'foto_files/stroke_23.png'}],new IWSize(240,115)),stroke_3:new IWStrokeParts([{rect:new IWRect(-1,1,2,83),url:'foto_files/stroke.png'},{rect:new IWRect(-1,-1,2,2),url:'foto_files/stroke_1.png'},{rect:new IWRect(1,-1,186,2),url:'foto_files/stroke_2.png'},{rect:new IWRect(187,-1,2,2),url:'foto_files/stroke_3.png'},{rect:new IWRect(187,1,2,83),url:'foto_files/stroke_4.png'},{rect:new IWRect(187,84,2,2),url:'foto_files/stroke_5.png'},{rect:new IWRect(1,84,186,2),url:'foto_files/stroke_6.png'},{rect:new IWRect(-1,84,2,2),url:'foto_files/stroke_7.png'}],new IWSize(188,85)),stroke_6:new IWStrokeParts([{rect:new IWRect(-1,1,2,113),url:'foto_files/stroke_24.png'},{rect:new IWRect(-1,-1,2,2),url:'foto_files/stroke_25.png'},{rect:new IWRect(1,-1,238,2),url:'foto_files/stroke_26.png'},{rect:new IWRect(239,-1,2,2),url:'foto_files/stroke_27.png'},{rect:new IWRect(239,1,2,113),url:'foto_files/stroke_28.png'},{rect:new IWRect(239,114,2,2),url:'foto_files/stroke_29.png'},{rect:new IWRect(1,114,238,2),url:'foto_files/stroke_30.png'},{rect:new IWRect(-1,114,2,2),url:'foto_files/stroke_31.png'}],new IWSize(240,115)),stroke_1:new IWEmptyStroke(),stroke_7:new IWStrokeParts([{rect:new IWRect(-1,1,2,113),url:'foto_files/stroke_32.png'},{rect:new IWRect(-1,-1,2,2),url:'foto_files/stroke_33.png'},{rect:new IWRect(1,-1,238,2),url:'foto_files/stroke_34.png'},{rect:new IWRect(239,-1,2,2),url:'foto_files/stroke_35.png'},{rect:new IWRect(239,1,2,113),url:'foto_files/stroke_36.png'},{rect:new IWRect(239,114,2,2),url:'foto_files/stroke_37.png'},{rect:new IWRect(1,114,238,2),url:'foto_files/stroke_38.png'},{rect:new IWRect(-1,114,2,2),url:'foto_files/stroke_39.png'}],new IWSize(240,115)),stroke_0: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')
loadMozillaCSS('foto_files/fotoMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');NotificationCenter.addObserver(null,relayoutMediaGrid_id5,'RangeChanged','id5')
adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');adjustLineHeightIfTooBig('id7');adjustFontSizeIfTooBig('id7');adjustLineHeightIfTooBig('id8');adjustFontSizeIfTooBig('id8');adjustLineHeightIfTooBig('id9');adjustFontSizeIfTooBig('id9');adjustLineHeightIfTooBig('id10');adjustFontSizeIfTooBig('id10');fixAllIEPNGs('../Media/transparent.gif');Widget.onload();fixupAllIEPNGBGs();applyEffects()
initializeMediaStream_id5()}
function onPageUnload()
{Widget.onunload();}

