﻿$(document).ready(function () {

    //$('#menu li').hover(function() {
    //        $(this).animate({ paddingLeft: '+=15px' }, 200);
    //    }, function() {
    //        $(this).animate({ paddingLeft: '-=15px' }, 200);
    //    });

    $('#header img').hover(function () {
        $(this).animate({ width: '+=15px' }, 200);
    }, function () {
        $(this).animate({ width: '-=15px' }, 200);
    });


    $('#PageWrapper img').hover(function () {
        $(this).animate({ height: '+=2px' }, 200);
    }, function () {
        $(this).animate({ height: '-=2px' }, 200);
    });
    // hide all the content panes when the page loads
    $('#AccordianDiv > div').hide();

    // uncomment the next line if you'd like the first pane to be visible by default
    $('#AccordianDiv > div:first').show();

    $('#AccordianDiv h3').click(function () {
        $('#AccordianDiv > div').hide();
        $(this).next().animate(
	    { 'height': 'toggle' }, 1500, 'easeOutBounce'
    );
    });


    $('#TestiPop1, #TestiPop2').hide();

    $('#Testi1').click(function () {
        $('#TestiPop1, .closebtn').fadeIn(1000).corners();


    });

    $('#Testi2').click(function () {
       
        $('#TestiPop2, .closebtn').fadeIn(1000).corners();


    });

    $('.closebtn').click(function () {

        $('#TestiPop1, #TestiPop2').fadeOut(1000);
//        $('#TestiPop1, #TestiPop2').hide();
    });




});





