Cufon.replace('h1').replace('h2').replace('#top-image-inner h1').replace('h3').replace('#navi a').replace('#bottom li a');

        $(document).ready(function() {
            // do stuff when DOM is ready
                        
            //For each li within the HTML we have just created
            $(".imagebox").each(function() {
            
                //Add a click function to each LI
                $(this).click(function () {
                    
                    //REMOVE 'Selected' CSS
                    //$(".PhotoSwitcher ul li").removeClass("Selected");
                    
                    //APPLY 'Selected' CSS
                    //$(this).addClass("Selected");
                    
                    //GET FILENAME (photo2_thumb.jpg)
                    var thumbFilename = $(this).find("a img").attr("src");
                    
                    //Replace/Remove '_thumb' (photo2_thumb.jpg) to (photo2.jpg)
                    thumbFilename = thumbFilename.replace("thumbs/thumb.","");
                    
                    //Get ALT attribute from IMG tag
                    var thumbAlt = $(this).find("a img").attr("alt");
                    
                    
                    //Set new attribute values to the main photo
                    $(".mainPhoto img").attr({
                        src: thumbFilename,
                        alt: thumbAlt
                    });
                });
            });
        });

