function hide_all() {
	for (var i = 1; i<=7; i++) {
		document.getElementById('showable' + i).style.display = 'none';	
	}
}
function switch_menu(idik) {
		if (document.getElementById(idik).style.display == "inline") {
			document.getElementById(idik).style.display="none";	
		}
		else {
			hide_all();
			document.getElementById(idik).style.display="inline";
		}
}

/* for (i=1; i<=7; i++) {
	document.getElementById('showable' + i).onmouseover = function(e) {
			if (!e) var e = window.event;
			e.cancelBubble = true;
			if (e.stopPropagation) e.stopPropagation();
		}
} */

/* WERSJA DOCELOWA 
function confirm_lang_change(to_what_ver) {
	switch (to_what_ver) {
		case "pl":		odp = confirm("Koszyk zostanie opróżniony - czy chcesz kontynuować?");
						if (odp) {
							window.location = "main.html";
						}
						break;
		case "euro":	odp = confirm("This will empty your cart - do you want to continue?");
						if (odp) {
							window.location = "main_euro.html";
						}
						break;
	}
} */

/* wersja tymczasowa */
function confirm_lang_change(to_what_ver) {
	if (to_what_ver == 'pl' ) {
		window.location = 'main.html';		// potem php
	} else {
		window.location = 'main_euro.html';
	}
}

/* function center() {
  var myWidth = 0, myHeight = 0;
  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;
  }
  if ( myWidth<1100 ) {
	myWidth = 50-(myWidth-1100)/2;
	if ( myWidth>50 ) {
		myWidth = 50;
	}
	window.scroll(myWidth,0);
  }
} */

function pokaz_odp(id_pyt) {
	for (var i=1; i<=30; i++) {
		if ( document.getElementById('odpowiedz_' + i) != null ) {
			document.getElementById('odpowiedz_' + i).style.display = 'none';
		}
	}
	document.getElementById('odpowiedz_' + id_pyt).style.display = 'block';
}

