jq(document).ready(function(){ 
       jq(".LSBox").mouseover(function(){
          if (jq("#searchSection").is(":hidden")) {
          jq("#searchSection").slideDown("fast");
          }
       });
       jq("#portal-logo").mouseover(function(){
           if (jq("#searchSection").is(":visible")) {
          jq("#searchSection").slideUp("fast");
          }
       });
       jq("#region-content").mouseover(function(){
           if (jq("#searchSection").is(":visible")) {
          jq("#searchSection").slideUp("fast");
          }
       });
       jq("#portal-personaltools-wrapper").mouseover(function(){
           if (jq("#searchSection").is(":visible")) {
          jq("#searchSection").slideUp("fast");
          }
       });
       jq("#visual-portal-wrapper").mouseleave(function(){
           if (jq("#searchSection").is(":visible")) {
          jq("#searchSection").slideUp("fast");
          }
       }); 
} );

jq(document).ready(function(){
   // jq(".portletSitemapTree").boxShadow( 3, 3, 0, 0, 8, "#CCC");
   jq(".portletSitemapTree").hide();
   jq("#left_navigation li a").each(function(itemIndex,tab) { 
       var itemclass = jq(tab).attr('class');
       var top_left = jq(tab).offset();
       jq(tab).mouseover(function(){ 
           jq(".portletSitemapTree").css({top:top_left.top-2});
           jq(".portletSitemapTree dd ul li").hide();
           jq(".portletSitemapTree").mouseover(function(){ jq(".portletSitemapTree").show(); }).mouseout(function(){jq(".portletSitemapTree").hide() } ).show();
           jq(".portletSitemapTree dd ul li:has(a[title='" +itemclass+ "'])").show()
           if(jq(".portletSitemapTree li:has(a[title='" +itemclass+ "']) ul li").is(":hidden")) { jq(".portletSitemapTree li:has(a[title='" +itemclass+ "']) ul li").show() }
       } )
       jq(tab).mouseout(function(){jq(".portletSitemapTree").hide(); } )
   } )
} );

jq(document).ready(function(){
   jq("#objektwechsler").boxShadow( 3, 3, 0, 4, 8, "#CCC");
   jq("#objektwechsler").hide();
   jq("#siteaction-objektwechsler").click(function(){
       jq("#objektwechsler").click(function(){ jq("#objektwechsler").show();return true;}).mouseleave(function(){jq("#objektwechsler").hide()}).show();
       return false;
   } )
} );

