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

function iWebWriteCounter()
{try
{writeCounter();}
catch(e)
{}}
function createMediaStream_id5()
{return IWCreateMediaCollection("http://www.samplephoto.net/Sample_Photography/Portrait_Pricing/Portrait_Pricing_files/rss.xml",true,255,["No photos yet","%d photo","%d photos"],["","%d clip","%d clips"]);}
function initializeMediaStream_id5()
{createMediaStream_id5().load('http://www.samplephoto.net/Sample_Photography/Portrait_Pricing',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget4'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id5',{pageIndex:0}));});}
function layoutMediaGrid_id5(range)
{createMediaStream_id5().load('http://www.samplephoto.net/Sample_Photography/Portrait_Pricing',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id5',new IWPhotoGridLayout(1,new IWSize(419,315),new IWSize(419,32),new IWSize(498,362),27,27,0,new IWSize(35,34)),new IWPhotoFrame([IWCreateImage('Portrait_Pricing_files/ul.png'),IWCreateImage('Portrait_Pricing_files/top.png'),IWCreateImage('Portrait_Pricing_files/ur.png'),IWCreateImage('Portrait_Pricing_files/right.png'),IWCreateImage('Portrait_Pricing_files/lr.png'),IWCreateImage('Portrait_Pricing_files/bottom.png'),IWCreateImage('Portrait_Pricing_files/ll.png'),IWCreateImage('Portrait_Pricing_files/left.png')],null,0,0.600000,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','widget4',null,'widget5',{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({shadow_4:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000}),reflection_2:new IWReflection({opacity:0.81,offset:1.00}),shadow_1:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000}),shadow_3:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000}),shadow_2:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000}),shadow_0:new IWShadow({blurRadius:7,offset:new IWPoint(4.2426,4.2426),color:'#3b1fbc',opacity:1.000000}),reflection_1:new IWReflection({opacity:1.00,offset:1.00}),reflection_0:new IWReflection({opacity:0.50,offset:1.00})});registry.applyEffects();}
function hostedOnDM()
{return true;}
function onPageLoad()
{IWRegisterNamedImage('comment overlay','../Media/Photo-Overlay-Comment.png')
IWRegisterNamedImage('movie overlay','../Media/Photo-Overlay-Movie.png')
loadMozillaCSS('Portrait_Pricing_files/Portrait_PricingMoz.css')
adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');NotificationCenter.addObserver(null,relayoutMediaGrid_id5,'RangeChanged','id5')
adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');Widget.onload();fixupAllIEPNGBGs();fixAllIEPNGs('../Media/transparent.gif');fixupIECSS3Opacity('id1');fixupIECSS3Opacity('id2');iWebWriteCounter();applyEffects()
initializeMediaStream_id5()}
function onPageUnload()
{Widget.onunload();}

