﻿/// <reference path="jquery-1.3.2.min.js" />

$(document).ready(function() {
//    if (navigator.userAgent.indexOf("MSIE 6.0") > -1) {
//        $('div, span, a, :not(a.button, a.button span)').filter(function() {
//            if ($(this).css('backgroundImage').indexOf('.png') > -1)
//                return true;
//            else
//                return false;
//        }).each(function() {
//            DD_belatedPNG.fixPng(this);
//        });
//    }

    $("#showArchive").click(function() {
        $("#archiveList").show();
    });

    $("#HiddenInfoLink").click(function() {
        $("#HiddenCenterInfo").show();
    });

    $("#topdiv #flagsdiv").hover(function() {
        $("#langSelect").show();
    }, function() {
        $("#langSelect").hide();
    });
    $('#FadingProducts').innerfade({
        speed: 'slow',
        timeout: 7000,
        type: 'random_start',
        containerheight: '120px'
    });


    $("a.iframe").fancybox();

    $("a#inline").fancybox({
        'hideOnContentClick': true
    });

    $("a.group").fancybox({
        'zoomSpeedIn': 300,
        'zoomSpeedOut': 300,
        'overlayShow': false
    });


    $("#educationList a.accordion").click(function() {
        var rowdisplay = $('<tr></tr>').css('display');


        $("#educationList tr").removeClass("orange").filter(".content:visible").hide();
        $(this).closest("tr").addClass("orange").next().css("display", rowdisplay);

        return false;
    });
});
