
	function clearall() {
		for (i=1;i<=8;i++) {
			document.getElementById('ico'+i).className='hm1';
			document.getElementById('sub'+i).style.display='none';
		}
	}

	function onmover(scount) {
		clearall();
		document.getElementById('ico'+scount).className='hm2'; 
		document.getElementById('sub'+scount).style.display='inline';
	}

	function onmenu(who,scount) {
		who.className='lm'+scount; 
	}


	function barexpand(who) {
			q = document.getElementById("submen"+who);
			q.style.display='block';
			fullH = q.offsetHeight;
			q.style.height='1px';

			var goH = setInterval(function() {
				var curH = q.offsetHeight;
				var newH = curH + 10;
				if (newH < fullH) {
					q.style.height = newH + "px";
				} else {
					clearInterval(goH);
					q.style.height = "";
					document.getElementById("expan"+who).src = "img/lmen_col.gif";
				}
			}, 10);
	}

	function barcollapse(who) {
			q = document.getElementById("submen"+who);
			fullH = q.offsetHeight;

			var goH = setInterval(function() {
				var curH = q.offsetHeight;
				var newH = curH - 10;
				if (newH > 1) {
					q.style.height = newH + "px";
				} else {
					clearInterval(goH);
					q.style.height = fullH;
					q.style.display='none';
					document.getElementById("expan"+who).src = "img/lmen_exp.gif";
				}
			}, 10);
	}


	function barswitch(who) {

		q = document.getElementById("submen"+who);
		if (q.style.display=='none' || q.style.display=='') {
			barexpand(who);
		} else {
			barcollapse(who);
		}
				
	}
	
	var uppercase = false;

	function changefontsize() {
		var mysheet=document.styleSheets[0]
		var myrules=mysheet.cssRules? mysheet.cssRules: mysheet.rules
		for (i=0; i<myrules.length; i++){
			if((myrules[i].selectorText.toLowerCase().indexOf("pierwszy")!=-1) ||
			   (myrules[i].selectorText.toLowerCase().indexOf("tresc")!=-1)){
				if(uppercase) {
					myrules[i].style.fontSize = "12px";
				}
				else {
					myrules[i].style.fontSize = "15px";
				}
			}
		}
		uppercase ? uppercase = false : uppercase = true;
	}
	
	function bookmark(obj){
	    var title="StartUp-IT";
	    var url=window.location.href;
	
	    if (window.sidebar) window.sidebar.addPanel(title, url,"");
	    else if(window.opera && window.print) {
			obj.setAttribute('rel','sidebar');
			obj.setAttribute('href',url);
			obj.setAttribute('title',title);
			obj.click();
	    }
	    else if(document.all) window.external.AddFavorite(url, title);
	}
	
	function printpage(id) {
		newWindow = window.open('http://www.startup-it.pl/print.php?id=' + id,'newWin','width=750, height=500, scrollbars=1');
	}
	
	function showform() {
		var obj = document.getElementById("comm");
		obj.style.display = "block";
	}
	