        
        // Page Flip on hover
        $(document).ready(function(){
                $('.msg_block').css('background-image', 'url("/_sites/neon/media/images/flip_advert/media_gallery.png")');
	            $("#pageflip").hover(function() {
		            $("#pageflip img , .msg_block").stop()
			            .animate({
				            width: '308px', 
				            height: '319px'
			            }, 500); 
		            } , function() {
		            $("#pageflip img").stop() 
			            .animate({
				            width: '102px', 
				            height: '102px'
			            }, 220);
		            $(".msg_block").stop() 
			            .animate({
				            width: '102px', 
				            height: '100px'
			            }, 200);
	        });
        });
        
        /* PAGE CURL JS - THIS IS OLDER CODE FOR RANDOMLY SELECTING AN IMAGE AND HAVING IT LINK SOMEWHERE */
        /* 
        var curl_images = new Array();
        curl_images[0] = "/page-1.aspx";
        curl_images[1] = "/page-2.aspx";
        curl_images[2] = "/page-3.aspx";

        $(document).ready(function(){

            var randno = Math.floor(Math.random() * curl_images.length) + 1;
        
            //  set random image

                var src = '/_sites/neon/media/images/flip_advert/image_' + randno + '.png';
                $('.msg_block').css('background-image', 'url(' + src + ')');

            //  set anchor

                $('#pageflip a').attr("href", curl_images[randno - 1]);

            // Page Flip on hover

	            $("#pageflip").hover(function() {
		            $("#pageflip img , .msg_block").stop()
			            .animate({
				            width: '307px', 
				            height: '319px'
			            }, 500); 
		            } , function() {
		            $("#pageflip img").stop() 
			            .animate({
				            width: '100px', 
				            height: '102px'
			            }, 220);
		            $(".msg_block").stop() 
			            .animate({
				            width: '100px', 
				            height: '100px'
			            }, 200);
	        });
	    });
        
*/
