function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}



function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}



function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}



function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}

function menu_show(menu, num)
{
	var j = 1;
	while (Mlayer = document.getElementById(menu+"_"+j))
	{
		if (num == j)
		{
			Mlayer.style.display="block";
		}
		else
		{
			Mlayer.style.display="none";
		}

		j++;
	};
}

function menu_over(menu, pwd, img, num)
{
	var j = 1;
	while (Mlayer = document.getElementById(menu+"_"+j))
	{
		image		=	document.getElementById(img+"0"+j);
		if (num == j)
		{
			Mlayer.style.display="";
			image.src		=	pwd + img + "0" + j + "_over.gif";
		}
		else
		{
			Mlayer.style.display="none";
			image.src		=	pwd + img + "0" + j + ".gif";
		}

		j++;
	};
}

function menu_hide(menu)
{
	var j = 1;
	while (Mlayer = document.getElementById(menu+"_"+j))
	{
		Mlayer.style.display="none";
		j++;
	};
}

function src_change(id, i_src)
{
	Mobj	=	document.getElementById(id);
	if (Mobj.src != i_src)
	{
		Mobj.src	=	i_src;
	}
}

function rotate_menu(menu, num)
{
	var j = 1;
	while (Mlayer = document.getElementById(menu+"_"+j))
	{
		if (Mlayer.style.display != "none")
		{
			nowN	=	j;
			
		}
		j++;
	};

	j--;

	nowN = nowN + num;

	if (nowN < 1)
	{
		nowN = j;
	}
	if (nowN > j)
	{
		nowN = 1;
	}
	
	menu_show(menu, nowN);
}

function input_on()
{
	event.srcElement.value="";
}

function input_out()
{
	if (event.srcElement.value=="")
	{
		var input_id	=	event.srcElement.id;

		document.getElementById(input_id).value = document.getElementById(input_id).value;
	}
}

function show_realpw_div()
{
	
	document.getElementById("i_pw_txt").style.display = "none";
	document.getElementById("i_pw").style.display = "";
	document.getElementById("i_pw").focus();

}


function attach_right(menuID, bodywidth)
{
	h_w	=	(document.body.clientWidth + bodywidth)/2 + 10;
	document.getElementById(menuID).style.left=h_w;
}

function changeHTML(id, i_src)
{
	Mobj	=	document.getElementById(id);
	Mobj.innerHTML	=	i_src;
}

function opendivWindow(url, id, width, height, scroll)
{
	document.write("<div id='"+id+"' width='"+width+"' height='"+height+"' style='display:'></div>");
	document.getElementById(id).src=url;
}


function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function seldomain(val, page)
{
	if (page == "PHP_SELF")
	{
		page = document.URL;
	}
	location.href="/mypage/change_BasicDomain.php?val="+val+"&urlToGo="+page;
}

function auto_nextfocus(val, cur, next)
{
	if (val <= cur.value.length)
	{
		next.focus();
	}
};

function num_only()
{
	var key = event.keyCode;

	if(!(key==8||key==9||key==13||key==46||key==144||(key>=48&&key<=57)||(key>=96&&key<=105)||key==110||key==190))
	{
		event.returnValue = false;
	}
}

function isset(x)
{
	if (typeof x === "undefined")
	{
		return false;
	}
	else
	{
		return true;
	}
}

/**
 *	금액의 콤마를 표시해 주는 Number_format 함수
 */

function number_format( number , decimals )
{
	var number	= number.toString();
	var arr		= number.split(".");
	var str		= '', temp = '', z = 0, int_len = 0, interval = 0;

	//	정수와 소수부분 분리
	integer		= arr[0];
	val_float	= arr[1];

	int_len		= integer.length;
	for (z = 0 ; z < int_len ; z++)
	{
		if (((int_len - z) % 3) == 0 && (int_len - z != int_len))
		{
			str = str + ",";
		}

		str	= str + integer.charAt(z);
	}

	//	끊기를 원하는 자리수(decimals) 가 있고, 실제 소수부분이 있는 경우
	if (decimals > 0 && val_float != "")
	{
		//	끊기를 원하는 수가 소수부분보다 길면...
		if (decimals > val_float.length)
		{
			//	길이의 차이를 구한다
			interval = decimals - val_float.length;

			//	길이의 차이만큼 0 을 더해준다.
			for (z = 0 ; z < interval ; z++)
			{
				val_float = val_float + '0';
			}
		}
		else if ( decimals < val_float.length ) //	끊기를 원하는 수가 소수부분보다 짧으면...
		{
			//	원하는 소수점개수보다 1자리 많게 끊어서 반올림하여 구한다. eval 은 문자를 숫자로 변환해주는 function
			val_float = Math.round ( val_float.substr ( 0, eval(decimals) + 1 ) / 10 );
		}

		str = str + "." + val_float;
	}
	return str;
}

