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 setView (objectID) {
	
	var object = document.getElementById (objectID);
	var View = document.getElementById ('View');
	
	switch (objectID){
		case ('Per01'):
		View.style.backgroundImage =  'url(images/kraspolpersp01.jpg)';
		View.innerHTML =  '<table width="100%" height="1px" cellpadding="0" cellspacing="0"><tr><td align="left"><a class="super" href ="kraspolpersp02.html"><img src="images/2.gif" alt="Назад" width="30" height="30" border="0"></a></td><td align="right"><a class="super" href ="kraspolpersp02.html"><img src="images/1.gif" alt="Вперед" width="30" height="30" border="0"></a></tr></table>';
		View.style.display  = "none";
		View.style.display  = "";
		break;
		case ('map01'):
		View.style.backgroundImage =  'url(images/kraspolmap.jpg)';
		View.innerHTML =  '<table width="100%" height="1px" cellpadding="0" cellspacing="0"><tr><td align="left"><a class="super" href ="index.html"><img src="images/2.gif" alt="Назад" width="30" height="30" border="0"></a></td><td align="right"><a class="super" href ="fly_see.html"><img src="images/1.gif" alt="Вперед" width="30" height="30" border="0"></a></tr></table>';
		View.style.display  = "none";
		View.style.display  = "";
		
		break;
		case ('Ren01'):
		View.style.backgroundImage =  'url(images/kraspolview02.jpg)';
		View.innerHTML =  '<table width="100%" height="1px" cellpadding="0" cellspacing="0"><tr><td align="left"><a class="super" href ="kraspolview01.html"><img src="images/2.gif" alt="Назад" width="30" height="30" border="0"></a></td><td align="right"><a class="super" href ="kraspolview03.html"><img src="images/1.gif" alt="Вперед" width="30" height="30" border="0"></a></tr></table>';
		View.style.display  = "none";
		View.style.display  = "";
		break;
		
	}
}


	
	