/* INISAFE Web V6 - noframe.js */

/********************************************************************
1. »ç¿ë¹ý ¹Ýµå½Ã <body></body> »çÀÌ¿¡ ´ÙÀ½°ú °°ÀÌ »ç¿ëÇØ¾ßÇÔ
  <script language="javascript" src="/initech/plugin/noframe.js"></script>
********************************************************************/

var checkFrame = false;
function StartIniPlugin()
{
	// INIplugin.js, install.js, cert.js ·Îµù¿©ºÎ È®ÀÎ
	if ( (typeof(LoadPlugin) == 'undefined') || (typeof(SCert) == 'undefined') || (typeof(LoadCert) == 'undefined'))
	{
		if (checkFrame == false)
		{
			checkFrame = true;
			alert("reCheck");
			setTimeout("StartIniPlugin()", 2000);
			return;
		} else 
			alert("install.js/cert.js/INIplugin.js ÆÄÀÏÀÌ includeµÇÁö ¾Ê¾Ò½À´Ï´Ù.")
			return;
	}

	//ÀÌÁß·Îµå ¹æÁö
	if (typeof (ModuleInstallCheck) == "function") {
 		if (ModuleInstallCheck() != null) {
		//	alert("find secureframe skip noframe...");
			return;
		}
	}

    //document.writeln('<span id="secure" style="display:block;">');
    //document.writeln('noframe.js start');
	CheckPlugin();
	//document.writeln('noframe.js end');
	//document.writeln('</span>');
	
	if (!LoadCert(SCert)) {
		//alert("º¸¾È Àç¼³Á¤ÁßÀÔ´Ï´Ù.");
		//location.reload();
		setTimeout("StartIniPlugin()", 1000);
	}

}

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
if (typeof(StartIniPlugin) != 'undefined')
	StartIniPlugin();
else
	setTimeout("StartIniPlugin()", 1000);
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
