﻿function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
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 MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


var browserName=navigator.appName; 
function showToolTip(){ 
	var hid = document.getElementById('interVeil'); 
	var cid = document.getElementById('container'); 
	var tid = document.getElementById('plWait'); 
	//hid.style.visibility = 'visible';
	var width = 100;
	var height = screen.scrollHeight + 40;	
	hid.style.width = width + "%";
	hid.style.height = "100%"; //height  + "px";
	tid.style.left = (screen.width-30)/2 - (220)/2 + "px";
	tid.style.top = "300px";
	//tid.style.top = (screen.height-200)/2 - (40)/2 + "px";
	tid.style.visibility = 'hidden';
	window.setTimeout('placeIt()',20);
	
}
showToolTip();


function placeIt(){ 
	var nAgt = navigator.userAgent;
	var obj = document.getElementById('plWait');
	var objmain = document.getElementById('container');
	if (nAgt != "Natscape")
	{
		theLeft = (screen.width-30)/2 - (220)/2;
		theTop = document.documentElement.scrollTop;
	}
	else if (nAgt == "Natscape")
	{ 
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}

 //alert(theTop);
	obj.style.left = Math.abs(theLeft)  +  'px';
	obj.style.top = Math.abs(theTop) + 300  +  'px';
	
	//setTimeout("placeIt()",20);
	window.setTimeout('placeIt()',20);
}




function hidewind(){
	var hid = document.getElementById('interVeil'); 
	var tid = document.getElementById('plWait'); 
	tid.style.visibility = 'hidden';
	hid.style.visibility = 'hidden';
}

function pictureloading(){

MM_preloadImages('/images/h_thumb/bird_1.jpg','/images/h_thumb/bird_2.jpg','/images/h_thumb/bird_3.jpg','/images/h_thumb/bird_4.jpg','/images/h_thumb/bird_5.jpg', '/images/h_thumb/bird_6.jpg','/images/h_thumb/bird_7.jpg','/images/h_thumb/bird_8.jpg','/images/h_thumb/bird_9.jpg');

MM_preloadImages('/images/h_thumb/mam_1.jpg','/images/h_thumb/mam_2.jpg','/images/h_thumb/mam_3.jpg','/images/h_thumb/mam_4.jpg','/images/h_thumb/mam_5.jpg','/images/h_thumb/mam_6.jpg','/images/h_thumb/mam_7.jpg','/images/h_thumb/mam_8.jpg','/images/h_thumb/mam_9.jpg');

MM_preloadImages('/images/h_thumb/misc_1.jpg','/images/h_thumb/misc_2.jpg','/images/h_thumb/misc_3.jpg', '/images/h_thumb/misc_4.jpg','/images/h_thumb/misc_5.jpg');

MM_preloadImages('/images/h_thumb/nature_1.jpg','/images/h_thumb/nature_2.jpg','/images/h_thumb/nature_3.jpg','/images/h_thumb/nature_4.jpg','/images/h_thumb/nature_5.jpg','/images/h_thumb/nature_6.jpg','/images/h_thumb/nature_7.jpg','/images/h_thumb/nature_8.jpg','/images/h_thumb/nature_9.jpg');

hidewind();
}


var nAgtRun = navigator.appName;
function showwindow(pageCall){
 if(document.all)e = event;
 var hid = document.getElementById('interVeil');
 var sid = document.getElementById('container');

 var width = screen.width;
 var height = screen.height;

 hid.style.visibility = 'visible';
 document.getElementById('modelwindow').style.display = 'block';

 //var st = Math.max(document.body.scrollTop, document.documentElement.scrollTop);
 if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)st=0;

 hid.style.width = width - 23 + "px";
 hid.style.height = height + 30 + "px"; 
//var wVal = (width/2) - (770/2);

 
 document.getElementById("pageLoading").innerHTML = "<iframe src="+pageCall+" width=100% height=525px frameborder=0 scrolling=auto align=left></iframe>" ;
	 
 window.setTimeout('placeIt()',20);
}

function placeIt(){ 
	var nAgt = navigator.userAgent;
	var obj = document.getElementById('modelwindow'); 
	var objmain = document.getElementById('container');
	if (nAgt != "Natscape")
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (nAgt == "Natscape")
	{ 
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	obj.style.left = Math.abs(theLeft) + (screen.width/2) - (770/2) +  'px';
	obj.style.top = Math.abs(theTop) + 30  +  'px';
	
	//setTimeout("placeIt()",20);
	window.setTimeout('placeIt()',20);
}

function hidepanel(){
var hid = document.getElementById('interVeil');
var sid = document.getElementById('container');
hid.style.visibility = 'hidden';
document.getElementById('modelwindow').style.display = 'none';
document.getElementById("pageLoading").innerHTML = "";
}


