var baseURL = "http://" + window.location.host + "/initech/plugin/";
var manualInstallURL	= baseURL + "down/download.html";
var InstallPluginURL   = "http://" + window.location.host + "/initech/plugin/site/install.html";
function _getCookie_( name )
{
	var nameOfCookie = name + "=";
	var x = 0;
	while ( x <= document.cookie.length )
	{
		var y = (x+nameOfCookie.length);
		if ( document.cookie.substring( x, y ) == nameOfCookie )
		{
		if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
			endOfCookie = document.cookie.length;
		return unescape( document.cookie.substring( y, endOfCookie ) );
		}
		x = document.cookie.indexOf( " ", x ) + 1;
		if ( x == 0 )
			break;
	}
	return "";
}

var InitechGroupID = _getCookie_("IDC");
if (InitechGroupID == "") InitechGroupID = "60/tst/";

//2007/01/25 ÀÌ¿µ¿ì À©µµ¿ì ºñ½ºÅ¸ °ü·Ã Ãß°¡
//2007/03/29 Àüº´±Ç Ç×»ó ºñ½ºÅ¸Áö¿ø¹öÀüÀ¸·Î ¼³Ä¡µÇµµ·Ï ¼öÁ¤
function checkVista()
{
       var total = navigator.appVersion.toLowerCase();
       var idx = total.indexOf("windows nt 6");
       
	   return true;

       if(idx == -1)
       {
              return false;//alert("maybe not vista")
       }
       else
       {
              return true;//alert("maybe vista")
       }
}

var installJSName = "install.js?";

if(checkVista())
{
	installJSName = "install_vista.js?";
}
else
{
	installJSName = "install.js?";
}

var InitechBaseURL = "http://up.initech.com/web/plugin/" + InitechGroupID + installJSName + window.location.host;

//Àå³­»ï¾Æ ³Ö¾îº»°Å
if (window.location.host == "down1.initech.com")
  InitechBaseURL = "http://up1.initech.com/web/plugin/" + InitechGroupID + installJSName + window.location.host;
else if (window.location.host == "down2.initech.com")
  InitechBaseURL = "http://up2.initech.com/web/plugin/" + InitechGroupID + installJSName + window.location.host;

//alert(InitechBaseURL);
var InitechInstall = "<script src='" + InitechBaseURL + "'><\/script>";
document.write(InitechInstall);
