function mainmenu(){
jQuery(" #nav ul ").css({display: "none"}); // Opera Fix
jQuery(" #nav li").hover(function(){
		jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).fadeIn(600);
		},function(){
		jQuery(this).find('ul:first').css({visibility: "hidden"});
		});
}

 jQuery(document).ready(function(){					
	mainmenu();
  jQuery(".mfilm").colorbox({iframe:true, innerWidth:425, innerHeight:344});

  // partnerseiten

  //* ausser IE
  if (!jQuery.browser.msie)jQuery("#c1726 a").mouseenter(function() {
    jQuery(this).append('<div id="partners"></div>');
    jQuery("#partners").toggle();
    var myurl = "http://www.it-haus.com/"+jQuery(this).attr("href");
    jQuery("#partners").append('<img width="380" height="300" alt="Partner" src="'+myurl+'" />');
    jQuery("#partners").fadeIn('slow');
    });
  if (!jQuery.browser.msie) jQuery('#c1726 a').mouseleave(function() {
    jQuery('#partners').remove();
    });

    // IE > 7
  if (jQuery.browser.msie && jQuery.browser.version > 7 )jQuery("#c1726 a").mouseenter(function() {
    jQuery(this).append('<div id="partners"></div>');
    jQuery("#partners").toggle();
    var myurl = "http://www.it-haus.com/"+jQuery(this).attr("href");
    jQuery("#partners").append('<img width="380" height="300" alt="Partner" src="'+myurl+'" />');
    jQuery("#partners").fadeIn('slow');
    });
  if (jQuery.browser.msie && jQuery.browser.version > 7 ) jQuery('#c1726 a').mouseleave(function() {
    jQuery('#partners').remove();
    });

    // IE <=7

   if (jQuery.browser.msie && jQuery.browser.version <= 5 )jQuery("#c1726 a").mouseenter(function() {
    var myurl = "http://www.it-haus.com/"+jQuery(this).attr("href");
    jQuery("#partner_ie7").append('<img width="380" height="300" alt="Partner" src="'+myurl+'" />');
    });
    if (jQuery.browser.msie && jQuery.browser.version <= 5 )jQuery('#c1726 a').mouseleave(function() {
    jQuery('#partner_ie7').empty();
    });
  if (jQuery.browser.msie && jQuery.browser.version <= 5 )jQuery("#c1726 a").tooltip({relative:'true', offset:[360, 250], direction:'right', effect: 'slide', opacity: '1',   tip:'#partner_ie7' }).dynamic({ bottom: { direction: 'down', bounce: true } });

  jQuery(".p429_lvl .hersteller-header").click(function() {
		jQuery(this).next().slideToggle("slow");
    jQuery(this).toggleClass("acc-open");
		return false;
	}).next().hide();
  jQuery(".p512_lvl .hersteller-header").click(function() {
		jQuery(this).next().slideToggle("slow");
    jQuery(this).toggleClass("acc-open");
		return false;
	}).next().hide();
  jQuery(".csc-frame-frame2 .csc-textpic-image dt img").hover(function() {
    jQuery(this).parent().parent().next().slideToggle("slow");
    jQuery(this).parent().parent().next().css('top', 0).css('left', (this.width+5));
  });
});
