/**
 * 에크로벳에 사용하는 스크립트 모음
 */

function potChange(that)
{
	
	var obj = that;
	var pots = new Array();
	
	pots[0] = "pot1";
	pots[1] = "pot2";
	
	if(!obj){
		//쿠키가 있을 시 
		if(xGetCookie("pots"))
		{
			obj = document.getElementById(xGetCookie("pots"));
		}
		else return;
	}
	
	for(var i = 0 ; i <  pots.length ; i++)
	{
		if(obj.id == pots[i])
		{
			obj.style.display = "none";
		}
		else
		{
			document.getElementById(pots[i]).style.display = "inline";
		}
	}
	
	 var expire = new Date();
     expire.setTime(expire.getTime()+ (7000 * 24 * 3600000));
     xSetCookie('pots', obj.id, expire);
}

function copyToClipboard(sender) {
	if (window.clipboardData) {
		window.clipboardData.setData('Text',sender.innerHTML);
		alert('트랙백 주소가 복사되었습니다.');
	}
}

