function drawPlaylistAdType(adType){
	var adTypeHeaderRow = menuTable.insertRow(-1);
	  adTypeHeaderRow.setAttribute('id', adType.label + "_Examples");

	  
	  
	  var adTypeHeaderCell = adTypeHeaderRow.insertCell(-1);
	  adTypeHeaderCell.className = 'adlabel';
	  adTypeHeaderCell.setAttribute('valign', 'top');
	  adTypeHeaderCell.setAttribute('align', 'left');
	  adTypeHeaderCell.setAttribute('colSpan', '3');
	  adTypeHeaderCell.setAttribute('height', '25');
	  adTypeHeaderCell.appendChild(document.createTextNode(adType.label));
	  

	  
	  
	var adTypeDescRow = menuTable.insertRow(-1);
	  var adTypeDescCell = adTypeDescRow.insertCell(-1);
	  adTypeDescCell.setAttribute('valign', 'top');
	  adTypeDescCell.setAttribute('align', 'left');
	  adTypeDescCell.setAttribute('colSpan', '3');
	  adTypeDescCell.setAttribute('height', '38');
	  adTypeDescCell.appendChild(document.createTextNode(adType.description));

	
	//set up table for adExamples
	if (adType.adExamples.length == 0){  //THERE ARE NO EXAMPLES
		var noExamplesRow = menuTable.insertRow(-1);
		var noExamplesCell = noExamplesRow.insertCell(-1);
		noExamplesCell.setAttribute('colSpan', '3');
		var noExamplesHolder = document.createElement('i');
		noExamplesHolder.appendChild(document.createTextNode('There are no examples of ' + adType.label));
		noExamplesCell.appendChild(noExamplesHolder);
		
	} else {  //DRAW OUT ALL EXAMPLES FOR THIS AD TYPE
		for (var i = 0; i < adType.adExamples.length; i++){
			var currentAdExample = adType.adExamples[i];
			var adTypeExampleRow = menuTable.insertRow(-1);
			adTypeExampleRow.className = 'adExampleRow';
			var adTypeExampleThumbnailCell = adTypeExampleRow.insertCell(-1);
	   	        adTypeExampleThumbnailCell.setAttribute('align', 'left');
		        adTypeExampleThumbnailCell.setAttribute('valign', 'top');
	  		adTypeExampleThumbnailCell.setAttribute('height', '58');
	  		adTypeExampleThumbnailCell.setAttribute('width', '25%');
			  var thumbnailImage = document.createElement('img');
			  thumbnailImage.setAttribute('src', currentAdExample.thumbnailPath);
	  		  thumbnailImage.setAttribute('height', '48');
	  		  thumbnailImage.setAttribute('width', '71');
			adTypeExampleThumbnailCell.appendChild(thumbnailImage);
			var adTypeBlankCell = adTypeExampleRow.insertCell(-1);
			adTypeBlankCell.setAttribute('width', '3%');
			adTypeBlankCell.appendChild(document.createTextNode(' '));
			
			var adTypeExampleLabelCell = adTypeExampleRow.insertCell(-1);
	   	        adTypeExampleLabelCell.setAttribute('align', 'left');
		        adTypeExampleLabelCell.setAttribute('valign', 'top');
	  		adTypeExampleLabelCell.setAttribute('height', '58');
	  		adTypeExampleLabelCell.setAttribute('width', '70%');
			var exampleLink = document.createElement('a');
			if (currentAdExample.directoryName == 'richinstream_other'){
				exampleLink.setAttribute('href', currentAdExample.exampleURL);
				exampleLink.setAttribute('target', '_blank');
			} else {
				var writeAdInfoJS = "javascript:writeAdInfo('" + adType.label + "&nbsp;&nbsp;:::&nbsp;&nbsp;" + currentAdExample.title + "', '" + currentAdExample.thumbnailPath + "', '" + currentAdExample.exampleURL + "');";
				if (currentAdExample.adType == 'widget'){
				 	exampleLink.setAttribute('href', "javascript:writeNewWidget('" + currentAdExample.widgetPath + "');" + writeAdInfoJS);
				} else {  //it is an OVERLAY
				  	exampleLink.setAttribute('href', "javascript:writeNewPlayer('" + currentAdExample.videoPath + "', '" + currentAdExample.adSchedulePath + "', '" + currentAdExample.snapshotVersion + "', '" + currentAdExample.asType + "', " + currentAdExample.isPreroll + ");" + writeAdInfoJS);
				}
			}
			exampleLink.appendChild(document.createTextNode(currentAdExample.title));
			adTypeExampleLabelCell.appendChild(exampleLink);
		}
	}
	var blankRow = menuTable.insertRow(-1);
	var blankRowCell = blankRow.insertCell(-1);
	blankRowCell.appendChild(document.createElement('br'));
}



