function swapContent(pShow) {
	if(window.crtTab != undefined) {
		pHide = window.crtTab;
	} else {
		pHide = "description";
	}
	
	document.getElementById(pHide + "-content").style.display = "none";
	document.getElementById(pShow + "-content").style.display = "block";
	
	//
	if(document.getElementById("btn-" + pHide)) {
		document.getElementById("btn-" + pHide).style.backgroundImage = 'url(img/main-menu/' + pHide + '_normal.jpg)';
		document.getElementById("btn-" + pHide).style.height = '33px';
	}
	if(document.getElementById("btn-" + pShow)) {
		document.getElementById("btn-" + pShow).style.backgroundImage = 'url(img/main-menu/' + pShow + '_selected.jpg)';
		document.getElementById("btn-" + pShow).style.height = '53px';
	}
	//
	
	window.crtTab = pShow;
}

function swapPhoto(pShow) {
	if(window.crtPhoto != undefined) {
		pHide = window.crtPhoto;
	} else {
		pHide = "1";
	}
	
	document.getElementById("large-pic-" + pHide).style.display = "none";
	document.getElementById("large-pic-" + pShow).style.display = "block";
	
	//
	document.getElementById("thumb-" + pHide).className = 'thumb-normal';
	document.getElementById("thumb-" + pShow).className = 'thumb-selected';
	
	document.getElementById("thumb-" + pHide).style.height = '33px';
	document.getElementById("thumb-" + pShow).style.height = '53px';
	
	//
	
	window.crtPhoto = pShow;
}

function checkFeedback() {
	if(document.getElementById("feedback").value != "") {
		document.getElementById("send").disabled = false;
	}
}

function imgPop(pajina, daWidth, daHeight, daScroll) {
	// determine screen width and height
	wSize = screen.width;
	hSize = screen.height;
	// page title
	//pageTitle = 'Life Packaging Technology';
	// 
    //pageName = 'intro.html';
	wWindow = daWidth;
 	hWindow = daHeight;
	// offset X (to substract borders) and Y (to substract Windows START bar)
	offSetX = 5;
	offSetY = 30;
	// determine left and top position
	leftWindow = ((wSize - wWindow) / 2) - offSetX;
	topWindow = ((hSize - hWindow) / 2) - offSetY;
	// set some features
	/*fullScreen = 'no';
	menuBar = 'no';
	reSize = 'no';
	scrollBar = daScroll;
	statusBar = 'no';
	titleBar = 'yes';
	toolBar = 'no';*/
	window.open( pajina, "myWindow", "status = 1, height = "+hWindow+", width = "+wWindow+", top = "+topWindow+", left = "+leftWindow+", resizable = 0, scrollbars = "+daScroll)
}
