/*
 * allgemeine JS Befehle 3iQ
 *
 */

/*<![CDATA[*/
<!-- 
/*_scriptCode*/
var browserName=navigator.appName;var browserVer=parseInt(navigator.appVersion);var version="";var msie4=(browserName=="Microsoft Internet Explorer"&&browserVer>=4);if((browserName=="Netscape"&&browserVer>=3)||msie4||browserName=="Konqueror"||browserName=="Opera"){version="n3";}else{version="n2";}
function blurLink(theObject){if(msie4){theObject.blur();}}
function decryptCharcode(n,start,end,offset){n=n+offset;if(offset>0&&n>end){n=start+(n-end-1);}else if(offset<0&&n<start){n=end-(start-n-1);}
return String.fromCharCode(n);}
function decryptString(enc,offset){var dec="";var len=enc.length;for(var i=0;i<len;i++){var n=enc.charCodeAt(i);if(n>=0x2B&&n<=0x3A){dec+=decryptCharcode(n,0x2B,0x3A,offset);}else if(n>=0x40&&n<=0x5A){dec+=decryptCharcode(n,0x40,0x5A,offset);}else if(n>=0x61&&n<=0x7A){dec+=decryptCharcode(n,0x61,0x7A,offset);}else{dec+=enc.charAt(i);}}
return dec;}
function linkTo_UnCryptMailto(s){location.href=decryptString(s,-1);}
// -->
/*]]>*/


$(document).ready(function() {function megaHoverOver(){$(this).find(".sub").stop().fadeTo('fast', 1).show();(function($) { jQuery.fn.calcSubWidth = function() {
rowWidth = 0;$(this).find("ul").each(function() {rowWidth += $(this).width(); 
});};})(jQuery);if ( $(this).find(".row").length > 0 ) { //If row exists...
var biggestRow = 0;$(this).find(".row").each(function() {							   
$(this).calcSubWidth();if(rowWidth > biggestRow) {
biggestRow = rowWidth;}});$(this).find(".sub").css({'width' :biggestRow});
$(this).find(".row:last").css({'margin':'0'});} else { //If row does not exist...
$(this).calcSubWidth();$(this).find(".sub").css({'width' : rowWidth});
}}function megaHoverOut(){$(this).find(".sub").stop().fadeTo('fast', 0, function() {
$(this).hide();});}var config = {sensitivity: 1, // number = sensitivity threshold (must be 1 or higher)    
interval: 50, // number = milliseconds for onMouseOver polling interval    
		 over: megaHoverOver, // function = onMouseOver callback (REQUIRED)    
		 timeout: 200, // number = milliseconds delay before onMouseOut    
		 out: megaHoverOut // function = onMouseOut callback (REQUIRED)    
	};
 
	$("ul#topnavcc li .sub").css({'opacity':'0'});
	$("ul#topnavcc li").hoverIntent(config);
}); 
/* 3iqMENU 
*/
 $(document).ready(function() {  
	  
      function show() {
        var menu = $(this);
        if(!menu.hasClass('active')&&!menu.parent().parent().hasClass('active'))
        {
        $('#topnavbb li.active ul').fadeOut("fast");
        }
        menu.children(".sub").css('left','-1px');
        menu.children(".sub").slideDown();
      }
     
      function hide() { 
	   var menu = $(this);
        if(!menu.hasClass('active')&&!menu.parent().parent().hasClass('active'))
        {
        menu.children(".sub").css('left','-1px');
        menu.children(".sub").fadeOut('fast');
		}
      }
  
      $('ul#topnavbb li').hoverIntent({
        sensitivity: 1, // number = sensitivity threshold (must be 1 or higher)
        interval: 5,   // number = milliseconds for onMouseOver polling interval
        over: show,     // function = onMouseOver callback (required)
        timeout: 110,   // number = milliseconds delay before onMouseOut
        out: hide       // function = onMouseOut callback (required)
      });
      $('ul#topnavbb').hover(function(){},function(){
		$('#topnavbb li.active ul.sub').fadeIn('fast');
		$('#topnavbb li.active ul').slideDown();
      });	  

});//Document ready

