// JavaScript Document

//<![CDATA[

function DOM(n) 
{
	if (document.all) return(document.all[n]);
	if (document.getElementById) return(document.getElementById(n));
	return(null);
}


function toggleDisplay( n ) 
{
	var o = DOM(n);

	if ( o == null )
		return;

	o.style.display = (o.style.display == '') ? "none" :  "";
}

function hide( n ) {
	var o = DOM(n);

	if ( o == null )
		return;

	if ( o.style.display == "" )
		o.style.display = "none";
}

function show( n ) {
	var o = DOM(n);

	if ( o == null )
		return;

	if ( o.style.display == "none" )
		o.style.display = "";
}

function showpanel( n ) {

	hide("panel_band");
	hide("panel_dj");
	hide("panel_home");
	hide("panel_karaoke");
	hide("panel_podcast");
	hide("panel_worship");
	show( n );
	
	MMCU_SelectCurrent();

}

function paneldefault() {
	if ( gROElement != null )
		return;
	MMCU_swapImage('title_band','','images/band_hot.gif',1);
	MMCU_SelectCurrent();
	gROElementSelRestoreSrc = 'images/band_cold.gif';
}

var gROElement = null;
var gRORestoreSrc= "";

var gROElementSel;
var gROElementSelRestoreSrc= "";

function MMCU_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MMCU_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MMCU_swapImage( n, b1, swapsrc, b2 ) { //v3.0
   if ((x=MMCU_findObj(n))!=null) {
        if ( gROElementSel == x )
            return;
	   gROElement=x; 
	   gRORestoreSrc = x.src;
	   x.src = swapsrc;
   }
}
function MMCU_swapImgRestore() { //v3.0
    if ( gROElementSel == gROElement )
        return;
	if ( gROElement != null ) {
		gROElement.src = gRORestoreSrc;
	}
	gROElement = null;
}

function MMCU_SelectCurrent() {
    if ( gROElementSel == gROElement )
        return;
	if ( gROElementSel != null ) {
		// remove current selection if there is one
		gROElementSel.src = gROElementSelRestoreSrc;				
	}
	gROElementSel = gROElement;
	gROElementSelRestoreSrc = gRORestoreSrc;
}

function MMCU_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MMCU_p) d.MMCU_p=new Array();
   var i,j=d.MMCU_p.length,a=MMCU_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MMCU_p[j]=new Image; d.MMCU_p[j++].src=a[i];}}

for(i=0; i<a.length; i++) {
//alert(a[i]);
}
}
var fInited = true;
function init_rollover() {
if ( fInited==true ) return;
MMCU_preloadImages('/images/nav/product_registration_o.gif','/images/nav/dealer_locator_o.gif','/images/nav/forums_o.gif','/images/nav/software_central_o.gif','/images/nav/tech_support_o.gif','/images/nav/corporate_info_o.gif','/images/nav/search_o.gif','/images/nav/mixers_o.gif','/images/nav/large_format_consoles_o.gif','/images/nav/active_speakers_o.gif','/images/nav/passive_speakers_o.gif','/images/nav/amps_o.gif','/images/nav/recorders_o.gif','/images/nav/home_o.gif','/images/nav_switch/sr_record_o.gif','/images/nav_switch/sr_install_o.gif','/images/nav_sub/about_mackie_o.gif','/images/nav_sub/mackie_technology_o.gif','/images/nav_sub/press_o.gif','/images/nav_sub/jobs_o.gif','/images/nav_sub/investor_info_o.gif','/images/nav_sub/mackie_gear_o.gif','/images/nav_sub/contact_o.gif','/images/nav_sub/legal_o.gif');
fInited = true;
}


//]]>


