function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function vidPlayer(vidNum){
	var w=window.open('http://www.markmitchumweb.com/vidplayer.asp?v='+vidNum,'video','width=350,height=400,scrollbar=no,titlebar=no');
	w.focus();
	return false;
}

function viewProduct(prodNum){//width=500,height=500,
	var p=window.open('/productview.asp?p='+prodNum,'product','resizable=yes,scrollbars=no,status=0');
	p.focus();
}

function fitPic(){
	window.resizeTo(500,500);
	var NS = (navigator.appName=="Netscape")?true:false;
	iWidth = (NS)?window.innerWidth:document.body.clientWidth;
	iHeight = (NS)?window.innerHeight:document.body.clientHeight;
	document.getElementById('splash').style.display = 'none';
	document.getElementById('disp_image').style.display = 'block';
	iWidth = document.images[0].width - iWidth;
	iHeight = document.images[0].height - iHeight;
	window.resizeBy(iWidth, iHeight);
	self.focus();
}

function chgPic(imgnum){
	document.getElementById('galleryimg').src = '/images/gallery'+imgnum+'.jpg';
}
