// otwierania linku o klasie openNew w nowym oknie
function newWindow () {
	var hyperlink = document.getElementsByTagName('a');
	for (var i=0; i<hyperlink.length; i++) {
		var hyperlinkSelected = hyperlink[i];
		if (hyperlinkSelected.className.substring(0,7) == "openNew") {
			hyperlinkSelected.onclick = function () {
				window.open(this.href);
				return false;
			}
		}
	}
}
function newWindowBrands () {
	var hyperlink = document.getElementById('BrandsMenu').getElementsByTagName('li');
	for (var i=0; i<hyperlink.length; i++) {
		hyperlink[i].getElementsByTagName('a')[0].onclick = function() {
			window.open(this.href);
			return false;
		}
	}
}


window.onload = function js() {
	newWindow();

}
