// Created by iWeb 2.0.4 local-build-20091229
//
//  iWeb - iWebHitCounter.js
//  Copyright (c) 2007 Apple Inc. All rights reserved.
//

function iWebWriteCounter()
{try
{writeCounter();}
catch(e)
{}}
function writeMovie1()
{detectBrowser();if(windowsInternetExplorer)
{document.write('<object id="id10" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="131" height="16"><param name="src" value="../Media/TSM.therethere_stayinstrumental.mov" /><param name="controller" value="true" /><param name="autoplay" value="false" /><param name="scale" value="tofit" /><param name="volume" value="100" /><param name="loop" value="false" /></object>');}
else if(isiPhone)
{document.write('<object id="id10" type="video/quicktime" width="131" height="16"><param name="src" value="../Media/TSM.therethere_stayinstrumental.mov"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id10" type="video/quicktime" width="131" height="16" data="../Media/TSM.therethere_stayinstrumental.mov"><param name="src" value="../Media/TSM.therethere_stayinstrumental.mov"/><param name="controller" value="true"/><param name="autoplay" value="false"/><param name="scale" value="tofit"/><param name="volume" value="100"/><param name="loop" value="false"/></object>');}}
function createMediaStream_id11()
{return IWCreateMediaCollection("http://web.me.com/paulinesphotography/Site/Gallery/Gallery_files/rss.xml",true,255,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id11()
{createMediaStream_id11().load('http://web.me.com/paulinesphotography/Site/Gallery',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget8'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id11',{pageIndex:0}));});}
function layoutMediaGrid_id11(range)
{createMediaStream_id11().load('http://web.me.com/paulinesphotography/Site/Gallery',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id11',new IWPhotoGridLayout(2,new IWSize(316,237),new IWSize(316,32),new IWSize(336,284),27,27,0,new IWSize(89,74)),new IWPhotoFrame([IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Spiral/spiralboook_ul.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Spiral/spiralboook_top.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Spiral/spiralboook_ur.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Spiral/spiralboook_right.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Spiral/spiralboook_lr.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Spiral/spiralboook_bottom.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Spiral/spiralboook_ll.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Spiral/spiralboook_left.png')],null,1,0.800000,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','widget8',null,'widget9',{showTitle:true,showMetric:false})});}
function relayoutMediaGrid_id11(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id11(range);}
function onStubPage()
{var args=getArgs();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id11(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_0:new IWStrokeParts([{rect:new IWRect(-2,2,4,184),url:'Gallery_files/stroke.png'},{rect:new IWRect(-2,-2,4,4),url:'Gallery_files/stroke_1.png'},{rect:new IWRect(2,-2,144,4),url:'Gallery_files/stroke_2.png'},{rect:new IWRect(146,-2,4,4),url:'Gallery_files/stroke_3.png'},{rect:new IWRect(146,2,4,184),url:'Gallery_files/stroke_4.png'},{rect:new IWRect(146,186,4,5),url:'Gallery_files/stroke_5.png'},{rect:new IWRect(2,186,144,5),url:'Gallery_files/stroke_6.png'},{rect:new IWRect(-2,186,4,5),url:'Gallery_files/stroke_7.png'}],new IWSize(148,188))});registry.applyEffects();}
function hostedOnDM()
{return true;}
function onPageLoad()
{IWRegisterNamedImage('comment overlay','../Media/Photo-Overlay-Comment.png')
IWRegisterNamedImage('movie overlay','../Media/Photo-Overlay-Movie.png')
IWRegisterNamedImage('contribution overlay','../Media/Photo-Overlay-Contribution.png')
loadMozillaCSS('Gallery_files/GalleryMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id9');adjustFontSizeIfTooBig('id9');NotificationCenter.addObserver(null,relayoutMediaGrid_id11,'RangeChanged','id11')
Widget.onload();fixupIECSS3Opacity('id3');fixupIECSS3Opacity('id4');fixupIECSS3Opacity('id5');fixupIECSS3Opacity('id6');fixupIECSS3Opacity('id7');fixupIECSS3Opacity('id8');fixupAllIEPNGBGs();fixAllIEPNGs('../Media/transparent.gif');fixupIECSS3Opacity('id12');iWebWriteCounter();applyEffects()
initializeMediaStream_id11()}
function onPageUnload()
{Widget.onunload();}
