// ąę
function autostart() {
	myWidth = -1;
	myHeight = -1;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	document.getElementById('kontener').style.height = (myHeight - document.getElementById('topMenu').clientHeight - 4) + 'px';
	if(document.getElementById('border')) {
		document.getElementById('border').style.height = document.getElementById('kontener').style.height;
		document.getElementById('border').style.width = '30px';
	}
	if(document.getElementById('naviTree')) {
		document.getElementById('naviTree').style.height = document.getElementById('border').style.height;
	}
	if(document.getElementById('strona')) {
		document.getElementById('strona').style.height = document.getElementById('border').style.height;
	}
//	document.getElementById('wypelniacz').style.height = document.getElementById('border').style.height;
	if (typeof(autostartSearch) == 'function') {
	//mały hak na odpalenie dodadtkowej inicjalizacji formy szukania
	autostartSearch();
	}
}
function togglePage(obj) {
	if(obj.className == 'toggleOn') {
		obj.className = 'toggleOff';
		obj.parentNode.className = 'kategoria';
	} else {
		obj.className = 'toggleOn';
		obj.parentNode.className = 'produkt';
	}
}

function showTab(obj, lvl) {
	obj.parentNode.parentNode.parentNode.className = 'showTab'+lvl;
	return false;
}

