
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 (available_width > 800)
		{parent.document.location.href="Home.html";
		}
	else
		{parent.document.location.href="Home.html";
		}		


}

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 AraLimo. 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 openDocuments( 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 + "," 
    + "location=0,"     + "menubar=0,"    + "resizable=1,"    + "scrollbars=1,"
    + "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 );
}





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 openLinkJob( 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=0,"    + "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 showMenu(opt)
	{
		hideAll();
		switch (opt)
		{
//----------------------Main Menu
			case '1':
				document.getElementById("lyrTop1").style.visibility   	= "visible";
				break;
			case '2':
				document.getElementById("lyrTop2").style.visibility   	= "visible";
				break;
			case '3':
				document.getElementById("lyrTop3").style.visibility   	= "visible";
				break;
			
		}
	}



	function hideAll()
	{
		document.getElementById("lyrTop1").style.visibility   	= "hidden";
		document.getElementById("lyrTop2").style.visibility 	= "hidden";
		document.getElementById("lyrTop3").style.visibility    	= "hidden";
	}
