// Created by iWeb 3.0.2 local-build-20110217

function createMediaStream_id1()
{return IWCreatePhotocast("http://www.cwbowers.com/cwbowers/Rodeo_files/rss.xml",false);}
function initializeMediaStream_id1()
{createMediaStream_id1().load('http://www.cwbowers.com/cwbowers',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget0'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id1',{pageIndex:0}));});}
function layoutMediaGrid_id1(range)
{createMediaStream_id1().load('http://www.cwbowers.com/cwbowers',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id1',new IWPhotoGridLayout(3,new IWSize(184,184),new IWSize(184,16),new IWSize(276,215),27,27,0,new IWSize(0,0)),new IWStrokeParts([{rect:new IWRect(-1,1,2,181),url:'Rodeo_files/stroke.png'},{rect:new IWRect(-1,-1,2,2),url:'Rodeo_files/stroke_1.png'},{rect:new IWRect(1,-1,181,2),url:'Rodeo_files/stroke_2.png'},{rect:new IWRect(182,-1,2,2),url:'Rodeo_files/stroke_3.png'},{rect:new IWRect(182,1,2,181),url:'Rodeo_files/stroke_4.png'},{rect:new IWRect(182,182,2,2),url:'Rodeo_files/stroke_5.png'},{rect:new IWRect(1,182,181,2),url:'Rodeo_files/stroke_6.png'},{rect:new IWRect(-1,182,2,2),url:'Rodeo_files/stroke_7.png'}],new IWSize(183,183)),imageStream,range,null,null,1.000000,{backgroundColor:'rgb(0, 0, 0)',reflectionHeight:100,reflectionOffset:2,captionHeight:100,fullScreen:0,transitionIndex:2},'Media/slideshow.html','widget0','widget1','widget2')});}
function relayoutMediaGrid_id1(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id1(range);}
function onStubPage()
{var args=window.location.href.toQueryParams();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id1(),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="400" height="316" style="height: 316px; left: 469px; position: absolute; top: 398px; width: 400px; z-index: 1; "><param name="src" value="Media/Ride%20%27em%20Cowgirl%203.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="id4" type="video/quicktime" width="400" height="316" style="height: 316px; left: 469px; position: absolute; top: 398px; width: 400px; z-index: 1; "><param name="src" value="Rodeo_files/Ride%20%27em%20Cowgirl%203.jpg"/><param name="target" value="myself"/><param name="href" value="../Media/Ride%20%27em%20Cowgirl%203.mov"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id4" type="video/quicktime" width="400" height="316" data="Media/Ride%20%27em%20Cowgirl%203.mov" style="height: 316px; left: 469px; position: absolute; top: 398px; width: 400px; z-index: 1; "><param name="src" value="Media/Ride%20%27em%20Cowgirl%203.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 writeMovie2()
{detectBrowser();if(windowsInternetExplorer)
{document.write('<object id="id5" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="400" height="316" style="height: 316px; left: 30px; position: absolute; top: 398px; width: 400px; z-index: 1; "><param name="src" value="Media/Ride%20%27em%20Cowboy%20480-4.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="id5" type="video/quicktime" width="400" height="316" style="height: 316px; left: 30px; position: absolute; top: 398px; width: 400px; z-index: 1; "><param name="src" value="Rodeo_files/Ride%20%27em%20Cowboy%20480.jpg"/><param name="target" value="myself"/><param name="href" value="../Media/Ride%20%27em%20Cowboy%20480-4.mov"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id5" type="video/quicktime" width="400" height="316" data="Media/Ride%20%27em%20Cowboy%20480-4.mov" style="height: 316px; left: 30px; position: absolute; top: 398px; width: 400px; z-index: 1; "><param name="src" value="Media/Ride%20%27em%20Cowboy%20480-4.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>');}}
setTransparentGifURL('Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_0:new IWEmptyStroke()});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('Rodeo_files/RodeoMoz.css')
NotificationCenter.addObserver(null,relayoutMediaGrid_id1,'RangeChanged','id1')
detectBrowser();adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');fixAllIEPNGs('Media/transparent.gif');Widget.onload();fixupAllIEPNGBGs();IMpreload('Rodeo_files','shapeimage_1','0');IMpreload('Rodeo_files','shapeimage_2','0');IMpreload('Rodeo_files','shapeimage_3','0');IMpreload('Rodeo_files','shapeimage_4','0');IMpreload('Rodeo_files','shapeimage_5','0');IMpreload('Rodeo_files','shapeimage_6','0');IMpreload('Rodeo_files','shapeimage_7','0');fixupIECSS3Opacity('id6');applyEffects()
initializeMediaStream_id1()}
function onPageUnload()
{Widget.onunload();}

