var pageType;

function checkScrSetting() {
	if (screen.width != 800 && screen.width != 1024 && screen.width != 1152 && screen.width != 1280) {
		alert('Your screen setting cannot show the website property. Please switch to the screen width to 800, 1024, 1152 or 1280.');
		return false;
	}
}

function openWin(link) {
	window.open(link, '');
}

function adjustLayers(object, defLeft) {
	if ((document.layers && document.layers[object] != null) || document.all) {
		if (screen.width != 1024) {
			adjustLayerLeft(object, defLeft);
		}
	} else {
		alert("Your browser doesn't support layer.");
	}
}

function adjustLayerLeft(object, defLeft) {
	var nLeft;
	if (screen.width == 800) {
		
	} else if (screen.width == 1152) {
		
	} else if (screen.width == 1280) {
		
	}
	
	if (document.layers && document.layers[object] != null) {
		document.layers[object].left = nLeft;
	} else if (document.all) {
		document.all[object].style.posLeft = nLeft;
	}
}

function adjustLayerTop(object, defTop) {
	var nTop;
	
	if (document.layers && document.layers[object] != null) {
		document.layers[object].top = nTop;
	} else if (document.all) {
		document.all[object].style.posTop = nTop;
	}	
}	