//<cmignore> //collage
function dynamicTabs (tabElements, size) {
if (size=="small") { //start size logic - small 
	if (jQuery.browser.msie) {
		if (jQuery.browser.version==6) {
			$(tabElements).hover(function () {		
					$(this).children('a').css("paddingTop","18px");  //was 14
					$(this).children('.tab_focus').css("opacity", 1.0);
					$(this).children('.tab_focus').css("backgroundPosition","0px 0px");
				},
				function () {
					$(this).children('a').css("paddingTop","24px"); //was 20
					$(this).children('.tab_focus').css("opacity", 0.0);
					$(this).children('.tab_focus').css("backgroundPosition","0px 18px");
				}
			);
		}
		else
		{
			$(tabElements).hover(function () {		
					$(this).children('a').stop().animate({paddingTop:"18px"},400);
					$(this).children('.tab_focus').stop().animate({opacity:1.0, backgroundPosition:'(0 0px)'},400);
				},
				function () {
					$(this).children('.tab_focus').stop().animate({opacity:0.0, backgroundPosition:'(0 18px)'},300);
					if ($(this).hasClass('ui-state-active')) {
						$(this).children('a').stop().animate({paddingTop:"18px"},300);
					}else
					{
						$(this).children('a').stop().animate({paddingTop:"24px"},300);
					}
				}
			);
		}
	}
	else
	{
			$(tabElements).hover(function () {	
					$(this).children('a').stop().animate({paddingTop:"18px"},400);
					$(this).children('.tab_focus').stop().animate({opacity:1.0, backgroundPosition:'(0 0px)'},400);
				},
				function () {
						$(this).children('.tab_focus').stop().animate({opacity:0.0, backgroundPosition:'(0 18px)'},300);
						if ($(this).hasClass('ui-state-active')) {
							$(this).children('a').stop().animate({paddingTop:"18px"},300);
						}else
						{
							$(this).children('a').stop().animate({paddingTop:"24px"},300);
						}
				}
			);
	}
}
else if (size=="medium")  //continue size logic - medium  
{
	if (jQuery.browser.msie) {
		$(tabElements).hover(function () {		
				$(this).children('a').css("paddingTop","18px");  //was 14
				$(this).children('.tab_focus').css("opacity", 1.0);
				$(this).children('.tab_focus').css("backgroundPosition","0px 0px");
			},
			function () {
				$(this).children('a').css("paddingTop","20px"); //was 20
				$(this).children('.tab_focus').css("opacity", 0.0);
				$(this).children('.tab_focus').css("backgroundPosition","0px 15px");
			}
		);
	}
	else
	{
			$(tabElements).hover(function () {	
					$(this).children('a').stop().animate({paddingTop:"18px"},300);
					$(this).children('.tab_focus').stop().animate({opacity:1.0, backgroundPosition:'(0 0px)'},300);
				},
				function () {
					$(this).children('a').stop().animate({paddingTop:"20px"},300);
					$(this).children('.tab_focus').stop().animate({opacity:0.0, backgroundPosition:'(0 15px)'},300);	
				}
			);
	}
}
else //continue size logic -large
{
	if (jQuery.browser.msie) {
		if (jQuery.browser.version==6) {
			$(tabElements).hover(function () {		
					$(this).children('a').css("paddingTop","18px");  //was 14
					$(this).children('.tab_focus').css("opacity", 1.0);
					$(this).children('.tab_focus').css("backgroundPosition","0px 0px");
				},
				function () {
					$(this).children('a').css("paddingTop","20px"); //was 20
					$(this).children('.tab_focus').css("opacity", 0.0);
					$(this).children('.tab_focus').css("backgroundPosition","0px 15px");
				}
			);
		}
		else
		{
			$(tabElements).hover(function () {			
					$(this).children('a').stop().animate({paddingTop:"18px"},300);
					$(this).children('.tab_focus').stop().animate({opacity:1.0, backgroundPosition:'(0 0px)'},300);
				},
				function () {
					$(this).children('a').stop().animate({paddingTop:"20px"},300);
					$(this).children('.tab_focus').stop().animate({opacity:0.0, backgroundPosition:'(0 15px)'},300);
				}
			);
		}
	}
	else
	{
			$(tabElements).hover(function () {	
					$(this).children('a').stop().animate({paddingTop:"18px"},300);
					$(this).children('.tab_focus').stop().animate({opacity:1.0, backgroundPosition:'(0 0px)'},300);
				},
				function () {
						$(this).children('a').stop().animate({paddingTop:"20px"},300);
						$(this).children('.tab_focus').stop().animate({opacity:0.0, backgroundPosition:'(0 15px)'},300);	
				}
			);
	}
	
} //end size logic
	
} // end function

$(document).ready(function(){
		$('.tab_focus').animate({opacity:0.0}); //so that the large background tabs can be displayed via animations
		$('.tab_focus').css("display","block");	
}); // $(document).ready
//</cmignore>