function thumbToBeauty(row,col,myId,imgName,imCaption,idString,doorPrice){

	var idArray = idString.split(":");

	for(var i = 0;i < idArray.length;i++){
	
		var thisId = idArray[i];
		
		document.getElementById(thisId).style.borderStyle = "none";
		document.getElementById(thisId).style.borderWidth = "0px";
		document.getElementById(thisId).style.fontWeight = "normal";
	}

	var thumbCaption = stripSpaces(imCaption);
		
	var myThumbId = thumbCaption.toLowerCase() + "ThumbId";
		
	document.getElementById(myId).src = imgName;
	document.getElementById("beautyPictCaption").innerHTML = imCaption;
	
	try{
		if(doorPrice != undefined){
		
			document.getElementById("priceID").innerHTML = "$" + doorPrice;
		}
	}
	catch(e){
	
	}
	

/*	
	document.getElementById(myThumbId).style.borderStyle = "none";
	document.getElementById(myThumbId).style.borderWidth = "0px";
	document.getElementById(myThumbId).style.borderRightWidth = "0px";
	document.getElementById(myThumbId).style.borderLeftWidth = "0px";
	document.getElementById(myThumbId).style.borderBottomWidth = "0px";
	document.getElementById(myThumbId).style.borderTopWidth = "0px";
*/
	if(row == 0){
	
		if(col == 0){
			document.getElementById(myThumbId).style.borderStyle = "solid";
			document.getElementById(myThumbId).style.borderRightColor = "#4C392B";
			document.getElementById(myThumbId).style.borderRightWidth = "1px";
			document.getElementById(myThumbId).style.borderBottomColor = "#4C392B";
			document.getElementById(myThumbId).style.borderBottomWidth = "1px";
			document.getElementById(myThumbId).style.fontWeight = "bold";
			document.getElementById(myThumbId).style.fontStyle = "italic";
			document.getElementById(myThumbId).style.fontSize = "12px";

		}
		else{
			
			document.getElementById(myThumbId).style.borderStyle = "solid";
		//	document.getElementById(myThumbId).style.borderRightColor = "#4C392B";
			document.getElementById(myThumbId).style.borderRightWidth = "1px";
		//	document.getElementById(myThumbId).style.borderBottomColor = "#4C392B";
			document.getElementById(myThumbId).style.borderBottomWidth = "1px";
		//	document.getElementById(myThumbId).style.borderLeftColor = "#4C392B";
			document.getElementById(myThumbId).style.borderLeftWidth = "1px";
			
			document.getElementById(myThumbId).style.borderColor = "#4C392B";
			document.getElementById(myThumbId).style.fontWeight = "bold";
			document.getElementById(myThumbId).style.fontStyle = "italic";
			document.getElementById(myThumbId).style.fontSize = "12px";

		}
	
	}
	else{	// row > 0
	
		if(col == 0){
		
			document.getElementById(myThumbId).style.borderStyle = "solid";
		//	document.getElementById(myThumbId).style.borderRightColor = "#4C392B";
			document.getElementById(myThumbId).style.borderRightWidth = "1px";
		//	document.getElementById(myThumbId).style.borderBottomColor = "#4C392B";
			document.getElementById(myThumbId).style.borderBottomWidth = "1px";
		//	document.getElementById(myThumbId).style.borderTopColor = "#4C392B";
			document.getElementById(myThumbId).style.borderTopWidth = "1px";
			document.getElementById(myThumbId).style.fontWeight = "bold";
			document.getElementById(myThumbId).style.fontStyle = "italic";
			document.getElementById(myThumbId).style.fontSize = "12px";	
			document.getElementById(myThumbId).style.borderColor = "#4C392B";
		}
		else{
			
			document.getElementById(myThumbId).style.borderStyle = "solid";
			document.getElementById(myThumbId).style.borderColor = "#4C392B";
			document.getElementById(myThumbId).style.borderWidth = "1px";
			document.getElementById(myThumbId).style.fontWeight = "bold";
			document.getElementById(myThumbId).style.fontStyle = "italic";
			document.getElementById(myThumbId).style.fontSize = "12px";

		}
	
	}
	
}
