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 resizeImage(img, width, height) {	
	if ( (width <= 0 && height <= 0) || (width > 0 && height > 0) )
		return;

	// Resize based on width
	if ( width > 0 ) {
		var wid = img.width;
		var perc = (width/wid);
		if ( perc < 1.0 ) {
			img.height = ((perc * img.height) | 0);
			img.width = width;
		}
	}
	// Resize based on height
	else if ( height > 0 ) {
		var hei = img.height;
		var perc = (height/hei);
		if ( perc < 1.0 ) {
			img.width = ((perc * img.width) | 0);
			img.height = height;
		}
	}
}