﻿// aidrs page actions

//$(function () {
//    $('.lightmodal').lightBox();
//});

$(document).ready(function () {

    //menu
    $(this).find('.dropnav').css('display', 'none');

    $("#navigation .content ul li").hover(function () {
        $(this).find('.dropnav').css('display', 'inline-block');
        $(this).find('.dropnav.onama').stop().animate({ height: '220px', opacity: '100', '-ms-filter': 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)', filter: 'alpha(opacity=100)' }, { queue: false, duration: 250, easing: 'easeOutCubic' })
        $(this).find('.dropnav.legislativa').stop().animate({ height: '115px', opacity: '100', '-ms-filter': 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)', filter: 'alpha(opacity=100)' }, { queue: false, duration: 250, easing: 'easeOutCubic' })
        $(this).find('.dropnav.servisi').stop().animate({ height: '196px', opacity: '100', '-ms-filter': 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)', filter: 'alpha(opacity=100)' }, { queue: false, duration: 250, easing: 'easeOutCubic' })
    },
           function () {
               $(this).find('.dropnav').animate({ height: '0px', opacity: '0' }, 200, function () { $(this).css('display', 'none'); });
           });
       });

       function bookmark() {
           title = "Agencija za informaciono društvo Republike Srpske";
           url = "http://www.aidrs.org/";
           if (window.sidebar) { // Mozilla Firefox Bookmark
               window.sidebar.addPanel(title, url, "");
           } else if (window.external) { // IE Favorite
               window.external.AddFavorite(url, title);
           }
           else if (window.opera && window.print) { // Opera Hotlist
               return true;
           } 
       }
