
//·Î±× ÆäÀÌÁö
var logUrl = "http://www.amicare.net/web_log/process.asp"

//»çÀÌÆ® ÄÚµå
var siteCode = "100001";

//ÀÚ¹Ù½ºÅ©¸³Æ® Çã¿ë
je = (navigator.javaEnabled() == true)?'1':'0';

//ÄíÅ° Çã¿ë
ce = (navigator.cookieEnabled == true)?'1':'0';

//ºê¶ó¿ìÀú¸í
bn = navigator.appName;
if(bn.substring(0,9) == "Microsoft") bn = "MSIE";

//TimeZone
tz = Math.floor((new Date()).getTimezoneOffset()/60) + 29 ;
if(tz > 24 ) tz = tz - 24 ;

//CPU
cpu = navigator.cpuClass

//ºê¶ó¿ìÀú
bz = navigator.appName;

//ÇÃ·§Æû
pf = navigator.platform

//ºê¶ó¿ìÀú ¹öÁ¯
av = navigator.appVersion
bv = parseFloat(av)

//ÀÌÀü ÆäÀÌÁö
var ad_key;
ref = document.referrer;
if(ref == 'undefined' || ref == '') ref = 'bookmark';

if(typeof("parent.document") != "unknown" )
{
	eval("try{pre_url = parent.document.URL;}catch(e){ pre_url='';}");

	if(pre_url.indexOf('#') > 8 )
	{
		tailurl = "#" + pre_url.substring(pre_url.indexOf('#')+1,pre_url.length);
		pre_url = pre_url.substring(0,pre_url.indexOf('#')) ;
	}

	if(document.URL.indexOf('?') > 0 )
	{
		ad_key = document.URL.substring(document.URL.indexOf('?')+1,document.URL.length);
	}
	
	if(pre_url != document.URL && pre_url.indexOf('?') > 0 )
	{
		ad_key = pre_url.substring(pre_url.indexOf('?')+1,pre_url.length);
	}
}

if(document.referrer == pre_url )
{ 
	eval("try{ ref = parent.document.referrer ;}catch(_e){ ref = '';}");
}
else{
	ref = document.referrer ; 
}

//ÇöÀç ÆäÀÌÁö
url = document.URL;

//colorDepth
cd = (bn == "MSIE")?screen.colorDepth:screen.pixelDepth;

//userAgent
ua = navigator.userAgent.toLowerCase();

//language
if(navigator.language)
{
	ln = navigator.language.toLowerCase();
}
else if(navigator.userLanguage)
{
	ln  = navigator.userLanguage.toLowerCase();
}

//os
if(pf.indexOf('undefined') >= 0 || pf ==  '' ) os = 'UNKNOWN' ;
else os = pf ;

if(os.indexOf('Win32') >= 0 )
{
	if(av.indexOf('98')>=0) os = 'Windows 98' ;
	else if(av.indexOf('95')>=0 ) os = 'Windows 95' ;
	else if(av.indexOf('Me')>=0 ) os = 'Windows Me' ;
	else if(av.indexOf('NT')>=0 ) os = 'Windows NT' ;
	else os = 'Windows' ;

	if( av.indexOf('NT 5.0')>=0) os = 'Windows 2000' ;
	if( av.indexOf('NT 5.1')>=0) os = 'Windows XP' ;
	if( av.indexOf('NT 5.2')>=0) os = 'Windows Server 2003' ;
}


ss = "";
pf2 = pf.substring(0,4);


if(pf2 == 'Wind')
{
	if(pf2 == 'Win1') os = 'Windows 3.1';
	else if(pf2 == 'Mac6') os = 'Mac' ;
	else if(pf2 == 'MacO') os = 'Mac' ;
	else if(pf2 == 'MacP') os = 'Mac' ;
	else if(pf2 == 'Linu') os = 'Linux' ;
	else if(pf2 == 'WebT') os = 'WebTV' ;
	else if(pf2 =='OSF1')os = 'Compaq Open VMS' ;
	else if(pf2 == 'HP-U') os = 'HP Unix' ;
	else if(pf2 == 'OS/2') os = 'OS/2' ;
	else if(pf2 == 'AIX4') os = 'AIX';
	else if(pf2 == 'Free') os = 'FreeBSD';
	else if(pf2 == 'SunO') os = 'SunO';
	else if(pf2 == 'Drea') os = 'Drea';
	else if(pf2 == 'Plan') os = 'Plan';
	else os = 'UNKNOWN';
}

if(cpu == 'x86' ) cpu = 'Intel x86';
else if(cpu == 'PPC') cpu = 'Power PC';
else if(cpu == '68k') cpu = 'Motorola 680x';
else if(cpu == 'Alpha') cpu = 'Compaq Alpa';
else if(cpu == 'Arm') cpu = 'ARM';
else cpu = 'UNKNOWN';

//ss
if(ss == '' || ss == 'undefined') ss = '0*0';
if(window.screen) ss = window.screen.width+'*'+window.screen.height;

//Parameter
arg = logUrl +"?sid=" + siteCode ;
arg += "&cpu="+cpu+"&bz="+bz+"&bv="+bv+"&os="+os;
arg += "&ss="+ss+"&cd="+cd+"&je="+je+"&ce="+ce+"&ref="+escape(ref)+"&url="+escape(url);
arg += "&tz="+tz+"&ln="+ln+"&ad_key="+escape(ad_key) ;

//Image tag
var logImg = new Image();

if( bn.indexOf("Netscape") > -1 || bn=="Mozilla"){
	setTimeout("logImg.src = arg;",1);
}
else{
	logImg.src = arg;
}

//document.writeln(arg);
