// Created by iWeb 3.0.1 local-build-20100621

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="324" height="16"><param name="src" value="../../Media/05%20Tennesee%20Waltz-3.mp3" /><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="324" height="16"><param name="src" value="../../Media/05%20Tennesee%20Waltz-3.mp3"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');}
else
{document.write('<object id="id5" type="video/quicktime" width="324" height="16" data="../../Media/05%20Tennesee%20Waltz-3.mp3"><param name="src" value="../../Media/05%20Tennesee%20Waltz-3.mp3"/><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.petrosguitars.com/gallery/Petros_Guitars_Gallery/Models/Pages/Tunnel_13_files/rss.xml",false);}
function initializeMediaStream_id9()
{createMediaStream_id9().load('http://www.petrosguitars.com/gallery/Petros_Guitars_Gallery/Models/Pages',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget2'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id9',{pageIndex:0}));});}
function layoutMediaGrid_id9(range)
{createMediaStream_id9().load('http://www.petrosguitars.com/gallery/Petros_Guitars_Gallery/Models/Pages',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id9',new IWPhotoGridLayout(3,new IWSize(219,219),new IWSize(219,32),new IWSize(244,266),27,27,0,new IWSize(0,0)),new IWStrokeParts([{rect:new IWRect(-3,5,9,208),url:'Tunnel_13_files/stroke_16.png'},{rect:new IWRect(-7,-5,13,10),url:'Tunnel_13_files/stroke_17.png'},{rect:new IWRect(6,-5,206,10),url:'Tunnel_13_files/stroke_18.png'},{rect:new IWRect(212,-8,11,13),url:'Tunnel_13_files/stroke_19.png'},{rect:new IWRect(212,5,11,208),url:'Tunnel_13_files/stroke_20.png'},{rect:new IWRect(212,213,9,13),url:'Tunnel_13_files/stroke_21.png'},{rect:new IWRect(6,213,206,9),url:'Tunnel_13_files/stroke_22.png'},{rect:new IWRect(-3,213,9,10),url:'Tunnel_13_files/stroke_23.png'}],new IWSize(218,218)),imageStream,range,new IWShadow({blurRadius:10,offset:new IWPoint(7.0711,7.0711),color:'#000000',opacity:0.750000}),null,1.000000,{backgroundColor:'rgb(0, 0, 0)',reflectionHeight:100,reflectionOffset:2,captionHeight:100,fullScreen:1,transitionIndex:2},'../../Media/slideshow.html','widget2','widget3','widget4')});}
function relayoutMediaGrid_id9(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id9(range);}
function onStubPage()
{var args=window.location.href.toQueryParams();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id9(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('../../Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_2:new IWStrokeParts([{rect:new IWRect(-5,5,9,63),url:'Tunnel_13_files/stroke_8.png'},{rect:new IWRect(-7,-14,11,19),url:'Tunnel_13_files/stroke_9.png'},{rect:new IWRect(4,-5,180,10),url:'Tunnel_13_files/stroke_10.png'},{rect:new IWRect(184,-4,14,9),url:'Tunnel_13_files/stroke_11.png'},{rect:new IWRect(184,5,10,63),url:'Tunnel_13_files/stroke_12.png'},{rect:new IWRect(184,68,9,14),url:'Tunnel_13_files/stroke_13.png'},{rect:new IWRect(4,68,180,8),url:'Tunnel_13_files/stroke_14.png'},{rect:new IWRect(-8,68,12,14),url:'Tunnel_13_files/stroke_15.png'}],new IWSize(190,74)),stroke_0:new IWEmptyStroke(),stroke_1:new IWStrokeParts([{rect:new IWRect(-1,1,2,58),url:'Tunnel_13_files/stroke.png'},{rect:new IWRect(-1,-1,2,2),url:'Tunnel_13_files/stroke_1.png'},{rect:new IWRect(1,-1,174,2),url:'Tunnel_13_files/stroke_2.png'},{rect:new IWRect(175,-1,1,2),url:'Tunnel_13_files/stroke_3.png'},{rect:new IWRect(175,1,1,58),url:'Tunnel_13_files/stroke_4.png'},{rect:new IWRect(175,59,1,2),url:'Tunnel_13_files/stroke_5.png'},{rect:new IWRect(1,59,174,2),url:'Tunnel_13_files/stroke_6.png'},{rect:new IWRect(-1,59,2,2),url:'Tunnel_13_files/stroke_7.png'}],new IWSize(176,60)),shadow_0:new IWShadow({blurRadius:10,offset:new IWPoint(4.2426,4.2426),color:'#000000',opacity:0.750000}),shadow_1:new IWShadow({blurRadius:4,offset:new IWPoint(5.6569,5.6569),color:'#000000',opacity:0.440000})});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('Tunnel_13_files/Tunnel_13Moz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');adjustLineHeightIfTooBig('id7');adjustFontSizeIfTooBig('id7');adjustLineHeightIfTooBig('id8');adjustFontSizeIfTooBig('id8');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');adjustLineHeightIfTooBig('id16');adjustFontSizeIfTooBig('id16');fixupAllIEPNGBGs();Widget.onload();fixAllIEPNGs('../../Media/transparent.gif');applyEffects()
initializeMediaStream_id9()}
function onPageUnload()
{Widget.onunload();}
