$(document).ready(function(){

    $(function() {
        $('#set1 *').tooltip();
        $('.tooltip *').tooltip();
    });

    $('#btn1').click(function(){
        $('#img1').fadeIn();
        $('#img2').hide();
        $('#img3').hide();
        $('#img4').hide();
        $('#img5').hide();
        $('.current').removeClass('current');
        $(this).addClass('current');
        return false;
    });
    $('#btn2').click(function(){
        $('#img1').hide();
        $('#img2').fadeIn();
        $('#img3').hide();
        $('#img4').hide();
        $('#img5').hide();
        $('.current').removeClass('current');
        $(this).addClass('current');
        return false;
    });
    $('#btn3').click(function(){
        $('#img1').hide();
        $('#img2').hide();
        $('#img3').fadeIn();
        $('#img4').hide();
        $('#img5').hide();
        $('.current').removeClass('current');
        $(this).addClass('current');
        return false;
    });
    $('#btn4').click(function(){
        $('#img1').hide();
        $('#img2').hide();
        $('#img3').hide();
        $('#img4').fadeIn();
        $('#img5').hide();
        $('.current').removeClass('current');
        $(this).addClass('current');
        return false;
    });
    $('#btn5').click(function(){
        $('#img1').hide();
        $('#img2').hide();
        $('#img3').hide();
        $('#img4').hide();
        $('#img5').fadeIn();
        $('.current').removeClass('current');
        $(this).addClass('current');
        return false;
    });

    $(".preview a").animate({ opacity: 0}, 0).css("display", "block");
    $(".preview a").hover(
            function()
            {
                    $(this).stop().animate({ opacity: 1}, 300 );
            },
            function()
            {
                    $(this).stop().animate({ opacity: 0}, 200 );
            }
    );                
});

swfobject.embedSWF("http://www.dnd-creations.com/swf/home.swf", "baner", "950", "300", "9.0.0", "expressInstall.swf");

function scrollPage(){
    if(window.scrollY!=0) {
        window.scrollBy(0,-50);
        setTimeout('scrollPage()',20);
    }
}
