// Created by iWeb 3.0.1 local-build-20100802

function createMediaStream_id6()
{return IWCreateMediaCollection("http://www.theaviators.tv/The_Aviators/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.theaviators.tv/The_Aviators/Gallery',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget10'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id6',{pageIndex:0}));});}
function layoutMediaGrid_id6(range)
{createMediaStream_id6().load('http://www.theaviators.tv/The_Aviators/Gallery',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id6',new IWPhotoGridLayout(2,new IWSize(308,231),new IWSize(308,34),new IWSize(385,280),27,27,0,new IWSize(29,29)),new IWPhotoFrame([IWCreateImage('Gallery_files/ul.png'),IWCreateImage('Gallery_files/top.png'),IWCreateImage('Gallery_files/ur.png'),IWCreateImage('Gallery_files/right.png'),IWCreateImage('Gallery_files/lr.png'),IWCreateImage('Gallery_files/bottom.png'),IWCreateImage('Gallery_files/ll.png'),IWCreateImage('Gallery_files/left.png')],null,0,0.500000,130.000000,10.000000,118.000000,45.000000,147.000000,30.000000,157.000000,83.000000,251.000000,120.000000,260.000000,120.000000,null,null,null,0.300000),imageStream,range,(null),null,1.000000,null,'../Media/slideshow.html','widget10',null,'widget11',{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(-1,1,2,392),url:'Gallery_files/stroke.png'},{rect:new IWRect(-1,-1,2,2),url:'Gallery_files/stroke_1.png'},{rect:new IWRect(1,-1,893,2),url:'Gallery_files/stroke_2.png'},{rect:new IWRect(894,-1,2,2),url:'Gallery_files/stroke_3.png'},{rect:new IWRect(894,1,2,392),url:'Gallery_files/stroke_4.png'},{rect:new IWRect(894,393,2,2),url:'Gallery_files/stroke_5.png'},{rect:new IWRect(1,393,893,2),url:'Gallery_files/stroke_6.png'},{rect:new IWRect(-1,393,2,2),url:'Gallery_files/stroke_7.png'}],new IWSize(895,394)),stroke_1:new IWEmptyStroke(),reflection_0:new IWReflection({opacity:0.25,offset:2.00})});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');detectBrowser();NotificationCenter.addObserver(null,relayoutMediaGrid_id6,'RangeChanged','id6')
adjustLineHeightIfTooBig('id7');adjustFontSizeIfTooBig('id7');adjustLineHeightIfTooBig('id8');adjustFontSizeIfTooBig('id8');adjustLineHeightIfTooBig('id9');adjustFontSizeIfTooBig('id9');adjustLineHeightIfTooBig('id10');adjustFontSizeIfTooBig('id10');adjustLineHeightIfTooBig('id11');adjustFontSizeIfTooBig('id11');adjustLineHeightIfTooBig('id12');adjustFontSizeIfTooBig('id12');adjustLineHeightIfTooBig('id13');adjustFontSizeIfTooBig('id13');fixAllIEPNGs('../Media/transparent.gif');fixupAllIEPNGBGs();Widget.onload();applyEffects()
initializeMediaStream_id6()}
function onPageUnload()
{Widget.onunload();}
