// JavaScript Document

function BlackSet() {
	
	var thePhotos = jQuery(".BlackSet");

	if(thePhotos.length > 0)
	{
		var theHtml = "<div align='left' style='float:left; line-height: normal; margin: 0 8px 8px 0;'>";
		theHtml += "<table border='0' cellspacing='0' cellpadding='0' style='line-height: normal;'>";
		theHtml += "<tr> <td style='background: transparent url(/images/BlackSet/top-left.jpg) no-repeat bottom left; width: 7px; height: 5px;'></td> <td style='background: transparent url(/images/BlackSet/topBG.jpg) repeat-x bottom left; height: 5px;'></td> <td style='background: transparent url(/images/BlackSet/top-right.jpg) no-repeat bottom right; width: 6px; height: 5px;' /></td> </tr>";
		theHtml += "<tr> <td style='background-image: url(/images/BlackSet/leftBG.jpg);'><img src='/images/BlackSet/leftBG.jpg' /></td> <td class='content'></td> <td style='background-image: url(/images/BlackSet/rightBG.jpg);'><img src='/images/BlackSet/rightBG.jpg' width='6' height='1' /></td> </tr>";
		theHtml += "<tr> <td style='background: transparent url(/images/BlackSet/bot-left.jpg) no-repeat top left; width: 7px; height: 5px;'></td> <td style='background: transparent url(/images/BlackSet/botBG.jpg) repeat-x top left; height: 5px;'></td> <td style='background: transparent url(/images/BlackSet/bot-right.jpg) no-repeat top right; width: 6px; height: 5px;' /></td> </tr>";		
		theHtml += "</table></div>";
		
		for ( var i = 0; i < thePhotos.length; i++ ) 
		{
			jQuery(thePhotos[i]).before(theHtml).prev().find('td.content').append( thePhotos[i] );
		}
	}
} 