function SSNChecker(s1, s2, isalert)
	{
		if (!isalert)
		{
			isalert="false";
		}

		chk = 0;
		yy	= s1.substring(0,2);
		mm	= s1.substring(2,4);
		dd	= s1.substring(4,6);
		sex = s2.substring(0,1);

		if ((s1.length != 6) || (yy < 25 || mm < 1 || mm > 12 || dd < 1))
		{
			if (isalert=="alert")
			{
				alert("잘못된 주민등록번호입니다.");
			}
			return false;
		}

		if ((sex != 1 && sex != 2 && sex != 3 && sex != 4)||(s2.length != 7 ))
		{
			if (isalert=="alert")
			{
				alert("잘못된 주민등록번호입니다.");
			}
			return false;
		}

		if(!(sex == 1 || sex == 2 || sex == 3 || sex == 4))
		{
			if (isalert=="alert")
			{
				alert("잘못된 주민등록번호입니다.");
			}
			return false;
		}

		for (var i = 0; i <= 5; i++)
		{
			chk = chk + ((i % 8 + 2) * parseInt(s1.substring(i, i + 1)))
		}

		for (var i = 6; i <= 11; i++)
		{
			chk = chk + ((i % 8 + 2) * parseInt(s2.substring(i - 6, i - 5)))
		}

		chk = 11 - (chk % 11)
		chk = chk % 10

		if (chk != s2.substring(6, 7))
		{
			if (isalert=="alert")
			{
				alert("잘못된 주민등록번호입니다.");
			}
			return false;
		}

		return true;
	}

	function coNUMChecker(saup1,saup2,saup3,isalert)
	{
		var checkID = new Array(1, 3, 7, 1, 3, 7, 1, 3, 5, 1);
		var bizID = ""+ saup1 + saup2 + saup3;
		var i, Sum=0, c2, remander;

		for (i=0; i<=7; i++) Sum += checkID[i] * bizID.charAt(i);

		c2 = "0" + (checkID[8] * bizID.charAt(8));
		c2 = c2.substring(c2.length - 2, c2.length);

		Sum += Math.floor(c2.charAt(0)) + Math.floor(c2.charAt(1));

		remander = (10 - (Sum % 10)) % 10 ;

		if (Math.floor(bizID.charAt(9)) != remander)
		{
			if (isalert=="alert")
			{
				alert ("잘못된 사업자등록번호입니다.");
			}
			return false;
		}
		else
		{

			return true;

		}
	}



	function checkPW(password, password2)
	{
		pw	=	document.getElementById(password);
		pw2	=	document.getElementById(password2);

		if (pw.value.search(/^(\w[\w-]*\w$)/) == -1 || pw.value.length > 13){
			alert("패스워드는 4~12자의 영문숫자로만 사용가능합니다.");
			pw.focus();
			return false;
		}

		if (pw.value.length < 4)
		{
			alert("패스워드가 너무 짧습니다.");
			pw.focus();
			return false;
		}

		if (pw.value != pw2.value)
		{
			alert("패스워드가 일치하지 않습니다.");
			pw.value = "";
			pw2.value = "";
			pw.focus();
			return false;
		}
	}


	function check_email(email)
	{
		if (email.value != "") {
			if (email.value.search(/(\S+)@(\S+)\.(\S+)/)== -1 ) {
				alert("올바른 e-mail형식이 아닙니다.\r\n      다시입력하세요.")
				email.value="";
				email.focus();
				return false;
			}
		}
		return true;
	}

/************************************************************* 스트링 관련 함수 *****************************************************************/

function str_replace(SearchFor, ReplaceWith, Content)
{

	var tmpContent = Content;
	var tmpBefore = new String();   
	var tmpAfter = new String();
	var tmpOutput = new String();
	var intBefore = 0;
	var intAfter = 0;

	if (SearchFor.length == 0)
	return;


	while (tmpContent.toUpperCase().indexOf(SearchFor.toUpperCase()) > -1)
	{

		// Get all content before the match
		intBefore = tmpContent.toUpperCase().indexOf(SearchFor.toUpperCase());
		tmpBefore = tmpContent.substring(0, intBefore);
		tmpOutput = tmpOutput + tmpBefore;

		// Get the string to replace
		tmpOutput = tmpOutput + ReplaceWith;


		// Get the rest of the content after the match until
		// the next match or the end of the content
		intAfter = tmpContent.length - SearchFor.length + 1;
		tmpContent = tmpContent.substring(intBefore + SearchFor.length);

	}

	return tmpOutput + tmpContent;

}

function jstrim(s)
	{
		while (s.charAt(0) == " ")
		{
			s = s.substr(1);
		}
		while (s.charAt(s.length-1) == " ")
		{
			s = s.substr(0, s.length-1);
		}
		return s;
	}


