﻿$(document).ready(function()
{

// Photo Captions from Alt Tag
	$("img.caption-RibbonBlue").each(function(i) 
	{
		var captiontext = $(this).attr('alt');
		$(this).wrap("<div id='imgpost10'></div>");
		$(this).parent().append("<div id='captionbox-RibbonBlue'>" + captiontext + "</div>");
	});
	
	$("img.caption-RibbonGray").each(function(i) 
	{
		var captiontext = $(this).attr('alt');
		$(this).wrap("<div id='imgpost10'></div>");
		$(this).parent().append("<div id='captionbox-RibbonGray'>" + captiontext + "</div>");
	});
	
	$("img.caption-Normal").each(function(i) 
	{
		var captiontext = $(this).attr('alt');
		var captionwidth = $(this).attr('width');
		$(this).wrap("<div id='imgpost10' style='width:" + captionwidth + "px'></div>");
		$(this).parent().append("<div id='captionbox-Normal'>" + captiontext + "</div>");
	});
	
	$("img.caption-FadeBottom").each(function(i) 
	{
		var captiontext = $(this).attr('alt');
		var captionwidth = $(this).attr('width');
		$(this).wrap("<div id='imgpost'</div>");
		$(this).parent().append("<div id='captionbox-FadeBottom' style='width:" + captionwidth + "px'><div class='pad'>" + captiontext + "</div></div>");
	});
	
		$("img.caption-FadeRight").each(function(i) 
	{
		var captiontext = $(this).attr('alt');
		var captionheight = $(this).attr('height');
		$(this).wrap("<div id='imgpost'></div>");
		$(this).parent().append("<div id='captionbox-FadeRight' style='height:" + captionheight + "px'><div class='pad'>" + captiontext + "</div></div>");
	});
		
// Media Embed 
    UNFMedia();

// Table Alternating Row Colors 
    $('table#blue tr:odd, table#gray tr:odd, table#green tr:odd, table#bluegray tr:odd').addClass('odd');
    $('table#blue tr:even, table#gray tr:even, table#green tr:even, table#bluegray tr:even').addClass('even');


});




