var flashVersion=false;
var nn=(navigator.appName.charAt(0)=="N");
var n6=(document.getElementById && nn) || false;
var ie=(document.all && !nn) || false;
var mac=(navigator.userAgent.indexOf("Mac")!=-1) || false;
var ver=""+navigator.appVersion;
var fno=ver.indexOf(" ");
var macChecked=0;
ver=eval(ver.substring(0,fno));

if (window.opera || mac) {
	for (i = 0; i < navigator.plugins.length; i++) {
		pName = navigator.plugins[i].description;
		if (pName.indexOf("Flash", 0) != -1) {
			flashVersion = pName.substr(pName.indexOf("Flash", 0)+6, 1);
		}
	}
} else {
	if (ie && !mac) {
		var flashVersion=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").FlashVersion();
		flashVersion=Math.floor(flashVersion / 0x10000);
	}
}

if (!flashVersion) {
	if (nn && !document.plugins) flashVersion=false;
	else if ((nn || n6) && navigator.plugins) flashVersion=navigator.plugins["Shockwave Flash"].description.charAt(16);
	else flashVersion=false;
}


//********************************************************
function chkflash() {
	if (!flashVersion) {
		return "NG";
	}
	if (flashVersion >= 9) {
		return "OK";
	} else {
		if (flashVersion == 1) {
			return "OK";
		} else {
			return "NG";
		}
	}
}


//********************************************************
function showAlert() {
	if (chkflash() == 'NG') {
		document.write('<div class="emphasisNotation jsDisable" style="margin-top:10px;">');
		document.write('<div>');
		document.write('<p>We recommend using the latest Flash Player to view this page. Please go to website to update <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash Player.</a></p>');
		document.write('</div><!--/emphasisNotation jsDisable-->');
		document.write('</div>');
	}

if (kl_windowwidth() < 944 || kl_windowheight() < 634) {
		document.write('<div class="emphasisNotation jsDisable" style="margin-top:10px;">');
		document.write('<div>');
		document.write('<p>Please view this content  in monitors with 1024*768 or higher resolution.</p>');
		document.write('</div><!--/emphasisNotation jsDisable-->');
		document.write('</div>');
	}
}


//********************************************************
function kl_windowwidth(){
	return screen.availWidth;
}


//********************************************************
function kl_windowheight(){
	return screen.availHeight;
}
