// JavaScript Document

$(document).ready(function() {
						   
$("#gridLeft ul.nonBulleted ul:eq(0)").addClass("ulFirst");
$("#gridLeft ul.nonBulleted ul:eq(1)").addClass("ulSecond");
$("#gridLeft ul.nonBulleted ul:eq(2)").addClass("ulThird");
$("#gridLeft ul.nonBulleted ul:eq(3)").addClass("ulFourth");
$("#gridCenter ul.btmTabBar li:eq(2)").hide();
$("#gridLeft ul.nonBulleted ul").each(function() {$(this).children(":first").addClass("liFirst"); });

var thirdTab = '<span>' + $("#gridCenter .btmBarMainDiv .btmTab div:nth-child(3) .btmTabLeftMainSection").html() + '</span>';
$(thirdTab).appendTo($("#gridCenter .btmBarMainDiv .btmTab div:nth-child(2) .placeHolder3"));
$("#gridCenter .btmBarMainDiv .btmTab div:nth-child(1) .btmTabLeftMainSection").attr('id','firstTab');

var tabId = $("#gridCenter .btmBarMainDiv .btmTab div:nth-child(1)").attr('id');
var lastInd = tabId.lastIndexOf('_')
tabId =  tabId.substring(0,lastInd+1)
selTab(2, 3, tabId);

});
