// Created by iWeb 3.0.1 local-build-20100313

function createMediaStream_id5()
{return IWCreatePhotocast("http://www.citroenvie.com/CAC_Events_and_Blogs/Gallery_files/rss.xml",false);}
function initializeMediaStream_id5()
{createMediaStream_id5().load('http://www.citroenvie.com/CAC_Events_and_Blogs',function(imageStream)
{var entryCount=imageStream.length;var headerView=widgets['widget1'];headerView.setPreferenceForKey(imageStream.length,'entryCount');NotificationCenter.postNotification(new IWNotification('SetPage','id5',{pageIndex:0}));});}
function layoutMediaGrid_id5(range)
{createMediaStream_id5().load('http://www.citroenvie.com/CAC_Events_and_Blogs',function(imageStream)
{if(range==null)
{range=new IWRange(0,imageStream.length);}
IWLayoutPhotoGrid('id5',new IWPhotoGridLayout(6,new IWSize(81,81),new IWSize(81,35),new IWSize(81,131),27,27,0,new IWSize(4,4)),new IWPhotoFrame([IWCreateImage('Gallery_files/Modern_C_TL.png'),IWCreateImage('Gallery_files/Modern_S_T.png'),IWCreateImage('Gallery_files/Modern_C_TR.png'),IWCreateImage('Gallery_files/Modern_S_R.png'),IWCreateImage('Gallery_files/Modern_C_BR.png'),IWCreateImage('Gallery_files/Modern_S_B.png'),IWCreateImage('Gallery_files/Modern_C_BL.png'),IWCreateImage('Gallery_files/Modern_S_L.png')],null,2,0.100000,0.000000,0.000000,0.000000,0.000000,17.000000,17.000000,17.000000,20.000000,40.000000,40.000000,40.000000,240.000000,null,null,null,0.100000),imageStream,range,null,null,0.000000,null,'Media/slideshow.html','widget1','widget2','widget3')});}
function relayoutMediaGrid_id5(notification)
{var userInfo=notification.userInfo();var range=userInfo['range'];layoutMediaGrid_id5(range);}
function onStubPage()
{var args=window.location.href.toQueryParams();parent.IWMediaStreamPhotoPageSetMediaStream(createMediaStream_id5(),args.id);}
if(window.stubPage)
{onStubPage();}
setTransparentGifURL('Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_1:new IWStrokeParts([{rect:new IWRect(-2,2,4,320),url:'Gallery_files/stroke_8.png'},{rect:new IWRect(-2,-2,4,4),url:'Gallery_files/stroke_9.png'},{rect:new IWRect(2,-2,239,4),url:'Gallery_files/stroke_10.png'},{rect:new IWRect(241,-2,4,4),url:'Gallery_files/stroke_11.png'},{rect:new IWRect(241,2,4,320),url:'Gallery_files/stroke_12.png'},{rect:new IWRect(241,322,4,4),url:'Gallery_files/stroke_13.png'},{rect:new IWRect(2,322,239,4),url:'Gallery_files/stroke_14.png'},{rect:new IWRect(-2,322,4,4),url:'Gallery_files/stroke_15.png'}],new IWSize(243,324)),stroke_0:new IWStrokeParts([{rect:new IWRect(-2,2,4,136),url:'Gallery_files/stroke.png'},{rect:new IWRect(-2,-2,4,4),url:'Gallery_files/stroke_1.png'},{rect:new IWRect(2,-2,239,4),url:'Gallery_files/stroke_2.png'},{rect:new IWRect(241,-2,4,4),url:'Gallery_files/stroke_3.png'},{rect:new IWRect(241,2,4,136),url:'Gallery_files/stroke_4.png'},{rect:new IWRect(241,138,4,5),url:'Gallery_files/stroke_5.png'},{rect:new IWRect(2,138,239,5),url:'Gallery_files/stroke_6.png'},{rect:new IWRect(-2,138,4,5),url:'Gallery_files/stroke_7.png'}],new IWSize(243,140))});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('Gallery_files/GalleryMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');NotificationCenter.addObserver(null,relayoutMediaGrid_id5,'RangeChanged','id5')
adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');adjustLineHeightIfTooBig('id19');adjustFontSizeIfTooBig('id19');detectBrowser();Widget.onload();fixupAllIEPNGBGs();fixAllIEPNGs('Media/transparent.gif');IMpreload('Gallery_files','shapeimage_1','0');IMpreload('Gallery_files','shapeimage_2','0');IMpreload('Gallery_files','shapeimage_3','0');IMpreload('Gallery_files','shapeimage_4','0');IMpreload('Gallery_files','shapeimage_5','0');IMpreload('Gallery_files','shapeimage_6','0');IMpreload('Gallery_files','shapeimage_7','0');IMpreload('Gallery_files','shapeimage_8','0');IMpreload('Gallery_files','shapeimage_9','0');IMpreload('Gallery_files','shapeimage_10','0');IMpreload('Gallery_files','shapeimage_11','0');IMpreload('Gallery_files','shapeimage_12','0');IMpreload('Gallery_files','shapeimage_13','0');IMpreload('Gallery_files','shapeimage_14','0');IMpreload('Gallery_files','shapeimage_15','0');IMpreload('Gallery_files','shapeimage_16','0');fixupIECSS3Opacity('id7');fixupIECSS3Opacity('id8');fixupIECSS3Opacity('id9');fixupIECSS3Opacity('id10');fixupIECSS3Opacity('id11');fixupIECSS3Opacity('id12');fixupIECSS3Opacity('id13');fixupIECSS3Opacity('id14');fixupIECSS3Opacity('id15');fixupIECSS3Opacity('id16');fixupIECSS3Opacity('id17');fixupIECSS3Opacity('id18');applyEffects()
initializeMediaStream_id5()}
function onPageUnload()
{Widget.onunload();}
