// Java Document

function openPopup( strURL, intWidth, intHeight, blnNewWindow ) 
	{ 
	//zubin
	//alert('z');
	var intScreenHeight = 0;
	//	get screen height
	if( parseInt( navigator.appVersion ) > 3 ) {
		intScreenHeight = screen.availHeight;
		if( !intScreenHeight ) {
			intScreenHeight = screen.height;
		}
	} else if(
			navigator.appName == "Netscape" && 
			parseInt( navigator.appVersion ) == 3 && 
			navigator.javaEnabled()
		) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit();
		var jScreenSize = jToolkit.getScreenSize();
		intScreenHeight = jScreenSize.height;
	} else {
		alert( 'Can\'t detect screen resolution' );
		return;
	}
	//	adjust dimensions if necessary
	if( intHeight > intScreenHeight ) {
		intHeight = intScreenHeight - 10;
	}
	if( blnNewWindow ) {
		//	new window
		var openPopup = window.open( strURL,'popup','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=' + intWidth + ',height=' + intHeight );
		openPopup.focus();
	} else {
		//	same window
		window.resizeTo( intWidth, intHeight );
	}
	return;
}

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_showCounty() { //v3.0
  document.images("subdivn").src = "Assets/images/county_division_overlay.gif";
}

function MM_showDistrict() { //v3.0
  document.images("subdivn").src = "Assets/images/district_ward_overlay.gif";
}

function MM_showMap() { //v3.0
  document.images("subdivn").src = "Assets/images/district_map.gif";
}