var styleArray = new Array();
var currentStyle = null;

function styleObj(ndx){
	this.styleImg = new Image();
	this.styleImg.src = "img/lb/full_"+ndx+".jpg";
	return this;
}

function init(){
	for(count=1;count<=32;count++){
		styleArray[count] = new styleObj(count);
	}
}

function showStyle(thumbImg){
	if(styleArray.length<32){return;}
	if(currentStyle){
		currentStyle.className="thumbnailOff";
		currentStyle = thumbImg;
	}else{
		currentStyle = thumbImg;
	}
	currentStyle.className="thumbnailOn";
	currentId = currentStyle.src.substring((currentStyle.src.lastIndexOf("_")+1),currentStyle.src.lastIndexOf(".jpg"));
	if(trgtImg = document.getElementById("styleIMG")){
		trgtImg.src = styleArray[currentId].styleImg.src;
	}
}
