jQuery("document").ready(function() {
	jQuery("a.exhSS").click(function() {
		openExhSS(this.href);
		return false;
	});
});

function openExhSS(theUrl)
{
	var height=660;
	var width=940;
	var newLeft = (window.screen.availWidth - width) / 2;
	var newHeight = (window.screen.availHeight - height) /2;
	var detailWin = window.open(theUrl,'detailWin','height=' + height + ',width=' + width + ',left=' + newLeft + ',top=' + newHeight + ',menubar=0,status=0,scrollbars=0,directories=0,resizable=1');
	detailWin.focus();
}

function openSS()
{
			var height=650;
			var width=1000;
			var newLeft = (window.screen.availWidth - width) / 2;
			var newHeight = (window.screen.availHeight - height) /2;
			var url = "ss/lay_ss.cfm";
			var detailWin = window.open(url,'detailWin','height=' + height + ',width=' + width + ',left=' + newLeft + ',top=' + newHeight + ',menubar=0,status=0,scrollbars=0,directories=0,resizable=1');
			detailWin.focus();
}

function openSS2()
{
			var height=650;
			var width=1000;
			var newLeft = (window.screen.availWidth - width) / 2;
			var newHeight = (window.screen.availHeight - height) /2;
			var url = "ss/lay_ss2.cfm";
			var detailWin = window.open(url,'detailWin','height=' + height + ',width=' + width + ',left=' + newLeft + ',top=' + newHeight + ',menubar=0,status=0,scrollbars=0,directories=0,resizable=1');
			detailWin.focus();
}

function openSS3()
{
			var height=650;
			var width=1000;
			var newLeft = (window.screen.availWidth - width) / 2;
			var newHeight = (window.screen.availHeight - height) /2;
			var url = "ss/lay_ss3.cfm";
			var detailWin = window.open(url,'detailWin','height=' + height + ',width=' + width + ',left=' + newLeft + ',top=' + newHeight + ',menubar=0,status=0,scrollbars=0,directories=0,resizable=1');
			detailWin.focus();
}

function openSS4()
{
			var height=720;
			var width=1000;
			var newLeft = (window.screen.availWidth - width) / 2;
			var newHeight = (window.screen.availHeight - height) /2;
			var url = "ss/lay_ss4.cfm";
			var detailWin = window.open(url,'detailWin','height=' + height + ',width=' + width + ',left=' + newLeft + ',top=' + newHeight + ',menubar=0,status=0,scrollbars=0,directories=0,resizable=1');
			detailWin.focus();
}

        function PageChanger(page)
		  {
		  
		  document.location = page;
		  document.NavSubject.PullDown.options[0].selected=true;
		  }
		  
		  function PageChangerDecade(page)
		  {
		  	document.location = page;
		  	document.NavDecade.PullDown.options[0].selected=true;
		  }
		  
		  function PageChangerPage(page)
		  {
		  	document.location = page;
		  	document.NavPage.PullDown.options[0].selected=true;
		  }
		  
		  	function popup(imgFile)
			{
				var detailWin = window.open("publications/popUp.htm?" + imgFile, "detailWin","height=500,width=500,top=25,left=50,status=0,resizable=yes");
			}

			function chkForm()
			{
				var returnValue = false;
				
				if (document.r_form.fname.value == "")
				{
					alert("Please give your first name");
					document.r_form.fname.focus();
				}
				else if (document.r_form.lname.value == "")
				{
					alert("Please give your last name");
					document.r_form.lname.focus();
				}
				else if (document.r_form.email.value == "")
				{
					alert("Please enter an email address.");
					document.r_form.email.focus();
				}
				else
				{
					returnValue = true;
				}
				
				return returnValue;
			}
			
			/* opens the window for additional views of sculpture */
			
		function openViews(inventory_id)
		{
			var height=600;
			var width=800;
			var newLeft = (window.screen.availWidth - width) / 2;
			var newHeight = (window.screen.availHeight - height) /2;
			var url = "views/view.cfm?inventory_id=" + inventory_id;
			var detailWin = window.open(url,'detailWin','height=' + height + ',width=' + width + ',left=' + newLeft + ',top=' + newHeight + ',menubar=0,status=0,scrollbars=0,directories=0,resizable=1');
			detailWin.focus();
		}
		
		/* opens a movie file */
		function openMovie(filename)
		{
			var height=625;
			var width=800;
			var newLeft = (window.screen.availWidth - width) / 2;
			var newHeight = (window.screen.availHeight - height) /2;
			var url = "multimedia/" + filename;
			var movieWin = window.open(url,'movieWin','height=' + height + ',width=' + width + ',left=' + newLeft + ',top=' + newHeight + ',menubar=0,status=0,scrollbars=0,directories=0,resizable=1');
			movieWin.focus();
		}