//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] = "1.jpg|thumb-1.jpg|Powerful New E-commerce Site with UX web Design and video animation for Feefo";
GalleryImages[1] = "2.jpg|thumb-2.jpg|Esendex's new brand goes live in the USA - with global rollout imnant ";
GalleryImages[2] = "3.jpg|thumb-3.jpg|Player Layers E-commerce growth leads to exciting new developments and new site systems";
GalleryImages[3] = "4.jpg|thumb-4.jpg|The UKs Leading Number plate site powerful search engine with a beautiful web design";
GalleryImages[4] = "5.jpg|thumb-5.jpg|Advertising Campaign for The Children's Society, Graphic and Web based";
GalleryImages[5] = "6.jpg|thumb-6.jpg|America's leading Career Management Solution, new brand and constantly changing and growing website";
GalleryImages[6] = "7.jpg|thumb-7.jpg|New Designs for Africa Shack - An Africa Fair Trade E-commerce site, supporting the people making the produce";
GalleryImages[7] = "8.jpg|thumb-8.jpg|Bespoke Digital legends purely digital site that is delivering impressive conversions";
GalleryImages[8] = "9.jpg|thumb-9.jpg|The Greater Nottingham Partnership (GNP) work with Alight on a new making the connection promotions";
GalleryImages[9] = "10.jpg|thumb-10.jpg|Professional looks with an intelligent and slick animated interface ";
GalleryImages[10] = "11.jpg|thumb-11.jpg|Roseland receive a cut above with their new brand and promotional materials";
GalleryImages[11] = "12.jpg|thumb-12.jpg|Award winning flash site - after all not everyone wants W3C validation!";

//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')
            }
        });
    });
});
