var navName = navigator.appName ;
var brVer = navigator.userAgent; 
var brNum; 
var reg = new RegExp('/');

function verNumIE() 
{
   var brVerId = brVer.indexOf('MSIE');
   brNum = brVer.substr(brVerId,8);
}

function verNumOt() 
{
   var brVerId = brVer.search(reg);
   brNum = brVer.substring(brVerId+1);
}

// ÀÌÀü°æ·Î ¾Ë¾Æ³»±â 
if (typeof(parent.document) != "unknown") { var url = parent.document.URL; }
else { var url = "none"; }

if(document.referrer == url) { var log_ref=parent.document.referrer; }
else { var log_ref=document.referrer; }

searchStr = new Array("yahoo","daum","empas","naver","nate","hanmir","gajai","dreamwiz","msn","freechal","ohcorea","rankey","budongsan4u","slrclub","yescall","lycos","joins","netian","google","korea.com");

var searchUrl = "";
for(i=0;i<searchStr.length;i++)
{
	if(log_ref.match(searchStr[i])) { searchUrl = searchStr[i]; }
}
if(searchUrl == ""){ searchUrl = "Other"; }
// ÀÌÀü°æ·Î ¾Ë¾Æ³»±â 

// ºê¶ó¿ìÀú Á¤º¸ ¾Ë¾Æ³»±â //
if (navigator.appName == 'Microsoft Internet Explorer'){ verNumIE() ;}
else { verNumOt() ;}
// ºê¶ó¿ìÀú Á¤º¸ ¾Ë¾Æ³»±â //

// ÀÚ¹Ù »ç¿ë¿©ºÎ //
var java=(navigator.javaEnabled()==true)?"y":"n"; 
// ÀÚ¹Ù »ç¿ë¿©ºÎ //

// »ç¿ëÀÚ Å¸ÀÓÁ¸ //
var s_day = new Date(); 
var user_zone=s_day.getTimezoneOffset()/60; 
// »ç¿ëÀÚ Å¸ÀÓÁ¸ //

// ÇöÀç ÆäÀÌÁö ¾Ë¾Æ³»±â //
var request_uri = window.location;
// ÇöÀç ÆäÀÌÁö ¾Ë¾Æ³»±â //

var str = "<img src='/global2/log/gslog.asp?";
//str += "bs="+brNum+"&java="+java+"&swidth="+screen.width+"&sheight="+screen.height+"&scdepth="+window.screen.colorDepth+"&tz="+user_zone+"&searchUrl="+searchUrl+"&request_uri="+request_uri+"&log_ref="+log_ref+"' width='1' height='1' border='0'>";
str += "brnum="+brNum+"&java="+java+"&scrwidth="+screen.width+"&scrheight="+screen.height+"&scrcolordepth="+window.screen.colorDepth+"&searchUrl="+searchUrl+"&request_uri="+escape(request_uri)+"&log_ref="+escape(log_ref)+"&navName="+navName+"&brVer="+brVer+"' width='1' height='1' border='0' style='visibility:hidden;display:none;'>";
document.write(str);
