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

function iWebWriteCounter()
{try
{writeCounter();}
catch(e)
{}}
function writeMovie1()
{detectBrowser();if(windowsInternetExplorer)
{document.write('<object id="id3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="640" height="376" style="height: 376px; left: 178px; position: absolute; top: 1675px; width: 640px; z-index: 1; "><param name="src" value="Media/ice%20cream%20truck.m4v" /><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="id3" type="video/quicktime" width="640" height="376" style="height: 376px; left: 178px; position: absolute; top: 1675px; width: 640px; z-index: 1; "><param name="src" value="The_Ice_Cream_Truck_files/ice%20cream%20truck.jpg"/><param name="target" value="myself"/><param name="href" value="../Media/ice%20cream%20truck.m4v"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id3" type="video/quicktime" width="640" height="376" data="Media/ice%20cream%20truck.m4v" style="height: 376px; left: 178px; position: absolute; top: 1675px; width: 640px; z-index: 1; "><param name="src" value="Media/ice%20cream%20truck.m4v"/><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_id4()
{return IWCreatePhotocast("http://www.drawingkidstochrist.com/Drawing_Kids_to_Christ/The_Ice_Cream_Truck_files/rss.xml",true);}
function initializeMediaStream_id4()
{createMediaStream_id4().load('http://www.drawingkidstochrist.com/Drawing_Kids_to_Christ',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget1'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id4',{pageIndex:0}));});}
function layoutMediaGrid_id4(range)
{createMediaStream_id4().load('http://www.drawingkidstochrist.com/Drawing_Kids_to_Christ',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id4',new IWPhotoGridLayout(3,new IWSize(158,158),new IWSize(158,0),new IWSize(190,173),27,27,0,new IWSize(16,16)),new IWPhotoFrame([IWCreateImage('The_Ice_Cream_Truck_files/Formal_inset_01.png'),IWCreateImage('The_Ice_Cream_Truck_files/Formal_inset_02.png'),IWCreateImage('The_Ice_Cream_Truck_files/Formal_inset_03.png'),IWCreateImage('The_Ice_Cream_Truck_files/Formal_inset_06.png'),IWCreateImage('The_Ice_Cream_Truck_files/Formal_inset_09.png'),IWCreateImage('The_Ice_Cream_Truck_files/Formal_inset_08.png'),IWCreateImage('The_Ice_Cream_Truck_files/Formal_inset_07.png'),IWCreateImage('The_Ice_Cream_Truck_files/Formal_inset_04.png')],null,0,0.600000,1.000000,1.000000,1.000000,1.000000,14.000000,14.000000,14.000000,14.000000,191.000000,262.000000,191.000000,262.000000,null,null,null,0.100000),imageStream,range,null,null,1.000000,{backgroundColor:'rgb(0, 0, 0)',reflectionHeight:100,reflectionOffset:2,captionHeight:100,fullScreen:0,transitionIndex:2},'Media/slideshow.html','widget1','widget2','widget3')});}
function relayoutMediaGrid_id4(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id4(range);}
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}),shadow_2:new IWShadow({blurRadius:10,offset:new IWPoint(0.0000,-0.0000),color:'#ffffff',opacity:0.750000}),shadow_1:new IWShadow({blurRadius:3,offset:new IWPoint(0.0000,-0.0000),color:'#000000',opacity:0.750000}),shadow_3:new IWShadow({blurRadius:3,offset:new IWPoint(0.0000,-0.0000),color:'#ffffff',opacity:0.750000}),shadow_0:new IWShadow({blurRadius:3,offset:new IWPoint(0.0000,-0.0000),color:'#000000',opacity:0.750000})});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('The_Ice_Cream_Truck_files/The_Ice_Cream_TruckMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');NotificationCenter.addObserver(null,relayoutMediaGrid_id4,'RangeChanged','id4')
adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');detectBrowser();fixAllIEPNGs('Media/transparent.gif');Widget.onload();fixupAllIEPNGBGs();IMpreload('The_Ice_Cream_Truck_files','shapeimage_3','0');iWebWriteCounter();applyEffects()
initializeMediaStream_id4()}
function onPageUnload()
{Widget.onunload();}
