function alignPicture() {

window.onresize= alignPicture;

  var iWidth;
  var picWidth = 670;
  var iMargins;
  var lMargin = 0;

  iWidth = document.body.clientWidth;
  iMargins = ((iWidth-picWidth)/2);
  lMargin = (iMargins - (iMargins % 24) + 1);

  document.getElementById('insertHeader').innerHTML = '<img src="images/spacer.gif" height="1" width="' + lMargin +'"><img border="0" src="images/header.jpg" width="670" height="272">';

}

function setPosition() 
{
	document.cookie = encodeURI(document.body.scrollTop);
}
function getPosition() 
{
var cookieString = decodeURI(document.cookie);
	if(cookieString.length !=0)
	{
		var cookieArray = cookieString.split("; ");
		document.body.scrollTop = cookieArray[1];
	}
}

function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Sorry, you cannot save the pictures.");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
