
var available_height;
var varSize;


var isNav4;
var isIE4;
var available_width;

	if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
		 isNav4	= (navigator.appName == "Netscape") ? true : false;
		 isIE4 	= (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
	}

	function preLoad() 
	{
     	     if(isNav4) {
          	available_width  = innerWidth;
          	available_height = innerHeight;
	     } else  if(isIE4) {
		available_width  = document.body.clientWidth;
		available_height = document.body.clientHeight;}  

	if (available_width > 800)
		{parent.document.location.href="MarinersArcade.asp?psz=2";
		}
		else
		{parent.document.location.href="MarinersArcade.asp?psz=1";
		}
	}

if (document.layers) {
  window.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP|Event.CLICK)
  window.onmousedown=right;
}
else  {
 if (document.all){ 
    document.onmousedown = right;
    }
 }   
function right(e) {
  var msg = "The photos on this page are the property of Mariner's Arcade. For this reason we disabled the right click function.";
  if (navigator.appName == 'Netscape' && e.which == 3) {
    alert(msg);
    return false;
  }
  else if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
  alert(msg);
  return false;
}
return true;
}

function openLinks( pageToLoad, winName, width, height, center) {

    if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
      //  xposition = (screen.width - width) / 2;
     //   yposition = (screen.height - height) / 2;    }

     	xposition = 0;
      	yposition = 0;    }

    args = "width=" + width + ","     + "height=" + height + "," 
 //   args = "width=" + width + ","     + "height=" + height + "," 
    + "location=1,"     + "menubar=1,"    + "resizable=1,"    + "scrollbars=1,"
    + "status=1,"     + "titlebar=1,"    + "toolbar=1,"    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only
    window.open( pageToLoad,winName,args );}




function openLinksc( pageToLoad, winName, width, height, center) {

    if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
      //  xposition = (screen.width - width) / 2;
     //   yposition = (screen.height - height) / 2;    }

     	xposition = 0;
      	yposition = 0;    }

    args = "width=" + width + ","     + "height=" + height + "," 
 //   args = "width=" + width + ","     + "height=" + height + "," 
    + "location=0,"     + "menubar=0,"    + "resizable=0,"    + "scrollbars=0,"
    + "status=0,"     + "titlebar=1,"    + "toolbar=0,"    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only
    window.open( pageToLoad,winName,args );}



