// JavaScript Document

function showSubNav(divId) {
	document.getElementById(divId+'SubNav').style.display = 'block';
	document.getElementById(divId+'Nav').style.backgroundPosition = 'bottom';
}

function hideSubNav(divId) {
	document.getElementById(divId+'SubNav').style.display = 'none';
	document.getElementById(divId+'Nav').style.backgroundPosition = 'top';
}

function swapImage(id, url) {
	document.getElementById(id).src = url;	
}

function submitForm(formName) {
	document[formName].submit();	
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}