/************************************************************* 레이어 관련 함수 *****************************************************************/

function div_hide(id)
{
	document.getElementById(id).style.display="none";
};

function div_show(id)
{
	document.getElementById(id).style.display="block";
};


function check_submit(form) 
{
	for (i = 0; i < form.elements.length; i++ ) 
	{	  
		var el = form.elements[i];

		if (el.getAttribute("REQUIRED") != null) 
		{
			el.value = jstrim(el.value);
			if (el.value == null || el.value == "")
			{
				alert(el.REQUIRED+" 입력해주세요");
				el.focus();
				return false;
			}
		}
		else if (el.getAttribute("SAME") != null)
		{
			el.value = jstrim(el.value);
			if (el.SAMENAME == undefined)
			{
				el.SAMENAME = "";
			}

			if (el.value == null || el.value == "") 
			{
				alert(el.SAMENAME+" 입력해주세요");
				el.focus();
				return false;
			}
			else if (el.value != document.getElementById(el.SAME).value)
			{
				
				alert(el.SAMENAME+" 같은 값이어야 합니다");
				document.getElementById(el.SAME).focus();
				return false;
			}
		}

	}

//	form.submit();
	
	// 테이타 입력
//					show_waiting();

	return true;
}

function openPOPDiv(id, Dwidth, Dheight, Durl, imgName)
{
	var tmpWidth	= getposOffset(imgName, "left") - Dwidth / 2;
	var tmpTop		=	getposOffset(imgName, "top");
	var tmpdiv = document.createElement("div");

	var Fwidth		=	Dwidth + 30;
	var Fheight		=	Dheight + 10;

	tmpdiv.setAttribute("id", id);
	tmpdiv.style.position="absolute";
	tmpdiv.style.left=tmpWidth;
	tmpdiv.style.top=tmpTop;
	
	tmpdiv.innerHTML += "<iframe src=\""+Durl+"\" width=\""+Fwidth+"\"frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" name=\""+id+"\" style=\"opacity:100\"></iframe>";

	document.body.appendChild(tmpdiv);
}

function openPOPLDiv(LDiv_id, Dwidth, imgName)
{
	var tmpWidth	= getposOffset(imgName, "left") - Dwidth / 2;
	var tmpTop		=	getposOffset(imgName, "top");

	LDiv	=	document.getElementById(LDiv_id);
	
	LDiv.style.position="absolute";
	LDiv.style.left=tmpWidth;
	LDiv.style.top=tmpTop;
	LDiv.style.display="block";
}

function openUNDERLDiv(LDiv_id, imgName, align, LDivWidth)
{
	if (!align)
	{
		align	=	"right";
	}
	var tmpWidth	= getposOffset(imgName, "left");
	var tmpTop		=	getposOffset(imgName, "top") + imgName.height;

	LDiv	=	document.getElementById(LDiv_id);
	
	LDiv.style.position="absolute";
	
	LDiv.style.top=tmpTop;
	LDiv.style.display="block";

	if (align	==	"left")
	{
		LDiv.style.left	=	tmpWidth - parseInt(LDivWidth);
	}
	else if (align	==	"center")
	{
		LDiv.style.left	=	tmpWidth - parseInt(parseInt(LDivWidth) / 2);
	}
	else
	{
		LDiv.style.left	=	tmpWidth;
	}
}

function openTOPMenu(LDiv_id, imgName)
{
	var tmpWidth	= getposOffset(imgName, "left");
	var tmpTop		=	getposOffset(imgName, "top") + imgName.height;

	LDiv	=	document.getElementById(LDiv_id);
	
	LDiv.style.position="absolute";
	LDiv.style.left=tmpWidth - 61 + imgName.offsetWidth / 2;
	LDiv.style.top=tmpTop;
	LDiv.style.display="block";
}

function closePOPDiv(id)
{
	obj	=	document.getElementById(id)
	obj.parentNode.removeChild(obj);
};


function openDiv(id, Dleft, Dtop, Dwidth, Dheight, inHTML)
{
	var tmpdiv = document.createElement("div");

	tmpdiv.setAttribute("id", id);
	tmpdiv.style.position="absolute";
	tmpdiv.style.left=Dleft;
	tmpdiv.style.top=Dtop;
	tmpdiv.style.width=Dwidth;
	tmpdiv.style.height=Dheight;

	tmpdiv.innerHTML =	"";

	tmpdiv.innerHTML += inHTML;

	document.body.appendChild(tmpdiv);
}

function setIdVal(id, val)
{
	document.getElementById(id).value	=	val;
}
function setIdHTML(id, val)
{
	document.getElementById(id).innerHTML	=	val;
}

function getIdVal(id)
{
	return document.getElementById(id).value;
}

