/* Dimaggio Javascript */



	// Disable Right Click	

	var message="We are sorry, that function is not available.";

	

	///////////////////////////////////

	function clickIE4(){

	if (event.button==2){

	alert(message);

	return false;

	}

	}

	

	function clickNS4(e){

	if (document.layers||document.getElementById&&!document.all){

	if (e.which==2||e.which==3){

	alert(message);

	return false;

	}

	}

	}

	

	if (document.layers){

	document.captureEvents(Event.MOUSEDOWN);

	document.onmousedown=clickNS4;

	}

	else if (document.all&&!document.getElementById){

	document.onmousedown=clickIE4;

	}

	

	document.oncontextmenu=new Function("alert(message);return false")



	// end right click disable

	

	



	function openGallery(image) 

	{

		if ((navigator.userAgent.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1))

		{

			openVerOne(image);

		}

		else

		{

			openVerTwo(image);

		}

	}	

	

	function openVerOne(image) {

		url = "Gallery.php?img="+image;

		window.open(url, "image", "scrollbars=yes,width=535,height=500,resizable=yes");

		return false;

	}

	

	

	function openVerTwo(image) {

		x = (675 - 675)/2, y = (500 - 500)/2;

	

		if (screen) {

			y = (screen.availHeight - 500)/2;

			x = (screen.availWidth - 675)/2;

		}

		if (screen.availWidth > 1800) { 

		x = ((screen.availWidth/2) - 675)/2; 

		}

		url = "Gallery.php?img="+image;

		window.open(url,'image','scrollbars=yes,resizable=yes,width=535,height=500,screenX='+x+',screenY='+y+',top='+y+',left='+x);

	}

	// End

	

	

	

	function openStats() 

	{

		if ((navigator.userAgent.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1))

		{

			openStatOne();

		}

		else

		{

			openStatTwo();

		}

	}	

	

	function openStatOne() {

		url = "BaseballStats.php";

		window.open(url, "image", "scrollbars=yes,width=635,height=500,resizable=yes");

		return false;

	}

	

	

	function openStatTwo() {

		x = (635 - 635)/2, y = (500 - 500)/2;

	

		if (screen) {

			y = (screen.availHeight - 500)/2;

			x = (screen.availWidth - 635)/2;

		}

		if (screen.availWidth > 1800) { 

		x = ((screen.availWidth/2) - 635)/2; 

		}

		url = "BaseballStats.php";

		window.open(url,'image','scrollbars=yes,resizable=yes,width=635,height=500,screenX='+x+',screenY='+y+',top='+y+',left='+x);

	}

	// End

	

	

	function openQuotes() 

	{

		if ((navigator.userAgent.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1))

		{

			openQuotesOne();

		}

		else

		{

			openQuotesOne();

		}

	}	

	

	function openQuotesOne() {

		url = "Quotes.php";

		window.open(url, "image", "scrollbars=yes,width=635,height=500,resizable=yes");

		return false;

	}

	

	

	function openQuotesOne() {

		x = (635 - 635)/2, y = (500 - 500)/2;

	

		if (screen) {

			y = (screen.availHeight - 500)/2;

			x = (screen.availWidth - 635)/2;

		}

		if (screen.availWidth > 1800) { 

		x = ((screen.availWidth/2) - 635)/2; 

		}

		url = "Quotes.php";

		window.open(url,'image','scrollbars=yes,resizable=yes,width=635,height=500,screenX='+x+',screenY='+y+',top='+y+',left='+x);

	}

	// End

	

	

	function openNotice() 

	{

		if ((navigator.userAgent.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1))

		{

			openNoticeOne();

		}

		else

		{

			openNoticeOne();

		}

	}	

	

	function openNoticeOne() {

		url = "StorePop.php";

		window.open(url, "image", "scrollbars=yes,width=635,height=500,resizable=yes");

		return false;

	}

	

	

	function openNoticeOne() {

		x = (635 - 635)/2, y = (500 - 500)/2;

	

		if (screen) {

			y = (screen.availHeight - 500)/2;

			x = (screen.availWidth - 635)/2;

		}

		if (screen.availWidth > 1800) { 

		x = ((screen.availWidth/2) - 635)/2; 

		}

		url = "StorePop.php";

		window.open(url,'image','scrollbars=yes,resizable=yes,width=635,height=500,screenX='+x+',screenY='+y+',top='+y+',left='+x);

	}

	// End

