// Created by iWeb 2.0.4 local-build-20100622

function writeMovie1()
{detectBrowser();if(windowsInternetExplorer)
{document.write('<object id="id7" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="237" height="16"><param name="src" value="Media/VN520006.WMA" /><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="id7" type="video/quicktime" width="237" height="16"><param name="src" value="Media/VN520006.WMA"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id7" type="video/quicktime" width="237" height="16" data="Media/VN520006.WMA"><param name="src" value="Media/VN520006.WMA"/><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="237" height="16"><param name="src" value="Media/VN520007.WMA" /><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="237" height="16"><param name="src" value="Media/VN520007.WMA"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id8" type="video/quicktime" width="237" height="16" data="Media/VN520007.WMA"><param name="src" value="Media/VN520007.WMA"/><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_id9()
{return IWCreatePhotocast("http://www.mayanmagiconline.com/Site/Mayan_Magic_Photos_%26_Events_files/rss.xml",true,true);}
function initializeMediaStream_id9()
{createMediaStream_id9().load('http://www.mayanmagiconline.com/Site',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget1'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id9',{pageIndex:0}));});}
function layoutMediaGrid_id9(range)
{createMediaStream_id9().load('http://www.mayanmagiconline.com/Site',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id9',new IWPhotoGridLayout(3,new IWSize(180,180),new IWSize(180,56),new IWSize(216,251),27,27,0,new IWSize(0,0)),new IWStrokeParts([{rect:new IWRect(-5,5,10,170),url:'Mayan_Magic_Photos_%26_Events_files/stroke_8.png'},{rect:new IWRect(-5,-5,10,10),url:'Mayan_Magic_Photos_%26_Events_files/stroke_9.png'},{rect:new IWRect(5,-5,170,10),url:'Mayan_Magic_Photos_%26_Events_files/stroke_10.png'},{rect:new IWRect(175,-5,10,10),url:'Mayan_Magic_Photos_%26_Events_files/stroke_11.png'},{rect:new IWRect(175,5,10,170),url:'Mayan_Magic_Photos_%26_Events_files/stroke_12.png'},{rect:new IWRect(175,175,10,10),url:'Mayan_Magic_Photos_%26_Events_files/stroke_13.png'},{rect:new IWRect(5,175,170,10),url:'Mayan_Magic_Photos_%26_Events_files/stroke_14.png'},{rect:new IWRect(-5,175,10,10),url:'Mayan_Magic_Photos_%26_Events_files/stroke_15.png'}],new IWSize(180,180)),imageStream,range,null,null,1.000000,{backgroundColor:'#000000',reflectionHeight:100,reflectionOffset:2,captionHeight:100,fullScreen:0,transitionIndex:2},'Media/slideshow.html','widget1','widget2','widget3')});}
function relayoutMediaGrid_id9(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id9(range);}
function onStubPage()
{var args=getArgs();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id9(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_0:new IWStrokeParts([{rect:new IWRect(-5,5,10,537),url:'Mayan_Magic_Photos_%26_Events_files/stroke.png'},{rect:new IWRect(-5,-5,10,10),url:'Mayan_Magic_Photos_%26_Events_files/stroke_1.png'},{rect:new IWRect(5,-5,400,10),url:'Mayan_Magic_Photos_%26_Events_files/stroke_2.png'},{rect:new IWRect(405,-5,11,10),url:'Mayan_Magic_Photos_%26_Events_files/stroke_3.png'},{rect:new IWRect(405,5,11,537),url:'Mayan_Magic_Photos_%26_Events_files/stroke_4.png'},{rect:new IWRect(405,542,11,10),url:'Mayan_Magic_Photos_%26_Events_files/stroke_5.png'},{rect:new IWRect(5,542,400,10),url:'Mayan_Magic_Photos_%26_Events_files/stroke_6.png'},{rect:new IWRect(-5,542,10,10),url:'Mayan_Magic_Photos_%26_Events_files/stroke_7.png'}],new IWSize(410,547))});registry.applyEffects();}
function hostedOnDM()
{return false;}
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('Mayan_Magic_Photos_&_Events_files/Mayan_Magic_Photos_&_EventsMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');NotificationCenter.addObserver(null,relayoutMediaGrid_id9,'RangeChanged','id9')
adjustLineHeightIfTooBig('id10');adjustFontSizeIfTooBig('id10');adjustLineHeightIfTooBig('id11');adjustFontSizeIfTooBig('id11');adjustLineHeightIfTooBig('id12');adjustFontSizeIfTooBig('id12');adjustLineHeightIfTooBig('id13');adjustFontSizeIfTooBig('id13');adjustLineHeightIfTooBig('id14');adjustFontSizeIfTooBig('id14');adjustLineHeightIfTooBig('id15');adjustFontSizeIfTooBig('id15');Widget.onload();fixAllIEPNGs('Media/transparent.gif');fixupIECSS3Opacity('id16');applyEffects()
initializeMediaStream_id9()}
function onPageUnload()
{Widget.onunload();}

