/* ** logo.js */ $(document).ready(function() { // first hide all level2 navigations $("ul.bon-navi2").hide(); // for all level1 li's sets the hover event handler $("ul.bon-navi1 > li").hover(function() { // on mouseover fadeIn $("ul.bon-navi2", this).fadeIn(300, function() {}); }, function() { // on mouseout fadeOut $("ul.bon-navi2", this).fadeOut(200, function() {}); }); // initialize all navigation entries $("ul.bon-navi1 a").each(function(){ var instance = $(this); this.backgroundColor = instance.css("background-color"); instance.css("background-color", this.backgroundColor); }); // for all navigation a's sets the hover event handler $("ul.bon-navi1 a").hover(function() { // on mouseover fadeIn $(this).animate({ backgroundColor: "#66cc99" }, 300); }, function() { // on mouseout fadeOut $(this).animate({ backgroundColor: this.backgroundColor }, 200); }); $("a").click(function() { $("div.content").fadeOut(500); /* var me = this; window.setTimeout(function() { window.location.href = me.getAttribute("href", "false"); }, 100); return false; */ }); // for all subtexts install a accordion $("div.content_articlelist div.content_title").css({ marginTop: "0px", marginBottom: "0px", paddingTop: "4px", paddingBottom: "4px", paddingLeft: "26px" }); $("div.content_articlelist div.content_text").css({ marginTop: "0px", marginBottom: "0px", marginLeft: "0px" }); $("div.content_accordion").accordion({ animated: 'slide' }); $("div.content").hide().fadeIn(500); });