	function Is() { 
		var agent = navigator.userAgent.toLowerCase(); 
		this.major = parseInt(navigator.appVersion); 
		this.minor = parseFloat(navigator.appVersion); 
		this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1))); 
		this.ns2 = (this.ns && (this.major == 2)); 
		this.ns3 = (this.ns && (this.major == 3)); 
		this.ns4 = (this.ns && (this.major == 4)); 
		this.ns5 = (this.ns && (this.major > 4)); 
		this.ns6 = (this.ns && (agent.indexOf('netscape6')!=-1) ); 
		this.ns7 = (this.ns && (agent.indexOf('netscape/7')!=-1) ); 
		this.ns7pr = (this.ns && (agent.indexOf('netscape/7.0b1')!=-1) ); 
		this.ns71 = (this.ns && (agent.indexOf('netscape/7.1')!=-1) ); 
		this.ns72 = (this.ns && (agent.indexOf('netscape/7.2')!=-1) ); 
		this.ie = (agent.indexOf("msie") != -1); 
		this.ie5 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5") != -1)); 
		this.ie6 = (this.ie && (agent.indexOf("msie 6")!=-1)); 
		this.ie7 = (this.ie && (agent.indexOf("msie 7")!=-1)); 
		this.ff = (agent.indexOf("firefox") != -1);
		this.sa = (agent.indexOf("sapari") != -1);
		this.op3 = (agent.indexOf("opera") != -1); 
		this.pc  = (agent.indexOf("win") != -1); 
		this.pc95 = (this.pc && (agent.indexOf("95")!=-1)); 
		this.pc98 = (this.pc && (agent.indexOf("98")!=-1)); 
		this.pcNT = (this.pc && (agent.indexOf("nt 4.0")!=-1)); 
		this.pc2000 = (this.pc && (agent.indexOf("nt 5.0")!=-1)); 
		this.pcXP = (this.pc && (agent.indexOf("nt 5.1")!=-1));
		this.pc2003 = (this.pc && (agent.indexOf("nt 5.2")!=-1));
		this.mac = (agent.indexOf("mac")!=-1); // Mac detect 
		this.client = ( (navigator.userAgent.indexOf('AOL')!=-1) || (navigator.userAgent.indexOf('CS 2000')!=-1) )? 1 : 0; 
		this.moz = ( this.ns && (agent.indexOf("netscape/") == -1) ); 
		if (this.moz) this.ns = 0; 
	} 
	function userParser(refer){
		var is = new Is();
		var btype = (is.ie) ? 1 : (is.ff) ? 2 : (is.op3) ? 3 : (is.sa) ? 4 : 5;
		var bver = (is.ie5) ? 5 : (is.ie6) ? 6 : (is.ie7) ? 7 :  0 ;
		var ftype = (is.pc) ? 1 : (is.mac) ? 2 : (is.client) ? 3 : 4;
		var fvar = (is.pc95) ? 95 : (is.pc98) ? 98 : (is.pcNT) ? "nt" : (is.pcXP) ? "xp" :  (is.pc2003) ? 2003 : 0;
		var param = "btype="+ btype + "&bver="+ bver + "&ftype="+ ftype + "&fver="+ fvar+"&refer="+ refer;
		var newParser = new Image();
		newParser.style.width = 0;
		newParser.style.height = 0;
		newParser.src = "http://log.pptkorea.com/mdl_visits.asp?"+param;
//		document.write(param);
		var pObj = document.body;
		pObj.appendChild(newParser);
	}
