function rollover2(a, c, b) {
	str = a.src;
	if (!a.src) str = a.firstChild.src;
	str = c ? str.indexOf(".jpg") > 0 ? str.substring(0, str.length - 4) + "b.jpg" : str.substring(0, str.length - 4) + "b.gif" : str.indexOf(".jpg") > 0 ? str.substring(0, str.length - 5) + ".jpg" : str.substring(0, str.length - 5) + ".gif";
	a.firstChild.src = str;
	if (b) {
		a.onmouseover = function() { };
		a.onmouseout = function() { }
	} 
	  }


  var HidingTimer_Mega
  function mega_drop(par, ns, open, rover) {
	  if (open) {
		  clearTimeout(HidingTimer_Mega);
		
		  var pheight = $(par).height()
	  
		  $('.megaMenu_dropdown').each(function(index) {
			  if (rollover_array[index] != '') {
				 document.getElementById('img_' + this.id).src = rollover_array[index]
			  }
			  if ((this.id == ns)) {
				  if (rollover_array_b[index] != '') {
					  document.getElementById('img_' + this.id).src = rollover_array_b[index]
				  }
				  $(this).show()
			  } else {
				  $(this).hide()
			  }
		  })
	  
		  var coords_md = $('#mainDiv').offset()
		  var coords_par = $(par).offset()
		  $('#' + ns).css({
			  
			  position: 'absolute',
			  zIndex: 5000,
			  left: coords_md.left + 'px',
			  top: (coords_par.top + pheight) + 'px'
		  });
	  } else {
		  HidingTimer_Mega = setTimeout('mega_hide("' + ns + '")', 1000)
	  }
  }

  $(window).load(function() {
		$('.megaMenu_dropdown').each(function(index) {
			$(this).mouseover(function() { clearTimeout(HidingTimer_Mega); $(this).show() })
		//	$(this).mouseout(function() { HidingTimer_Mega = setTimeout('mega_hide("' + this.id + '")', 200) })
		})          
	})

	function mega_hide(ns, par) {
		$('#' + ns).hide()
		$('.megaMenu_dropdown').each(function(index) {
			if (rollover_array[index] != '') {
				document.getElementById('img_' + this.id).src = rollover_array[index]
			}
		})               
	}
