document.write("<style>#L1Title { display:none; }</style>");
var notloaded = true;

$(document).ready(function(){
	var MenuArray = new Array(
		{pageid : 121412,hoffset:37,animate:"true"},
		{pageid : 121413,hoffset:-5,animate:"true"},
		{pageid : 121414,hoffset:-4,animate:"true"},
		{pageid : 121415,hoffset:-4,animate:"true"},
		{pageid : 121416,hoffset:-4,animate:"true"},
		{pageid : 120276,hoffset:-4,animate:"true"}
	);
	var L1_on = pdGlobal.currentPages[0].id;
	
	var options = {
		xml_path:"/xml/default.asp",
		sid:433,
		direction:"down",
		hOffset:0,
		vOffset:0,
		settings:MenuArray,
		currentL1:L1_on,
		showL3s:false,
		debug:false
	};
	$('#L1').menu(options);

		var options = {
		xml_path:"/xml/default.asp",
		emButton:true,
		sid:433,
		gid:11261
		};
		$('body').bulletin(options);
	
	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;
	}
	
	if(notloaded){
		var emTagName = "fh_1001"
		var flashv={};
		var flashheight = "50px";
		flashv.titleL1 =pdGlobal.currentPages[0].title;
		if(pdGlobal.currentPages[1] != undefined){
			flashv.titleL2 =pdGlobal.currentPages[1].title;				
		}
		if(pdGlobal.currentPages[2] != undefined){
			flashv.titleL3 =pdGlobal.currentPages[2].title;
			flashheight = "50px";
			}
		/*
		if(pdGlobal.currentPages[2] != undefined){
			flashv.titleL3 =pdGlobal.currentPages[2].title;	
			//flashheight = "38px";
		}
		*/
		
		flashv.flashID =emTagName; 							
							
		$("#L1Title").flash({ 
			src: '/flash/header.swf',
			wmode:'transparent',
			flashvars: flashv,
			width: '100%',
			height: flashheight,
			AllowScriptAccess: 'always'
		});	
		$("#L1Title").css("display","block");
		$("#L2Title").css("visibility","visible");	
		$("#L2Title").css("display","none");
				
	}	
});
