function AddFavorite(linkObj, addUrl, addTitle) {
	if (document.all && !window.opera) {
		window.external.AddFavorite(addUrl, addTitle);
		return false;
	} else if (window.opera && window.print) {
		linkObj.title = addTitle;
		return true;
	} else if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function')) {
		window.sidebar.addPanel(addTitle, addUrl,'');
		return false;
	}
}

function SetAsHomepage() {
	if (document.all && !window.opera) {
		this.style.behavior='url(#default#homepage)';
		this.setHomePage(document.location.href);
		return false;
	} else {
		window.alert('Váš prohlížeč nepodporuje automatické nastavení této funkce.');
		return false;
	}
}

/* tiskopis pro ucetni */
function openUctoWin(url) {
	var sizeX = 720;
	var sizeY = 500;
	var leftpos = (screen.availWidth - sizeX) / 2;
	var toppos = (screen.availHeight - sizeY - 30) / 2;

	url+='&show=tiskopis&window=tinymce';
	var uctoWin = window.open(url, "ucto", "width="+sizeX+", height="+sizeY+", top=" + toppos + ", left=" + leftpos + ", directories=0, location=0, menubar=1, scrollbars=1, status=0, titlebar=0, toolbar=0, resizable=1");
	uctoWin.focus();
	return uctoWin;
}
/* /tiskopis pro ucetni */

function htmlShow(obj,displ) {
switch (displ) {
	case 'inline':
		obj.style.display='inline';
		break;
	case 'block':
	default:
		obj.style.display='block';
}
}

function htmlHide(obj) {
obj.style.display='none';
}

function showCustomerLogin() {
	if (T_gobj('fid_customer').checked) htmlShow(T_gobj('eshop_customer_login'));
	else htmlHide(T_gobj('eshop_customer_login'));
}

