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

function iWebWriteCounter()
{try
{writeCounter();}
catch(e)
{}}
function createMediaStream_id2()
{return IWCreatePhotocast("http://www.dativer.com/dativer/PORTRAITS_files/rss.xml",false,true);}
function initializeMediaStream_id2()
{createMediaStream_id2().load('http://www.dativer.com/dativer',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget1'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id2',{pageIndex:0}));});}
function layoutMediaGrid_id2(range)
{createMediaStream_id2().load('http://www.dativer.com/dativer',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id2',new IWPhotoGridLayout(3,new IWSize(111,111),new IWSize(111,57),new IWSize(167,183),27,27,0,new IWSize(14,14)),new IWPhotoFrame([IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Hardcover/Hardcover_bevel_01.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Hardcover/Hardcover_bevel_02.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Hardcover/Hardcover_bevel_03.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Hardcover/Hardcover_bevel_06.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Hardcover/Hardcover_bevel_09.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Hardcover/Hardcover_bevel_08.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Hardcover/Hardcover_bevel_07.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Hardcover/Hardcover_bevel_04.png')],null,0,0.400000,0.000000,0.000000,0.000000,0.000000,17.000000,17.000000,17.000000,17.000000,403.000000,295.000000,403.000000,295.000000,null,null,null,0.100000),imageStream,range,new IWShadow({blurRadius:12,offset:new IWPoint(6.4721,4.7023),color:'#000000',opacity:0.760000}),null,1.000000,{backgroundColor:'#000000',reflectionHeight:100,reflectionOffset:2,captionHeight:100,fullScreen:0,transitionIndex:2},'Media/slideshow.html','widget1','widget2','widget3')});}
function relayoutMediaGrid_id2(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id2(range);}
function onStubPage()
{var args=getArgs();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id2(),args.id);}
if(window.stubPage)
{onStubPage();}
function writeMovie1()
{detectBrowser();if(windowsInternetExplorer)
{document.write('<object id="id4" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="75" height="16" style="height: 16px; left: 625px; position: absolute; top: 135px; width: 75px; z-index: 1; "><param name="src" value="Media/04%20My%20Spanish%20Heart-2.mov" /><param name="controller" value="true" /><param name="autoplay" value="true" /><param name="scale" value="tofit" /><param name="volume" value="100" /><param name="loop" value="true" /></object>');}
else if(isiPhone)
{document.write('<object id="id4" type="video/quicktime" width="75" height="16" style="height: 16px; left: 625px; position: absolute; top: 135px; width: 75px; z-index: 1; "><param name="src" value="Media/04%20My%20Spanish%20Heart-2.mov"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id4" type="video/quicktime" width="75" height="16" data="Media/04%20My%20Spanish%20Heart-2.mov" style="height: 16px; left: 625px; position: absolute; top: 135px; width: 75px; z-index: 1; "><param name="src" value="Media/04%20My%20Spanish%20Heart-2.mov"/><param name="controller" value="true"/><param name="autoplay" value="true"/><param name="scale" value="tofit"/><param name="volume" value="100"/><param name="loop" value="true"/></object>');}}
setTransparentGifURL('Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_0:new IWPhotoFrame([IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Watercolor_iweb/Watercolor_iweb_01.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Watercolor_iweb/Watercolor_iweb_02.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Watercolor_iweb/Watercolor_iweb_04.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Watercolor_iweb/Watercolor_iweb_08.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Watercolor_iweb/Watercolor_iweb_16.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Watercolor_iweb/Watercolor_iweb_14.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Watercolor_iweb/Watercolor_iweb_13.png'),IWCreateImage('http://www.me.com/st/1/sharedassets/2.0.4/Common/Frames/Watercolor_iweb/Watercolor_iweb_05.png')],null,0,0.557018,0.000000,0.000000,0.000000,0.000000,12.000000,12.000000,11.000000,11.000000,13.000000,12.000000,13.000000,12.000000,null,null,null,0.500000),shadow_1:new IWShadow({blurRadius:12,offset:new IWPoint(6.4721,4.7023),color:'#000000',opacity:0.760000}),shadow_0:new IWShadow({blurRadius:12,offset:new IWPoint(6.4721,4.7023),color:'#000000',opacity:0.760000})});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('PORTRAITS_files/PORTRAITSMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');NotificationCenter.addObserver(null,relayoutMediaGrid_id2,'RangeChanged','id2')
detectBrowser();adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');Widget.onload();fixupAllIEPNGBGs();fixAllIEPNGs('Media/transparent.gif');fixupIECSS3Opacity('id5');iWebWriteCounter();applyEffects()
initializeMediaStream_id2()}
function onPageUnload()
{Widget.onunload();}

