// Created by iWeb 3.0.3 local-build-20110718

function createMediaStream_id3()
{return IWCreatePhotocast("file://localhost/Users/iMac/Desktop/web%20site/MS%26G%202010%20website/MSGCycling/KOM_files/rss.xml",false);}
function initializeMediaStream_id3()
{createMediaStream_id3().load('file://localhost/Users/iMac/Desktop/web%20site/MS%26G%202010%20website/MSGCycling',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget0'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id3',{pageIndex:0}));});}
function layoutMediaGrid_id3(range)
{createMediaStream_id3().load('file://localhost/Users/iMac/Desktop/web%20site/MS%26G%202010%20website/MSGCycling',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id3',new IWPhotoGridLayout(3,new IWSize(248,248),new IWSize(248,0),new IWSize(248,263),27,27,0,new IWSize(31,34)),new IWPhotoFrame([IWCreateImage('KOM_files/Freestyle_01.png'),IWCreateImage('KOM_files/Freestyle_02.png'),IWCreateImage('KOM_files/Freestyle_03.png'),IWCreateImage('KOM_files/Freestyle_06.png'),IWCreateImage('KOM_files/Freestyle_09.png'),IWCreateImage('KOM_files/Freestyle_08.png'),IWCreateImage('KOM_files/Freestyle_07.png'),IWCreateImage('KOM_files/Freestyle_04.png')],null,2,0.797072,3.000000,3.000000,3.000000,3.000000,22.000000,24.000000,23.000000,25.000000,166.000000,222.000000,166.000000,222.000000,null,null,null,0.100000),imageStream,range,new IWShadow({blurRadius:9,offset:new IWPoint(0.7071,0.7071),color:'#463c3c',opacity:0.300000}),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_id3(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id3(range);}
function onStubPage()
{var args=window.location.href.toQueryParams();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id3(),args.id);}
if(window.stubPage)
{onStubPage();}
function writeMovie1()
{detectBrowser();if(windowsInternetExplorer)
{document.write('<object id="id5" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="571" height="337" style="height: 337px; left: 114px; position: absolute; top: 462px; width: 571px; z-index: 1; "><param name="src" value="Media/KOM_Sept2010med-1.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="571" height="337" style="height: 337px; left: 114px; position: absolute; top: 462px; width: 571px; z-index: 1; "><param name="src" value="KOM_files/KOM_Sept2010med-5.jpg"/><param name="target" value="myself"/><param name="href" value="../Media/KOM_Sept2010med-1.mov"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id5" type="video/quicktime" width="571" height="337" data="Media/KOM_Sept2010med-1.mov" style="height: 337px; left: 114px; position: absolute; top: 462px; width: 571px; z-index: 1; "><param name="src" value="Media/KOM_Sept2010med-1.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="id8" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="576" height="340" style="height: 340px; left: 112px; position: absolute; top: 79px; width: 576px; z-index: 1; "><param name="src" value="Media/S01%20King%20of%20the%20Mountain%20April2011.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="id8" type="video/quicktime" width="576" height="340" style="height: 340px; left: 112px; position: absolute; top: 79px; width: 576px; z-index: 1; "><param name="src" value="KOM_files/S01%20King%20of%20the%20Mountain%20April2011.jpg"/><param name="target" value="myself"/><param name="href" value="../Media/S01%20King%20of%20the%20Mountain%20April2011.m4v"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id8" type="video/quicktime" width="576" height="340" data="Media/S01%20King%20of%20the%20Mountain%20April2011.m4v" style="height: 340px; left: 112px; position: absolute; top: 79px; width: 576px; z-index: 1; "><param name="src" value="Media/S01%20King%20of%20the%20Mountain%20April2011.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>');}}
setTransparentGifURL('Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({shadow_0:new IWShadow({blurRadius:10,offset:new IWPoint(0.0000,0.0000),color:'#463c3c',opacity:0.750000})});registry.applyEffects();}
function hostedOnDM()
{return false;}
function onPageLoad()
{IWRegisterNamedImage('comment overlay','Media/Photo-Overlay-Comment.png')
IWRegisterNamedImage('movie overlay','Media/Photo-Overlay-Movie.png')
loadMozillaCSS('KOM_files/KOMMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');NotificationCenter.addObserver(null,relayoutMediaGrid_id3,'RangeChanged','id3')
adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');adjustLineHeightIfTooBig('id7');adjustFontSizeIfTooBig('id7');fixAllIEPNGs('Media/transparent.gif');Widget.onload();fixupAllIEPNGBGs();applyEffects()
initializeMediaStream_id3()}
function onPageUnload()
{Widget.onunload();}

