// Created by iWeb 3.0.1 local-build-20100430

function createMediaStream_id6()
{return IWCreateMediaCollection("http://www.mytronics.co.nz/Mytronics/Gallery/Gallery_files/rss.xml",true,255,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id6()
{createMediaStream_id6().load('http://www.mytronics.co.nz/Mytronics/Gallery',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget3'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id6',{pageIndex:0}));});}
function layoutMediaGrid_id6(range)
{createMediaStream_id6().load('http://www.mytronics.co.nz/Mytronics/Gallery',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id6',new IWPhotoGridLayout(3,new IWSize(217,163),new IWSize(217,31),new IWSize(246,209),27,27,0,new IWSize(64,54)),new IWPhotoFrame([IWCreateImage('Gallery_files/spiralboook_ul.png'),IWCreateImage('Gallery_files/spiralboook_top.png'),IWCreateImage('Gallery_files/spiralboook_ur.png'),IWCreateImage('Gallery_files/spiralboook_right.png'),IWCreateImage('Gallery_files/spiralboook_lr.png'),IWCreateImage('Gallery_files/spiralboook_bottom.png'),IWCreateImage('Gallery_files/spiralboook_ll.png'),IWCreateImage('Gallery_files/spiralboook_left.png')],null,1,0.571429,0.000000,10.000000,0.000000,19.000000,62.000000,49.000000,48.000000,72.000000,20.000000,1.000000,20.000000,1.000000,null,null,null,0.100000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget3',null,'widget4',{showTitle:true,showMetric:true})});}
function relayoutMediaGrid_id6(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id6(range);}
function onStubPage()
{var args=window.location.href.toQueryParams();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id6(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_0:new IWStrokeParts([{rect:new IWRect(-5,5,10,156),url:'Gallery_files/stroke.png'},{rect:new IWRect(-5,-5,10,10),url:'Gallery_files/stroke_1.png'},{rect:new IWRect(5,-5,226,10),url:'Gallery_files/stroke_2.png'},{rect:new IWRect(231,-5,11,10),url:'Gallery_files/stroke_3.png'},{rect:new IWRect(231,5,11,156),url:'Gallery_files/stroke_4.png'},{rect:new IWRect(231,161,11,10),url:'Gallery_files/stroke_5.png'},{rect:new IWRect(5,161,226,10),url:'Gallery_files/stroke_6.png'},{rect:new IWRect(-5,161,10,10),url:'Gallery_files/stroke_7.png'}],new IWSize(236,166))});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');adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');NotificationCenter.addObserver(null,relayoutMediaGrid_id6,'RangeChanged','id6')
adjustLineHeightIfTooBig('id7');adjustFontSizeIfTooBig('id7');fixupAllIEPNGBGs();Widget.onload();fixAllIEPNGs('../Media/transparent.gif');fixupIECSS3Opacity('id8');applyEffects()
initializeMediaStream_id6()}
function onPageUnload()
{Widget.onunload();}
