switch(pdGlobal.currentPages[0].id){	
	case 128638: document.write("<link rel='stylesheet' type='text/css' href='/css/hp.css'/>"); break;
	default: document.write("<link rel='stylesheet' type='text/css' href='/css/interior.css'/>"); break;
	}
	
var MenuArray = new Array(
	{pageid : 128288,hoffset:-1,voffset:0},
	{pageid : 128290,hoffset:-2,voffset:0},
	{pageid : 128291,hoffset:-2,voffset:0},
	{pageid : 128292,hoffset:-2,voffset:0},
	{pageid : 128293,hoffset:-2,voffset:0},
	{pageid : 128294,hoffset:-2,voffset:0},
	{pageid : 128295,hoffset:-85,voffset:0}
	);
	
var options = {
	css_path:"/css/menu.css",
	xml_path:"/xml/default.asp",
	sid:59,
	direction:"down",
	settings:MenuArray,
	currentL1: pdGlobal.currentPages[0].id,
	showL3s:false,
	debug:true
	};
	
$(document).ready(function(){
	$('#search').pdSearch({showButton:true, showButtonClass:'searchSubmit',showButtonText:''}); 

	if(pdGlobal.currentPages[pdGlobal.currentPageLevel-1].id === 128638){
		//CSP sdb 090910 original line $("#topNav").css("margin-left","527px");
		$("#topNav").css("margin-left","387px");//CSP sdb 090910 added this to stop the floating with a smaller browser window
		$("#topNavCenter").css("width","892px");//CSP sdb 090910 added this to stop the floating with a smaller browser window
		if($.browser.msie === true){
			//CSP sdb 090910 original line $("#topNav").css("margin-left","436px");
			$("#topNav").css("margin-left","425px");
		}	
	}
	$("#lInTblLCell").css("padding-top","0").css("padding-right","0").css("padding-left","0");
	
	$("<a></a>").attr("href","/podium/default.aspx?t=128638").html("Back to Home").appendTo("#lNavTop");
	
	$("#L1").menu(options);
	$('body').bulletin({sid:59,gid:6508});
	
	//Added this to fix images on news detail pages. 
	if(pdGlobal.currentPages[pdGlobal.currentPageLevel-1].id === 204){
		$(".cchtxt img").css({"width":"","height":""});
	}
});

/*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;
	}
}