function select_option(select_id, option_value)
{
	var sel	=	document.getElementById(select_id);
	var rowPT =	sel.length;	// 셀렉트 박스 옵션의 갯수.
  
	for(var i=0; i<rowPT; i++)
	{
   		if(sel.options[i].value == option_value) //option의 값과 지정한 값이 일치할때
		{
    		sel.options[i].selected = true;//selected를 시킨다.
			break;
   		}
	}
}

/**
 *	새창 띄우는 함수
 */

function openWindow(url,name,width,height,scroll)
{
	var x = (window.screen.width - width) / 2;
	var y = (window.screen.height - height) / 2;


//		var x = (window.document.body.offsetWidth - width) / 2;
//		var y = (window.document.body.offsetHeight - height) / 2;


	if (!scroll)
	{
		scroll = "no";
	}

	window.open(url,name,'width=' + width + ',height=' + height + ',left=' + x + ',top=' + y + ',scrollbars=' + scroll);
}

/**
 *	새창 띄우는 함수
 */












 <!-- AceCounter Log Gathering Script V.70.2008090201 -->
if(typeof _GUL == 'undefined'){
var _JV="AMZ2008120803";//script Version
var _GUL = 'gtp4.acecounter.com';var _GPT='8080'; var _AIMG = new Image(); var _bn=navigator.appName; var _PR = location.protocol=="https:"?"https://"+_GUL:"http://"+_GUL+":"+_GPT;if( _bn.indexOf("Netscape") > -1 || _bn=="Mozilla"){ setTimeout("_AIMG.src = _PR+'/?cookie';",1); } else{ _AIMG.src = _PR+'/?cookie'; };	
var _GCD = 'AB3A34155135223'; // gcode
var _UD='undefined';var _UN='unknown';var _mset=0;
function _IX(s,t){return s.indexOf(t)}
function _GV(b,a,c,d){ var f = b.split(c);for(var i=0;i<f.length; i++){ if( _IX(f[i],(a+d))==0) return f[i].substring(_IX(f[i],(a+d))+(a.length+d.length),f[i].length); }	return ''; }
function _XV(b,a,c,d,e){ var f = b.split(c);var g='';for(var i=0;i<f.length; i++){ if( _IX(f[i],(a+d))==0){ try{eval(e+"=f[i].substring(_IX(f[i],(a+d))+(a.length+d.length),f[i].length);");}catch(_e){}; continue;}else{ if(g) g+= '&'; g+= f[i];}; } return g;};
function _NOB(a){return (a!=_UD&&a>0)?new Object(a):new Object()}
function _NIM(){return new Image()}
function _IL(a){return a!=_UD?a.length:0}
function _VF(a,b){return a!=_UD&&(typeof a==b)?1:0}
function _LST(a,b){if(_IX(a,b)) a=a.substring(0,_IL(a));return a}
function _CST(a,b){if(_IX(a,b)>0) a=a.substring(_IX(a,b)+_IL(b),_IL(a));return a}
function _UL(a){a=_LST(a,'#');a=_CST(a,'://');return a}
function _AA(a){return new Array(a?a:0)}
_DC = document.cookie ;
function _AGC(nm) { var cn = nm + "="; var nl = cn.length; var cl = _DC.length; var i = 0; while ( i < cl ) { var j = i + nl; if ( _DC.substring( i, j ) == cn ){ var val = _DC.indexOf(";", j ); if ( val == -1 ) val = _DC.length; return unescape(_DC.substring(j, val)); }; i = _DC.indexOf(" ", i ) + 1; if ( i == 0 ) break; } return ''; }
function _ASC( nm, val, exp ){var expd = new Date(); if ( exp ){ expd.setTime( expd.getTime() + ( exp * 1000 )); document.cookie = nm+"="+ escape(val) + "; expires="+ expd.toGMTString() +"; path="; }else{ document.cookie = nm + "=" + escape(val);};}
function SetUID() {     var newid = ''; var d = new Date(); var t = Math.floor(d.getTime()/1000); newid = 'UID-' + t.toString(16).toUpperCase(); for ( var i = 0; i < 16; i++ ){ var n = Math.floor(Math.random() * 16).toString(16).toUpperCase(); newid += n; }       return newid; }
var _FCV = _AGC("ACEFCID"); if ( !_FCV ) { _FCV = SetUID(); _ASC( "ACEFCID", _FCV , 86400 * 30 * 12 ); _FCV=_AGC("ACEFCID");}
var _AIO = _NIM(); var _AIU = _NIM();  var _AIW = _NIM();  var _AIX = _NIM();  var _AIB = _NIM();  var __hdki_xit = _NIM();
var _gX='/?xuid='+_GCD+'&sv='+_JV,_gF='/?fuid='+_GCD+'&sv='+_JV,_gU='/?uid='+_GCD+'&sv='+_JV+"&FCV="+_FCV,_gE='/?euid='+_GCD+'&sv='+_JV,_gW='/?wuid='+_GCD+'&sv='+_JV,_gO='/?ouid='+_GCD+'&sv='+_JV,_gB='/?buid='+_GCD+'&sv='+_JV;
function _ID(a){return (typeof a!=_UD)?1:0}

var _d=_rf=_fwd=_arg=_xrg=_av=_bv=_rl=_ak=_xrl=_cd=_cu=_bz='',_sv=11,_tz=20,_ja=_sc=_ul=_ua=_UA=_os=_vs=_UN,_je='n',_bR='blockedReferrer';
if(!_ID(_CODE)) var _CODE = '' ;
_tz = Math.floor((new Date()).getTimezoneOffset()/60) + 29 ;if( _tz > 24 ) _tz = _tz - 24 ;
// Javascript Variables
if(!_ID(_amt)) var _amt=0 ;if(!_ID(_pk)) var _pk='' ;if(!_ID(_pd)) var _pd='';if(!_ID(_ct)) var _ct='';
if(!_ID(_ll)) var _ll='';if(!_ID(_ag)) var _ag=0;	if(!_ID(_id)) var _id='' ;if(!_ID(_mr)) var _mr = _UN;
if(!_ID(_gd)) var _gd=_UN;if(!_ID(_jn)) var _jn='';if(!_ID(_jid)) var _jid='';if(!_ID(_skey)) var _skey='';
if(!_ID(_ud1)) var _ud1='';if(!_ID(_ud2)) var _ud2='';if(!_ID(_ud3)) var _ud3='';
if( !_ag ){ _ag = 0 ; }else{ _ag = parseInt(_ag); }
if( _ag < 0 || _ag > 150 ){ _ag = 0; }
if( _gd != 'man' && _gd != 'woman' ){ _gd =_UN;};if( _mr != 'married' && _mr != 'single' ){ _mr =_UN;};if( _jn != 'join' && _jn != 'withdraw' ){ _jn ='';};
if( _id != '' ){ _mset|=1 };
if( _jid != '' ){ _mset|=2 };
_je = (navigator.javaEnabled()==true)?'1':'0';_bn=navigator.appName;
if(_bn.substring(0,9)=="Microsoft") _bn="MSIE";
_bN=(_bn=="Netscape"),_bI=(_bn=="MSIE"),_bO=(_IX(navigator.userAgent,"Opera")>-1);if(_bO)_bI='';
_bz=navigator.appName; _pf=navigator.platform; _av=navigator.appVersion; _bv=parseFloat(_av) ;
if(_bI){_cu=navigator.cpuClass;}else{_cu=navigator.oscpu;};
if((_bn=="MSIE")&&(parseInt(_bv)==2)) _bv=3.01;_rf=document.referrer;var _prl='';var _frm=false;
function _WO(a,b,c){window.open(a,b,c)}
function ACEF_Tracking(a,b,c,d,e,f){ if(!_ID(b)){var b = 'FLASH';}; if(!_ID(e)){ var e = '0';};if(!_ID(c)){ var c = '';};if(!_ID(d)){ var d = '';}; var a_org=a; b = b.toUpperCase(); var b_org=b;	if(b_org=='FLASH_S'){ b='FLASH'; }; if( typeof CU_rl == 'undefined' ) var CU_rl = 'http://gtp4.acecounter.com:8080'; if(_ID(_GCD)){ var _AF_rl = document.URL; if(a.indexOf('://') < 0  && b_org != 'FLASH_S' ){ var _AT_rl  = ''; if( _AF_rl.indexOf('?') > 0 ){ _AF_rl = _AF_rl.substring(0,_AF_rl.indexOf('?'));}; var spurl = _AF_rl.split('/') ;	for(var ti=0;ti < spurl.length ; ti ++ ){ if( ti == spurl.length-1 ){ break ;}; if( _AT_rl  == '' ){ _AT_rl  = spurl[ti]; }else{ _AT_rl  += '/'+spurl[ti];}; }; var _AU_arg = ''; if( a.indexOf('?') > 0 ){ _AU_arg = a.substring(a.indexOf('?'),a.length); a = a.substring(0,a.indexOf('?')); }; var spurlt = a.split('/') ; if( spurlt.length > 0 ){ a = spurlt[spurlt.length-1];}; a = _AT_rl +'/'+a+_AU_arg;	_AF_rl=document.URL;}; _AF_rl = _AF_rl.substring(_AF_rl.indexOf('//')+2,_AF_rl.length); if( typeof f == 'undefined' ){ var f = a }else{f='http://'+_AF_rl.substring(0,_AF_rl.indexOf('/')+1)+f}; var _AS_rl = CU_rl+'/?xuid='+_GCD+'&url='+escape(_AF_rl)+'&xlnk='+escape(f)+'&fdv='+b+'&idx='+e+'&'; var _AF_img = new Image(); _AF_img.src = _AS_rl; if( b_org == 'FLASH' && a_org != '' ){ if(c==''){ window.location.href = a_org; }else{ if(d==''){ window.open(a_org,c);}else{ window.open(a_org,c,d); };};	};} ; }
function _PT(){return location.protocol=="https:"?"https://"+_GUL:"http://"+_GUL+":"+_GPT}
function _EL(a,b,c){if(a.addEventListener){a.addEventListener(b,c,false)}else if(a.attachEvent){a.attachEvent("on"+b,c)} }
function _NA(a){return new Array(a?a:0)}
function _ER(a,b,c,d){_xrg=_PT()+_gW+"&url="+escape(_UL(document.URL))+"&err="+((typeof a=="string")?a:"Unknown")+"&ern="+c+"&bz="+_bz+"&bv="+_vs+"&RID="+Math.random()+"&";
if(_IX(_bn,"Netscape") > -1 || _bn == "Mozilla"){ setTimeout("_AIW.src=_xrg;",1); } else{ _AIW.src=_xrg; } }
function _BO(a,b,c){_xrg=_PT()+_gB+"&url="+escape(_UL(document.URL))+"&ref="+escape(_UL(document.referrer))+"&RID="+Math.random()+"&";_AIB.src=_xrg;}
function _OL(a,b,c){_xrg=_PT()+_gO+"&url="+escape(_UL(document.URL))+"&ref="+escape(_UL(document.referrer))+"&RID="+Math.random()+"&";
_AIO.src=_xrg;}
function _PL(a){if(!_IL(a))a=_UL(document.URL);
_arg = _PT()+_gU;
if( typeof _ERR !=_UD && _ERR == 'err'){ _arg = _PT()+_gE;};
_AIU.src = _arg+"&url="+escape(a)+"&ref="+escape(_rf)+"&cpu="+_cu+"&bz="+_bz+"&bv="+_vs+"&os="+_os+"&dim="+_d+"&cd="+_cd+"&je="+_je+"&jv="+_sv+"&tz="+_tz+"&ul="+_ul+"&ad_key="+escape(_ak)+"&skey="+escape(_skey)+"&age="+_ag+"&gender="+_gd+"&marry="+_mr+"&join="+_jn+"&mset="+_mset+"&udf1="+_ud1+"&udf2="+_ud2+"&udf3="+_ud3+"&amt="+_amt+"&frwd="+_fwd+"&pd="+escape(_pd)+"&ct="+escape(_ct)+"&ll="+escape(_ll)+"&RID="+Math.random()+"&";
setTimeout("",300);
}
_EL(window,"error",_ER); //window Error
if( typeof window.screen == 'object'){_sv=12;_d=screen.width+'*'+screen.height;_sc=_bI?screen.colorDepth:screen.pixelDepth;if(_sc==_UD)_sc=_UN;}
_ro=_NA();if(_ro.toSource||(_bI&&_ro.shift))_sv=13;
if( top && typeof top == 'object' &&_IL(top.frames)){eval("try{_rl=top.document.URL;}catch(_e){_rl='';};"); if( _rl != document.URL ) _frm = true;};
if(_frm){ eval("try{_prl = top.document.URL;}catch(_e){_prl=_bR;};"); if(_prl == '') eval("try{_prl=parent.document.URL;}catch(_e){_prl='';};"); 
if( _IX(_prl,'#') > 0 ) _prl=_prl.substring(0,_IX(_prl,'#')); 
_prl=_LST(_prl,'#');
if( _IX(_rf,'#') > 0 ) _rf=_rf.substring(0,_IX(_rf,'#')); 
_prl=_LST(_prl,'/');_rf=_LST(_rf,'/');
if( _rf == '' ) eval("try{_rf=parent.document.URL;}catch(_e){_rf=_bR;}"); 
if(_rf==_bR||_prl==_bR){ _rf='',_prl='';}; if( _rf == _prl ){ eval("try{_rf=top.document.referrer;}catch(_e){_rf='';}"); 
if( _rf == ''){ _rf = 'bookmark';};if( _IX(document.cookie,'ACEN_CK='+escape(_rf)) > -1 ){ _rf = _prl;} 
else{ 
if(_IX(_prl,'?') > 0) _ak = _prl.substring(_IX(_prl,'?')+1,_prl.length); 
if( _IX(_prl,'OVRAW=') > 0 ){ _ak = 'src=overture&kw='+_prl.substring(_prl.indexOf('OVRAW=')+6,_prl.indexOf('&',_prl.indexOf('OVRAW=')+6)); }; 
if( _IX(_prl.toLowerCase(),'OVRAW=') > 0 ){ _ak = 'src=overture&kw='+_prl.substring(_prl.indexOf('OVRAW=')+6,_prl.indexOf('&',_prl.indexOf('OVRAW=')+6)); }; 
if(_IX(_prl,'gclid=') > 0 ){ _ak='src=adwords'; }; if(_IX(_prl,'DWIT=') > 0 ){_ak='src=dnet_cb';}; 
if( _IX(_prl,"rcsite=") > 0 &&  _IX(_prl,"rctype=") > 0){ _prl += '&'; _ak = _prl.substring(_IX(_prl,'rcsite='),_prl.indexOf('&',_IX(_prl,'rcsite=')+7))+'-'+_prl.substring(_IX(_prl,'rctype=')+7,_prl.indexOf('&',_IX(_prl,'rctype=')+7))+'&'; };
if( _GV(_prl,'src','&','=') ) _ak += '&src='+_GV(_prl,'src','&','='); if( _GV(_prl,'kw','&','=') ) _ak += '&kw='+_GV(_prl,'kw','&','='); var _trl = _prl.split('?'); if(_trl.length>1){ _trl[1] = _XV(_trl[1],'FWDRL','&','=','_rf'); _rf = unescape(_rf); _ak = _XV(_ak,'FWDRL','&','=','_prl'); }; if( typeof FD_ref=='string' && FD_ref != '' ) _rf = FD_ref;
_fwd = _GV(_prl,'FWDIDX','&','=');
document.cookie='ACEN_CK='+escape(_rf)+';path=/;'; 
}; 
if(document.URL.indexOf('?')>0 && ( _IX(_ak,'rcsite=') < 0 && _IX(_ak,'src=') < 0 && _IX(_ak,'source=') < 0 ) ) _ak =document.URL.substring(document.URL.indexOf('?')+1,document.URL.length); }; 
}
else{ 
_rf=_LST(_rf,'#');_ak=_CST(document.URL,'?');
if( _IX(_ak,"rcsite=") > 0 &&  _IX(_ak,"rctype=") > 0){
    _ak += '&';
    _ak = _ak.substring(_IX(_ak,'rcsite='),_ak.indexOf('&',_IX(_ak,'rcsite=')+7))+'-'+_ak.substring(_IX(_ak,'rctype=')+7,_ak.indexOf('&',_IX(_ak,'rctype=')+7))+'&';
}
}
_rl=document.URL;
var _trl = _rl.split('?'); if(_trl.length>1){ _trl[1] = _XV(_trl[1],'FWDRL','&','=','_rf'); _rf = unescape(_rf); _fwd = _GV(_trl[1],'FWDIDX','&','='); _rl=_trl.join('?'); 
_ak = _XV(_ak,'FWDRL','&','=','_prl');
}; if( typeof FD_ref=='string' && FD_ref != '' ) _rf = FD_ref;
if( _rf.indexOf('googlesyndication.com') > 0 ){ 
var _rf_idx = _rf.indexOf('&url=');  if( _rf_idx > 0 ){ var _rf_t = unescape(_rf.substring(_rf_idx+5,_rf.indexOf('&',_rf_idx+5)));  if( _rf_t.length > 0 ){ _rf = _rf_t ;};  };  };
_rl = _UL(_rl); _rf = _UL(_rf);

if( typeof _rf_t != 'undefined' && _rf_t != '' ) _rf = _rf_t ;
if( typeof _ak_t != 'undefined' && _ak_t != '' ) _ak = _ak_t ;

if( typeof _rf==_UD||( _rf == '' )) _rf = 'bookmark' ;_cd=(_bI)?screen.colorDepth:screen.pixelDepth;
_UA = navigator.userAgent;_ua = navigator.userAgent.toLowerCase();
if (navigator.language){  _ul = navigator.language.toLowerCase();}else if(navigator.userLanguage){  _ul = navigator.userLanguage.toLowerCase();};

_st = _IX(_UA,'(') + 1;_end = _IX(_UA,')');_str = _UA.substring(_st, _end);_if = _str.split('; ');_cmp = _UN ;

if(_bI){ _cmp = navigator.appName; _str = _if[1].substring(5, _if[1].length); _vs = (parseFloat(_str)).toString();} 
else if ( (_st = _IX(_ua,"opera")) > 0){ _cmp = "Opera" ;_vs = _ua.substring(_st+6, _ua.indexOf('.',_st+6)); } 
else if ((_st = _IX(_ua,"firefox")) > 0){_cmp = "Firefox"; _vs = _ua.substring(_st+8, _ua.indexOf('.',_st+8)); } 
else if ((_st = _IX(_ua,"netscape6")) > 0){ _cmp = "Netscape"; _vs = _ua.substring(_st+10, _ua.length);  
if ((_st = _IX(_vs,"b")) > 0 ) { _str = _vs.substring(0,_IX(_vs,"b")); _vs = _str ;  };}
else if ((_st = _IX(_ua,"netscape/7")) > 0){  _cmp = "Netscape";  _vs = _ua.substring(_st+9, _ua.length);  if ((_st = _IX(_vs,"b")) > 0 ){ _str = _vs.substring(0,_IX(_vs,"b")); _vs = _str;};
}
else{
if (_IX(_ua,"gecko") > 0){ if(_IX(_ua,"safari")>0){ _cmp = "Safari";_ut = _ua.split('/');for( var ii=0;ii<_ut.length;ii++) if(_IX(_ut[ii],'safari')>0){ _vst = _ut[ii].split(' '); _vs = _vst[0];} }else{ _cmp = navigator.vendor;  } } else if (_IX(_ua,"nav") > 0){ _cmp = "Netscape Navigator";}else{ _cmp = navigator.appName;}; _av = _UA ; 
}
if (_IX(_vs,'.')<0){  _vs = _vs + '.0'}
_bz = _cmp; 

var _lxit=_NOB();
var _lwd=window.document;
_lxit.lnk=new Array(_lwd.links.length);

function _LX(k,w,i){
_xrg= _PT()+_gX+'&url='+escape(_rl)+'&xlnk='+escape(k)+'&xidx='+i+'&';
if(_IX(_bn,"Netscape") > -1 || _bn == "Mozilla"){
setTimeout("__hdki_xit.src=_xrg;",1);
}else{
__hdki_xit.src=_xrg;
};
return (w.lnk[i]&&w.lnk[i].ocmx)?w.lnk[i].ocmx():1;};
function _EX(){_lxit.lnk=new Array(_lwd.links.length);for(var i=0;i<_lwd.links.length;i++){if(_lwd.links[i].onmousedown){_lxit.lnk[i]=document.links[i];_lxit.lnk[i].ocmx=document.links[i].onmousedown;};eval("document.links[i].onmousedown=function(){return _LX(this,_lxit,"+i+");}");};};

_EL(window,"load",_EX); // ExitLink

if( _IX(_pf,_UD) >= 0 || _pf ==  '' ){ _os = _UN ;}else{ _os = _pf ; };
if( _IX(_os,'Win32') >= 0 ){if( _IX(_av,'98')>=0){ _os = 'Windows 98';}else if( _IX(_av,'95')>=0 ){ _os = 'Windows 95';}else if( _IX(_av,'Me')>=0 ){ _os = 'Windows Me';}else if( _IX(_av,'NT')>=0 ){ _os = 'Windows NT';}else{ _os = 'Windows';};if( _IX(_av,'NT 5.0')>=0){ _os = 'Windows 2000';};if( _IX(_av,'NT 5.1')>=0){_os = 'Windows XP';if( _IX(_av,'SV1') > 0 ){_os = 'Windows XP SP2';};};if( _IX(_av,'NT 5.2')>=0){_os ='Windows Server 2003';};if( _IX(_av,'NT 6.0')>=0){_os ='Windows Vista';};};
_pf_s = _pf.substring(0,4);if( _pf_s == 'Wind'){if( _pf_s == 'Win1'){_os = 'Windows 3.1';}else if( _pf_s == 'Mac6' ){ _os = 'Mac';}else if( _pf_s == 'MacO' ){ _os ='Mac';}else if( _pf_s == 'MacP' ){_os='Mac';}else if(_pf_s == 'Linu'){_os='Linux';}else if( _pf_s == 'WebT' ){ _os='WebTV';}else if(  _pf_s =='OSF1' ){ _os ='Compaq Open VMS';}else if(_pf_s == 'HP-U' ){ _os='HP Unix';}else if(  _pf_s == 'OS/2' ){ _os = 'OS/2' ;}else if( _pf_s == 'AIX4' ){ _os = 'AIX';}else if( _pf_s == 'Free' ){ _os = 'FreeBSD';}else if( _pf_s == 'SunO' ){ _os = 'SunO';}else if( _pf_s == 'Drea' ){ _os = 'Drea'; }else if( _pf_s == 'Plan' ){ _os = 'Plan'; }else{ _os = _UN; };};
if( _cu == 'x86' ){ _cu = 'Intel x86';}else if( _cu == 'PPC' ){ _cu = 'Power PC';}else if( _cu == '68k' ){ _cu = 'Motorola 680x';}else if( _cu == 'Alpha' ){ _cu = 'Compaq Alpa';}else if( _cu == 'Arm' ){ _cu = 'ARM';}else{ _cu = _UN;};if( _d == '' || typeof _d==_UD ){ _d = '0*0';}
_PL(_rl); // Site Logging
}
<!-- AceCounter Log Gathering Script End -->