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();
	}

}

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
if (typeof(StartIniPlugin) != 'undefined'){
	StartIniPlugin();
        SetProperty("certmanui_phone", "NICE_ID|http://" + window.location.host + "/infovine/DownloadList&INITECH|KINGS");
        SetProperty("certmanui_phoneURL", "http://" + window.location.host + "/infovine/download.html");
        SetProperty("certmanui_phoneVer", "1,0,3,7" );
} else {
	setTimeout("StartIniPlugin()", 1000);
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
