window.onload = initAll;

function initAll() {
	document.getElementById("GroupT").onclick = OpenActiu;
	document.getElementById("GroupN").onclick = OpenActiu;
	document.getElementById("GroupK").onclick = OpenActiu;
	document.getElementById("IkaraFin").onclick = OpenActiu;
	document.getElementById("GroupP").onclick = OpenActiu;
	document.getElementById("GroupD").onclick = OpenActiu;
	document.getElementById("GroupC").onclick = OpenActiu;
	document.getElementById("SpacioCol").onclick = OpenActiu;
	document.getElementById("WoodStains").onclick = OpenTekhne;
	
}

function OpenActiu() {
	switch(this.id) {
		case "GroupT":
			window.open('groupT.php','grT', 'width=550,height=750, menubar=no, scrollbars=1, status=no');
			break;
		case "GroupN":
			window.open('groupN.php','grN', 'width=510,height=650, menubar=no, scrollbars=1, status=no');
			break;
		case "GroupK":
			window.open('groupK.php','grK','width=550 height=650, menubar=0,scrollbars=1');
			break;
		case "GroupP":
			window.open('groupP.php','grP','width=400 height=480, scrollbars=yes');
			break;
		case "GroupD":
			window.open('groupD.php','grD','width=400 height=580, scrollbars=yes');
			break;
		case "GroupC":
			window.open('groupC.php','grC','width=400 height=580, scrollbars=yes');
			break;
		case "SpacioCol":
			window.open('spacio_colours.php','spacio_colours','width=450 height=550, menubar=0, scrollbars=1');
			break;
		case "IkaraFin":
			window.open('ikaraFinishes.php','ikaraFinishes','width=1100, height=600','menubar=no, status=no, scrollbars=1');
			break;
		default:
	}
}

function OpenTekhne() {
	switch(this.id) {
		case "WoodStains":
			window.open('wood_stains_tekhne.php','StainsTekhne', 'width=400,height=550, menubar=no, scrollbars=1, status=no');
			break;
			default:
	}
}


