function getObj(name){
	return document.getElementById(name);
}

function projsChangeImg(id){
	InitSelection();
	currId = id;
	if(id>0) {
		//projsShowTbl("img");
		getObj("bigImgTD").filters[0].apply();
		getObj("bigImg").src = imgs[id-1][1];
		getObj("bigImgTD").filters[0].play();
		// no opacity
		getObj("thumb" + id).style.filter="alpha(opacity=100);";
	} else {
		projsShowTbl("tbl");
	}
	// show arrow
	//getObj("arr" + id).style.display = "inline";
}
function projsShowTbl(display){
	if (display == "img") {
		getObj("bigImgTbl").style.display = 'none';
		getObj("bigImg").style.display = 'inline';
	} else {
		getObj("bigImgTbl").style.display = 'inline';
		getObj("bigImg").style.display = 'none';
	}
}
function InitSelection(id){
	for (i=0; i <=total; i++) {
		//getObj("arr" + i).style.display = "none";
		if(i>0){
			getObj("thumb" + i).style.filter="alpha(opacity=30);";
		}
	}
}
function doMouseOut(obj){
	//alert("thumb"+currId);
	if ("thumb"+currId != obj.id){
		obj.style.filter = "alpha(opacity=30);"
	}else{
		return false;
	}
}
