function setPng24(obj) {
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter =
		"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
		obj.src='';
	return '';
}

function myLogDetension(URL,path,time) {
	var obj = $('pop');
	if(obj) {
		var _url = URL.split("?");
		var url = _url[0];
		var pars = _url[1]+"&path="+path+"&time="+time;
 
    var sObj = new Ajax.Updater(
      {success: 'pop'},
      url,
      {
        method: 'get',
        parameters: pars
      }
    );
	}
}

function setCookie(name, value, expiredays) {
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function closeCookiePop(name,id) {
	setCookie(name,"done",1);
	closePop(id);
}

function closePop(id) {
	var obj = $(id);
	if(obj) {
		if(obj.style.display != 'none')
			obj.style.display = 'none';
	}
}

