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);

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

<!--
// Global variable for Cross-browser AutoScroller 
flevTimeoutID = null;

function MM_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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function flevDivPositionValue(sDivID, sPositionProperty) { // v1.0, Marja Ribbers-de Vroed  
    var sPositionValue;
	// ***** W3C Compatible DOM (NN6, Mozilla 16, etc.) ***** 
    if (document.getElementById && !document.all) { //W3C DOM compliant 
       var docObj = document.getElementById(sDivID); 
		if (document.defaultView != null) { // NS6+ alike 
			sPositionValue = document.defaultView.getComputedStyle(docObj, "").getPropertyValue(sPositionProperty); 
			} 
		else { // Opera 5 alike 
			if (sPositionProperty == "height") { sPositionValue = docObj.style.pixelHeight; } 
			else if (sPositionProperty == "width") { sPositionValue = docObj.style.pixelWidth; } 
			else { sPositionValue = eval("docObj.style." + sPositionProperty); } 
			} 
		sPositionValue = (sPositionValue == "") ? "0" : sPositionValue; 
    	} 
    // ***** Netscape Navigator 4+ DOM ***** 
    else if (document.layers) { //NS4+ DOM compliant 
		var docObj = eval("MM_findObj('" + sDivID + "')"); 
		if ((sPositionProperty == "width") || (sPositionProperty == "height")) { sPositionValue = eval("docObj.clip." + sPositionProperty); } 
		else { sPositionValue = eval("docObj." + sPositionProperty); } 
		sPositionValue = (sPositionValue == "") ? "0" : sPositionValue; 
    	} 
    // ***** Internet Explorer 4+ DOM ***** 
    else if (document.all) { //IE4+ DOM compliant 
		if (sPositionProperty == "width") { sPositionValue = eval(sDivID + ".offsetWidth"); } 
		else if (sPositionProperty == "height") { sPositionValue = eval(sDivID + ".offsetHeight"); } 
		else if (sPositionProperty == "top") { sPositionValue = eval(sDivID + ".offsetTop"); } 
		else if (sPositionProperty == "left") { sPositionValue = eval(sDivID + ".offsetLeft"); } 
		sPositionValue = (sPositionValue == "") ? "0" : sPositionValue; 
    	} 
	if (isNaN(sPositionValue)) { if (sPositionValue.indexOf('px') > 0) { sPositionValue = sPositionValue.substring(0,sPositionValue.indexOf('px')); } } 
	return parseInt(sPositionValue); 
}

function flevMoveDiv(sDivID, sLeft, sTop){ // v1.0, Marja Ribbers-de Vroed 
	var	docObj = eval("MM_findObj('" + sDivID + "')"); 
	if (document.layers) { // NS4.x 
		eval("docObj.top = '" + sTop + "'"); 
		eval("docObj.left = '" + sLeft + "'"); 
	} 
	else { // all others 
		eval("docObj.style.top = '" + sTop + "'"); 
		eval("docObj.style.left = '" + sLeft + "'"); 
	} 
}

function flevAutoScrollDivs() { // v1.0, Marja Ribbers-de Vroed   
	var iArgs = flevAutoScrollDivs.arguments.length;   
	var sContainerDivID = 'AutoScrollContainer';   
	var sContentDivID = 'AutoScrollContent';   
	var iStartScrolling = (iArgs > 0) ? parseInt(flevAutoScrollDivs.arguments[0]) : 1;  
	var iPixels = (iArgs > 1) ? parseInt(flevAutoScrollDivs.arguments[1]) : 1;   
	var iDelay = (iArgs > 1) ? parseInt(flevAutoScrollDivs.arguments[2]) : 50;   
	var iCurrentTop = flevDivPositionValue(sContentDivID, 'top');   
	var iScrollTop = (-1 * flevDivPositionValue(sContentDivID, 'height'));   
	var iScrollBottom = flevDivPositionValue(sContainerDivID, 'height');   
	var iCurrentLeft = flevDivPositionValue(sContentDivID, 'left');  
	if (iStartScrolling) {   
		if (iCurrentTop != iScrollTop) {flevMoveDiv(sContentDivID, String(iCurrentLeft), String(iCurrentTop-iPixels));}	// Continue scrolling   
		else {flevMoveDiv(sContentDivID, String(iCurrentLeft), String(iScrollBottom));}	// Re-position scrolling layer at bottom of containing layer  
		flevTimeoutID = setTimeout("flevAutoScrollDivs(" + iStartScrolling + "," + iPixels + "," + iDelay + ")", iDelay);   
	}   
	else if (flevTimeoutID != null) {clearTimeout(flevTimeoutID);}
}


