function chkInstaller(name, hash, cp, kind, hash2){
	// ÆÄÀÏÀÌ¸§ , ÆÄÀÏ Çì½¬°ª , ÆÄÀÏ °¡Áö°í ÀÖ´Â ¾ÆÀÌµð , ½ÇÇà Á¾·ù(´Ù¿î·Îµå,½ÇÇà)
	try
	{
		var ocxObj	= null;
		ocxObj		= new ActiveXObject("CONSPOTAGENTKOREA.ConspotAgentKoreaCtrl.1");
		
		if(ocxObj)
		{	
			if (kind!="login"){
				// ´Ù¿î·Îµå ÄÜÆ®·Ñ·¯ ID »ý¼º
				
				d = document.getElementById('ConspotInstallerCheck');
				d.innerHTML = "<object classid='clsid:C09097D8-D55E-46C5-9D80-D4E1F72004C6' width='0' height='0' id='DownLoaderActiveX'></object>";
								
				if (kind=="down"){				//·Î±×ÀÎ ¾øÀÌ
					ConspotFileDownloadFree(cp,hash,name);
				}else if (kind=="buydown"){		//·Î±×ÀÎ ÇÏ°í
					ConspotFileDownload(cp,hash,name);
				}else if(kind=="exe"){
					ConspotGameExecute(hash,cp,hash2);
				}else if(kind=="freeplayer"){	
					ConspotMoviePlayerFree('',hash,name);
				}else if(kind=="iddown"){	
					ConspotFileDownloadWithID(cp,hash,name);
				}
			}
		}
		return true;
	}
	catch (e)
	{
		// ÀÎ½ºÅç·¯ ¼³Ä¡ ¾È³» Ç¥½Ã
		showDownload();
		return false;
	}
}

function hiddenDownload(){
	d = document.getElementById('DownloadInstaller');
	d.style.display = 'none';
	
}

function showDownload(){
	d = document.getElementById('DownloadInstaller');
	d.style.display = 'block';
	
	//if (Event==null){
	//	d.style.top = 300+document.body.scrollTop;
	//	d.style.left = document.body.clientWidth/2-150;
	//}else{
		d.style.top = event.clientY-130+document.body.scrollTop;
		d.style.left = document.body.clientWidth/2-150;
	//}
}
