if(pdGlobal.currentPages[pdGlobal.currentPageLevel-1].type == "application") {
	document.write("<style>.thWrap { padding-left:10px; }</style>");
}
var currentPage = parseInt(pdGlobal.currentPages[0].id);
if (currentPage === 125093) {
   document.write("<style>a#lColHPLink { background: url(/ftpimages/394/podium/style750/hpButton.png) no-repeat 0px -36px;}</style>");
}




var MenuArray = new Array(
		{pageid : 124708,hoffset:0,voffset:0,animate:"true"},
		{pageid : 124709,hoffset:-45,voffset:0,animate:"true"},
		{pageid : 124710,hoffset:-40,voffset:0,animate:"true"},
		{pageid : 124711,hoffset:-10,voffset:0,animate:"true"},
		{pageid : 124713,hoffset:-19,voffset:0,animate:"true"}
	);

$(document).ready(function(){
	//insert anchor up top, check for task photo and adjust styles accordingly, THEN show left column
	$("<a></a>")
		.attr("href","/podium/default.aspx?t=125093")
		.attr("id","lColHPLink")
		.html("Saint Thomas Episcopal Parish")
		.attr("title","Welcome")
		.insertBefore("#lNavPhoto");
	if($("#lNavPhoto img").length==0) {
		$("#lNavPhoto").css("padding","0");
		$("#leftColAddress").css("margin-top","170px");
		$(".u1h").css("margin","0");
		$("#lInTblLCell").css("padding-top","100px");
	}
	$("#lInTblLCell").css("visibility","visible");
	
	//condensed these and removed the options left as default
	$('#L1').menu({sid:394,direction:"down",settings:MenuArray,currentL1:pdGlobal.currentPages[0].id,showL3s:false});
	$('body').bulletin({sid:394,gid:11010});
	 
});

/*Search Functions */
function submitSearch(){ __pdSiteSearch('', document.getElementById("search").value); }
function SubmitOnEnter(evt){
	var charCode = (evt.which) ? evt.which : event.keyCode;
	if(charCode == "13" || charCode == "26"){ submitSearch(); return false; }
}
