//Enter path for gallery resources
GalleryImagePath = '/resources/images/gallery/homepage/';
GalleryImageThumbPath = GalleryImagePath + 'thumb/';
var GalleryImages = new Array();

//Create array of images for slideshow!
GalleryImages[0] = "Home-page-purely-digital-1.jpg|1.jpg|Foil blocked graphic design viral";
GalleryImages[1] = "Paul-barshon-award-winning-flash-site-2.jpg|2.jpg|Paul barshon award winning flash site";
GalleryImages[2] = "Graphic-Design-Childrens-Society-Poster-Campaign-3.jpg|3.jpg|Graphic Design Childrens Society Poster Campaign";
GalleryImages[3] = "HPM-hybrid-website-design-mootools-javascript-effect-site-7.jpg|7.jpg|HPM hybrid website design mootools javascript effect site";
GalleryImages[4] = "Environmental-web-design-Blue-Castle-Environmental-Management-12.jpg|12.jpg|Environmental web design Blue Castle Environmental Management";
GalleryImages[5] = "Brand-identity-company-controller-logo-design-6.jpg|6.jpg|Brand identity company controller logo design";
GalleryImages[6] = "Player-Layer-5.jpg|5.jpg|Player Layer Graphic Campaign Design";
GalleryImages[7] = "Graphic-Design-for-Print-Tektroniks-brochure-design-8.jpg|8.jpg|Graphic Design for Print Tektroniks brochure design";
GalleryImages[8] = "bespoke-flash-web-design-harrison-working-spaces-site-9.jpg|9.jpg|bespoke flash web design harrison working spaces site";
GalleryImages[9] = "Embossed-brochure-cover-Roseland-Graphic-Design-for-Print-10.jpg|10.jpg|Embossed brochure cover Roseland Graphic Design for Print";
GalleryImages[10] = "hybrid-flash-and-html-search-engine-friendly-site-big-sky-banners-11.jpg|11.jpg|hybrid flash and html search engine friendly site big sky banners11.jpg";
GalleryImages[11] = "powerful-converting-site-design-mootools-effects-blue-kite-energy-4.jpg|4.jpg";

//Initiate Object
window.addEvent('domready', function() {
    InitSlideshow();

    //Setup blog mouse overs

    var RightBlogImages = $$('#recentPosts div.RightBlogImage');
    
    //alert(RightBlogImages.length)

    RightBlogImages.each(function(itemElement, itemIndex)
    {
        
        var bgAnimate = new Fx.Tween(itemElement, {duration : '200', transition: Fx.Transitions.Sine.easeInOut});
    
        itemElement.addEvents({
          'mouseover': function()
          {
            bgAnimate.cancel();
            bgAnimate.start('opacity', '0.001')
          },
          'mouseout': function()
          {
            bgAnimate.cancel();
            bgAnimate.start('opacity', '1')
          }
        });
    });
});
