$(document).ready(function(){
	var MenuArray = new Array(
		{pageid : 120361,hoffset:0,animate:"true"},
		{pageid : 120363,hoffset:0,animate:"true"},
		{pageid : 120362,hoffset:0,animate:"true"},
		{pageid : 120364,hoffset:0,animate:"true"},
		{pageid : 120365,hoffset:0,animate:"true"}
	);
	var L1_on = pdGlobal.currentPages[0].id;
	
	var options = {
		xml_path:"/xml/default.asp",
		sid:194,
		direction:"down",
		hOffset:0,
		vOffset:0,
		settings:MenuArray,
		currentL1:L1_on,
		showL3s:false,
		debug:false
	};
	$('#L1').menu(options);

	$('body').bulletin({sid:194,gid:11602,emButton:false});

	/*switch(pdGlobal.currentPageLevel){
	case 2: $("#L2Title").html(pdGlobal.currentPages[1].title);
	case 1: $("#L1Title").html(pdGlobal.currentPages[0].title).css("display","block"); break;
	case 3:
	default: 
		$("#L2Title").html(pdGlobal.currentPages[1].title);
		$("#L3Title").html(pdGlobal.currentPages[2].title);
		break;
}*/

});


function buildBreadcrumbTrail(){
	var returnVal = "";
	var end = "";
	for(i=0; i < pdGlobal.currentPages.length; i++){
		returnVal += "<a class='custom_bread_crumb' href='/podium/default.aspx?t="+pdGlobal.currentPages[i].id+"'>" + pdGlobal.currentPages[i].title + "</a>";
		if(i != pdGlobal.currentPages.length-1){
			returnVal += " : "
		}
	}
	end = "<a class='custom_bread_crumb' href='../default.asp'>Home</a> > "+returnVal;
	return end;
}

function SetBannerStuff(){
	$("#crumbs").html(buildBreadcrumbTrail());
}