function switchDisplayGroups(idson,idsoff){

   var arOn = idson.split(',');

  var arOff = idsoff.split(',');

  for(var i=0;i < arOn.length;i++){

     var obj = document.getElementById(arOn[i]);

     var anc = document.getElementById(arOn[i]+'_a');

     var imga = document.getElementById(arOn[i]+'_img');

     imga.src = imga.src.substring(0,imga.src.length-5)+'2.gif';

     anc.style.fontWeight = 'bold';
     anc.style.color = '#999';
     anc.style.backgroundImage = 'url(/gfx/arrow_channel2.gif)';

     obj.style.display = 'block';

     sIFR.prefetch(oneliner);
     sIFR.activate();

     sIFR.replace(oneliner, {
                  selector: '.Home H1'
                  ,css: [
                    '.sIFR-root { text-align: left; background-color: #E6E6E6;}'
                    ,'a { text-decoration: none }'
                    ,'a:link { color: #000000 }'
                    ,'a:hover { color: #CCCCCC }'
                  ]
    });

   }

  for(var i=0;i < arOff.length;i++){

    var obj = document.getElementById(arOff[i]);

    var anc = document.getElementById(arOff[i]+'_a');

    var imga = document.getElementById(arOff[i]+'_img');

    imga.src = imga.src.substring(0,imga.src.length-5)+'0.gif';

    anc.style.fontWeight = 'normal';
    anc.style.color = '#000';
    anc.style.backgroundImage = 'url(/gfx/arrow_channel1.gif)';

    obj.style.display = 'none';

  }

}

function showOn(imga){
  if(imga.src.charAt(imga.src.length-5)!='2'){
    imga.src = imga.src.substring(0,imga.src.length-5)+'1.gif';
  }
}
function showOff(imga){
  if(imga.src.charAt(imga.src.length-5)!='2'){
    imga.src = imga.src.substring(0,imga.src.length-5)+'0.gif';
  }
}

jQuery.noConflict();
jQuery(document).ready(function() {
    jQuery('.submenu').hide();

    jQuery('#mainmenu .topitem').each(function() {
      jQuery(this).css({'width': jQuery(this).width() + 20 + 'px'});
    });

    hover_config = {sensitivity: 3,
                    interval: 200,
                    timeout: 200,
                    over: function() {
                            if(jQuery('ul li', this).length != 0) {
                              var _this = this;
                              jQuery('#mainmenu').animate({height: '185px'}, 500, function() { jQuery('ul', _this).toggle(); });
                            }
                          },
                    out: function() {
                           jQuery('#mainmenu').animate({height: '30px'});
                           jQuery('ul', this).toggle();
                         }}

    jQuery('#mainmenu li').hoverIntent(hover_config);
    jQuery('#mainmen li').mouseout(function() {
      jQuery('.submenu', this).toggle();
    });

});
