$('document').ready(function(){

	/* menu style: 1st level unselected  */
		$(".menu > li > a").each(function(i){
			$(this).css("padding-top",5);
			$(this).flash({
				src: 'swf/neo_sans_my.swf',
				flashvars: { 
					 sTitle: $(this).text()
					,sColor: "0x003f5e"
					,sHoverColor: "0xf1620b"
					,sSize: "13"
					,sURL: $(this).attr("href")
					,nX: -3
					,nY: 0
					,nWidth: 190
					,nHeight: 20
					,nBold: 1
				},
				wmode: 'transparent',
				width: 190,
				height: 20
			},
			{ version: '8', update: false }
			);
		});

	/* menu style: 1st level selected  */
		$('.menu > li > a.sel').each(function(i){
			$(this).flash({
				src: 'swf/neo_sans_my.swf',
				flashvars: { 
					 sTitle: $(this).text()
					,sColor: "0xf1620b"
					,sHoverColor: "0xf1620b"
					,sSize: "13"
					,sURL: $(this).attr("href")
					,nX: -3
					,nY: 0
					,nWidth: 190
					,nHeight: 20
					,nBold: 1
				},
				wmode: 'transparent',
				width: 190,
				height: 20
			},
			{ version: '8', update: false }
			);
		});

	/* menu style: 2nd level deselected  */
		$(".menu > li > ul > li > a, .menu > ul > li > a").each(function(i){
			$(this).css("padding-top",6);
			$(this).flash({
				src: 'swf/neo_sans_my.swf',
				flashvars: { 
					 sTitle: $(this).text()
					,sColor: "0x003f5e"
					,sHoverColor: "0xf1620b"
					,sSize: "11"
					,sURL: $(this).attr("href")
					,nX: -3
					,nY: 0
					,nWidth: 180
					,nHeight: 20
					,nBold: 1
				},
				wmode: 'transparent',
				width: 180,
				height: 20
			},
			{ version: '8', update: false }
			);
		});

	/* menu style: 2nd level selected  */
		$(".menu > li > ul > li > a.sel, .menu > ul > li > a.sel").each(function(i){
			$(this).flash({
				src: 'swf/neo_sans_my.swf',
				flashvars: { 
					 sTitle: $(this).text()
					,sColor: "0xf1620b"
					,sHoverColor: "0xf1620b"
					,sSize: "11"
					,sURL: $(this).attr("href")
					,nX: -3
					,nY: 0
					,nWidth: 180
					,nHeight: 20
					,nBold: 1
				},
				wmode: 'transparent',
				width: 180,
				height: 20
			},
			{ version: '8', update: false }
			);
		});

	/* menu style: 3rd level deselected  */
		$(".menu > ul > ul > li > a, .menu > li > ul > li > ul > li > a").each(function(i){
			$(this).css("padding-top",6);
			$(this).flash({
				src: 'swf/neo_sans_my.swf',
				flashvars: { 
					 sTitle: $(this).text()
					,sColor: "0x003f5e"
					,sHoverColor: "0xf1620b"
					,sSize: "11"
					,sURL: $(this).attr("href")
					,nX: -3
					,nY: 0
					,nWidth: 180
					,nHeight: 20
					,nBold: 1
				},
				wmode: 'transparent',
				width: 180,
				height: 20
			},
			{ version: '8', update: false }
			);
		});

	/* menu style: 3rd level selected  */
		$(".menu > ul > ul > li > a.sel, .menu > li > ul > li > ul > li > a.sel").each(function(i){
			$(this).flash({
				src: 'swf/neo_sans_my.swf',
				flashvars: { 
					 sTitle: $(this).text()
					,sColor: "0xf1620b"
					,sHoverColor: "0xf1620b"
					,sSize: "11"
					,sURL: $(this).attr("href")
					,nX: -3
					,nY: 0
					,nWidth: 170
					,nHeight: 20
					,nBold: 1
				},
				wmode: 'transparent',
				width: 170,
				height: 20
			},
			{ version: '8', update: false }
			);
		});
		
	/* color every other td in nice tables */
		$(".document1 table tr:odd td").each(function(i){
			$(this).css("background-color","#EAEFF2");
		});
		$(".document1 table").each(function(i){
			$(this).css("border-collapse","separate");
			$(this).addClass("nice");
		});
});
