<!--
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_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_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 MM_reloadPage(init) {  //Updated by PVII. 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);

function MM_findObj(n, d) { //v4.0
  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=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function flevDivPositionValue(sDiv, sProperty) { // v1.1, Marja Ribbers-de Vroed  
	this.opera = (window.opera); // Opera 5+
	this.ns4 = (document.layers); // Netscape 4.x
	this.ns6 = (document.getElementById && !document.all); // Netscape 6+
	this.ie = (document.all);  // Internet Explorer 4+
    var sValue = ""; docObj = eval("MM_findObj('" + sDiv + "')"); 
	if (this.opera) { 
		if (sProperty == "height") { sValue = docObj.style.pixelHeight; } 
		else if (sProperty == "width") { sValue = docObj.style.pixelWidth; } 
		else { sValue = eval("docObj.style." + sProperty); } 
	} 
	else if (this.ns4) { 
		if ((sProperty == "width") || (sProperty == "height")) { sValue = eval("docObj.clip." + sProperty); } 
		else { sValue = eval("docObj." + sProperty); } 
    } 
	else if (this.ns6) { sValue = document.defaultView.getComputedStyle(docObj, "").getPropertyValue(sProperty); } 
    else if (this.ie) { 
		if (sProperty == "width") { sValue = eval(sDiv + ".offsetWidth"); } 
		else if (sProperty == "height") { sValue = eval(sDiv + ".offsetHeight"); } 
		else if (sProperty == "top") { sValue = eval(sDiv + ".offsetTop"); } 
		else if (sProperty == "left") { sValue = eval(sDiv + ".offsetLeft"); } 
   	} 
	sValue = (sValue == "") ? 0 : sValue; 
	if (isNaN(sValue)) { if (sValue.indexOf('px') > 0) { sValue = sValue.substring(0,sValue.indexOf('px')); } } 
	return parseInt(sValue); 
}

function flevMoveDiv(sDivID, sLeft, sTop){ // v1.2, Marja Ribbers-de Vroed 
	var	docObj = eval("MM_findObj('" + sDivID + "')"), sSuffix=""; 
	if (!document.layers) { // not NS4.x 
		docObj = docObj.style;
	}
	if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1) && (!window.opera)) {sSuffix="px";}
	if (sLeft != "") {eval("docObj.left = '" + sLeft + sSuffix + "'");}
	if (sTop != "") {eval("docObj.top = '" + sTop + sSuffix + "'");}
}

function flevPersistentLayer() { // v2.1, Marja Ribbers-de Vroed
	if (arguments.length < 7) {return;}
	// gather arguments
	var sDivID = arguments[0]; if (sDivID == "") {return;}
	var sPersistLeft = arguments[1], sPersistCenterX = arguments[2], sPersistRight = arguments[3];
	var sPersistTop = arguments[4], sPersistCenterY = arguments[5], sPersistBottom = arguments[6];
	var iDelay = ((arguments.length > 7) && (!isNaN(arguments[7]))) ? parseInt(arguments[7]) : 10;
	var iPx = ((arguments.length > 8) && (!isNaN(arguments[8]))) ? parseInt(arguments[8]) : 0;
	// determine current document window size and scroll position
	var iWinWidth, iWinHeight, iScrollX, iScrollY;
	if (window.innerWidth) { // NS4, NS6 and Opera
		iWinWidth = window.innerWidth;
		iWinHeight = window.innerHeight;
		iScrollX = window.pageXOffset;
		iScrollY = window.pageYOffset;
		}
	else if (document.documentElement && document.documentElement.clientWidth) { // IE6 in standards compliant mode
		iWinWidth = document.documentElement.clientWidth; 
		iWinHeight = document.documentElement.clientHeight; 
		iScrollX = document.documentElement.scrollLeft;
		iScrollY = document.documentElement.scrollTop;
		}
	else if (document.body) { // IE4+
		iWinWidth = document.body.clientWidth; 
		iWinHeight = document.body.clientHeight; 
		iScrollX = document.body.scrollLeft;
		iScrollY = document.body.scrollTop;
		}
	else {return;}
	var iNewX, iNewY,  bPersist = false;
	// determine current layer position
	var iCurX = flevDivPositionValue(sDivID, 'left'), iCurY = flevDivPositionValue(sDivID, 'top');
	// calculate new X coordinate
	if (sPersistCenterX != "") {iNewX = Math.round(iScrollX + (iWinWidth/2) - (flevDivPositionValue(sDivID, 'width')/2));}
	else if (sPersistLeft != "") {iNewX = iScrollX + parseInt(sPersistLeft);}
	else if (sPersistRight != "") {iNewX = iScrollX + iWinWidth - (flevDivPositionValue(sDivID, 'width') + parseInt(sPersistRight));}
	else {iNewX = flevDivPositionValue(sDivID, 'left');}
	// calculate new Y coordinate
	if (sPersistCenterY != "") {iNewY = Math.round(iScrollY + (iWinHeight/2) - (flevDivPositionValue(sDivID, 'height')/2));}
	else if (sPersistTop != "") {iNewY = iScrollY + parseInt(sPersistTop);}
	else if (sPersistBottom != "") {iNewY = iScrollY + (iWinHeight - flevDivPositionValue(sDivID, 'height') - parseInt(sPersistBottom));}
	else {iNewY = flevDivPositionValue(sDivID, 'top');}
	// force persistency?
	if ((iCurX != iNewX) || (iCurY != iNewY)) {bPersist = true;} 
	if (bPersist) { // layer position needs to be adjusted
		var bMac = (navigator.platform.toLowerCase().indexOf("mac") != -1); 
		if ((iPx > 0) && (!bMac)) { // animated persistency (doesn't work right yet on Mac)
			var iPxX = iPx, iPxY = iPx, iMoveX = Math.abs(iCurX - iNewX), iMoveY = Math.abs(iCurY - iNewY);
			// take care of diagonal movement
			if (iMoveX < iMoveY) {iPxY = (iMoveX != 0) ? Math.round(Math.abs(iMoveY/iMoveX)*iPx) : iPx;}
			else {iPxX = (iMoveY != 0) ? Math.round(Math.abs(iMoveX/iMoveY)*iPx) : iPx;}
			// calculate temporary X/Y coordinates
			if ((iCurX < iNewX) && (iCurX + iPxX < iNewX)) {iNewX = iCurX + iPxX;}
			if ((iCurX > iNewX) && (iCurX - iPxX > iNewX)) {iNewX = iCurX - iPxX;}
			if ((iCurY < iNewY) && (iCurY + iPxY < iNewY)) {iNewY = iCurY + iPxY;}
			if ((iCurY > iNewY) && (iCurY - iPxY > iNewY)) {iNewY = iCurY - iPxY;}
		}
		var sNewX = (iCurX != iNewX) ? String(iNewX) : "";
		var sNewY = (iCurY != iNewY) ? String(iNewY) : "";
		flevMoveDiv(sDivID, sNewX, sNewY);
	}
	var sFunction = "flevPersistentLayer('" + sDivID + "','" + sPersistLeft + "','" + sPersistCenterX + "','" + sPersistRight + "','" + sPersistTop + "','" + sPersistCenterY + "','" + sPersistBottom + "'," + iDelay + "," + iPx + ")"; 
	var tmpTimeout = setTimeout(sFunction,iDelay);
}
//-->
