<!--
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_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function dumpProps(obj, parent) {
   // Go through all the properties of the passed-in object
   for (var i in obj) {
	  // if a parent (2nd parameter) was passed in, then use that to
	  // build the message. Message includes i (the object's property name)
	  // then the object's property value on a new line
	  if (parent) { var msg = parent + "." + i + "\n" + obj[i]; } else { var msg = i + "\n" + obj[i]; }
	  // Display the message. If the user clicks "OK", then continue. If they
	  // click "CANCEL" then quit this level of recursion
	  if (!confirm(msg)) { return; }
	  // If this property (i) is an object, then recursively process the object
	  if (typeof obj[i] == "object") {
		 if (parent) { dumpProps(obj[i], parent + "." + i); } else { dumpProps(obj[i], i); }
	  }
   }
}	

function findObj(n, d) { 
	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[n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers.document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function submitDoc(formName) { 
  var obj;
	if (obj=findObj(formName)!=null) 
		findObj(formName).submit();
	else 
		alert('The form you are attempting to submit called ' + formName + ' couldn\'t be found. Please make sure the submitDoc function has the correct id and name.');
}

function setProp(targetObjId,targetPropName,sourceObjId,sourcePropName){
	targetObj = findObj(targetObjId);
	sourceObj = findObj(sourceObjId);
	targetObj.setAttribute(targetPropName,sourceObj.value);
	return;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function toggleDiv(objName) {
  var obj = MM_findObj(objName);
  if (obj.style.display == 'block') {
  	obj.style.display = 'none';
  } else {
  	obj.style.display = 'block';
  }
}

//this popup function is used for the gallery
function popUp(address,W,H,Name) {
eval("page" + Name + " = window.open(address, '" + Name + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+W+',height='+H+',left = 100,top = 100');");
eval("page" + Name + ".focus();");
}

//-->