/**
 * @author administrator
 */
$(document).ready(function(){
    $("#red").treeview({
        animated: "fast",
        collapsed: true,
        unique: true,
        toggle: function(){
            window.console && console.log("%o was toggled", this);
        }
    });
    $("#red span").mouseover(function(){
        $(this).css({
            "textDecoration": "underline",
            "color": "red",
            "cursor": "pointer"
        });
    }).mouseout(function(){
        $(this).css({
            "textDecoration": "none",
            "color": "#403000"
        });
    });
    $("#iframehidden iframe").addClass("hiddeniframe");
    $(".iframe0").removeClass("hiddeniframe");
    $("#red span").each(function(){
        $(this).click(function(index){
            var curclass = $(this).attr('class');
            $("#iframehidden iframe").not("#iframe" + curclass).addClass("hiddeniframe");
            $("#iframehidden iframe").filter("#iframe" + curclass).removeClass("hiddeniframe");
        });
    });
});
