$("document").ready(function() {
	$("a.newsltr").click(function() {
		enlarge(this.href);
		return false;
	});
	$("#closeBtn").click(function() {
		self.close();
	});
	$("a.website").click(function() {
		gotoWeb(this.href);
		return false;
	});
	$("#menuList a:eq(1)").addClass('current');
});
		
		function enlarge(img)
		{
			var theImg = img.split('assets/');
			var height=650;
			var width=550;
			var newLeft = (window.screen.availWidth - width) / 2;
			var newHeight = (window.screen.availHeight - height) /2;
			var url = "index.cfm/fa/c.ltrEnlarge/file/" + theImg[1];
			var objPopup = window.open(url,'uploadWin','height=' + height + ',width=' + width + ',left=' + newLeft +',top=' + newHeight + ',menubar=0,status=0,scrollbars=0,directories=0');
			objPopup.focus();
		}

		// powers the drop down pagechanger
		function PageChanger(page)
		  {
 			var b = document.getElementsByTagName('base');
 			if (b && b[0] && b[0].href) {
   			if (b[0].href.substr(b[0].href.length-1) == '/')
   			page = b[0].href + page;
			location.href = page;
			}
			document.NavForm.PullDown.options[0].selected=true;
		  }

		// open a url in a new window
		function gotoWeb(url)
		{
		var objPopup = window.open(url,'ExhWin','top=0,menubar=1,status=1,toolbar=1,scrollbars=1,directories=1');
		objPopup.focus();
		}