﻿$(document).ready(function() {

    /*$(".click_to_open").click(function() 
    {
    $(".click_to_open_div").slideUp("fast");
    $(this).next('div:first').slideDown("fast");
    });
    */

    $(".click_to_open").click(function() {

        var target_div = $("#" + $(this).attr("val"));
        var target_a = $("a[val= '" + $(this).attr("val") + "']");
        $("a.click_to_open").css('font-weight', 'normal');
        
        if (target_div.is(":hidden")) {
            $(".click_to_open_div").slideUp("fast");
            target_div.slideDown("fast");
            target_a.css('font-weight','bold');
        } else 
        {
            target_div.slideUp("fast");
            
        }

    });

});

/*
ddsmoothmenu.init({
    mainmenuid: "smoothmenu1", //menu DIV id
    orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
    classname: 'ddsmoothmenu', //class added to menu's outer DIV
    //customtheme: ["#1c5a80", "#18374a"],
    contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
*/

/*
Shadowbox.init({
    players: ["iframe", "img", "html", "swf"],
    handleOversize: "drag",
    counterType: "skip"
});
*/
