﻿/*!
* codrinbaleanu.ro UI Enhancement scripts
*
* http://codrinbaleanu/
*/

$(document).ready(function () {
    Galleria.loadTheme('Scripts/themes/classic/galleria.classic.min.js');
    $('#Gallery').galleria({
        width: 789,
        height: 525,
        autoplay: 5000,
        clicknext: true,
        preload: 2,
        thumbnails: false
    });
    $('.Trigger1').hover(function () {
        $('.Popup1').stop(false, true).animate({ opacity: "show", top: "5" }, "slow");
    }, function () {
        $('.Popup1').stop(false, true).animate({ opacity: "hide", top: "5" }, "slow");
    });
    $('.Trigger2').hover(function () {
        $('.Popup2').stop(false, true).animate({ opacity: "show", top: "5" }, "slow");
    }, function () {
        $('.Popup2').stop(false, true).animate({ opacity: "hide", top: "5" }, "slow");
    });
    $('.Trigger3').hover(function () {
        $('.Popup3').stop(false, true).animate({ opacity: "show", top: "5" }, "slow");
    }, function () {

        $('.Popup3').stop(false, true).animate({ opacity: "hide", top: "5" }, "slow");
    });
    $('.Trigger4').hover(function () {
        $('.Popup4').stop(false, true).animate({ opacity: "show", top: "5" }, "slow");
    }, function () {
        $('.Popup4').stop(false, true).animate({ opacity: "hide", top: "5" }, "slow");
    });
    $(".SecondColumn").click(function () {
        window.location = $(this).find("a").attr("href"); return false;
    });

    $(".FirstColumn li").hover(function () {
        $(this).toggleClass("highlight");

    });
});
