// JavaScript Document


$(function() {
            // create the image rotator
            setInterval("rotateImages()", 5000);
        });

        function rotateImages() {
            var oCurPhoto = $('#photoShow div.current');
            var oNxtPhoto = oCurPhoto.next();
            if (oNxtPhoto.length == 0)
                oNxtPhoto = $('#photoShow div:first');

            oCurPhoto.removeClass('current').addClass('previous');
            oNxtPhoto.css({ opacity: 0.0 }).addClass('current').animate({ opacity: 1.0 }, 1000,
                function() {
                    oCurPhoto.removeClass('previous');
                });
		}
		
$(function() {
            // create the image rotator
            setInterval("rotateImages2()", 5000);
        });

        function rotateImages2() {
            var oCurPhoto = $('#photoShow2 div.current2');
            var oNxtPhoto = oCurPhoto.next();
            if (oNxtPhoto.length == 0)
                oNxtPhoto = $('#photoShow2 div:first');

            oCurPhoto.removeClass('current2').addClass('previous2');
            oNxtPhoto.css({ opacity: 0.0 }).addClass('current2').animate({ opacity: 1.0 }, 3000,
                function() {
                    oCurPhoto.removeClass('previous2');
                });
        }
		
$(function() {
            // create the image rotator
            setInterval("rotateImages3()", 5000);
        });

        function rotateImages3() {
            var oCurPhoto = $('#photoShow3 div.current3');
            var oNxtPhoto = oCurPhoto.next();
            if (oNxtPhoto.length == 0)
                oNxtPhoto = $('#photoShow3 div:first');

            oCurPhoto.removeClass('current3').addClass('previous3');
            oNxtPhoto.css({ opacity: 0.0 }).addClass('current3').animate({ opacity: 1.0 }, 2000,
                function() {
                    oCurPhoto.removeClass('previous3');
                });
        }
		
$(function() {
            // create the image rotator
            setInterval("rotateImages4()", 5000);
        });

        function rotateImages4() {
            var oCurPhoto = $('#photoShow4 div.current4');
            var oNxtPhoto = oCurPhoto.next();
            if (oNxtPhoto.length == 0)
                oNxtPhoto = $('#photoShow4 div:first');

            oCurPhoto.removeClass('current4').addClass('previous4');
            oNxtPhoto.css({ opacity: 0.0 }).addClass('current4').animate({ opacity: 1.0 }, 4000,
                function() {
                    oCurPhoto.removeClass('previous4');
                });
        }

$(function() {
            // create the image rotator
            setInterval("rotateImages5()", 5000);
        });

        function rotateImages5() {
            var oCurPhoto = $('#photoShow5 div.current5');
            var oNxtPhoto = oCurPhoto.next();
            if (oNxtPhoto.length == 0)
                oNxtPhoto = $('#photoShow5 div:first');

            oCurPhoto.removeClass('current5').addClass('previous5');
            oNxtPhoto.css({ opacity: 0.0 }).addClass('current5').animate({ opacity: 1.0 }, 2000,
                function() {
                    oCurPhoto.removeClass('previous5');
                });
        }


	     
		

