function MM_reloadPage(init) 
{  //reloads the window if Nav4 resized
  if (init==true) with (navigator) 
  {
	if ((appName=="Netscape")&&(parseInt(appVersion)==4)) 
	{
		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;
	}
  }
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

/***********************************************
/* Drop Down/ Overlapping Content- © Dynamic Drive (www.dynamicdrive.com)
/* This notice must stay intact for legal use.
/* Visit http://www.dynamicdrive.com/ for full source code
/***********************************************/

function getposOffset(overlay, offsettype)
{
	var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
	var parentEl=overlay.offsetParent;
	while (parentEl!=null)
	{
		totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
		parentEl=parentEl.offsetParent;
	}
	return totaloffset;
}

function overlay(curobj, subobjstr, opt_position)
{
	if (document.getElementById)
	{
		var subobj=document.getElementById(subobjstr)
		subobj.style.display=(subobj.style.display!="block")? "block" : "none"
		var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0) 
		var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)
		subobj.style.left=xpos+"px"
		subobj.style.top=ypos+"px"
		return false
	}
	else
	{
		return true;
	}
}

function overlayclose(subobj)
{
	document.getElementById(subobj).style.display="none"
}

///------------------------------------------------
/// Owner functions
///------------------------------------------------
/*function windowopener(URL,ancho,alto)
{
	var propiedades;
	propiedades = "toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=yes,width=" + ancho + ",height=" + alto;
	window.open(URL,'',propiedades)
	if (navigator.appVersion.indexOf("(X11") != -1 || navigator.appVersion.indexOf("(mac") != -1)
	window.open(URL,'',propiedades)

}*/

//helper function to create the form
function getNewSubmitForm()
{
 var submitForm = document.createElement("FORM");
 document.body.appendChild(submitForm);
 submitForm.method = "POST";
 submitForm.target = "_blank";
 return submitForm;
}

//function that creates the form, adds some elements
//and then submits it
function createFormAndSubmit(theURL)
{
 var submitForm = getNewSubmitForm();
 submitForm.action= theURL;
 submitForm.submit();
}

function windowopener(URL,ancho,alto)
{
  createFormAndSubmit(URL);
}

